Explorar o código

LY 周会议 权限

ly hai 1 ano
pai
achega
5b9543185c

+ 3 - 3
master/src/main/java/com/ruoyi/project/plant/controller/weekMeeting/TMtEhsopenitemController.java

@@ -83,7 +83,7 @@ public class TMtEhsopenitemController extends BaseController {
     /**
      * 新增EHS开项跟踪
      */
-    @PreAuthorize("@ss.hasPermi('plant:meeting:add')")
+    @PreAuthorize("@ss.hasPermi('plant:ehsopenitem:edit')")
     @Log(title = "EHS开项跟踪", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TMtEhsopenitem tMtEhsopenitem) {
@@ -100,7 +100,7 @@ public class TMtEhsopenitemController extends BaseController {
     /**
      * 修改EHS开项跟踪
      */
-    @PreAuthorize("@ss.hasPermi('plant:meeting:edit')")
+    @PreAuthorize("@ss.hasPermi('plant:ehsopenitem:edit')")
     @Log(title = "EHS开项跟踪", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TMtEhsopenitem tMtEhsopenitem) {
@@ -116,7 +116,7 @@ public class TMtEhsopenitemController extends BaseController {
     /**
      * 删除EHS开项跟踪
      */
-    @PreAuthorize("@ss.hasPermi('plant:meeting:remove')")
+    @PreAuthorize("@ss.hasPermi('plant:ehsopenitem:edit')")
     @Log(title = "EHS开项跟踪", businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids) {

+ 3 - 3
master/src/main/java/com/ruoyi/project/plant/controller/weekMeeting/TMtInterlockController.java

@@ -76,7 +76,7 @@ public class TMtInterlockController extends BaseController
     /**
      * 新增关键机组联锁旁路
      */
-    @PreAuthorize("@ss.hasPermi('plant:meeting:add')")
+    @PreAuthorize("@ss.hasPermi('plant:interlock:edit')")
     @Log(title = "关键机组联锁旁路", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TMtInterlock tMtInterlock)
@@ -94,7 +94,7 @@ public class TMtInterlockController extends BaseController
     /**
      * 修改关键机组联锁旁路
      */
-    @PreAuthorize("@ss.hasPermi('plant:meeting:edit')")
+    @PreAuthorize("@ss.hasPermi('plant:interlock:edit')")
     @Log(title = "关键机组联锁旁路", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TMtInterlock tMtInterlock)
@@ -111,7 +111,7 @@ public class TMtInterlockController extends BaseController
     /**
      * 删除关键机组联锁旁路
      */
-    @PreAuthorize("@ss.hasPermi('plant:meeting:remove')")
+    @PreAuthorize("@ss.hasPermi('plant:interlock:edit')")
     @Log(title = "关键机组联锁旁路", businessType = BusinessType.DELETE)
 	@DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids)

+ 3 - 3
master/src/main/java/com/ruoyi/project/plant/controller/weekMeeting/TMtOpextrackController.java

@@ -76,7 +76,7 @@ public class TMtOpextrackController extends BaseController
     /**
      * 新增OpEx项目跟踪
      */
-    @PreAuthorize("@ss.hasPermi('plant:meeting:add')")
+    @PreAuthorize("@ss.hasPermi('plant:opextrack:edit')")
     @Log(title = "OpEx项目跟踪", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TMtOpextrack tMtOpextrack)
@@ -94,7 +94,7 @@ public class TMtOpextrackController extends BaseController
     /**
      * 修改OpEx项目跟踪
      */
-    @PreAuthorize("@ss.hasPermi('plant:meeting:edit')")
+    @PreAuthorize("@ss.hasPermi('plant:opextrack:edit')")
     @Log(title = "OpEx项目跟踪", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TMtOpextrack tMtOpextrack)
@@ -111,7 +111,7 @@ public class TMtOpextrackController extends BaseController
     /**
      * 删除OpEx项目跟踪
      */
-    @PreAuthorize("@ss.hasPermi('plant:meeting:remove')")
+    @PreAuthorize("@ss.hasPermi('plant:opextrack:edit')")
     @Log(title = "OpEx项目跟踪", businessType = BusinessType.DELETE)
 	@DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids)

+ 3 - 3
master/src/main/java/com/ruoyi/project/plant/controller/weekMeeting/TMtRiskreminderController.java

@@ -76,7 +76,7 @@ public class TMtRiskreminderController extends BaseController
     /**
      * 新增风险提醒
      */
-    @PreAuthorize("@ss.hasPermi('plant:meeting:add')")
+    @PreAuthorize("@ss.hasPermi('plant:riskreminder:edit')")
     @Log(title = "风险提醒", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TMtRiskreminder tMtRiskreminder)
@@ -93,7 +93,7 @@ public class TMtRiskreminderController extends BaseController
     /**
      * 修改风险提醒
      */
-    @PreAuthorize("@ss.hasPermi('plant:meeting:edit')")
+    @PreAuthorize("@ss.hasPermi('plant:riskreminder:edit')")
     @Log(title = "风险提醒", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TMtRiskreminder tMtRiskreminder)
@@ -110,7 +110,7 @@ public class TMtRiskreminderController extends BaseController
     /**
      * 删除风险提醒
      */
-    @PreAuthorize("@ss.hasPermi('plant:meeting:remove')")
+    @PreAuthorize("@ss.hasPermi('plant:riskreminder:edit')")
     @Log(title = "风险提醒", businessType = BusinessType.DELETE)
 	@DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids)

+ 5 - 4
ui/src/views/components/meeting/ehsopenitem.vue

@@ -50,6 +50,7 @@
           icon="el-icon-plus"
           size="mini"
           @click="handleAdd"
+          v-hasPermi="['plant:ehsopenitem:edit']"
         >{{ $t('新增') }}</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -59,7 +60,7 @@
           size="mini"
           :disabled="single"
           @click="handleUpdate"
-          v-hasPermi="['plant:meeting:edit']"
+          v-hasPermi="['plant:ehsopenitem:edit']"
         >{{ $t('修改') }}</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -69,7 +70,7 @@
           size="mini"
           :disabled="multiple"
           @click="handleDelete"
-          v-hasPermi="['plant:meeting:remove']"
+          v-hasPermi="['plant:ehsopenitem:edit']"
         >{{ $t('删除') }}</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -102,14 +103,14 @@
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
-            v-hasPermi="['plant:meeting:edit']"
+            v-hasPermi="['plant:ehsopenitem:edit']"
           >{{ $t('修改') }}</el-button>
           <el-button
             size="mini"
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
-            v-hasPermi="['plant:meeting:remove']"
+            v-hasPermi="['plant:ehsopenitem:edit']"
           >{{ $t('删除') }}</el-button>
         </template>
       </el-table-column>

+ 5 - 4
ui/src/views/components/meeting/interlock.vue

@@ -14,6 +14,7 @@
           icon="el-icon-plus"
           size="mini"
           @click="handleAdd"
+          v-hasPermi="['plant:interlock:edit']"
         >{{ $t('新增') }}</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -23,7 +24,7 @@
           size="mini"
           :disabled="single"
           @click="handleUpdate"
-          v-hasPermi="['plant:meeting:edit']"
+          v-hasPermi="['plant:interlock:edit']"
         >{{ $t('修改') }}</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -33,7 +34,7 @@
           size="mini"
           :disabled="multiple"
           @click="handleDelete"
-          v-hasPermi="['plant:meeting:remove']"
+          v-hasPermi="['plant:interlock:edit']"
         >{{ $t('删除') }}</el-button>
       </el-col>
 	  <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -61,14 +62,14 @@
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
-            v-hasPermi="['plant:meeting:edit']"
+            v-hasPermi="['plant:interlock:edit']"
           >{{ $t('修改') }}</el-button>
           <el-button
             size="mini"
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
-            v-hasPermi="['plant:meeting:remove']"
+            v-hasPermi="['plant:interlock:edit']"
           >{{ $t('删除') }}</el-button>
         </template>
       </el-table-column>

+ 5 - 4
ui/src/views/components/meeting/opextrack.vue

@@ -32,6 +32,7 @@
           icon="el-icon-plus"
           size="mini"
           @click="handleAdd"
+          v-hasPermi="['plant:opextrack:edit']"
         >{{ $t('新增') }}</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -41,7 +42,7 @@
           size="mini"
           :disabled="single"
           @click="handleUpdate"
-          v-hasPermi="['plant:meeting:edit']"
+          v-hasPermi="['plant:opextrack:edit']"
         >{{ $t('修改') }}</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -51,7 +52,7 @@
           size="mini"
           :disabled="multiple"
           @click="handleDelete"
-          v-hasPermi="['plant:meeting:remove']"
+          v-hasPermi="['plant:opextrack:edit']"
         >{{ $t('删除') }}</el-button>
       </el-col>
 <!--        <el-col :span="1.5">-->
@@ -94,14 +95,14 @@
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
-            v-hasPermi="['plant:meeting:edit']"
+            v-hasPermi="['plant:opextrack:edit']"
           >{{ $t('修改') }}</el-button>
           <el-button
             size="mini"
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
-            v-hasPermi="['plant:meeting:remove']"
+            v-hasPermi="['plant:opextrack:edit']"
           >{{ $t('删除') }}</el-button>
         </template>
       </el-table-column>