From 6cf7ea7aa09553b9fe148f94ec6158dbb2b2c9bc Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 08 四月 2025 18:22:19 +0800 Subject: [PATCH] v-show --- src/views/flowable/definition/index.vue | 33 ++++++++++++++++++++++----------- 1 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/views/flowable/definition/index.vue b/src/views/flowable/definition/index.vue index d8963ad..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> @@ -62,7 +63,7 @@ <el-table-column label="娴佺▼缂栧彿" align="center" prop="deploymentId" :show-overflow-tooltip="true"/> <el-table-column label="娴佺▼鏍囪瘑" align="center" prop="flowKey" :show-overflow-tooltip="true" /> <el-table-column label="娴佺▼鍒嗙被" align="center" prop="category" /> - <el-table-column label="娴佺▼鍚嶇О" align="center" width="120" :show-overflow-tooltip="true"> + <el-table-column label="娴佺▼鍚嶇О" align="center" width="200" :show-overflow-tooltip="true"> <template slot-scope="scope"> <el-button type="text" @click="handleReadImage(scope.row.deploymentId)"> <span>{{ scope.row.name }}</span> @@ -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> @@ -262,8 +263,9 @@ data() { return { configForm: { + processDefId: '', deployId: '', - deployVersion: null, + processDefVersion: null, projectType: '', // 椤圭洰绫诲瀷 fundType: '', // 璧勯噾绫诲瀷 investType: '', // 鎶曡祫绫诲埆 @@ -361,22 +363,31 @@ }, methods: { closeConfig() { + this.configForm = { + processDefId: '', + deployId: '', + processDefVersion: null, + projectType: '', // 椤圭洰绫诲瀷 + fundType: '', // 璧勯噾绫诲瀷 + investType: '', // 鎶曡祫绫诲埆 + importanceType: '', // 閲嶇偣鍒嗙被 + } this.processConfigShow = false }, handleConfig(row) { - const infoArr = row.id.split(":"); const params = { - deployId: infoArr[2], - deployVersion: infoArr[1] + processDefId: row.id, + processDefVersion: row.version } getProcessConfigInfoByDeploy(params).then(res => { if (res.data) { this.configForm = res.data } }) - this.configForm.deployId = infoArr[2] - this.configForm.deployVersion = infoArr[1] + this.configForm.processDefId = row.id + this.configForm.deployId = row.deploymentId + this.configForm.processDefVersion = row.version this.configDeployName = row.name this.processConfigShow = true }, -- Gitblit v1.8.0