ソースを参照

fix: 修正多个页面的权限校验标识

将各运行数据页面的权限标识从runData前缀统一调整为system前缀,修复权限匹配错误的问题
huoyi 4 週間 前
コミット
bf46ff0fc6

+ 6 - 6
src/views/runData/collectWaitingAreaData/index.vue

@@ -23,20 +23,20 @@
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="['runData:collectWaitingAreaData:add']">新增</el-button>
26
+          v-hasPermi="['system:collectWaitingAreaData:add']">新增</el-button>
27 27
       </el-col>
28 28
 
29 29
       <el-col :span="1.5">
30 30
         <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete"
31
-          v-hasPermi="['runData:collectWaitingAreaData:remove']">删除</el-button>
31
+          v-hasPermi="['system:collectWaitingAreaData:remove']">删除</el-button>
32 32
       </el-col>
33 33
       <el-col :span="1.5">
34 34
         <el-button type="info" plain icon="Upload" @click="handleImport"
35
-          v-hasPermi="['runData:collectWaitingAreaData:import']">导入</el-button>
35
+          v-hasPermi="['system:collectWaitingAreaData:import']">导入</el-button>
36 36
       </el-col>
37 37
       <el-col :span="1.5">
38 38
         <el-button type="warning" plain icon="Download" @click="handleExport"
39
-          v-hasPermi="['runData:collectWaitingAreaData:export']">导出</el-button>
39
+          v-hasPermi="['system:collectWaitingAreaData:export']">导出</el-button>
40 40
       </el-col>
41 41
       <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
42 42
     </el-row>
@@ -69,9 +69,9 @@
69 69
       <el-table-column label="操作" width="180" 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="['runData:collectWaitingAreaData:edit']">修改</el-button>
72
+            v-hasPermi="['system:collectWaitingAreaData:edit']">修改</el-button>
73 73
           <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
74
-            v-hasPermi="['runData:collectWaitingAreaData:remove']">删除</el-button>
74
+            v-hasPermi="['system:collectWaitingAreaData:remove']">删除</el-button>
75 75
         </template>
76 76
       </el-table-column>
77 77
     </el-table>

+ 6 - 6
src/views/runData/dailyRunData/index.vue

@@ -16,20 +16,20 @@
16 16
     <el-row :gutter="10" class="mb8">
17 17
       <el-col :span="1.5">
18 18
         <el-button type="primary" plain icon="Plus" @click="handleAdd"
19
-          v-hasPermi="['runData:dailyRunData:add']">新增</el-button>
19
+          v-hasPermi="['system:dailyRunData:add']">新增</el-button>
20 20
       </el-col>
21 21
 
22 22
       <el-col :span="1.5">
23 23
         <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete"
24
-          v-hasPermi="['runData:dailyRunData:remove']">删除</el-button>
24
+          v-hasPermi="['system:dailyRunData:remove']">删除</el-button>
25 25
       </el-col>
26 26
       <el-col :span="1.5">
27 27
         <el-button type="info" plain icon="Upload" @click="handleImport"
28
-          v-hasPermi="['runData:dailyRunData:import']">导入</el-button>
28
+          v-hasPermi="['system:dailyRunData:import']">导入</el-button>
29 29
       </el-col>
30 30
       <el-col :span="1.5">
31 31
         <el-button type="warning" plain icon="Download" @click="handleExport"
32
-          v-hasPermi="['runData:dailyRunData:export']">导出</el-button>
32
+          v-hasPermi="['system:dailyRunData:export']">导出</el-button>
33 33
       </el-col>
34 34
       <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
35 35
     </el-row>
@@ -63,9 +63,9 @@
63 63
       <el-table-column label="操作" width="180px" align="center" class-name="small-padding fixed-width">
64 64
         <template #default="scope">
65 65
           <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
66
-            v-hasPermi="['runData:dailyRunData:edit']">修改</el-button>
66
+            v-hasPermi="['system:dailyRunData:edit']">修改</el-button>
67 67
           <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
68
-            v-hasPermi="['runData:dailyRunData:remove']">删除</el-button>
68
+            v-hasPermi="['system:dailyRunData:remove']">删除</el-button>
69 69
         </template>
70 70
       </el-table-column>
71 71
     </el-table>

+ 6 - 6
src/views/runData/discouragePowerBanksData/index.vue

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

+ 6 - 6
src/views/runData/seizeData/index.vue

@@ -26,20 +26,20 @@
26 26
     <el-row :gutter="10" class="mb8">
27 27
       <el-col :span="1.5">
28 28
         <el-button type="primary" plain icon="Plus" @click="handleAdd"
29
-          v-hasPermi="['runData:seizeData:add']">新增</el-button>
29
+          v-hasPermi="['system:seizeData:add']">新增</el-button>
30 30
       </el-col>
31 31
 
32 32
       <el-col :span="1.5">
33 33
         <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete"
34
-          v-hasPermi="['runData:seizeData:remove']">删除</el-button>
34
+          v-hasPermi="['system:seizeData:remove']">删除</el-button>
35 35
       </el-col>
36 36
       <el-col :span="1.5">
37 37
         <el-button type="info" plain icon="Upload" @click="handleImport"
38
-          v-hasPermi="['runData:seizeData:import']">导入</el-button>
38
+          v-hasPermi="['system:seizeData:import']">导入</el-button>
39 39
       </el-col>
40 40
       <el-col :span="1.5">
41 41
         <el-button type="warning" plain icon="Download" @click="handleExport"
42
-          v-hasPermi="['runData:seizeData:export']">导出</el-button>
42
+          v-hasPermi="['system:seizeData:export']">导出</el-button>
43 43
       </el-col>
44 44
       <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
45 45
     </el-row>
@@ -88,9 +88,9 @@
88 88
       <el-table-column label="操作" align="center" width="180" class-name="small-padding fixed-width" fixed="right">  
89 89
         <template #default="scope">
90 90
           <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
91
-            v-hasPermi="['runData:seizeData:edit']">修改</el-button>
91
+            v-hasPermi="['system:seizeData:edit']">修改</el-button>
92 92
           <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
93
-            v-hasPermi="['runData:seizeData:remove']">删除</el-button>
93
+            v-hasPermi="['system:seizeData:remove']">删除</el-button>
94 94
         </template>
95 95
       </el-table-column>
96 96
     </el-table>