|
@@ -1,6 +1,13 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
|
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="120px">
|
|
|
|
|
|
|
+ <el-form
|
|
|
|
|
+ :model="queryParams"
|
|
|
|
|
+ ref="queryForm"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ :inline="true"
|
|
|
|
|
+ v-show="showSearch"
|
|
|
|
|
+ label-width="120px"
|
|
|
|
|
+ >
|
|
|
<el-form-item label="项目名称" prop="porjectName">
|
|
<el-form-item label="项目名称" prop="porjectName">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="queryParams.porjectName"
|
|
v-model="queryParams.porjectName"
|
|
@@ -10,7 +17,11 @@
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="所属组别" prop="porjectGroup">
|
|
<el-form-item label="所属组别" prop="porjectGroup">
|
|
|
- <el-select v-model="queryParams.porjectGroup" placeholder="请选择所属组别" clearable>
|
|
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="queryParams.porjectGroup"
|
|
|
|
|
+ placeholder="请选择所属组别"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ >
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="dict in dict.type.porject_group"
|
|
v-for="dict in dict.type.porject_group"
|
|
|
:key="dict.value"
|
|
:key="dict.value"
|
|
@@ -36,27 +47,33 @@
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="初次接触日期" prop="contactDate">
|
|
<el-form-item label="初次接触日期" prop="contactDate">
|
|
|
- <el-date-picker clearable
|
|
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ clearable
|
|
|
v-model="queryParams.contactDate"
|
|
v-model="queryParams.contactDate"
|
|
|
type="date"
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
|
- placeholder="请选择初次接触日期">
|
|
|
|
|
|
|
+ placeholder="请选择初次接触日期"
|
|
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="立项通过日期" prop="projectDate">
|
|
<el-form-item label="立项通过日期" prop="projectDate">
|
|
|
- <el-date-picker clearable
|
|
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ clearable
|
|
|
v-model="queryParams.projectDate"
|
|
v-model="queryParams.projectDate"
|
|
|
type="date"
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
|
- placeholder="请选择立项通过日期">
|
|
|
|
|
|
|
+ placeholder="请选择立项通过日期"
|
|
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="投决通过日期" prop="decisionDate">
|
|
<el-form-item label="投决通过日期" prop="decisionDate">
|
|
|
- <el-date-picker clearable
|
|
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ clearable
|
|
|
v-model="queryParams.decisionDate"
|
|
v-model="queryParams.decisionDate"
|
|
|
type="date"
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
|
- placeholder="请选择投决通过日期">
|
|
|
|
|
|
|
+ placeholder="请选择投决通过日期"
|
|
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="项目所属公司" prop="company">
|
|
<el-form-item label="项目所属公司" prop="company">
|
|
@@ -108,11 +125,13 @@
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="预期融资时间" prop="financingDate">
|
|
<el-form-item label="预期融资时间" prop="financingDate">
|
|
|
- <el-date-picker clearable
|
|
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ clearable
|
|
|
v-model="queryParams.financingDate"
|
|
v-model="queryParams.financingDate"
|
|
|
type="date"
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
|
- placeholder="请选择预期融资时间">
|
|
|
|
|
|
|
+ placeholder="请选择预期融资时间"
|
|
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="投前估值" prop="investValuation">
|
|
<el-form-item label="投前估值" prop="investValuation">
|
|
@@ -140,8 +159,16 @@
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<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-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-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
@@ -154,7 +181,8 @@
|
|
|
size="mini"
|
|
size="mini"
|
|
|
@click="handleAdd"
|
|
@click="handleAdd"
|
|
|
v-hasPermi="['invest:pool:add']"
|
|
v-hasPermi="['invest:pool:add']"
|
|
|
- >新增</el-button>
|
|
|
|
|
|
|
+ >新增</el-button
|
|
|
|
|
+ >
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
<el-button
|
|
@@ -165,18 +193,20 @@
|
|
|
:disabled="single"
|
|
:disabled="single"
|
|
|
@click="handleUpdate"
|
|
@click="handleUpdate"
|
|
|
v-hasPermi="['invest:pool:edit']"
|
|
v-hasPermi="['invest:pool:edit']"
|
|
|
- >修改</el-button>
|
|
|
|
|
|
|
+ >修改</el-button
|
|
|
|
|
+ >
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
<el-button
|
|
|
type="danger"
|
|
type="danger"
|
|
|
plain
|
|
plain
|
|
|
- icon="el-icon-delete"
|
|
|
|
|
|
|
+ icon="el-icon-switch-button"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
:disabled="multiple"
|
|
:disabled="multiple"
|
|
|
@click="handleDelete"
|
|
@click="handleDelete"
|
|
|
v-hasPermi="['invest:pool:remove']"
|
|
v-hasPermi="['invest:pool:remove']"
|
|
|
- >删除</el-button>
|
|
|
|
|
|
|
+ >终止</el-button
|
|
|
|
|
+ >
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
<el-button
|
|
@@ -186,47 +216,94 @@
|
|
|
size="mini"
|
|
size="mini"
|
|
|
@click="handleExport"
|
|
@click="handleExport"
|
|
|
v-hasPermi="['invest:pool:export']"
|
|
v-hasPermi="['invest:pool:export']"
|
|
|
- >导出</el-button>
|
|
|
|
|
|
|
+ >导出</el-button
|
|
|
|
|
+ >
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
|
|
+ <right-toolbar
|
|
|
|
|
+ :showSearch.sync="showSearch"
|
|
|
|
|
+ @queryTable="getList"
|
|
|
|
|
+ ></right-toolbar>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
- <el-table v-loading="loading" :data="poolList" @selection-change="handleSelectionChange">
|
|
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ v-loading="loading"
|
|
|
|
|
+ :data="poolList"
|
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
|
|
+ >
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="主键id" align="center" prop="id" />
|
|
<el-table-column label="主键id" align="center" prop="id" />
|
|
|
<el-table-column label="项目名称" align="center" prop="porjectName" />
|
|
<el-table-column label="项目名称" align="center" prop="porjectName" />
|
|
|
<el-table-column label="所属组别" align="center" prop="porjectGroup">
|
|
<el-table-column label="所属组别" align="center" prop="porjectGroup">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.porject_group" :value="scope.row.porjectGroup"/>
|
|
|
|
|
|
|
+ <dict-tag
|
|
|
|
|
+ :options="dict.type.porject_group"
|
|
|
|
|
+ :value="scope.row.porjectGroup"
|
|
|
|
|
+ />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="项目编号" align="center" prop="porjectCode" />
|
|
<el-table-column label="项目编号" align="center" prop="porjectCode" />
|
|
|
<el-table-column label="渠道" align="center" prop="channel" />
|
|
<el-table-column label="渠道" align="center" prop="channel" />
|
|
|
- <el-table-column label="初次接触日期" align="center" prop="contactDate" width="180">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="初次接触日期"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ prop="contactDate"
|
|
|
|
|
+ width="180"
|
|
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.contactDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
|
|
+ <span>{{ parseTime(scope.row.contactDate, "{y}-{m}-{d}") }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="立项通过日期" align="center" prop="projectDate" width="180">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="立项通过日期"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ prop="projectDate"
|
|
|
|
|
+ width="180"
|
|
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.projectDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
|
|
+ <span>{{ parseTime(scope.row.projectDate, "{y}-{m}-{d}") }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="投决通过日期" align="center" prop="decisionDate" width="180">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="投决通过日期"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ prop="decisionDate"
|
|
|
|
|
+ width="180"
|
|
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.decisionDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
|
|
+ <span>{{ parseTime(scope.row.decisionDate, "{y}-{m}-{d}") }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="项目所属行业" align="center" prop="industry" />
|
|
<el-table-column label="项目所属行业" align="center" prop="industry" />
|
|
|
<el-table-column label="项目所属公司" align="center" prop="company" />
|
|
<el-table-column label="项目所属公司" align="center" prop="company" />
|
|
|
- <el-table-column label="项目联系人" align="center" prop="projectContacts" />
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="项目联系人"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ prop="projectContacts"
|
|
|
|
|
+ />
|
|
|
<el-table-column label="投资负责人" align="center" prop="investHead" />
|
|
<el-table-column label="投资负责人" align="center" prop="investHead" />
|
|
|
- <el-table-column label="历次融资" align="center" prop="previousFinancing" />
|
|
|
|
|
- <el-table-column label="项目融资阶段" align="center" prop="financingStage" />
|
|
|
|
|
- <el-table-column label="预期融资金额" align="center" prop="financingMoney" />
|
|
|
|
|
- <el-table-column label="预期融资时间" align="center" prop="financingDate" width="180">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="历次融资"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ prop="previousFinancing"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="项目融资阶段"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ prop="financingStage"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="预期融资金额"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ prop="financingMoney"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ label="预期融资时间"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ prop="financingDate"
|
|
|
|
|
+ width="180"
|
|
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.financingDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
|
|
+ <span>{{ parseTime(scope.row.financingDate, "{y}-{m}-{d}") }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="投前估值" align="center" prop="investValuation" />
|
|
<el-table-column label="投前估值" align="center" prop="investValuation" />
|
|
@@ -236,28 +313,52 @@
|
|
|
<el-table-column label="投资价值" align="center" prop="investWorth" />
|
|
<el-table-column label="投资价值" align="center" prop="investWorth" />
|
|
|
<el-table-column label="项目阶段" align="center" prop="projectStage" />
|
|
<el-table-column label="项目阶段" align="center" prop="projectStage" />
|
|
|
<el-table-column label="项目状态" align="center" prop="projectState" />
|
|
<el-table-column label="项目状态" align="center" prop="projectState" />
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ width="300"
|
|
|
|
|
+ fixed="right"
|
|
|
|
|
+ label="操作"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
|
|
+
|
|
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-search"
|
|
|
|
|
+ @click="handleDetail(scope.row)"
|
|
|
|
|
+ v-hasPermi="['invest:pool:query']"
|
|
|
|
|
+ >查看</el-button
|
|
|
|
|
+ >
|
|
|
<el-button
|
|
<el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="text"
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['invest:pool:edit']"
|
|
v-hasPermi="['invest:pool:edit']"
|
|
|
- >修改</el-button>
|
|
|
|
|
|
|
+ >修改</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-setting"
|
|
|
|
|
+ @click="handleBusinessUpdate(scope.row)"
|
|
|
|
|
+ >设置业务节点</el-button
|
|
|
|
|
+ >
|
|
|
<el-button
|
|
<el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="text"
|
|
type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
|
|
|
|
+ icon="el-icon-switch-button"
|
|
|
@click="handleDelete(scope.row)"
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['invest:pool:remove']"
|
|
v-hasPermi="['invest:pool:remove']"
|
|
|
- >删除</el-button>
|
|
|
|
|
|
|
+ >终止</el-button
|
|
|
|
|
+ >
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<pagination
|
|
<pagination
|
|
|
- v-show="total>0"
|
|
|
|
|
|
|
+ v-show="total > 0"
|
|
|
:total="total"
|
|
:total="total"
|
|
|
:page.sync="queryParams.pageNum"
|
|
:page.sync="queryParams.pageNum"
|
|
|
:limit.sync="queryParams.pageSize"
|
|
:limit.sync="queryParams.pageSize"
|
|
@@ -381,15 +482,21 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { listPool, getPool, delPool, addPool, updatePool } from "@/api/invest/pool";
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ listPool,
|
|
|
|
|
+ getPool,
|
|
|
|
|
+ delPool,
|
|
|
|
|
+ addPool,
|
|
|
|
|
+ updatePool,
|
|
|
|
|
+} from "@/api/invest/pool";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: "Pool",
|
|
name: "Pool",
|
|
|
- dicts: ['porject_group'],
|
|
|
|
|
|
|
+ dicts: ["porject_group"],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
// 遮罩层
|
|
// 遮罩层
|
|
|
- loading: true,
|
|
|
|
|
|
|
+ loading: false,
|
|
|
// 选中数组
|
|
// 选中数组
|
|
|
ids: [],
|
|
ids: [],
|
|
|
// 非单个禁用
|
|
// 非单个禁用
|
|
@@ -435,14 +542,19 @@ export default {
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ // activated() {
|
|
|
|
|
+ // console.log("=======activated===");
|
|
|
|
|
+ // this.getList();
|
|
|
|
|
+ // },
|
|
|
created() {
|
|
created() {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
/** 查询项目池列表 */
|
|
/** 查询项目池列表 */
|
|
|
getList() {
|
|
getList() {
|
|
|
|
|
+ console.log("getList===");
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
- listPool(this.queryParams).then(response => {
|
|
|
|
|
|
|
+ listPool(this.queryParams).then((response) => {
|
|
|
this.poolList = response.rows;
|
|
this.poolList = response.rows;
|
|
|
this.total = response.total;
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -489,7 +601,7 @@ export default {
|
|
|
createBy: null,
|
|
createBy: null,
|
|
|
createTime: null,
|
|
createTime: null,
|
|
|
updateBy: null,
|
|
updateBy: null,
|
|
|
- updateTime: null
|
|
|
|
|
|
|
+ updateTime: null,
|
|
|
};
|
|
};
|
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
|
},
|
|
},
|
|
@@ -505,64 +617,61 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 多选框选中数据
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map(item => item.id)
|
|
|
|
|
- this.single = selection.length!==1
|
|
|
|
|
- this.multiple = !selection.length
|
|
|
|
|
|
|
+ this.ids = selection.map((item) => item.id);
|
|
|
|
|
+ this.single = selection.length !== 1;
|
|
|
|
|
+ this.multiple = !selection.length;
|
|
|
},
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
handleAdd() {
|
|
|
// this.reset();
|
|
// this.reset();
|
|
|
// this.open = true;
|
|
// this.open = true;
|
|
|
// this.title = "添加项目池";
|
|
// this.title = "添加项目池";
|
|
|
-
|
|
|
|
|
- this.$router.push({ path: '/invest/pool/add',query: { id: 1 }})
|
|
|
|
|
|
|
+ this.$router.push({ path: "/invest/pool/add" });
|
|
|
|
|
+ },
|
|
|
|
|
+ handleDetail(row){
|
|
|
|
|
+ const id = row.id || this.ids;
|
|
|
|
|
+ this.$router.push({ path: "/invest/pool/detail", query: { id: id } });
|
|
|
},
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
|
- this.reset();
|
|
|
|
|
- const id = row.id || this.ids
|
|
|
|
|
- getPool(id).then(response => {
|
|
|
|
|
- this.form = response.data;
|
|
|
|
|
- this.open = true;
|
|
|
|
|
- this.title = "修改项目池";
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ const id = row.id || this.ids;
|
|
|
|
|
+ this.$router.push({ path: "/invest/pool/add", query: { id: id } });
|
|
|
|
|
+ // this.reset();
|
|
|
|
|
+ // getPool(id).then((response) => {
|
|
|
|
|
+ // this.form = response.data;
|
|
|
|
|
+ // this.open = true;
|
|
|
|
|
+ // this.title = "修改项目池";
|
|
|
|
|
+ // });
|
|
|
},
|
|
},
|
|
|
- /** 提交按钮 */
|
|
|
|
|
- submitForm() {
|
|
|
|
|
- this.$refs["form"].validate(valid => {
|
|
|
|
|
- if (valid) {
|
|
|
|
|
- if (this.form.id != null) {
|
|
|
|
|
- updatePool(this.form).then(response => {
|
|
|
|
|
- this.$modal.msgSuccess("修改成功");
|
|
|
|
|
- this.open = false;
|
|
|
|
|
- this.getList();
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- addPool(this.form).then(response => {
|
|
|
|
|
- this.$modal.msgSuccess("新增成功");
|
|
|
|
|
- this.open = false;
|
|
|
|
|
- this.getList();
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // 修改业务节点
|
|
|
|
|
+ handleBusinessUpdate(row){
|
|
|
|
|
+ const ids = row.id || this.ids;
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
const ids = row.id || this.ids;
|
|
|
- this.$modal.confirm('是否确认删除项目池编号为"' + ids + '"的数据项?').then(function() {
|
|
|
|
|
- return delPool(ids);
|
|
|
|
|
- }).then(() => {
|
|
|
|
|
- this.getList();
|
|
|
|
|
- this.$modal.msgSuccess("删除成功");
|
|
|
|
|
- }).catch(() => {});
|
|
|
|
|
|
|
+ this.$modal
|
|
|
|
|
+ .confirm('是否终止项目池编号为"' + ids + '"的数据项?')
|
|
|
|
|
+ .then(function () {
|
|
|
|
|
+ return delPool(ids);
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
handleExport() {
|
|
|
- this.download('invest/pool/export', {
|
|
|
|
|
- ...this.queryParams
|
|
|
|
|
- }, `pool_${new Date().getTime()}.xlsx`)
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.download(
|
|
|
|
|
+ "invest/pool/export",
|
|
|
|
|
+ {
|
|
|
|
|
+ ...this.queryParams,
|
|
|
|
|
+ },
|
|
|
|
|
+ `pool_${new Date().getTime()}.xlsx`
|
|
|
|
|
+ );
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|