新建自然幢流程完善
Showing
2 changed files
with
5 additions
and
2 deletions
... | @@ -254,6 +254,8 @@ export default { | ... | @@ -254,6 +254,8 @@ export default { |
254 | this.$store.state.zdbsm = this.zdData.zdbsm; | 254 | this.$store.state.zdbsm = this.zdData.zdbsm; |
255 | if(this.zdData.type == 'dz'){ | 255 | if(this.zdData.type == 'dz'){ |
256 | this.$store.state.dzbsm = this.zdData.bsm; | 256 | this.$store.state.dzbsm = this.zdData.bsm; |
257 | }else{ | ||
258 | this.$store.state.dzbsm = ''; | ||
257 | } | 259 | } |
258 | }, | 260 | }, |
259 | //关闭添加定着物弹框 | 261 | //关闭添加定着物弹框 | ... | ... |
... | @@ -290,8 +290,9 @@ export default { | ... | @@ -290,8 +290,9 @@ export default { |
290 | //todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm | 290 | //todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm |
291 | this.$refs['ruleForm1'].validate((valid) => { | 291 | this.$refs['ruleForm1'].validate((valid) => { |
292 | if (valid) { | 292 | if (valid) { |
293 | this.ruleForm1.zdbsm = this.$store.state.zdbsm != '' ? this.$store.state.zdbsm : ''; | 293 | |
294 | this.ruleForm1.dzbsm = this.$store.state.dzbsm != '' ? this.$store.state.dzbsm : ''; | 294 | this.ruleForm1.zdbsm = this.auth ? this.$store.state.zdbsm : ''; |
295 | this.ruleForm1.dzbsm = this.auth ? this.$store.state.dzbsm : ''; | ||
295 | insertZrzjbxx(this.ruleForm1) | 296 | insertZrzjbxx(this.ruleForm1) |
296 | .then((res) => { | 297 | .then((res) => { |
297 | if (res.code == "200") { | 298 | if (res.code == "200") { | ... | ... |
-
Please register or sign in to post a comment