|
|
|
@ -11,8 +11,8 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">查询</el-button>
|
|
|
|
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">查询</el-button>
|
|
|
|
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -36,8 +36,8 @@
|
|
|
|
|
<el-table-column label="评价规则" align="center" prop="pfgz" />
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" @click="handleUpdate(scope.row)">编辑</el-button>
|
|
|
|
|
<el-button type="text" style="color: red;" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
|
|
<el-button type="text" @click="handleUpdate(scope.row)">编辑</el-button>
|
|
|
|
|
<el-button type="text" style="color: red;" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -114,7 +114,7 @@ export default {
|
|
|
|
|
getProjectEvaluationPage(this.queryParams).then(response => {
|
|
|
|
|
if (response && response.data && response.data.records !== undefined && response.data.total !== undefined) {
|
|
|
|
|
this.postList = response.data.records;
|
|
|
|
|
this.total = response.data.total;
|
|
|
|
|
this.total = response.data.total;
|
|
|
|
|
} else {
|
|
|
|
|
this.postList = [];
|
|
|
|
|
this.total = 0;
|
|
|
|
@ -190,8 +190,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 删除按钮操作
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
const postIds = row.id || this.ids; // 使用 id 字段
|
|
|
|
|
this.$modal.confirm('是否确认删除项目评价配置编号为"' + postIds + '"的数据项?').then(() => {
|
|
|
|
|
const postIds = row.id || this.ids;
|
|
|
|
|
const pjys = row.pjys; // 获取 pjys 字段的内容
|
|
|
|
|
this.$modal.confirm(`是否确认删除"${pjys}"的数据项?`).then(() => {
|
|
|
|
|
return deleteProjectEvaluation(postIds);
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
|