From ac1f8e130c8753d0a69f1e83d698c46d13c63044 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期四, 20 三月 2025 17:46:50 +0800 Subject: [PATCH] 在库项目计划开工时间 --- src/views/flowable/task/myProcess/detail/index.vue | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/views/flowable/task/myProcess/detail/index.vue b/src/views/flowable/task/myProcess/detail/index.vue index ce9cef0..12e1c8f 100644 --- a/src/views/flowable/task/myProcess/detail/index.vue +++ b/src/views/flowable/task/myProcess/detail/index.vue @@ -30,6 +30,19 @@ > </el-alert> </div> + <div style="position: absolute;top: 10px; right: 20px" v-if="formDataObj.events.length > 0"> + <el-popover + placement="right-start" + title="浠诲姟鏃ュ織" + width="600" + trigger="hover" + > + <div v-if="formDataObj.events.length > 0"> + <log-view :log-list="formDataObj.events"/> + </div> + <el-button slot="reference">浠诲姟鏃ュ織</el-button> + </el-popover> + </div> <div v-if="formDataList.length <= 1"> <div class="before_none">鍓嶇疆闃舵锛�<span>涓嶅瓨鍦ㄥ墠缃樁娈�</span></div> <el-alert @@ -109,12 +122,13 @@ import {getProcessVariables, flowXmlAndNode} from "@/api/flowable/definition"; import {flowTaskForm, flowTaskFormDetail} from "@/api/flowable/todo"; import BpmnViewer from '@/components/Process/viewer'; +import LogView from "@/views/projectProcess/components/LogView"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; export default { name: "Record", components: { - BpmnViewer + BpmnViewer, LogView }, props: {}, data() { @@ -153,13 +167,13 @@ this.flowName = this.$route.query && this.$route.query.flowName; // 娴佺▼浠诲姟閲嶈幏鍙栧彉閲忚〃鍗� this.processVariables( this.taskForm.taskId) - this.getFlowRecordList(this.taskForm.procInsId, this.taskForm.deployId); + this.getFlowRecordList(this.taskForm.procInsId); }, methods: { handleClick(tab, event) { if (tab.name === '3'){ this.imgLoading = true - flowXmlAndNode({procInsId:this.taskForm.procInsId,deployId:this.taskForm.deployId}).then(res => { + flowXmlAndNode({processInsId:this.taskForm.procInsId,deployId:this.taskForm.deployId}).then(res => { this.imgLoading = false this.flowData = res.data; }) @@ -180,9 +194,9 @@ } }, /** 娴佺▼娴佽浆璁板綍 */ - getFlowRecordList(procInsId, deployId) { + getFlowRecordList(procInsId) { const that = this - const params = {procInsId: procInsId, deployId: deployId} + const params = {procInsId: procInsId} flowRecord(params).then(res => { that.flowRecordList = res.data.flowList; }).catch(res => { -- Gitblit v1.8.0