Browse Source

提防/水闸 列表状态,通过屏蔽按钮;查看报告一样问题处理

master
wuxu 2 weeks ago
parent
commit
2961749ed6
  1. 10
      src/views/dike/safetyManage/safetyAppraisal/components/listSafetyDetection.vue
  2. 2
      src/views/dike/safetyManage/safetyAppraisal/list.vue
  3. 9
      src/views/sluice/safetyManage/safetyAppraisal/components/listSafetyDetection.vue
  4. 6
      src/views/sluice/safetyManage/safetyAppraisal/list.vue

10
src/views/dike/safetyManage/safetyAppraisal/components/listSafetyDetection.vue

@ -227,6 +227,13 @@ export default {
fileList1: [],
fileList2: [],
};
},
watch: {
// message
dfrwId(newVal, oldVal) {
console.log('message changed:', oldVal, '→', newVal)
this.getList();
}
},
created() {
this.getList();
@ -260,7 +267,10 @@ export default {
if (this.form.calculationResults) {
this.fileList2 = JSON.parse(this.form.calculationResults);
}
}else{
this.reset();
}
// this.total = response.total;
// this.loading = false;
});

2
src/views/dike/safetyManage/safetyAppraisal/list.vue

@ -181,6 +181,7 @@
>查看报告</el-button>
<el-button
size="mini"
v-if="scope.row.status != '3'"
type="text"
icon="el-icon-edit"
@click="fillOut(scope.row)"
@ -196,6 +197,7 @@
</el-button>
<el-button
size="mini"
v-if="scope.row.status != '3'"
type="text"
icon="el-icon-edit"
@click="examine(scope.row)"

9
src/views/sluice/safetyManage/safetyAppraisal/components/listSafetyDetection.vue

@ -227,6 +227,13 @@ export default {
fileList1: [],
fileList2: [],
};
},
watch: {
// message
szrwId(newVal, oldVal) {
console.log('message changed:', oldVal, '→', newVal)
this.getList();
}
},
created() {
this.getList();
@ -260,6 +267,8 @@ export default {
if (this.form.calculationResults) {
this.fileList2 = JSON.parse(this.form.calculationResults);
}
}else{
this.reset();
}
// this.total = response.total;
// this.loading = false;

6
src/views/sluice/safetyManage/safetyAppraisal/list.vue

@ -175,6 +175,7 @@
<template slot-scope="scope">
<el-button
size="mini"
v-if="scope.row.status != '3'"
type="text"
icon="el-icon-edit"
@click="fillOut(scope.row)"
@ -196,20 +197,21 @@
>查看报告</el-button>
<el-button
size="mini"
v-if="scope.row.status != '3'"
type="text"
icon="el-icon-edit"
@click="examine(scope.row)"
v-hasPermi="['sz:szrw:examine']"
>审核</el-button
>
<el-button
<!-- <el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['sz:szrw:remove']"
>删除</el-button
>
>-->
</template>
</el-table-column>
</el-table>

Loading…
Cancel
Save