|
|
@ -42,6 +42,7 @@ export default { |
|
|
|
projectTypeOptions: [], |
|
|
|
xcTypeOptions: [], |
|
|
|
dutyHolderTypeOptions: [], |
|
|
|
handleStatusOptions: [], |
|
|
|
paramsData: { |
|
|
|
adcd: "", |
|
|
|
dikeName: "", |
|
|
@ -50,6 +51,7 @@ export default { |
|
|
|
lineType: "", |
|
|
|
dutyHolderType: "", |
|
|
|
status: "", |
|
|
|
handleStatus: "", |
|
|
|
}, |
|
|
|
tableData: [], // 检查列表 |
|
|
|
pageData: { |
|
|
@ -146,7 +148,8 @@ export default { |
|
|
|
lineName: this.paramsData.lineName, |
|
|
|
lineType: this.paramsData.lineType, |
|
|
|
dutyHolderType: this.paramsData.dutyHolderType, |
|
|
|
status: this.paramsData.status, |
|
|
|
// status: this.paramsData.status, |
|
|
|
handleStatus: this.paramsData.handleStatus, |
|
|
|
}, |
|
|
|
params: { |
|
|
|
sort: "desc", |
|
|
@ -223,7 +226,6 @@ export default { |
|
|
|
.then(() => { |
|
|
|
let formData = this.$refs.recordRef.submit(); |
|
|
|
console.log("formData >>>>> ", formData); |
|
|
|
// formData.status = "1"; |
|
|
|
updateRecordData(formData).then((res) => { |
|
|
|
if (res) { |
|
|
|
this.$message.success("处理成功"); |
|
|
@ -246,7 +248,7 @@ export default { |
|
|
|
console.log("结束巡查"); |
|
|
|
let formData = this.$refs.recordRef.submit(); |
|
|
|
console.log("formData >>>>> ", formData); |
|
|
|
formData.status = "2"; |
|
|
|
formData.status = "1"; |
|
|
|
updateRecordData(formData).then((res) => { |
|
|
|
if (res) { |
|
|
|
this.$message.success("处理成功"); |
|
|
@ -308,6 +310,9 @@ export default { |
|
|
|
this.getDicts("embankment_type").then((response) => { |
|
|
|
this.projectTypeOptions = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("xs_record_dag_status").then((response) => { |
|
|
|
this.handleStatusOptions = response.data; |
|
|
|
}); |
|
|
|
this.getTreeData(); |
|
|
|
}, |
|
|
|
mounted() { |
|
|
@ -425,14 +430,18 @@ export default { |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
class="w-202 ml-10" |
|
|
|
v-model="paramsData.status" |
|
|
|
v-model="paramsData.handleStatus" |
|
|
|
:popper-append-to-body="false" |
|
|
|
filterable |
|
|
|
placeholder="请选择" |
|
|
|
> |
|
|
|
<el-option label="全部" value=""> </el-option> |
|
|
|
<el-option label="已处置" value="1"> </el-option> |
|
|
|
<el-option label="未处置" value="0"> </el-option> |
|
|
|
<el-option |
|
|
|
v-for="item in handleStatusOptions" |
|
|
|
:label="item.dictLabel" |
|
|
|
:value="item.dictValue" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div class="flex-1 flex justify-end search-item"> |
|
|
@ -475,15 +484,26 @@ export default { |
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
> |
|
|
|
<el-table-column type="selection" width="55"></el-table-column> |
|
|
|
<el-table-column prop="status" align="center" label="隐患状态"> |
|
|
|
<el-table-column prop="handleStatus" align="center" label="隐患状态"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-tag |
|
|
|
v-if="scope.row.status === '1'" |
|
|
|
v-if="scope.row.handleStatus === '0'" |
|
|
|
type="default" |
|
|
|
class="normal" |
|
|
|
>无异常</el-tag |
|
|
|
> |
|
|
|
<el-tag |
|
|
|
v-else-if="scope.row.handleStatus === '1'" |
|
|
|
type="success" |
|
|
|
class="normal" |
|
|
|
>已处置</el-tag |
|
|
|
> |
|
|
|
<el-tag v-else type="danger" class="abnormal">未处置</el-tag> |
|
|
|
<el-tag |
|
|
|
v-else-if="scope.row.handleStatus === '2'" |
|
|
|
type="danger" |
|
|
|
class="abnormal" |
|
|
|
>未处置</el-tag |
|
|
|
> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="dikeName" align="center" label="堤防名称" /> |
|
|
|