Ver código fonte

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

将权限标识符从'system:checkCategory'和'system:project'更新为'system:performanceIndicatorCategory'和'system:indicator',以匹配系统模块的新命名规范
huoyi 1 mês atrás
pai
commit
00389ebe4f

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

@@ -23,7 +23,7 @@
23
     <el-row :gutter="10" class="mb8">
23
     <el-row :gutter="10" class="mb8">
24
       <el-col :span="1.5">
24
       <el-col :span="1.5">
25
         <el-button type="primary" plain icon="Plus" @click="handleAdd"
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
       </el-col>
27
       </el-col>
28
       <!-- <el-col :span="1.5">
28
       <!-- <el-col :span="1.5">
29
         <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate"
29
         <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate"
@@ -31,15 +31,15 @@
31
       </el-col> -->
31
       </el-col> -->
32
       <el-col :span="1.5">
32
       <el-col :span="1.5">
33
         <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete"
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
       </el-col>
35
       </el-col>
36
       <el-col :span="1.5">
36
       <el-col :span="1.5">
37
         <el-button type="warning" plain icon="Download" @click="handleExport"
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
       </el-col>
39
       </el-col>
40
       <el-col :span="1.5">
40
       <el-col :span="1.5">
41
         <el-button type="info" plain icon="Upload" @click="handleImport"
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
       </el-col>
43
       </el-col>
44
       <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
44
       <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
45
     </el-row>
45
     </el-row>
@@ -69,9 +69,9 @@
69
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
69
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
70
         <template #default="scope">
70
         <template #default="scope">
71
           <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
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
           <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
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
         </template>
75
         </template>
76
       </el-table-column>
76
       </el-table-column>
77
     </el-table>
77
     </el-table>

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

@@ -23,7 +23,7 @@
23
           plain
23
           plain
24
           icon="Plus"
24
           icon="Plus"
25
           @click="handleAdd"
25
           @click="handleAdd"
26
-          v-hasPermi="['system:checkCategory:add']"
26
+          v-hasPermi="['system:performanceIndicatorCategory:add']"
27
         >新增</el-button>
27
         >新增</el-button>
28
       </el-col>
28
       </el-col>
29
       <el-col :span="1.5">
29
       <el-col :span="1.5">
@@ -52,9 +52,9 @@
52
       <el-table-column label="备注" align="center" prop="remark" />
52
       <el-table-column label="备注" align="center" prop="remark" />
53
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
53
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
54
         <template #default="scope">
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
         </template>
58
         </template>
59
       </el-table-column>
59
       </el-table-column>
60
     </el-table>
60
     </el-table>