089ed639 by zhaoqian

Merge remote-tracking branch 'origin/master'

2 parents d9492093 2c6e62e2
......@@ -123,7 +123,9 @@ export default {
},
//添加定着物
openCreateDialog(){
debugger
this.dialogVisible = true
this.$store.state.rightClickZdbsm = this.zdData.zdbsm;
},
//关闭添加定着物弹框
closeDialog() {
......
......@@ -13,6 +13,7 @@ const store = new Vuex.Store({
xmmc: '', // 项目名称
zdmj: '', // 宗地面积
zdzl: '', // 宗地坐落
rightClickZdbsm:'', //右键菜单传入的zdbsm
tdytList:[],
tddjList:[],
qlxzList:[],
......
......@@ -250,6 +250,7 @@ export default {
//todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm
this.$refs['ruleForm1'].validate((valid) => {
if (valid) {
this.ruleForm1.zdbsm = this.$store.state.rightClickZdbsm != '' ? this.$store.state.rightClickZdbsm : '';
insertZrzjbxx(this.ruleForm1)
.then((res) => {
if (res.code == "200") {
......