|
|
@@ -7,6 +7,22 @@
|
|
|
width="800px"
|
|
|
append-to-body
|
|
|
>
|
|
|
+ <!-- 查询表单区域 -->
|
|
|
+ <el-form :model="projectQueryParams" ref="queryForm" inline>
|
|
|
+ <el-form-item label="项目名称" prop="projectName">
|
|
|
+ <el-input
|
|
|
+ v-model.trim="projectQueryParams.projectName"
|
|
|
+ placeholder="请输入项目名称"
|
|
|
+ clearable
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <!-- 可继续扩展其他查询表单项目,比如项目编号、负责人等 -->
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
<el-table
|
|
|
class="tableWrapper"
|
|
|
@row-click="clickRow"
|
|
|
@@ -60,13 +76,64 @@
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="项目状态" align="center" prop="projectState">
|
|
|
+<!-- <el-table-column label="项目状态" align="center" prop="projectState">
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag
|
|
|
:options="dict.type.project_state"
|
|
|
:value="scope.row.projectState"
|
|
|
/>
|
|
|
</template>
|
|
|
+ </el-table-column>-->
|
|
|
+ <el-table-column label="项目机会状态" align="center" prop="projectStatus">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <!-- 定义状态文本映射对象 -->
|
|
|
+ <el-tag
|
|
|
+ :type="{
|
|
|
+ 0: 'success',
|
|
|
+ 1: 'danger',
|
|
|
+ 2: 'warning'
|
|
|
+ }[scope.row.projectStatus] || 'info'"
|
|
|
+ >
|
|
|
+ {{ {
|
|
|
+ 0: '正常',
|
|
|
+ 1: '终止',
|
|
|
+ 2: '观望'
|
|
|
+ }[scope.row.projectStatus] || '未知状态' }}
|
|
|
+ </el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="已发起立项申请"
|
|
|
+ align="center"
|
|
|
+ prop="approvalFlag"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ {{ scope.row.approvalFlag === "1" ? "是" : "否" }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="已发起投决申请"
|
|
|
+ align="center"
|
|
|
+ prop="decisionFlag"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ {{ scope.row.decisionFlag === "1" ? "是" : "否" }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="已发起尽调申请"
|
|
|
+ align="center"
|
|
|
+ prop="investigateFlag"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ {{ scope.row.investigateFlag === "1" ? "是" : "否" }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<pagination
|
|
|
@@ -87,7 +154,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import {
|
|
|
- listTerminationList,
|
|
|
+ applicableListTermination,
|
|
|
} from "@/api/project/termination/pool";
|
|
|
import { mapGetters } from "vuex";
|
|
|
export default {
|
|
|
@@ -109,6 +176,8 @@ export default {
|
|
|
pageSize: 10,
|
|
|
orderByColumn: "createTime",
|
|
|
isAsc: "desc",
|
|
|
+ projectStatus:null,
|
|
|
+ projectName:null
|
|
|
},
|
|
|
|
|
|
// 选中数组
|
|
|
@@ -127,6 +196,14 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 刷新项目列表的方法
|
|
|
+ refreshProjectList(isWatch) {
|
|
|
+ // 清空现有列表
|
|
|
+ this.poolList = [];
|
|
|
+ this.projectItemTotal=0;
|
|
|
+ // 重新请求接口获取最新数据
|
|
|
+ this.getList(isWatch);
|
|
|
+ },
|
|
|
clickRow(row) {
|
|
|
this.$refs.dataTable.toggleRowSelection(row);
|
|
|
},
|
|
|
@@ -143,8 +220,13 @@ export default {
|
|
|
this.ids = selection;
|
|
|
},
|
|
|
/** 查询项目池列表 */
|
|
|
- getList() {
|
|
|
- listTerminationList(this.projectQueryParams).then((response) => {
|
|
|
+ getList(isWatch) {
|
|
|
+ if(isWatch){
|
|
|
+ this.projectQueryParams.projectStatus=2;
|
|
|
+ }else {
|
|
|
+ this.projectQueryParams.projectStatus=0;
|
|
|
+ }
|
|
|
+ applicableListTermination(this.projectQueryParams).then((response) => {
|
|
|
this.poolList = response.rows;
|
|
|
this.projectItemTotal = response.total;
|
|
|
});
|
|
|
@@ -177,11 +259,21 @@ export default {
|
|
|
type: "error",
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
cancel() {
|
|
|
this.showProjectItem = false;
|
|
|
},
|
|
|
+ /** 搜索按钮操作 */
|
|
|
+ handleQuery() {
|
|
|
+ this.projectQueryParams.pageNum = 1;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ /** 重置按钮操作 */
|
|
|
+ resetQuery() {
|
|
|
+ this.resetForm("queryForm");
|
|
|
+ this.handleQuery();
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
-</script>
|
|
|
+</script>
|