From 0088d05b69bea0f7877a8ca1f1a0d850b20ee097 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 25 十二月 2024 11:15:47 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/projectProcess/index.vue |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/views/projectProcess/index.vue b/src/views/projectProcess/index.vue
index cab82e0..969ae34 100644
--- a/src/views/projectProcess/index.vue
+++ b/src/views/projectProcess/index.vue
@@ -185,7 +185,7 @@
       v-loading="loading"
       :data="projectInfoList"
       @selection-change="handleSelectionChange"
-      height="60vh"
+      height="100%"
       sortable="custom"
       :show-overflow-tooltip="true">
       <el-table-column type="selection" width="55" align="center"/>
@@ -230,6 +230,7 @@
                       size="medium"
                       type="text"
                       icon="el-icon-view"
+                      v-if="scope.row.processInsId"
                       @click="lookProcessDetail(scope.row)"
                     >
                     </el-button>
@@ -271,7 +272,8 @@
     />
 
     <RunProcess ref="runProcess" :show="showRunProcess"
-                :now-process-id="nowProcessId"
+                :now-process-def-id="nowProcessDefId"
+                :now-process-ins-id="nowProcessInsId"
                 :project-info="projectRunFrom"
                 :process-list="processList"
                 @close="closeRunProcess">
@@ -281,7 +283,7 @@
 
 <script>
 import { listDefinition } from "@/api/flowable/definition";
-import {listInfo, getInfo, delInfo, addInfo, updateInfo} from "@/api/projectInfo";
+import {listInfo, getInfo, delInfo, addInfo, updateInfo} from "@/api/projectEngineering/projectInfo";
 import { getProjectProcess } from "@/api/projectProcess/projectProcess"
 import {current, currentRest} from '@/views/projectEngineering/projectLibrary/list';
 import FileDialog from '@/views/projectEngineering/projectLibrary/component/FileDialog';
@@ -304,7 +306,8 @@
       },
       processList: [],
       showRunProcess: false,
-      nowProcessId: '',
+      nowProcessDefId: '',
+      nowProcessInsId: '',
       isImportOrExport: false,
       fileDialogVisible: false,
       //鏄惁闇�瑕佹柊澧炴寜閽�(鍌ㄨ搫椤圭洰闇�瑕�)
@@ -389,11 +392,12 @@
   methods: {
     // 鏌ョ湅璇︽儏
     lookProcessDetail(row) {
+      console.log(row.processDefId)
       this.$router.push({
         path: '/projectFlow/detail',
         query: {
           projectId: row.id,
-          processId: row.flowableProcessId
+          processDefId: row.processDefId
         }
       })
     },
@@ -402,6 +406,8 @@
         projectId: null,
         projectName: ''
       }
+      this.nowProcessDefId = "";
+      this.nowProcessInsId = "";
       this.showRunProcess = false
       this.getList()
     },
@@ -410,7 +416,8 @@
       // 鎷垮埌娴佺▼鍒楄〃 TODO 鏍规嵁椤圭洰绫诲瀷鍋氱瓫閫�
       getProcessConfigInfoList().then(response => {
         this.processList = response.data;
-        this.nowProcessId = row.flowableProcessId;
+        this.nowProcessDefId = row.processDefId ? row.processDefId : '';
+        this.nowProcessInsId = row.processInsId ? row.processInsId : '';
         // // 闃叉锛歩d娌″彉涓嶈Е鍙戠洃鍚�
         // this.$refs.runProcess.setSelect(row.flowableProcessId);
         this.projectRunFrom.projectId = row.id;
@@ -477,8 +484,8 @@
       getProjectProcess(this.queryParams).then(response => {
         this.projectInfoList = response.data;
         this.total = response.total;
+        this.loading = false;
       });
-      this.loading = false;
     },
     // 鍙栨秷鎸夐挳
     cancel() {

--
Gitblit v1.8.0