ea49bb2a by 杨威

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

1 parent ffe684e2
...@@ -217,10 +217,10 @@ export default { ...@@ -217,10 +217,10 @@ export default {
217 }, 217 },
218 methods: { 218 methods: {
219 // 重置 219 // 重置
220 result(){ 220 reset(){
221 this.$refs['ruleForm'].resetFields() 221 this.$refs['ruleForm'].resetFields();
222 this.$refs["ruleForm1"].resetFields() 222 this.$refs["ruleForm1"].resetFields();
223 this.$refs["ruleForm2"].resetFields() 223 this.$refs["ruleForm2"].resetFields();
224 }, 224 },
225 handleClick(tab, event) { 225 handleClick(tab, event) {
226 console.log(tab, event); 226 console.log(tab, event);
...@@ -260,13 +260,13 @@ export default { ...@@ -260,13 +260,13 @@ export default {
260 this.ruleForm1.dzbsm = this.$store.state.dzbsm != '' ? this.$store.state.dzbsm : ''; 260 this.ruleForm1.dzbsm = this.$store.state.dzbsm != '' ? this.$store.state.dzbsm : '';
261 insertZrzjbxx(this.ruleForm1) 261 insertZrzjbxx(this.ruleForm1)
262 .then((res) => { 262 .then((res) => {
263 debugger
263 if (res.code == "200") { 264 if (res.code == "200") {
264 this.$message({ 265 this.$message({
265 message: "创建成功!", 266 message: "创建成功!",
266 type: "success", 267 type: "success",
267 }); 268 });
268 //todo 跳转到自然幢基本信息内容表页面 (预留) 269 //todo 跳转到自然幢基本信息内容表页面 (预留)
269 this.close();
270 this.$store.state.zdbsm=res.result.zdbsm; 270 this.$store.state.zdbsm=res.result.zdbsm;
271 this.$store.state.zrzbsm=res.result.bsm; 271 this.$store.state.zrzbsm=res.result.bsm;
272 this.$store.state.xmmc=res.result.xmmc; 272 this.$store.state.xmmc=res.result.xmmc;
...@@ -276,6 +276,7 @@ export default { ...@@ -276,6 +276,7 @@ export default {
276 bsm:res.result.bsm 276 bsm:res.result.bsm
277 } 277 }
278 }); 278 });
279 this.close();
279 } else { 280 } else {
280 this.$message.error("创建失败!"); 281 this.$message.error("创建失败!");
281 } 282 }
...@@ -370,7 +371,7 @@ export default { ...@@ -370,7 +371,7 @@ export default {
370 }, 371 },
371 close() { 372 close() {
372 this.$emit("closeDialog"); 373 this.$emit("closeDialog");
373 this.result(); 374 this.reset();
374 }, 375 },
375 }, 376 },
376 computed: {}, 377 computed: {},
......