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/index.vue | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/projectProcess/index.vue b/src/views/projectProcess/index.vue index 6383405..8e88d59 100644 --- a/src/views/projectProcess/index.vue +++ b/src/views/projectProcess/index.vue @@ -190,10 +190,19 @@ default-expand-all :tree-props="{children: 'children', hasChildren: 'hasChildren'}" :show-overflow-tooltip="true"> - <el-table-column label="椤圭洰鍚嶇О" prop="projectName" /> + <el-table-column label="椤圭洰鍚嶇О" min-width="250" :show-overflow-tooltip="true" prop="projectName" /> <el-table-column label="椤圭洰鎺ㄨ繘绫诲瀷" align="center" prop="projectType"> <template slot-scope="scope"> <dict-tag :options="dict.type.sys_project_type" :value="scope.row.projectType"/> + </template> + </el-table-column> + <el-table-column label="涓荤閮ㄩ棬" align="center" prop="competentDepartmentName"> + </el-table-column> + <el-table-column label="涓氫富鍗曚綅" align="center" prop="projectOwnerUnitName"> + </el-table-column> + <el-table-column label="骞翠唤" align="center" prop="year"> + <template slot-scope="scope"> + {{ scope.row.year ? scope.row.year + '骞�' : '' }} </template> </el-table-column> <el-table-column label="鎶曡祫棰�(涓�)" align="center" prop="investmentAmount" /> @@ -401,7 +410,8 @@ openOpProcess(row) { this.nowProcessDefId = row.processDefId ? row.processDefId : ''; this.nowProcessInsId = row.processInsId ? row.processInsId : ''; - if (isNaN(parseFloat(row.id))) { + const numericPattern = /^\d+(\.\d+)?$/; + if (numericPattern.test(row.id)) { this.projectType = "ENGINEERING" } else { this.projectType = "PROJECT" -- Gitblit v1.8.0