|
@ -37,14 +37,14 @@ |
|
|
class="w-240" |
|
|
class="w-240" |
|
|
size="small" |
|
|
size="small" |
|
|
@change="handleChangeSubPlan" |
|
|
@change="handleChangeSubPlan" |
|
|
v-model="formData.subPlanName" |
|
|
v-model="formData.subPlanId" |
|
|
placeholder="请选择" |
|
|
placeholder="请选择" |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in subPlanList" |
|
|
v-for="item in subPlanList" |
|
|
:key="item.id" |
|
|
:key="item.id" |
|
|
:label="item.name" |
|
|
:label="item.name" |
|
|
:value="item.name" |
|
|
:value="item.id" |
|
|
></el-option> |
|
|
></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -148,6 +148,18 @@ |
|
|
label: 'value', |
|
|
label: 'value', |
|
|
}" |
|
|
}" |
|
|
> |
|
|
> |
|
|
|
|
|
<template #default="{ node, data }"> |
|
|
|
|
|
<div class="flex justify-between items-center w-full pr-8"> |
|
|
|
|
|
<div>{{ data.value }}</div> |
|
|
|
|
|
<div v-if="node.isLeaf && data.nodeLink.hasProblem"> |
|
|
|
|
|
<img |
|
|
|
|
|
class="w-16 h-16" |
|
|
|
|
|
src="@/assets/common/icon-checked.png" |
|
|
|
|
|
alt="" |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
</el-tree> |
|
|
</el-tree> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-box" v-if="currentItem && currentItem.id"> |
|
|
<div class="right-box" v-if="currentItem && currentItem.id"> |
|
@ -247,6 +259,8 @@ export default { |
|
|
dikeName: "", |
|
|
dikeName: "", |
|
|
dikeCode: "", |
|
|
dikeCode: "", |
|
|
dikeType: "", |
|
|
dikeType: "", |
|
|
|
|
|
subPlanId: "", |
|
|
|
|
|
subPlanName: "", |
|
|
subPlanStartDate: "", |
|
|
subPlanStartDate: "", |
|
|
subPlanEndDate: "", |
|
|
subPlanEndDate: "", |
|
|
startDate: "", |
|
|
startDate: "", |
|
@ -261,6 +275,12 @@ export default { |
|
|
items: [], |
|
|
items: [], |
|
|
rules: { |
|
|
rules: { |
|
|
planId: [{ required: true, message: "请选择计划", trigger: "change" }], |
|
|
planId: [{ required: true, message: "请选择计划", trigger: "change" }], |
|
|
|
|
|
subPlanId: [ |
|
|
|
|
|
{ required: true, message: "请选择子计划", trigger: "change" }, |
|
|
|
|
|
], |
|
|
|
|
|
startDate: [ |
|
|
|
|
|
{ required: true, message: "请选择巡查时间", trigger: "change" }, |
|
|
|
|
|
], |
|
|
}, |
|
|
}, |
|
|
filesList: [], // 图片列表 |
|
|
filesList: [], // 图片列表 |
|
|
entries: {}, |
|
|
entries: {}, |
|
@ -354,7 +374,7 @@ export default { |
|
|
this.formData.lineName = ""; |
|
|
this.formData.lineName = ""; |
|
|
this.formData.lineType = ""; |
|
|
this.formData.lineType = ""; |
|
|
this.formData.dutyHolderType = ""; |
|
|
this.formData.dutyHolderType = ""; |
|
|
this.formData.scope = ""; |
|
|
this.formData.scope = "" || "-1"; |
|
|
this.items = []; |
|
|
this.items = []; |
|
|
this.entries = {}; |
|
|
this.entries = {}; |
|
|
this.checkTreeData = []; |
|
|
this.checkTreeData = []; |
|
@ -365,6 +385,12 @@ export default { |
|
|
); |
|
|
); |
|
|
this.formData.planName = planItem.name; |
|
|
this.formData.planName = planItem.name; |
|
|
this.formData.planId = planItem.id; |
|
|
this.formData.planId = planItem.id; |
|
|
|
|
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
this.$refs.formRef.clearValidate(); |
|
|
|
|
|
console.log("重置表单验证效果 >>>>>>> "); |
|
|
|
|
|
}, 30); |
|
|
|
|
|
|
|
|
getProjectCheckingPlanDetails(planItem.id).then((res) => { |
|
|
getProjectCheckingPlanDetails(planItem.id).then((res) => { |
|
|
this.subPlanList = res.data?.contents || []; |
|
|
this.subPlanList = res.data?.contents || []; |
|
|
this.formData.dikeName = res.data?.dikeName; |
|
|
this.formData.dikeName = res.data?.dikeName; |
|
@ -374,7 +400,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
handleChangeSubPlan() { |
|
|
handleChangeSubPlan() { |
|
|
let subPlanItem = this.subPlanList.find( |
|
|
let subPlanItem = this.subPlanList.find( |
|
|
(v) => v.name === this.formData.subPlanName |
|
|
(v) => v.id === this.formData.subPlanId |
|
|
); |
|
|
); |
|
|
this.formData.subPlanName = subPlanItem.name; |
|
|
this.formData.subPlanName = subPlanItem.name; |
|
|
this.formData.subPlanId = subPlanItem.id; |
|
|
this.formData.subPlanId = subPlanItem.id; |
|
@ -709,7 +735,6 @@ export default { |
|
|
this.subPlanDateArr = []; |
|
|
this.subPlanDateArr = []; |
|
|
this.formData.subPlanStartDate = ""; |
|
|
this.formData.subPlanStartDate = ""; |
|
|
this.formData.subPlanEndDate = ""; |
|
|
this.formData.subPlanEndDate = ""; |
|
|
this.xcDateArr = []; |
|
|
|
|
|
this.formData.startDate = ""; |
|
|
this.formData.startDate = ""; |
|
|
this.formData.endDate = ""; |
|
|
this.formData.endDate = ""; |
|
|
this.formData.lineId = ""; |
|
|
this.formData.lineId = ""; |
|
|