feat(create):新增宗地之后重置数据
Showing
1 changed file
with
31 additions
and
8 deletions
... | @@ -144,13 +144,13 @@ export default { | ... | @@ -144,13 +144,13 @@ export default { |
144 | djq: [], | 144 | djq: [], |
145 | djzq: [], | 145 | djzq: [], |
146 | ruleForm:{ | 146 | ruleForm:{ |
147 | "djqbsm": "", | 147 | djqbsm: "", |
148 | "djzqbsm": "", | 148 | djzqbsm: "", |
149 | "syqlxbsm": "", | 149 | syqlxbsm: "", |
150 | "userbsm": "", | 150 | userbsm: "", |
151 | "xmmc": "", | 151 | xmmc: "", |
152 | "xzqbsm": "", | 152 | xzqbsm: "", |
153 | "zdtzmbsm": "" | 153 | zdtzmbsm: "" |
154 | }, | 154 | }, |
155 | ruleForm1:{ | 155 | ruleForm1:{ |
156 | zdbsm:'', | 156 | zdbsm:'', |
... | @@ -216,6 +216,28 @@ export default { | ... | @@ -216,6 +216,28 @@ export default { |
216 | this.activeName = this.auth ? 'zrz':'zd' | 216 | this.activeName = this.auth ? 'zrz':'zd' |
217 | }, | 217 | }, |
218 | methods: { | 218 | methods: { |
219 | // 重置 | ||
220 | result(){ | ||
221 | this.ruleForm={ | ||
222 | djqbsm: "", | ||
223 | djzqbsm: "", | ||
224 | syqlxbsm: "", | ||
225 | userbsm: "", | ||
226 | xmmc: "", | ||
227 | xzqbsm: "", | ||
228 | zdtzmbsm: "" | ||
229 | } | ||
230 | this.ruleForm1={ | ||
231 | zdbsm:'', | ||
232 | xmmc:'', | ||
233 | userbsm:'' | ||
234 | } | ||
235 | this.ruleForm2={ | ||
236 | zdbsm:'', | ||
237 | xmmc:'', | ||
238 | userbsm:'' | ||
239 | } | ||
240 | }, | ||
219 | handleClick(tab, event) { | 241 | handleClick(tab, event) { |
220 | console.log(tab, event); | 242 | console.log(tab, event); |
221 | console.log(tab.name); | 243 | console.log(tab.name); |
... | @@ -280,7 +302,7 @@ export default { | ... | @@ -280,7 +302,7 @@ export default { |
280 | return false; | 302 | return false; |
281 | } | 303 | } |
282 | }); | 304 | }); |
283 | 305 | ||
284 | }, | 306 | }, |
285 | newDz() { | 307 | newDz() { |
286 | //todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm | 308 | //todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm |
... | @@ -364,6 +386,7 @@ export default { | ... | @@ -364,6 +386,7 @@ export default { |
364 | }, | 386 | }, |
365 | close() { | 387 | close() { |
366 | this.$emit("closeDialog"); | 388 | this.$emit("closeDialog"); |
389 | this.result(); | ||
367 | }, | 390 | }, |
368 | }, | 391 | }, |
369 | computed: {}, | 392 | computed: {}, | ... | ... |
-
Please register or sign in to post a comment