添加定着物时传入zdbsm
Showing
3 changed files
with
4 additions
and
0 deletions
... | @@ -123,7 +123,9 @@ export default { | ... | @@ -123,7 +123,9 @@ export default { |
123 | }, | 123 | }, |
124 | //添加定着物 | 124 | //添加定着物 |
125 | openCreateDialog(){ | 125 | openCreateDialog(){ |
126 | debugger | ||
126 | this.dialogVisible = true | 127 | this.dialogVisible = true |
128 | this.$store.state.rightClickZdbsm = this.zdData.zdbsm; | ||
127 | }, | 129 | }, |
128 | //关闭添加定着物弹框 | 130 | //关闭添加定着物弹框 |
129 | closeDialog() { | 131 | closeDialog() { | ... | ... |
... | @@ -13,6 +13,7 @@ const store = new Vuex.Store({ | ... | @@ -13,6 +13,7 @@ const store = new Vuex.Store({ |
13 | xmmc: '', // 项目名称 | 13 | xmmc: '', // 项目名称 |
14 | zdmj: '', // 宗地面积 | 14 | zdmj: '', // 宗地面积 |
15 | zdzl: '', // 宗地坐落 | 15 | zdzl: '', // 宗地坐落 |
16 | rightClickZdbsm:'', //右键菜单传入的zdbsm | ||
16 | tdytList:[], | 17 | tdytList:[], |
17 | tddjList:[], | 18 | tddjList:[], |
18 | qlxzList:[], | 19 | qlxzList:[], | ... | ... |
... | @@ -250,6 +250,7 @@ export default { | ... | @@ -250,6 +250,7 @@ export default { |
250 | //todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm | 250 | //todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm |
251 | this.$refs['ruleForm1'].validate((valid) => { | 251 | this.$refs['ruleForm1'].validate((valid) => { |
252 | if (valid) { | 252 | if (valid) { |
253 | this.ruleForm1.zdbsm = this.$store.state.rightClickZdbsm != '' ? this.$store.state.rightClickZdbsm : ''; | ||
253 | insertZrzjbxx(this.ruleForm1) | 254 | insertZrzjbxx(this.ruleForm1) |
254 | .then((res) => { | 255 | .then((res) => { |
255 | if (res.code == "200") { | 256 | if (res.code == "200") { | ... | ... |
-
Please register or sign in to post a comment