From ac7991e7ed058ebdc38a20fb099cd17dd1b91e19 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 17 二月 2025 13:52:43 +0800
Subject: [PATCH] 挂起/取消挂起操作

---
 src/views/flowable/definition/index.vue |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 51 insertions(+), 2 deletions(-)

diff --git a/src/views/flowable/definition/index.vue b/src/views/flowable/definition/index.vue
index 3c8e449..9287c80 100644
--- a/src/views/flowable/definition/index.vue
+++ b/src/views/flowable/definition/index.vue
@@ -62,7 +62,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>
@@ -92,6 +92,7 @@
       <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="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-play" type="text" size="small" v-if="scope.row.suspensionState === 2">婵�娲�</el-button>
@@ -224,6 +225,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 +248,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 +361,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