|
|
|
@ -428,6 +428,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
submit() {
|
|
|
|
submit() {
|
|
|
|
|
|
|
|
|
|
|
|
let promiseAll = [];
|
|
|
|
let promiseAll = [];
|
|
|
|
if (this.type === "add") {
|
|
|
|
if (this.type === "add") {
|
|
|
|
if (this.form.hasOwnProperty("id")) {
|
|
|
|
if (this.form.hasOwnProperty("id")) {
|
|
|
|
@ -543,6 +544,8 @@ export default {
|
|
|
|
delete copyForm[info._relations?.link_with_name];
|
|
|
|
delete copyForm[info._relations?.link_with_name];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
// console.log("this.copyForm",copyForm)
|
|
|
|
|
|
|
|
// return
|
|
|
|
promiseAll.push(
|
|
|
|
promiseAll.push(
|
|
|
|
save(Object.assign(copyForm, { table_name: this.tableName }))
|
|
|
|
save(Object.assign(copyForm, { table_name: this.tableName }))
|
|
|
|
);
|
|
|
|
);
|
|
|
|
@ -622,6 +625,7 @@ export default {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.id = "";
|
|
|
|
this.id = "";
|
|
|
|
this.type = "";
|
|
|
|
this.type = "";
|
|
|
|
|
|
|
|
this.selectLand = {}
|
|
|
|
this.init();
|
|
|
|
this.init();
|
|
|
|
this.$refs['landLinkTable']?.setCurrentRow();
|
|
|
|
this.$refs['landLinkTable']?.setCurrentRow();
|
|
|
|
this.$refs["elForm"].clearValidate();
|
|
|
|
this.$refs["elForm"].clearValidate();
|
|
|
|
@ -632,15 +636,19 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selectLand (newVal) {
|
|
|
|
selectLand (newVal) {
|
|
|
|
|
|
|
|
console.log("selectLand",newVal)
|
|
|
|
if (newVal && newVal.id) {
|
|
|
|
if (newVal && newVal.id) {
|
|
|
|
this.form.land_id = newVal.id;
|
|
|
|
this.form.land_id = newVal.id;
|
|
|
|
this.form.zichanweizhi = newVal.zichanweizhi;
|
|
|
|
this.form.zichanweizhi = newVal.zichanweizhi;
|
|
|
|
this.form.quanzhenghao = newVal.tudizhenghao;
|
|
|
|
this.form.quanzhenghao = newVal.tudizhenghao;
|
|
|
|
|
|
|
|
this.form.guanliantudizhengquanzheng = newVal.name
|
|
|
|
this.form = Object.assign({}, this.form);
|
|
|
|
this.form = Object.assign({}, this.form);
|
|
|
|
|
|
|
|
console.log("this.form",this.form)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.form.land_id = "";
|
|
|
|
this.form.land_id = "";
|
|
|
|
this.form.zichanweizhi = "";
|
|
|
|
this.form.zichanweizhi = "";
|
|
|
|
this.form.quanzhenghao = "";
|
|
|
|
this.form.quanzhenghao = "";
|
|
|
|
|
|
|
|
this.form.guanliantudizhengquanzheng = ''
|
|
|
|
this.form = Object.assign({}, this.form);
|
|
|
|
this.form = Object.assign({}, this.form);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|