From 100186edb96c3fa913779b64471dae6ea1b7aca7 Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期二, 26 十一月 2024 20:33:42 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/projectProcess/index.vue | 76 +++++++++++++++++++++++++------------ 1 files changed, 51 insertions(+), 25 deletions(-) diff --git a/src/views/projectProcess/index.vue b/src/views/projectProcess/index.vue index f84fe32..cdb3acc 100644 --- a/src/views/projectProcess/index.vue +++ b/src/views/projectProcess/index.vue @@ -226,29 +226,31 @@ <!-- 鎿嶄綔鍒� --> <el-table-column label="鎿嶄綔" width="140" align="center" > <template slot-scope="scope"> - <el-button - size="medium" - type="text" - icon="el-icon-view" - @click="handleDetail(scope.row)" - > - </el-button> - <el-button - v-if="isReserve" - size="medium" - type="text" - icon="el-icon-edit" - @click="handleUpdate(scope.row)" - > - </el-button> - <el-button - v-if="isReserve" - size="medium" - type="text" - icon="el-icon-delete" - @click="handleDelete(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"--> + <!-- type="text"--> + <!-- icon="el-icon-edit"--> + <!-- @click="handleUpdate(scope.row)"--> + <!-- >--> + <!-- </el-button>--> + <el-tooltip content="娴佺▼" placement="top" effect="light" :enterable="false"> + <el-button + v-if="isReserve" + size="medium" + type="text" + icon="el-icon-s-operation" + @click="openOpProcess(scope.row)" + > + </el-button> + </el-tooltip> </template> </el-table-column> </el-table> @@ -267,13 +269,18 @@ @fileDialogCancel="fileDialogCancel" :currentColumns="columns" /> + + <RunProcess :show="showRunProcess" :now-process-id="nowProcessId" :now-process-name="nowProcessName" :process-list="processList" @close="closeRunProcess"></RunProcess> </div> </template> <script> +import { listDefinition } from "@/api/flowable/definition"; import {listInfo, getInfo, delInfo, addInfo, updateInfo} from "@/api/projectInfo"; +import { getProjectProcesss } from "@/api/projectProcess/projectProcess" import {current, currentRest} from '@/views/projectEngineering/projectLibrary/list'; import FileDialog from '@/views/projectEngineering/projectLibrary/component/FileDialog'; +import RunProcess from "@/views/projectProcess/components/RunProcess"; export default { dicts: ['sys_administrative_divisions', 'sys_investment_type', 'sys_project_phases', @@ -281,10 +288,15 @@ 'sys_project_tags', 'sys_key_categories', 'sys_project_type'], name: "projectInfo", components: { - FileDialog + FileDialog, RunProcess }, data() { return { + processList: [], + showRunProcess: false, + projectId: null, + nowProcessId: '', + nowProcessName: '', isImportOrExport: false, fileDialogVisible: false, //鏄惁闇�瑕佹柊澧炴寜閽�(鍌ㄨ搫椤圭洰闇�瑕�) @@ -367,6 +379,20 @@ this.getList(); }, methods: { + closeRunProcess() { + this.showRunProcess = false + }, + // 鎵撳紑娴佺▼椤甸潰 + openOpProcess(row) { + this.projectId = row.id; + this.nowProcessId = row.flowableProcessId; + this.nowProcessName = row.flowableProcessName; + // 鎷垮埌娴佺▼鍒楄〃 + listDefinition(this.queryParams).then(response => { + this.processList = response.data.records; + this.showRunProcess = true; + }); + }, // 閲嶇疆鎺掑簭鐨勬柟娉� handleResetSort() { this.defaultColumns = currentRest.map((item, index) => { @@ -422,7 +448,7 @@ /** 鏌ヨ椤圭洰绠$悊鍩虹淇℃伅鍒楄〃 */ getList() { this.loading = true; - listInfo(this.queryParams).then(response => { + getProjectProcesss(this.queryParams).then(response => { this.projectInfoList = response.data; this.total = response.total; }); -- Gitblit v1.8.0