ea49bb2a by 杨威

新建自然幢后跳转至自然幢表单

1 parent ffe684e2
......@@ -217,10 +217,10 @@ export default {
},
methods: {
// 重置
result(){
this.$refs['ruleForm'].resetFields()
this.$refs["ruleForm1"].resetFields()
this.$refs["ruleForm2"].resetFields()
reset(){
this.$refs['ruleForm'].resetFields();
this.$refs["ruleForm1"].resetFields();
this.$refs["ruleForm2"].resetFields();
},
handleClick(tab, event) {
console.log(tab, event);
......@@ -260,13 +260,13 @@ export default {
this.ruleForm1.dzbsm = this.$store.state.dzbsm != '' ? this.$store.state.dzbsm : '';
insertZrzjbxx(this.ruleForm1)
.then((res) => {
debugger
if (res.code == "200") {
this.$message({
message: "创建成功!",
type: "success",
});
//todo 跳转到自然幢基本信息内容表页面 (预留)
this.close();
this.$store.state.zdbsm=res.result.zdbsm;
this.$store.state.zrzbsm=res.result.bsm;
this.$store.state.xmmc=res.result.xmmc;
......@@ -276,6 +276,7 @@ export default {
bsm:res.result.bsm
}
});
this.close();
} else {
this.$message.error("创建失败!");
}
......@@ -370,7 +371,7 @@ export default {
},
close() {
this.$emit("closeDialog");
this.result();
this.reset();
},
},
computed: {},
......