|
|
@ -11,7 +11,7 @@ import { |
|
|
|
listUser, |
|
|
|
} from "@/api/management"; |
|
|
|
|
|
|
|
import { getDikeYhRecordList } from "@/api/dike"; |
|
|
|
import { getDikeYhRecordList, updateDikeYhRecordStatus } from "@/api/dike"; |
|
|
|
export default { |
|
|
|
name: "InspectionItems", |
|
|
|
data() { |
|
|
@ -53,7 +53,7 @@ export default { |
|
|
|
selectUser: [], |
|
|
|
implement: "", |
|
|
|
remark: "", |
|
|
|
status: 0, |
|
|
|
status: "0", |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
planId: [ |
|
|
@ -133,8 +133,16 @@ export default { |
|
|
|
this.dialogVisible = true; |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 确认记录 |
|
|
|
confirmPlanDetails(row) {}, |
|
|
|
// 记录确认 |
|
|
|
confirmPlanDetails(row) { |
|
|
|
updateDikeYhRecordStatus({ |
|
|
|
id: row.id, |
|
|
|
status: "1", |
|
|
|
}).then(() => { |
|
|
|
this.getTableData(); |
|
|
|
this.$message.success("确认成功"); |
|
|
|
}); |
|
|
|
}, |
|
|
|
resetForm() { |
|
|
|
this.$refs.ruleForm.resetFields(); |
|
|
|
this.dialogVisible = false; |
|
|
@ -154,7 +162,7 @@ export default { |
|
|
|
console.log("🚀user🚀", user); |
|
|
|
this.ruleForm.operators = user; |
|
|
|
if (confirm) { |
|
|
|
this.ruleForm.status = 1; |
|
|
|
this.ruleForm.status = "1"; |
|
|
|
} |
|
|
|
this.ruleForm.maintenanceFunds = Number( |
|
|
|
this.ruleForm.maintenanceFunds |
|
|
@ -321,6 +329,7 @@ export default { |
|
|
|
class="w-360" |
|
|
|
type="daterange" |
|
|
|
range-separator="至" |
|
|
|
value-format="yyyy-MM-dd 00:00:00" |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期" |
|
|
|
> |
|
|
@ -331,6 +340,7 @@ export default { |
|
|
|
type="daterange" |
|
|
|
class="w-360" |
|
|
|
range-separator="至" |
|
|
|
value-format="yyyy-MM-dd 00:00:00" |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期" |
|
|
|
></el-date-picker> |
|
|
@ -669,7 +679,7 @@ export default { |
|
|
|
>保存</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
v-if="this.ruleForm.status == 0 && prohibitEditing" |
|
|
|
v-if="this.ruleForm.status == '0' && prohibitEditing" |
|
|
|
size="mini" |
|
|
|
type="primary" |
|
|
|
@click="submitForm('ruleForm', true)" |
|
|
|