9bbb8d8a by weimo934

feat(create):新增宗地之后重置数据

1 parent 46e7e7fb
......@@ -144,13 +144,13 @@ export default {
djq: [],
djzq: [],
ruleForm:{
"djqbsm": "",
"djzqbsm": "",
"syqlxbsm": "",
"userbsm": "",
"xmmc": "",
"xzqbsm": "",
"zdtzmbsm": ""
djqbsm: "",
djzqbsm: "",
syqlxbsm: "",
userbsm: "",
xmmc: "",
xzqbsm: "",
zdtzmbsm: ""
},
ruleForm1:{
zdbsm:'',
......@@ -216,6 +216,28 @@ export default {
this.activeName = this.auth ? 'zrz':'zd'
},
methods: {
// 重置
result(){
this.ruleForm={
djqbsm: "",
djzqbsm: "",
syqlxbsm: "",
userbsm: "",
xmmc: "",
xzqbsm: "",
zdtzmbsm: ""
}
this.ruleForm1={
zdbsm:'',
xmmc:'',
userbsm:''
}
this.ruleForm2={
zdbsm:'',
xmmc:'',
userbsm:''
}
},
handleClick(tab, event) {
console.log(tab, event);
console.log(tab.name);
......@@ -280,7 +302,7 @@ export default {
return false;
}
});
},
newDz() {
//todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm
......@@ -364,6 +386,7 @@ export default {
},
close() {
this.$emit("closeDialog");
this.result();
},
},
computed: {},
......