wuxw hace 6 años
padre
commit
f1f974a170

+ 21 - 21
WebService/src/main/resources/components/privilegePackage/privilege-manage/privilege.html

@@ -7,17 +7,17 @@
                     data-toggle="tooltip"
                     title="Refresh inbox"
                     v-on:click="openAddPrivilegeModel()"
-            ><i class="fa fa-plus"></i> 添加权限
-            </button>
-            <div class="input-group">
-                <input type="text" class="form-control form-control-sm" v-model="privilegeInfo._currentPgName"
-                       name="search" placeholder="请输入权限名称">
-                <div class="input-group-btn">
-                    <button v-on:click="queryPrivilege()" class="btn btn-sm btn-primary">
-                        查询
-                    </button>
+            ><i class="fa fa-plus"></i> 添加权限</button>
+            <form class="float-right mail-search" style="margin-right:10px">
+                <div class="input-group">
+                    <input type="text" class="form-control form-control-sm" v-model="privilegeInfo._pName" name="search" placeholder="请输入权限名称">
+                    <div class="input-group-btn">
+                        <button v-on:click="queryPrivilege()" class="btn btn-sm btn-primary">
+                            查询
+                        </button>
+                    </div>
                 </div>
-            </div>
+            </form>
             <h2>
                 {{privilegeInfo._currentPgName}}
             </h2>
@@ -26,14 +26,14 @@
 
             <table class="table table-hover table-mail">
                 <thead>
-                <tr>
-                    <th>权限编码</th>
-                    <th>权限名称</th>
-                    <th>资源路径</th>
-                    <th>权限描述</th>
-                    <th>创建时间</th>
-                    <th>操作</th>
-                </tr>
+                    <tr>
+                        <th>权限编码</th>
+                        <th>权限名称</th>
+                        <th>资源路径</th>
+                        <th>权限描述</th>
+                        <th>创建时间</th>
+                        <th>操作</th>
+                    </tr>
                 </thead>
                 <tbody>
                 <tr v-for="privilege in privilegeInfo._privileges" class="read">
@@ -45,9 +45,9 @@
                     <td class="mail-subject">{{privilege.description}}</td>
                     <td class="">{{vc.dateFormat(privilege.createTime)}}</td>
                     <td class="text-right mail-date">
-                        <i v-if="privilegeInfo._currentStoreId != '9999'"
-                           v-on:click="openDeletePrivilegeModel(privilege)"
-                           class="glyphicon glyphicon-remove"></i>
+                        <i  v-if="privilegeInfo._currentStoreId != '9999'"
+                                                         v-on:click="openDeletePrivilegeModel(privilege)"
+                                                         class="glyphicon glyphicon-remove"></i>
                     </td>
                 </tr>
 

+ 2 - 1
WebService/src/main/resources/components/privilegePackage/privilege-manage/privilege.js

@@ -5,6 +5,7 @@
             privilegeInfo:{
                 _currentPgId:"",
                 _currentPgName:"",
+                _pName:'',
                 _currentStoreId:"9999",
                 _privileges:[]
             }
@@ -49,7 +50,7 @@
             },
             openAddPrivilegeModel:function(){
                 vc.component.$emit('addPrivilege_openPrivilegeModel',{
-                            pgId:vc.component.privilegeInfo._currentPgId
+                            pgId:vc.component.privilegeInfo._pName
                 });
             },
             openDeletePrivilegeModel:function(_p){