From 27f6a685178d459fc5baea6c1b7fe5af8d0a6541 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 22 Jul 2024 17:13:40 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E5=B7=B2=E5=B0=81=E5=AD=98=E4=BC=81?= =?UTF-8?q?=E6=A0=87=E5=90=AF=E7=94=A8=E6=B5=81=E7=A8=8B=E7=9A=84=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=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 | 60 ++++++++++++------- .../EnterpriseStandardStartUseFlow.vue | 17 +++--- 2 files changed, 46 insertions(+), 31 deletions(-) diff --git a/src/components/ProcessDetailList.vue b/src/components/ProcessDetailList.vue index 1f03506a..8687a278 100644 --- a/src/components/ProcessDetailList.vue +++ b/src/components/ProcessDetailList.vue @@ -113,6 +113,7 @@ 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'] @@ -171,6 +172,18 @@ export default { default: '' } }, + watch: { + nodeNameClick: { + immediate: true, + handler (val) { + if (val) { + this.columns[0].scopedSlots.customRender = 'taskNode' + } else { + this.columns[0].scopedSlots.customRender = 'text' + } + } + } + }, computed: { yScrollHeight () { /** @@ -195,7 +208,8 @@ export default { { dataIndex: 'taskName', title: this.$t('workCenter.processDetail.taskNode'), - width: 150 + width: 150, + scopedSlots: { customRender: 'taskNode' } }, // 任务受理人 { @@ -406,91 +420,91 @@ export default { // 跳转到对应流程页面 switch (this.$route.query.processKey + '') { // 标准法规入库/变更流程 - case '1': + case ProcessKey.FB_ENTRY_CHANGE.value: path = '/workCenter/StandardEntryOrChangeProcess' break // 标准征求意见流程 - case '2': + case ProcessKey.CONSULTATION.value: path = '/workCenter/StandardConsultationProcess' break // 项目合规评估流程 - case '3': + case ProcessKey.PROJECT_COMPLIANCE_EVALUATION.value: path = '/workCenter/ProjectComplianceEvaluationProcess' break // 未符合项跟踪流程 - case '4': + case ProcessKey.NO_MATCH_TRACKING.value: path = '/workCenter/NoMatchTrackingProcess' break // 法规合规评估流程 - case '5': + case ProcessKey.REGULATORY_COMPLIANCE_ASSESSMENT.value: path = '/workCenter/StandardComplianceProcess' break // 法规采购流程 - case '6': + case ProcessKey.LEGAL_PROCUREMENT.value: path = '/workCenter/StandardProcurementProcess' break // 企标立项、变更计划 - case '7': + case ProcessKey.ES_INIT_CHANGE.value: path = '/workCenter/enterpriseStandardInitChange/planApprovalChangeFlow' break // 年度制修订计划(各部门主动上报) - case '8': + case ProcessKey.ES_ANNUAL_REPORT.value: path = '/workCenter/annualRevisionPlanActivelyReport/revisionPlanActivelyReportFlow' break // 年度制修订计划(标准化发起) - case '9': + case ProcessKey.ES_ANNUAL_INIT.value: path = '/workCenter/annualRevisionPlanStandardizationInit/revisionPlanStandardizationInitFlow' break // 企标制修订流程 - case '10': + case ProcessKey.ES_EDIT.value: path = '/workCenter/enterpriseStandardRevision/enterpriseStandardRevisionFlow' break // 企标更改流程 - case '11': + case ProcessKey.ES_CHANGE.value: path = '/workCenter/enterpriseStandardChange/enterpriseStandardChangeFlow' break // 企标复审流程 - case '12': + case ProcessKey.ES_RECHECK.value: path = '/workCenter/enterpriseStandardRecheck/enterpriseStandardRecheckFlow' break // 企标废止流程 - case '13': + case ProcessKey.ES_ABOLISH.value: path = '/workCenter/enterpriseStandardAnnul/enterpriseStandardAnnulFlow' break // 企标封存流程 - case '14': + case ProcessKey.ES_ARCHIVE.value: path = '/workCenter/enterpriseStandardSealSave/enterpriseStandardSealSaveFlow' break // 已封存企标启用流程 - case '15': + case ProcessKey.ES_ENABLE.value: path = '/workCenter/enterpriseStandardStartUse/enterpriseStandardStartUseFlow' break // 企标稽查计划 - case '16': + case ProcessKey.ES_INSPECTION_PLAN.value: path = '/workCenter/EnterpriseStandardInspectionPlan' break // 企标稽查流程 - case '17': + case ProcessKey.ES_INSPECTION_PROCESS.value: path = '/workCenter/EnterpriseStandardInspectionProcess' break // 稽查延期申请流程 - case '18': + case ProcessKey.INSPECTION_EXTENSION_REQUEST_PROCESS.value: path = '/workCenter/InspectionExtensionRequestProcess' break // 企标稽查整改 - case '19': + case ProcessKey.ES_INSPECTION_RECTIFICATION.value: path = '/workCenter/EnterpriseStandardInspectionRectification' break // 权限申请流程 - case '20': + case ProcessKey.PERMISSION_APPLY.value: path = '/workCenter/PermissionApplicationProcess' break // 标准宣贯流程 - case '21': + case ProcessKey.STANDARD_PROMOTION.value: path = '/workCenter/StandardPromotionProcess' break // 会后管理流程 - case '22': + case ProcessKey.POST_MEETING_MANAGE.value: path = '/workCenter/PostMeetingManageProcess' break } diff --git a/src/views/workCenter/enterpriseStandardStartUse/EnterpriseStandardStartUseFlow.vue b/src/views/workCenter/enterpriseStandardStartUse/EnterpriseStandardStartUseFlow.vue index de26ba68..09e2fd07 100644 --- a/src/views/workCenter/enterpriseStandardStartUse/EnterpriseStandardStartUseFlow.vue +++ b/src/views/workCenter/enterpriseStandardStartUse/EnterpriseStandardStartUseFlow.vue @@ -179,14 +179,6 @@ export default { } } }) - if (this.$route.query.taskId && !this.$route.query.draftId) { - // 有流程id说明是从流程中心来的,需要初始化数据 - this.getProcessData('todo', { taskId: this.$route.query.taskId }) - } - if (this.$route.query.draftId) { - // 有草稿id,说明是从流程中心-草稿来的,需要初始化数据 - this.getProcessData('draft', { draftId: this.$route.query.draftId, projectId: this.$route.query.projectId }) - } if (this.$route.query.isLook + '' === '1') { // 是查看 this.isLook = true @@ -194,6 +186,15 @@ export default { this.initPersonInfoData(false) // 查询数据 this.getProcessData('look', { snapshotId: this.$route.query.snapshotId }) + } else { + if (this.$route.query.taskId && !this.$route.query.draftId) { + // 有流程id说明是从流程中心来的,需要初始化数据 + this.getProcessData('todo', { taskId: this.$route.query.taskId }) + } + if (this.$route.query.draftId) { + // 有草稿id,说明是从流程中心-草稿来的,需要初始化数据 + this.getProcessData('draft', { draftId: this.$route.query.draftId, projectId: this.$route.query.projectId }) + } } if (this.$route.query.taskName) { // 说明是已发起流程