dedsudiyu 1 vuosi sitten
vanhempi
commit
5077e198dc

+ 15 - 5
src/views/serviceCenter/apkManage/applyList/index.vue

@@ -30,7 +30,8 @@
           <el-col :span="1.5" style="margin-right: 10px;">
             <p class="add-button-one-120"
                @click="handleClick()"
-            ><i class="el-icon-plus"></i>添加应用</p>
+               v-hasPermi="['system:appManage:add']"
+            >添加应用</p>
           </el-col>
         </el-form-item>
       </el-form>
@@ -56,13 +57,21 @@
             {{parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}:{s}")}}
           </template>
         </el-table-column>
-        <el-table-column label="操作" align="center" prop="deptName" width="200">
+        <el-table-column label="操作" align="center" prop="deptName" width="200" v-if="tableButtonType">
           <template slot-scope="scope">
             <div class="table-button-box">
               <p class="table-button-null"></p>
-              <p class="table-button-p" @click="tableButton(1,scope.row)">下载</p>
-              <p class="table-button-p" @click="tableButton(2,scope.row)">编辑</p>
-              <p class="table-button-p" @click="tableButton(3,scope.row)">删除</p>
+              <p class="table-button-p"
+                 @click="tableButton(1,scope.row)"
+              >下载</p>
+              <p class="table-button-p"
+                 @click="tableButton(2,scope.row)"
+                 v-hasPermiAnd="['system:appManage:edit','system:appManage:detail']"
+              >编辑</p>
+              <p class="table-button-p"
+                 @click="tableButton(3,scope.row)"
+                 v-hasPermi="['system:appManage:edit']"
+              >删除</p>
               <p class="table-button-null"></p>
             </div>
           </template>
@@ -171,6 +180,7 @@
     name: 'applyList',
     data(){
       return{
+        tableButtonType:this.hasPermiDom(['system:appManage:edit','system:appManage:detail','system:appManage:edit']),
         loading:false,
         optionList:[],
         queryParams:{

+ 16 - 4
src/views/serviceCenter/certificationManagement/certificationAccredit/index.vue

@@ -40,6 +40,7 @@
           <el-col :span="1.5" style="margin-right:10px;">
             <p class="add-button-one-90"
                @click="dialogOpen"
+               v-hasPermi="['auth:license:add']"
             >新增</p>
           </el-col>
         </el-form-item>
@@ -78,13 +79,23 @@
             {{scope.row.state?'启用':'停用'}}
           </template>
         </el-table-column>
-        <el-table-column label="操作" align="center" prop="deptName" width="200">
+        <el-table-column label="操作" align="center" prop="deptName" width="200"
+                         v-if="tableButtonType">
           <template slot-scope="scope">
             <div class="table-button-box">
               <p class="table-button-null"></p>
-              <p class="table-button-p" @click="tableButton(1,scope.row)">编辑</p>
-              <p class="table-button-p" @click="tableButton(2,scope.row)">重置密钥</p>
-              <p class="table-button-p" @click="tableButton(3,scope.row)">删除</p>
+              <p class="table-button-p"
+                 @click="tableButton(1,scope.row)"
+                 v-hasPermiAnd="['auth:license:edit','auth:license:detail']"
+              >编辑</p>
+              <p class="table-button-p"
+                 @click="tableButton(2,scope.row)"
+                 v-hasPermi="['auth:license:edit']"
+              >重置密钥</p>
+              <p class="table-button-p"
+                 @click="tableButton(3,scope.row)"
+                 v-hasPermi="['auth:license:del']"
+              >删除</p>
               <p class="table-button-null"></p>
             </div>
           </template>
@@ -193,6 +204,7 @@
     name: 'index',
     data(){
       return{
+        tableButtonType:this.hasPermiDom(['auth:license:edit','auth:license:detail','auth:license:del']),
         loading:false,
         optionList:[{label:"启用",value:true},{label:"禁用",value:false}],
         grantTypeList:[{label:"指定时间",value:1},{label:"永久有效",value:2}],

+ 12 - 3
src/views/serviceCenter/certificationManagement/certificationInfo/index.vue

@@ -40,6 +40,7 @@
           <el-col :span="1.5" style="margin-right:10px;">
             <p class="add-button-one-90"
                @click="dialogOpen"
+               v-hasPermi="['auth:customer:add']"
             >新增</p>
           </el-col>
         </el-form-item>
@@ -62,12 +63,19 @@
             <span>{{ parseTime(scope.row.createTime) }}</span>
           </template>
         </el-table-column>
-        <el-table-column label="操作" align="center" prop="deptName" width="140">
+        <el-table-column label="操作" align="center" prop="deptName" width="140"
+                         v-if="tableButtonType">
           <template slot-scope="scope">
             <div class="table-button-box">
               <p class="table-button-null"></p>
-              <p class="table-button-p" @click="tableButton(1,scope.row)">编辑</p>
-              <p class="table-button-p" @click="tableButton(2,scope.row)">删除</p>
+              <p class="table-button-p"
+                 @click="tableButton(1,scope.row)"
+                 v-hasPermiAnd="['auth:customer:edit','auth:customer:detail']"
+              >编辑</p>
+              <p class="table-button-p"
+                 @click="tableButton(2,scope.row)"
+                 v-hasPermi="['auth:customer:del']"
+              >删除</p>
               <p class="table-button-null"></p>
             </div>
           </template>
@@ -152,6 +160,7 @@
     name: 'index',
     data(){
       return{
+        tableButtonType:this.hasPermiDom(['auth:customer:edit','auth:customer:detail','auth:customer:del']),
         loading:false,
         optionList:[{label:"启用",value:true},{label:"禁用",value:false}],
         queryParams:{

+ 6 - 2
src/views/serviceCenter/logManagement/algorithmLogs/index.vue

@@ -83,11 +83,14 @@
               <span>{{ scope.row.costTime }}ms</span>
             </template>
           </el-table-column>
-          <el-table-column label="操作" align="center" prop="deptName" width="170">
+          <el-table-column label="操作" align="center" prop="deptName" width="170" v-if="tableButtonType">
             <template slot-scope="scope">
               <div class="table-button-box">
                 <p class="table-button-null"></p>
-                <p class="table-button-p" @click="tableButton(scope.row)">详情</p>
+                <p class="table-button-p"
+                   @click="tableButton(scope.row)"
+                   v-hasPermi="['system:alg:detail']"
+                >详情</p>
                 <p class="table-button-null"></p>
               </div>
             </template>
@@ -116,6 +119,7 @@
     },
     data(){
       return{
+        tableButtonType:this.hasPermiDom(['system:alg:detail']),
         pageType:1,
         loading:false,
         dateRange:[],

+ 6 - 2
src/views/serviceCenter/logManagement/systemLogs/index.vue

@@ -68,11 +68,14 @@
             </template>
           </el-table-column>
           <el-table-column label="操作人" align="center" prop="operator" show-overflow-tooltip width="110"/>
-          <el-table-column label="操作" align="center" prop="deptName" width="170">
+          <el-table-column label="操作" align="center" prop="deptName" width="170" v-if="tableButtonType">
             <template slot-scope="scope">
               <div class="table-button-box">
                 <p class="table-button-null"></p>
-                <p class="table-button-p" @click="tableButton(scope.row)">详情</p>
+                <p class="table-button-p"
+                   @click="tableButton(scope.row)"
+                   v-hasPermi="['system:log:detail']"
+                >详情</p>
                 <p class="table-button-null"></p>
               </div>
             </template>
@@ -101,6 +104,7 @@
     },
     data(){
       return{
+        tableButtonType:this.hasPermiDom(['system:log:detail']),
         pageType:1,
         loading:false,
         dateRange:[],

+ 4 - 1
src/views/serviceCenter/onlineUser/index.vue

@@ -49,7 +49,10 @@
           <template slot-scope="scope">
             <div class="table-button-box">
               <p class="table-button-null"></p>
-              <p class="table-button-p" @click="tableButton(scope.row)">踢出</p>
+              <p class="table-button-p"
+                 @click="tableButton(scope.row)"
+                 v-hasPermi="['system:online:del']"
+              >踢出</p>
               <p class="table-button-null"></p>
             </div>
           </template>

+ 8 - 21
src/views/systemManagement/dict/data.vue

@@ -2,16 +2,6 @@
 <template>
   <div class="dict-data">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px" class="form-box">
-      <!--<el-form-item label="字典名称" prop="dictCode">-->
-        <!--<el-select v-model="queryParams.dictCode" size="small">-->
-          <!--<el-option-->
-            <!--v-for="item in typeOptions"-->
-            <!--:key="item.dictId"-->
-            <!--:label="item.dictName"-->
-            <!--:value="item.dictCode"-->
-          <!--/>-->
-        <!--</el-select>-->
-      <!--</el-form-item>-->
       <el-form-item label="标签名称" prop="label">
         <el-input
           v-model="queryParams.label"
@@ -46,15 +36,10 @@
     </el-form>
 
     <el-table v-loading="loading" border :data="dataList" @selection-change="handleSelectionChange" class="table-box">
-      <el-table-column label="字典名称" align="left" prop="label">
-        <!--<template slot-scope="scope">-->
-          <!--<span v-if="scope.row.listClass == '' || scope.row.listClass == 'default'">{{scope.row.label}}</span>-->
-          <!--<el-tag v-else :type="scope.row.listClass == 'primary' ? '' : scope.row.listClass">{{scope.row.label}}</el-tag>-->
-        <!--</template>-->
-      </el-table-column>
+      <el-table-column label="字典名称" align="left" prop="label"/>
       <el-table-column label="字典数值" align="left" prop="value" />
       <el-table-column label="显示顺序" align="left" prop="sort" />
-      <el-table-column label="状态" align="left" prop="state">
+      <el-table-column label="状态" align="left" prop="state" v-hasPermi="['system:dict:edit']">
         <template slot-scope="scope">
           <el-switch
             class="switch"
@@ -75,17 +60,19 @@
           <span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}:{s}") }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="160" v-if="tableButtonType">
+      <el-table-column label="操作" align="left"
+                       class-name="small-padding fixed-width" width="160"
+                       v-if="tableButtonType">
         <template slot-scope="scope">
           <div class="table-button-box">
             <p class="table-button-null"></p>
             <p class="table-button-p"
                @click="handleUpdate(scope.row)"
-               v-hasPermi="['system:dict:edit']"
+               v-hasPermiAnd="['system:dict:edit','system:dict:detail']"
             >编辑</p>
             <p class="table-button-p"
                @click="handleDelete(scope.row)"
-               v-hasPermi="['system:dict:remove']"
+               v-hasPermi="['system:dict:del']"
             >删除</p>
             <p class="table-button-null"></p>
           </div>
@@ -145,7 +132,7 @@ export default {
   name: "Data",
   data() {
     return {
-      tableButtonType:this.hasPermiDom(['system:dict:edit','system:dict:remove']),
+      tableButtonType:this.hasPermiDom(['system:dict:edit','system:dict:detail','system:dict:del']),
       // 遮罩层
       loading: true,
       // 选中数组

+ 8 - 6
src/views/systemManagement/dict/index.vue

@@ -47,7 +47,7 @@
     <el-table v-loading="loading" border :data="typeList" @selection-change="handleSelectionChange" class="table-box" v-if="pageType == 1">
       <el-table-column label="字典名称" align="left" prop="dictName"/>
       <el-table-column label="字典类型" align="left" prop="dictCode"/>
-      <el-table-column label="状态" align="left" prop="state">
+      <el-table-column label="状态" align="left" prop="state" v-hasPermi="['system:dict:edit']">
         <template slot-scope="scope">
           <el-switch
             class="switch"
@@ -67,21 +67,23 @@
           <span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}:{s}") }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="240" v-if="tableButtonType">
+      <el-table-column label="操作" align="left"
+                       class-name="small-padding fixed-width" width="240"
+                       v-if="tableButtonType">
         <template slot-scope="scope">
           <div class="table-button-box">
             <p class="table-button-null"></p>
             <p class="table-button-p"
                @click="clickPage(2,scope.row.dictId)"
-               v-hasPermi="['system:dict:edit']"
+               v-hasPermi="['system:dict:list']"
             >配置字典</p>
             <p class="table-button-p"
                @click="handleUpdate(scope.row)"
-               v-hasPermi="['system:dict:edit']"
+               v-hasPermiAnd="['system:dict:edit','system:dict:detail']"
             >编辑</p>
             <p class="table-button-p"
                @click="handleDelete(scope.row)"
-               v-hasPermi="['system:dict:remove']"
+               v-hasPermi="['system:dict:del']"
             >删除</p>
             <p class="table-button-null"></p>
           </div>
@@ -142,7 +144,7 @@ export default {
   name: "Dict",
   data() {
     return {
-      tableButtonType:this.hasPermiDom(['system:dict:edit','system:dict:edit','system:dict:remove']),
+      tableButtonType:this.hasPermiDom(['system:dict:list','system:dict:edit','system:dict:detail','system:dict:del']),
       // 遮罩层
       loading: true,
       // 选中数组

+ 5 - 4
src/views/systemManagement/menu/index.vue

@@ -74,7 +74,8 @@
           <span>{{ parseTime(scope.row.createTime) }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180" v-if="tableButtonType">
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180"
+                       v-if="tableButtonType">
         <template slot-scope="scope">
           <div class="table-button-box">
             <p class="table-button-null"></p>
@@ -84,11 +85,11 @@
             >新增</p>
             <p class="table-button-p"
                @click="handleUpdate(scope.row)"
-               v-hasPermi="['system:menu:edit']"
+               v-hasPermiAnd="['system:menu:edit','system:menu:detail']"
             >修改</p>
             <p class="table-button-p"
                @click="handleDelete(scope.row)"
-               v-hasPermi="['system:menu:remove']"
+               v-hasPermi="['system:menu:del']"
             >删除</p>
             <p class="table-button-null"></p>
           </div>
@@ -293,7 +294,7 @@ export default {
   components: { Treeselect, IconSelect },
   data() {
     return {
-      tableButtonType:this.hasPermiDom(['system:menu:add','system:menu:edit','system:menu:remove']),
+      tableButtonType:this.hasPermiDom(['system:menu:add','system:menu:edit','system:menu:detail','system:menu:del']),
       // 遮罩层
       loading: true,
       // 显示搜索条件

+ 3 - 3
src/views/systemManagement/notice/index.vue

@@ -52,11 +52,11 @@
             <p class="table-button-null"></p>
             <p class="table-button-p"
                @click="handleUpdate(scope.row)"
-               v-hasPermi="['system:notice:edit']"
+               v-hasPermiAnd="['system:notice:edit','system:notice:detail']"
             >编辑</p>
             <p class="table-button-p"
                @click="handleDelete(scope.row)"
-               v-hasPermi="['system:notice:remove']"
+               v-hasPermi="['system:notice:del']"
             >删除</p>
             <p class="table-button-null"></p>
           </div>
@@ -127,7 +127,7 @@ export default {
   name: "Notice",
   data() {
     return {
-      tableButtonType:this.hasPermiDom(['system:notice:edit','system:notice:remove']),
+      tableButtonType:this.hasPermiDom(['system:notice:edit','system:notice:detail','system:notice:del']),
       // 遮罩层
       loading: true,
       // 选中数组

+ 4 - 4
src/views/systemManagement/parameterSetting/index.vue

@@ -31,7 +31,7 @@
             icon="el-icon-plus"
             size="mini"
             @click="handleAdd"
-            v-hasPermi="['system:config:add']"
+            v-hasPermi="['system:conf:add']"
           >新增</el-button>
         </el-col>
       </el-form-item>
@@ -56,11 +56,11 @@
             <p class="table-button-null"></p>
             <p class="table-button-p"
                @click="handleUpdate(scope.row)"
-               v-hasPermi="['system:config:edit']"
+               v-hasPermiAnd="['system:conf:edit','system:conf:detail']"
             >编辑</p>
             <p class="table-button-p"
                @click="handleDelete(scope.row)"
-               v-hasPermi="['system:config:remove']"
+               v-hasPermi="['system:conf:del']"
             >删除</p>
             <p class="table-button-null"></p>
           </div>
@@ -107,7 +107,7 @@
     name: 'parameterSetting',
     data(){
       return{
-        tableButtonType:this.hasPermiDom(['system:config:edit','system:config:remove']),
+        tableButtonType:this.hasPermiDom(['system:conf:edit','system:conf:detail','system:conf:del']),
         typeOptions:[{}],
         loading:false,
         // 查询参数

+ 4 - 3
src/views/systemManagement/roleManagement/index.vue

@@ -62,14 +62,15 @@
               <!--&gt;复制</p>-->
               <p class="table-button-p"
                  @click="handleUpdate(scope.row)"
-                 v-hasPermiAnd="['system:role:edit','system:role:query']"
+                 v-hasPermiAnd="['system:role:edit','system:role:detail']"
               >编辑</p>
               <p class="table-button-p"
                  @click="copyButton(scope.row)"
+                 v-hasPermi="['system:role:edit']"
               >权限配置</p>
               <p class="table-button-p"
                  @click="handleDelete(scope.row)"
-                 v-hasPermi="['system:role:remove']"
+                 v-hasPermi="['system:role:del']"
               >删除</p>
               <p class="table-button-null"></p>
             </div>
@@ -157,7 +158,7 @@ export default {
   name: "Role",
   data() {
     return {
-      tableButtonType:this.hasPermiDom(['system:role:query','system:role:edit','system:role:remove']),
+      tableButtonType:this.hasPermiDom(['system:role:edit','system:role:detail','system:role:del']),
       // 遮罩层
       loading: true,
       // 显示搜索条件

+ 5 - 1
src/views/systemManagement/systemUser/index.vue

@@ -66,6 +66,7 @@
                 icon="el-icon-plus"
                 size="mini"
                 @click="handleAdd"
+                v-hasPermi="['system:user:add']"
               >新增</el-button>
             </el-col>
           </el-form-item>
@@ -105,15 +106,17 @@
             align="left"
             width="220"
             class-name="small-padding fixed-width"
-          >
+            v-if="tableButtonType">
             <template slot-scope="scope">
               <div class="table-button-box">
                 <p class="table-button-null"></p>
                 <p class="table-button-p"
                    @click="handleUpdate(scope.row)"
+                   v-hasPermiAnd="['system:user:edit','system:user:detail']"
                 >修改</p>
                 <p class="table-button-p"
                    @click="handleDelete(scope.row)"
+                   v-hasPermi="['system:user:del']"
                 >删除</p>
                 <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)">
                   <span class="table-button-p">更多>></span>
@@ -251,6 +254,7 @@ export default {
       }
     };
     return {
+      tableButtonType:this.hasPermiDom(['system:user:edit','system:user:detail','system:user:del']),
       // 遮罩层
       loading: true,
       // 选中数组