From f6251915751cc71057cd9ee9205a658842381474 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 15 Jul 2024 10:12:37 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=B5=81=E7=A8=8B=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ProcessDetailList.vue | 18 ++++++++++-------- .../MarketListReleaseProcess.vue | 15 +++++++++++++-- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/src/components/ProcessDetailList.vue b/src/components/ProcessDetailList.vue index f97fe61..f11eb13 100644 --- a/src/components/ProcessDetailList.vue +++ b/src/components/ProcessDetailList.vue @@ -95,13 +95,14 @@ import { JeroListMixin } from '../mixins/JeroListMixin.js' import JTable from './jero/JTable.vue' import Vue from 'vue' import { ACCESS_TOKEN } from '../store/mutation-types.js' -import { downloadFile, getFileAccessHttpUrl, getAction } from '../api/manage.js' +import { getFileAccessHttpUrl, getAction } from '../api/manage.js' import { previewPdf } from '../utils/previewPdf.js' import FlowChartModal from './FlowChartModal.vue' import UploadFile from './UploadFile' import { filterObj } from '../utils/util' import { kkFilePreview } from '../utils/kkFilePreview' import { urgeProcessNode } from '../api/workCenter' +import { ProcessKey } from '../enums/commonEnums' // 支持预览的文件后缀 const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx'] @@ -376,22 +377,23 @@ export default { // 跳转流程基本信息页面 handleLookDetail (record) { let path = '' + console.log('-------processKey', this.$route.query.processKey) // 跳转到对应流程页面 - switch (record.prcType + '') { + switch (this.$route.query.processKey + '') { // 新法规导入流程 - case '1': + case ProcessKey.NEW_REGULATIONS_IMPORT.value: path = '/workCenter/NewRegulationIntroductionProcess' break // 标准解读流程 - case '2': + case ProcessKey.STANDARD_INTERPRETATION_PROCESS.value: path = '/workCenter/StandardInterpretationProcess' break // 法规符合性排查流程 - case '3': + case ProcessKey.REGULATORY_COMPLIANCE_CHECK.value: path = '/workCenter/RegulatoryComplianceCheckProcess' break // 市场清单发布流程 - case '4': + case ProcessKey.MARKET_LIST_RELEASE.value: path = '/workCenter/MarketListReleaseProcess' break } @@ -399,10 +401,10 @@ export default { query.taskName = record.taskName query.snapshotId = record.snapshotId // 快照id query.nodeId = record.nodeId // 节点的id + query.isLook = 1 this.$router.push({ path: path, - query: query, - isLook: 1 + query: query }) } } diff --git a/src/views/workCenter/marketListReleaseProcess/MarketListReleaseProcess.vue b/src/views/workCenter/marketListReleaseProcess/MarketListReleaseProcess.vue index 9d50940..b150eaa 100644 --- a/src/views/workCenter/marketListReleaseProcess/MarketListReleaseProcess.vue +++ b/src/views/workCenter/marketListReleaseProcess/MarketListReleaseProcess.vue @@ -165,7 +165,8 @@ import { marketListReleaseReject, marketListReleaseSave, getDataDraft, - processTransfer + processTransfer, + getLookData } from '@/api/workCenter' import pick from 'lodash.pick' import { WorkCenterMixin } from '@/mixins/WorkCenterMixin' @@ -233,6 +234,14 @@ export default { // 有草稿id,说明是从流程中心-草稿来的,需要初始化数据 this.getProcessData('draft', { draftId: this.$route.query.draftId, projectId: this.$route.query.projectId }) } + if (this.$route.query.isLook + '' === '1') { + // 是查看 + this.isLook = true + // 人员信息全部不可选 + this.initPersonInfoData(false) + // 查询数据 + this.getProcessData('look', { snapshotId: this.$route.query.snapshotId }) + } if (this.$route.query.taskName) { // 说明是已发起流程 this.currentNodeName = this.$route.query.taskName @@ -329,6 +338,9 @@ export default { if (type === 'todo') { func = marketListReleaseGetDataById params = param.taskId + } else if (type === 'look') { + func = getLookData + params = param } else { func = getDataDraft params = param @@ -380,7 +392,6 @@ export default { } } if (this.$refs.baseInfoRef) { - this.$refs.baseInfoRef.initData(this.draftModel ? this.draftModel.businessInfoDTO : this.model.businessInfoDTO) } })