From c7c7c9aefa9985041e08a85a1fe3404948812055 Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期五, 29 十一月 2024 12:58:49 +0800
Subject: [PATCH] 进度审批

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

diff --git a/src/views/projectProcess/index.vue b/src/views/projectProcess/index.vue
index ce1a2f3..d83c1cd 100644
--- a/src/views/projectProcess/index.vue
+++ b/src/views/projectProcess/index.vue
@@ -226,13 +226,13 @@
       <!-- 鎿嶄綔鍒� -->
       <el-table-column label="鎿嶄綔" width="140" align="center" >
         <template slot-scope="scope">
-          <!--          <el-button-->
-          <!--            size="medium"-->
-          <!--            type="text"-->
-          <!--            icon="el-icon-view"-->
-          <!--            @click="lookProcessDetail(scope.row)"-->
-          <!--          >-->
-          <!--          </el-button>-->
+                    <el-button
+                      size="medium"
+                      type="text"
+                      icon="el-icon-view"
+                      @click="lookProcessDetail(scope.row)"
+                    >
+                    </el-button>
           <!--          <el-button-->
           <!--            v-if="isReserve"-->
           <!--            size="medium"-->
@@ -270,9 +270,8 @@
       :currentColumns="columns"
     />
 
-    <RunProcess :show="showRunProcess"
+    <RunProcess ref="runProcess" :show="showRunProcess"
                 :now-process-id="nowProcessId"
-                :now-process-name="nowProcessName"
                 :project-info="projectRunFrom"
                 :process-list="processList"
                 @close="closeRunProcess">
@@ -282,7 +281,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';
@@ -306,7 +305,6 @@
       processList: [],
       showRunProcess: false,
       nowProcessId: '',
-      nowProcessName: '',
       isImportOrExport: false,
       fileDialogVisible: false,
       //鏄惁闇�瑕佹柊澧炴寜閽�(鍌ㄨ搫椤圭洰闇�瑕�)
@@ -389,7 +387,21 @@
     this.getList();
   },
   methods: {
+    // 鏌ョ湅璇︽儏
+    lookProcessDetail(row) {
+      this.$router.push({
+        path: '/projectFlow/detail',
+        query: {
+          projectId: row.id,
+          processId: row.flowableProcessId
+        }
+      })
+    },
     closeRunProcess() {
+      this.projectRunFrom = {
+        projectId: null,
+        projectName: ''
+      }
       this.showRunProcess = false
       this.getList()
     },
@@ -398,10 +410,12 @@
       // 鎷垮埌娴佺▼鍒楄〃 TODO 鏍规嵁椤圭洰绫诲瀷鍋氱瓫閫�
       getProcessConfigInfoList().then(response => {
         this.processList = response.data;
+        this.nowProcessId = row.flowableProcessId;
+        // // 闃叉锛歩d娌″彉涓嶈Е鍙戠洃鍚�
+        // this.$refs.runProcess.setSelect(row.flowableProcessId);
         this.projectRunFrom.projectId = row.id;
         this.projectRunFrom.projectName = row.projectName;
-        this.nowProcessId = row.flowableProcessId;
-        this.nowProcessName = row.flowableProcessName;
+
         this.showRunProcess = true;
       });
     },
@@ -463,8 +477,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