Parcourir la source

fix: 更新权限标识符以匹配新的系统模块命名

将权限标识符从'system:checkCategory'和'system:project'更新为'system:performanceIndicatorCategory'和'system:indicator',以匹配系统模块的新命名规范
huoyi il y a 1 mois
Parent
commit
00389ebe4f

+ 6 - 6
src/views/system/classificationAssess/index.vue

@@ -23,7 +23,7 @@
23 23
     <el-row :gutter="10" class="mb8">
24 24
       <el-col :span="1.5">
25 25
         <el-button type="primary" plain icon="Plus" @click="handleAdd"
26
-          v-hasPermi="['system:project:add']">新增</el-button>
26
+          v-hasPermi="['system:indicator:add']">新增</el-button>
27 27
       </el-col>
28 28
       <!-- <el-col :span="1.5">
29 29
         <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate"
@@ -31,15 +31,15 @@
31 31
       </el-col> -->
32 32
       <el-col :span="1.5">
33 33
         <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete"
34
-          v-hasPermi="['system:project:remove']">删除</el-button>
34
+          v-hasPermi="['system:indicator:remove']">删除</el-button>
35 35
       </el-col>
36 36
       <el-col :span="1.5">
37 37
         <el-button type="warning" plain icon="Download" @click="handleExport"
38
-          v-hasPermi="['system:project:export']">导出</el-button>
38
+          v-hasPermi="['system:indicator:export']">导出</el-button>
39 39
       </el-col>
40 40
       <el-col :span="1.5">
41 41
         <el-button type="info" plain icon="Upload" @click="handleImport"
42
-          v-hasPermi="['system:project:import']">导入</el-button>
42
+          v-hasPermi="['system:indicator:import']">导入</el-button>
43 43
       </el-col>
44 44
       <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
45 45
     </el-row>
@@ -69,9 +69,9 @@
69 69
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
70 70
         <template #default="scope">
71 71
           <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
72
-            v-hasPermi="['system:project:edit']">修改</el-button>
72
+            v-hasPermi="['system:indicator:edit']">修改</el-button>
73 73
           <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
74
-            v-hasPermi="['system:project:remove']">删除</el-button>
74
+            v-hasPermi="['system:indicator:remove']">删除</el-button>
75 75
         </template>
76 76
       </el-table-column>
77 77
     </el-table>

+ 4 - 4
src/views/system/classificationAssessIndicator/index.vue

@@ -23,7 +23,7 @@
23 23
           plain
24 24
           icon="Plus"
25 25
           @click="handleAdd"
26
-          v-hasPermi="['system:checkCategory:add']"
26
+          v-hasPermi="['system:performanceIndicatorCategory:add']"
27 27
         >新增</el-button>
28 28
       </el-col>
29 29
       <el-col :span="1.5">
@@ -52,9 +52,9 @@
52 52
       <el-table-column label="备注" align="center" prop="remark" />
53 53
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
54 54
         <template #default="scope">
55
-          <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:checkCategory:edit']">修改</el-button>
56
-          <el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)" v-hasPermi="['system:checkCategory:add']">新增</el-button>
57
-          <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:checkCategory:remove']">删除</el-button>
55
+          <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:performanceIndicatorCategory:edit']">修改</el-button>
56
+          <el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)" v-hasPermi="['system:performanceIndicatorCategory:add']">新增</el-button>
57
+          <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:performanceIndicatorCategory:remove']">删除</el-button>
58 58
         </template>
59 59
       </el-table-column>
60 60
     </el-table>