From 5c929cfb5286a31a4e067cbc61e8774f4e7d42ae Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 06 五月 2025 11:25:41 +0800
Subject: [PATCH] 任务查看:任务名称undefined解决
---
src/views/flowable/definition/index.vue | 62 ++++++++++++++++++++++++++++---
1 files changed, 56 insertions(+), 6 deletions(-)
diff --git a/src/views/flowable/definition/index.vue b/src/views/flowable/definition/index.vue
index 3c8e449..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,11 +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>
@@ -224,6 +226,11 @@
<!-- append-to-body>-->
<!-- <Model :deployId="deployId"/>-->
<!-- </el-dialog>-->
+
+ <edit-process-config :process-config-show="processConfigShow"
+ :deploy-name="configDeployName"
+ :form="configForm"
+ @close="closeConfig"/>
</div>
</template>
@@ -242,16 +249,30 @@
import { getForm, addDeployForm ,listForm } from "@/api/flowable/form";
import BpmnViewer from '@/components/Process/viewer';
import Model from './model';
+import EditProcessConfig from '@/views/flowable/definition/component/EditProcessConfig';
+import {getProcessConfigInfoByDeploy} from "@/api/projectProcess/processConfigInfo";
export default {
name: "Definition",
dicts: ['sys_process_category'],
components: {
BpmnViewer,
- Model
+ Model,
+ EditProcessConfig
},
data() {
return {
+ configForm: {
+ processDefId: '',
+ deployId: '',
+ processDefVersion: null,
+ projectType: '', // 椤圭洰绫诲瀷
+ fundType: '', // 璧勯噾绫诲瀷
+ investType: '', // 鎶曡祫绫诲埆
+ importanceType: '', // 閲嶇偣鍒嗙被
+ },
+ processConfigShow: false, // 淇敼娴佺▼淇℃伅show
+ configDeployName: '', // 淇敼閰嶇疆鐨勯儴缃插悕绉�
// 閬僵灞�
loading: true,
dialogVisible: false,
@@ -341,6 +362,35 @@
}
},
methods: {
+ closeConfig() {
+ this.configForm = {
+ processDefId: '',
+ deployId: '',
+ processDefVersion: null,
+ projectType: '', // 椤圭洰绫诲瀷
+ fundType: '', // 璧勯噾绫诲瀷
+ investType: '', // 鎶曡祫绫诲埆
+ importanceType: '', // 閲嶇偣鍒嗙被
+ }
+ this.processConfigShow = false
+ },
+ handleConfig(row) {
+
+ const params = {
+ processDefId: row.id,
+ processDefVersion: row.version
+ }
+ getProcessConfigInfoByDeploy(params).then(res => {
+ if (res.data) {
+ this.configForm = res.data
+ }
+ })
+ this.configForm.processDefId = row.id
+ this.configForm.deployId = row.deploymentId
+ this.configForm.processDefVersion = row.version
+ this.configDeployName = row.name
+ this.processConfigShow = true
+ },
/** 鏌ヨ娴佺▼瀹氫箟鍒楄〃 */
getList() {
this.loading = true;
--
Gitblit v1.8.0