fix: BUG修改

This commit is contained in:
kun 2024-04-29 23:43:59 +08:00
parent 20dd62e091
commit 1f8dc76739

View File

@ -657,7 +657,7 @@
v-model="addForm1.enterpriseName" v-model="addForm1.enterpriseName"
clearable clearable
@focus="getEnterprise" @focus="getEnterprise"
@clear="addForm1.enterpriseSn = '';addForm1.changeId = '';crewUpdateList = []" @clear="addForm1.enterpriseSn = '';addForm1.enterpriseName = '';addForm1.changeId = '';crewUpdateList = []"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -1122,7 +1122,7 @@
v-model="addForm2.enterpriseName" v-model="addForm2.enterpriseName"
clearable clearable
@focus="getEnterprise" @focus="getEnterprise"
@clear="addForm2.enterpriseSn = ''" @clear="addForm2.enterpriseSn = '';addForm2.enterpriseName = ''"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -2380,8 +2380,12 @@ export default {
} }
}, },
changeRegion(val) { changeRegion(val) {
console.log(val,666777)
// console.log(val,this.checkPointList,this.$refs['formRegion1'].getCheckedNodes()[0]) // console.log(val,this.checkPointList,this.$refs['formRegion1'].getCheckedNodes()[0])
if (this.recordType == 1) { if (this.recordType == 1) {
this.addForm1.enterpriseSn = "";
this.addForm1.enterpriseName = "";
this.addForm1.changeId = "";
let pathLabels = this.$refs["formRegion1"].getCheckedNodes()[0] let pathLabels = this.$refs["formRegion1"].getCheckedNodes()[0]
.pathLabels; .pathLabels;
let data = this.$refs["formRegion1"].getCheckedNodes()[0].data; let data = this.$refs["formRegion1"].getCheckedNodes()[0].data;
@ -2426,9 +2430,9 @@ export default {
this.addForm1.notifyPerson this.addForm1.notifyPerson
); );
this.subcontractList = data.enterpriseInfos; this.subcontractList = data.enterpriseInfos;
this.addForm1.enterpriseSn = "";
this.addForm1.enterpriseName = "";
} else if (this.recordType == 2) { } else if (this.recordType == 2) {
this.addForm2.enterpriseSn = "";
this.addForm2.enterpriseName = "";
let pathLabels = this.$refs["addFormRegion2"].getCheckedNodes()[0] let pathLabels = this.$refs["addFormRegion2"].getCheckedNodes()[0]
.pathLabels; .pathLabels;
let data = this.$refs["addFormRegion2"].getCheckedNodes()[0].data; let data = this.$refs["addFormRegion2"].getCheckedNodes()[0].data;
@ -2445,8 +2449,6 @@ export default {
// } // }
this.addForm2.regionName = text; this.addForm2.regionName = text;
this.subcontractList = data.enterpriseInfos; this.subcontractList = data.enterpriseInfos;
this.addForm2.enterpriseSn = "";
this.addForm2.enterpriseName = "";
} }
this.addForm1.inspectManId = this.checkPointList; this.addForm1.inspectManId = this.checkPointList;
}, },