|
|
|
@ -38,8 +38,8 @@
|
|
|
|
|
<el-row>
|
|
|
|
|
<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>
|
|
|
|
@ -72,9 +72,9 @@
|
|
|
|
|
{{ scope.row.pjdj }} / {{ scope.row.count }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" @click="handleInfo(scope.row, 'detail')">详情</el-button>
|
|
|
|
|
<el-button type="text" @click="handleInfo(scope.row, 'detail')">详情</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -105,7 +105,7 @@ export default {
|
|
|
|
|
endTime: '',
|
|
|
|
|
xzfl: '',
|
|
|
|
|
pjdj: '',
|
|
|
|
|
qdpjdj:'',
|
|
|
|
|
qdpjdj: '',
|
|
|
|
|
},
|
|
|
|
|
showSearch: true,
|
|
|
|
|
dialogVisible: false,
|
|
|
|
@ -131,11 +131,10 @@ export default {
|
|
|
|
|
methods: {
|
|
|
|
|
checkPermi,
|
|
|
|
|
checkRole,
|
|
|
|
|
handleSortChange({ prop, order }) {
|
|
|
|
|
if (order === 'ascending') {
|
|
|
|
|
this.postList.sort((a, b) => a[prop] - b[prop]);
|
|
|
|
|
} else if (order === 'descending') {
|
|
|
|
|
this.postList.sort((a, b) => b[prop] - a[prop]);
|
|
|
|
|
handleSortChange({ column, prop, order }) {
|
|
|
|
|
if (prop === 'pjdj') {
|
|
|
|
|
this.queryParams.sort = order === 'ascending' ? 1 : 2;
|
|
|
|
|
this.getList();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleQuery() {
|
|
|
|
@ -163,23 +162,27 @@ export default {
|
|
|
|
|
xzfl: this.queryParams.xzfl,
|
|
|
|
|
pjdj: this.queryParams.pjdj,
|
|
|
|
|
begainTime: this.queryParams.begainTime || null,
|
|
|
|
|
endTime: this.queryParams.endTime || null
|
|
|
|
|
endTime: this.queryParams.endTime || null,
|
|
|
|
|
sort: this.queryParams.sort || 1 // 默认正序
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
getProjectEvaluationList(params)
|
|
|
|
|
.then(response => {
|
|
|
|
|
this.postList = response.data.records;
|
|
|
|
|
this.total = response.data.total;
|
|
|
|
|
this.postList = response.data?.records || [];
|
|
|
|
|
this.total = response.data?.total || 0;
|
|
|
|
|
})
|
|
|
|
|
.catch(error => {
|
|
|
|
|
console.error('获取项目评价失败:', error);
|
|
|
|
|
this.$message.error('数据加载失败');
|
|
|
|
|
})
|
|
|
|
|
.finally(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
// 处理选择项变化
|
|
|
|
|
},
|
|
|
|
|
handleInfo(row, type) {
|
|
|
|
|
this.$store.commit("SET_CRUMBS", "项目详情");
|
|
|
|
|
this.$store.commit("SET_CRUMBS", "项目详情");
|
|
|
|
|
const id = row.id || this.ids[0];
|
|
|
|
|
this.$router.push({ path: `/manage-add/${id}`, query: { action: type } });
|
|
|
|
|
},
|
|
|
|
|