From 21b3d6e90ee899f878c5533bb1c75ff62ab09fda Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期五, 14 三月 2025 13:55:03 +0800 Subject: [PATCH] 首页项目状态 --- 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