From 41aa1d07947bb29bb5a28d4f7d775cdae60e0152 Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期一, 14 四月 2025 17:42:08 +0800 Subject: [PATCH] art: 周保执行页面修改 --- src/views/flowable/workflow/FlowTodo.vue | 54 ++++++++++++++++++++++++++++++------------------------ 1 files changed, 30 insertions(+), 24 deletions(-) diff --git a/src/views/flowable/workflow/FlowTodo.vue b/src/views/flowable/workflow/FlowTodo.vue index 0929e14..0fd379a 100644 --- a/src/views/flowable/workflow/FlowTodo.vue +++ b/src/views/flowable/workflow/FlowTodo.vue @@ -73,7 +73,7 @@ bordered size="middle" rowKey="id" - :scroll="{x:'max-content',y:465}" + :scroll="{x:getTableColumnsTotalWidth,y:465}" :columns="columns" :dataSource="dataSource" :pagination="ipagination" @@ -82,7 +82,7 @@ @change="handleTableChange"> <span slot="action" slot-scope="text, record"> - <a @click="handelDetial(record,text)">鏌ョ湅璇︽儏</a> + <a @click="handelDetail(record,text)">鏌ョ湅璇︽儏</a> </span> </a-table> @@ -163,7 +163,9 @@ title: '娴佺▼涓氬姟绠�瑕佹弿杩�', align: 'center', dataIndex: 'title', - width: 500 + width: 350, + ellipsis: true + }, { title: '涓婁竴姝ュ鐞嗕汉', @@ -218,21 +220,24 @@ computed: { importExcelUrl: function() { return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}` + }, + getTableColumnsTotalWidth() { + return this.columns.reduce((total, item) => total + item.width, 0) } }, methods: { - handelDetial(item, index) { + handelDetail(item, index) { console.log('鐐瑰嚮浜嗚鎯�') console.log('item----->', item) console.log('index----->', index) - let approcesstype = this.splitAprocessType(item.category) - console.log('approcesstype--->', approcesstype) - switch (approcesstype) { + let processType = this.splitAprocessType(item.category) + console.log('processType--->', processType) + switch (processType) { case 'drApproval': - this.handDrDetial(item) + this.handDrDetail(item) break case 'ggApproval': - this.handDispatchFileDetial(item) + this.handDispatchFileDetail(item) break case 'sbdjApproval': this.handInspectionOrder(item) @@ -252,31 +257,32 @@ let result = parts[0] return result }, - handDrDetial(item) { - this.selectShenpiData = item - this.$refs.modalFormApproval.clearTableSource() - this.$refs.modalFormApproval.getAllApproveData(item) + handDrDetail(record) { + this.selectShenpiData = Object.assign({}, record) + this.$refs.modalFormApproval.visible = true + this.$refs.modalFormApproval.getAllApproveData(record) }, searchReset() { this.queryParam = {} this.loadData(1) }, - handDispatchFileDetial(item) { + handDispatchFileDetail(item) { console.log('item----->', item) this.selectDispatchFileXqData = item this.$refs.modalFormDispatchFileXq.clearTableSource() this.$refs.modalFormDispatchFileXq.getAllApproveData(item) }, - handInspectionOrder(item) { - console.log('item----->', item) - if (item.taskDefKey === 'Confirmed_completed') { - this.selectInspectionOrderDataBzz = item - this.$refs.modalFormInspectionOrderBzz.clearTableSource() - this.$refs.modalFormInspectionOrderBzz.getAllApproveData(item) + handInspectionOrder(record) { + console.log('record----->', record) + const tableRecord = Object.assign({}, record) + if (record.taskDefKey === 'Confirmed_completed') { + this.selectInspectionOrderDataBzz = tableRecord + this.$refs.modalFormInspectionOrderBzz.getAllApproveData(record) } else { - this.selectInspectionOrderData = item - this.$refs.modalFormInspectionOrder.clearTableSource() - this.$refs.modalFormInspectionOrder.getAllApproveData(item) + this.selectInspectionOrderData = tableRecord + this.$refs.modalFormInspectionOrder.visible = true + this.$refs.modalFormInspectionOrder.getAllApproveData(record) + this.$refs.modalFormInspectionOrder.getBasicInformation(record) } }, batchHandle() { @@ -310,7 +316,7 @@ }, handleWeekMaintenance(item) { if (item && item.dataId) { - this.$refs.weekMaintenanceApprovalModal.handleDetail(item.dataId) + this.$refs.weekMaintenanceApprovalModal.handleDetail(item) this.$refs.weekMaintenanceApprovalModal.title = item.name this.$refs.weekMaintenanceApprovalModal.disableSubmit = false } -- Gitblit v1.9.3