From 39b3680a9bc3e7c29a4bbf3b277c14de1e1283d0 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 06 三月 2025 10:52:37 +0800
Subject: [PATCH] 容缺接口
---
src/views/projectProcess/index.vue | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/src/views/projectProcess/index.vue b/src/views/projectProcess/index.vue
index 93aafd2..84fc791 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" />
@@ -256,6 +265,7 @@
:now-process-ins-id="nowProcessInsId"
:project-info="projectRunFrom"
:process-list="processList"
+ :project-type="projectType"
@close="closeRunProcess">
</RunProcess>
</div>
@@ -280,6 +290,7 @@
},
data() {
return {
+ projectType: '',
projectRunFrom: {
projectId: null,
projectName: ''
@@ -391,6 +402,7 @@
}
this.nowProcessDefId = "";
this.nowProcessInsId = "";
+ this.projectType = ""
this.showRunProcess = false
this.getList()
},
@@ -398,6 +410,12 @@
openOpProcess(row) {
this.nowProcessDefId = row.processDefId ? row.processDefId : '';
this.nowProcessInsId = row.processInsId ? row.processInsId : '';
+ const numericPattern = /^\d+(\.\d+)?$/;
+ if (numericPattern.test(row.id)) {
+ this.projectType = "PROJECT"
+ } else {
+ this.projectType = "ENGINEERING"
+ }
// // 闃叉锛歩d娌″彉涓嶈Е鍙戠洃鍚�
// this.$refs.runProcess.setSelect(row.flowableProcessId);
this.projectRunFrom.projectId = row.id;
@@ -467,6 +485,7 @@
this.loading = true;
getProjectProcess(this.queryParams).then(response => {
this.projectInfoList = response.data;
+ console.log(this.projectInfoList)
this.total = response.total;
this.loading = false;
});
--
Gitblit v1.8.0