From 121761d95c65b31e27253f72c3f0d07987069015 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 03 四月 2025 11:13:27 +0800
Subject: [PATCH] 流程设计按钮权限

---
 src/views/flowable/definition/index.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/views/flowable/definition/index.vue b/src/views/flowable/definition/index.vue
index 9287c80..80d6012 100644
--- a/src/views/flowable/definition/index.vue
+++ b/src/views/flowable/definition/index.vue
@@ -41,6 +41,7 @@
           icon="el-icon-plus"
           size="mini"
           @click="handleLoadXml"
+          v-hasPermi="['flow:img:add']"
         >鏂板</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -51,7 +52,7 @@
           size="mini"
           :disabled="multiple"
           @click="handleDelete"
-          v-hasPermi="['system:deployment:remove']"
+          v-hasPermi="['flow:img:del']"
         >鍒犻櫎</el-button>
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -91,12 +92,12 @@
       <el-table-column label="閮ㄧ讲鏃堕棿" align="center" prop="deploymentTime" width="180"/>
       <el-table-column label="鎿嶄綔" width="250" fixed="right"class-name="small-padding fixed-width">
         <template slot-scope="scope">
-          <el-button @click="handleLoadXml(scope.row)" icon="el-icon-edit-outline" type="text" size="small">璁捐</el-button>
+          <el-button @click="handleLoadXml(scope.row)" icon="el-icon-edit-outline" type="text" size="small" v-hasPermi="['flow:img:add']">璁捐</el-button>
           <el-button @click="handleConfig(scope.row)" icon="el-icon-edit-outline" type="text" size="small">娴佺▼閰嶇疆</el-button>
           <el-button @click="handleAddForm(scope.row)" icon="el-icon-edit-el-icon-s-promotion" type="text" size="small" v-if="scope.row.formId == null">閰嶇疆涓昏〃鍗�</el-button>
-          <el-button @click="handleUpdateSuspensionState(scope.row)" icon="el-icon-video-pause" type="text" size="small" v-if="scope.row.suspensionState === 1">鎸傝捣</el-button>
+          <el-button @click="handleUpdateSuspensionState(scope.row)" icon="el-icon-video-pause" type="text" size="small" v-hasPermi="['flow:img:hangup']" v-if="scope.row.suspensionState === 1">鎸傝捣</el-button>
           <el-button @click="handleUpdateSuspensionState(scope.row)" icon="el-icon-video-play" type="text" size="small" v-if="scope.row.suspensionState === 2">婵�娲�</el-button>
-          <el-button @click="handleDelete(scope.row)" icon="el-icon-delete" type="text" size="small" v-hasPermi="['system:deployment:remove']">鍒犻櫎</el-button>
+          <el-button @click="handleDelete(scope.row)" icon="el-icon-delete" type="text" size="small" v-hasPermi="['flow:img:del']">鍒犻櫎</el-button>
         </template>
       </el-table-column>
     </el-table>

--
Gitblit v1.8.0