From 8b59fc7dc34cd672db4abc34992d3428941c9f1d Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 04 三月 2025 22:00:29 +0800
Subject: [PATCH] 日志展示bug
---
src/views/projectProcess/detail/index.vue | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/views/projectProcess/detail/index.vue b/src/views/projectProcess/detail/index.vue
index 412ab09..95a42ab 100644
--- a/src/views/projectProcess/detail/index.vue
+++ b/src/views/projectProcess/detail/index.vue
@@ -329,7 +329,7 @@
this.superviseForm.content ='';
this.superviseForm.taskId = row.taskId;
this.superviseForm.projectId = this.$route.query.projectId;
- this.superviseForm.processInsId = row.taskId;
+ this.superviseForm.processInsId = row.processInsId;
this.superviseForm.superviseType = "SUPERVISE";
this.superviseForm.receiverType = row.handlerType;
if (row.handlerType === 'USER') {
@@ -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