From ac84a949ba075b7e180d318b31044b0b64ee0180 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期一, 03 三月 2025 10:00:18 +0800 Subject: [PATCH] 流程推进详情bug --- src/views/projectProcess/detail/index.vue | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/views/projectProcess/detail/index.vue b/src/views/projectProcess/detail/index.vue index 412ab09..22a4f97 100644 --- a/src/views/projectProcess/detail/index.vue +++ b/src/views/projectProcess/detail/index.vue @@ -491,9 +491,19 @@ this.total = res.total }) }, + isProject(id) { + const numericPattern = /^\d+(\.\d+)?$/; + return numericPattern.test(id) + }, // 鏌ヨ璇︽儏 getProjectProcessInfo() { - getProjectProcessDetail(this.queryParams.projectId, this.queryParams.processDefId).then(res => { + const projectType = this.isProject(this.queryParams.projectId) ? "PROJECT" : "ENGINEERING" + const param = { + projectId: this.queryParams.projectId, + processDefId: this.queryParams.processDefId, + projectType: projectType + } + getProjectProcessDetail(param).then(res => { this.detailData = res.data this.taskList = res.taskList this.total = res.total -- Gitblit v1.8.0