fix(hcxlz):宗地选择后自动关闭弹窗
Showing
2 changed files
with
17 additions
and
5 deletions
... | @@ -65,7 +65,8 @@ | ... | @@ -65,7 +65,8 @@ |
65 | <el-button type="primary" @click="save">保存</el-button> | 65 | <el-button type="primary" @click="save">保存</el-button> |
66 | <el-button type="primary" @click="cancel">取消</el-button> | 66 | <el-button type="primary" @click="cancel">取消</el-button> |
67 | </div> | 67 | </div> |
68 | <query-data :centerDialogVisible="xzzdVisible" @close="xzzdClose" @getData="getZdxx"></query-data> | 68 | <query-data :centerDialogVisible="xzzdVisible" @close="xzzdClose" @getData="getZdxx" |
69 | isZdClose="true"></query-data> | ||
69 | </el-dialog> | 70 | </el-dialog> |
70 | </div> | 71 | </div> |
71 | </template> | 72 | </template> |
... | @@ -138,7 +139,11 @@ | ... | @@ -138,7 +139,11 @@ |
138 | }, | 139 | }, |
139 | getZrz: function (bsm) { | 140 | getZrz: function (bsm) { |
140 | zdXlcd(bsm).then(res => { | 141 | zdXlcd(bsm).then(res => { |
141 | this.zrzList = res.result; | 142 | if (res.success){ |
143 | this.zrzList = res.result; | ||
144 | } else { | ||
145 | Message.error(res.message) | ||
146 | } | ||
142 | }) | 147 | }) |
143 | }, | 148 | }, |
144 | getZdxx: function (val) { | 149 | getZdxx: function (val) { |
... | @@ -209,8 +214,8 @@ | ... | @@ -209,8 +214,8 @@ |
209 | } | 214 | } |
210 | 215 | ||
211 | table { | 216 | table { |
212 | border-collapse:separate; | 217 | border-collapse: separate; |
213 | border-spacing:10px; | 218 | border-spacing: 10px; |
214 | display: inline-block; | 219 | display: inline-block; |
215 | text-align: center; | 220 | text-align: center; |
216 | .label { | 221 | .label { |
... | @@ -218,7 +223,7 @@ | ... | @@ -218,7 +223,7 @@ |
218 | } | 223 | } |
219 | .input { | 224 | .input { |
220 | width: 300px; | 225 | width: 300px; |
221 | .el-select{ | 226 | .el-select { |
222 | width: 300px; | 227 | width: 300px; |
223 | } | 228 | } |
224 | } | 229 | } | ... | ... |
... | @@ -130,6 +130,10 @@ | ... | @@ -130,6 +130,10 @@ |
130 | default: function () { | 130 | default: function () { |
131 | return ['zd'] | 131 | return ['zd'] |
132 | } | 132 | } |
133 | }, | ||
134 | isZdClose:{ | ||
135 | type:Boolean, | ||
136 | default:false | ||
133 | } | 137 | } |
134 | }, | 138 | }, |
135 | mounted() { | 139 | mounted() { |
... | @@ -168,6 +172,9 @@ | ... | @@ -168,6 +172,9 @@ |
168 | }, | 172 | }, |
169 | addData: function (val) { | 173 | addData: function (val) { |
170 | this.$emit("getData", val) | 174 | this.$emit("getData", val) |
175 | if (this.isZdClose) { | ||
176 | this.close(); | ||
177 | } | ||
171 | }, | 178 | }, |
172 | close: function () { | 179 | close: function () { |
173 | this.$emit('close') | 180 | this.$emit('close') | ... | ... |
-
Please register or sign in to post a comment