feat(jzd,jzx):界址点、线
Showing
2 changed files
with
13 additions
and
5 deletions
... | @@ -97,6 +97,7 @@ | ... | @@ -97,6 +97,7 @@ |
97 | props: {}, | 97 | props: {}, |
98 | data() { | 98 | data() { |
99 | return { | 99 | return { |
100 | bsm:'', | ||
100 | isCheckAll: false, | 101 | isCheckAll: false, |
101 | centerDialogVisible: false, | 102 | centerDialogVisible: false, |
102 | jblx: [ | 103 | jblx: [ |
... | @@ -163,7 +164,8 @@ | ... | @@ -163,7 +164,8 @@ |
163 | mounted() { | 164 | mounted() { |
164 | // 该标识码继承过来 | 165 | // 该标识码继承过来 |
165 | let bsm = '401044005bad0557d5e3787239d8e18e'; | 166 | let bsm = '401044005bad0557d5e3787239d8e18e'; |
166 | this.getData(bsm) | 167 | this.bsm=bsm; |
168 | this.getData(this.bsm) | ||
167 | }, | 169 | }, |
168 | methods: { | 170 | methods: { |
169 | getData(bsm) { | 171 | getData(bsm) { |
... | @@ -173,6 +175,7 @@ | ... | @@ -173,6 +175,7 @@ |
173 | res.result[i]['iszb'] = 'readonly'; | 175 | res.result[i]['iszb'] = 'readonly'; |
174 | res.result[i]['jzdisdisabled'] = true; | 176 | res.result[i]['jzdisdisabled'] = true; |
175 | } | 177 | } |
178 | this.isCheckAll=false; | ||
176 | this.jzdlist = res.result; | 179 | this.jzdlist = res.result; |
177 | }) | 180 | }) |
178 | }, | 181 | }, |
... | @@ -182,6 +185,7 @@ | ... | @@ -182,6 +185,7 @@ |
182 | console.log(res) | 185 | console.log(res) |
183 | if (res.success) { | 186 | if (res.success) { |
184 | Message.success("保存成功") | 187 | Message.success("保存成功") |
188 | this.getData(this.bsm) | ||
185 | } else { | 189 | } else { |
186 | Message.error(res.message) | 190 | Message.error(res.message) |
187 | } | 191 | } |
... | @@ -246,8 +250,8 @@ | ... | @@ -246,8 +250,8 @@ |
246 | } | 250 | } |
247 | } | 251 | } |
248 | jzdbatchModify(this.batchJzd).then(res => { | 252 | jzdbatchModify(this.batchJzd).then(res => { |
249 | console.log(res) | ||
250 | if (res.success) { | 253 | if (res.success) { |
254 | this.getData(this.bsm) | ||
251 | this.centerDialogVisible = false; | 255 | this.centerDialogVisible = false; |
252 | } else { | 256 | } else { |
253 | Message.error("修改失败") | 257 | Message.error("修改失败") | ... | ... |
... | @@ -119,6 +119,7 @@ | ... | @@ -119,6 +119,7 @@ |
119 | props: {}, | 119 | props: {}, |
120 | data() { | 120 | data() { |
121 | return { | 121 | return { |
122 | bsm:'', | ||
122 | isCheckAll: false, | 123 | isCheckAll: false, |
123 | centerDialogVisible: false, | 124 | centerDialogVisible: false, |
124 | jzxwz: [ | 125 | jzxwz: [ |
... | @@ -229,7 +230,8 @@ | ... | @@ -229,7 +230,8 @@ |
229 | mounted() { | 230 | mounted() { |
230 | // 该标识码继承过来 | 231 | // 该标识码继承过来 |
231 | let bsm = '044dc12648a1f41374679281da63e93b'; | 232 | let bsm = '044dc12648a1f41374679281da63e93b'; |
232 | this.getData(bsm) | 233 | this.bsm=bsm; |
234 | this.getData(this.bsm) | ||
233 | }, | 235 | }, |
234 | methods: { | 236 | methods: { |
235 | getData(bsm) { | 237 | getData(bsm) { |
... | @@ -239,6 +241,7 @@ | ... | @@ -239,6 +241,7 @@ |
239 | res.result[i]['jjisdisabled'] = 'readonly'; | 241 | res.result[i]['jjisdisabled'] = 'readonly'; |
240 | res.result[i]['jzxisdisabled'] = true; | 242 | res.result[i]['jzxisdisabled'] = true; |
241 | } | 243 | } |
244 | this.isCheckAll=false; | ||
242 | this.jzxlist = res.result; | 245 | this.jzxlist = res.result; |
243 | }) | 246 | }) |
244 | }, | 247 | }, |
... | @@ -248,6 +251,7 @@ | ... | @@ -248,6 +251,7 @@ |
248 | console.log(res) | 251 | console.log(res) |
249 | if (res.success) { | 252 | if (res.success) { |
250 | Message.success("保存成功") | 253 | Message.success("保存成功") |
254 | this.getData(this.bsm) | ||
251 | } else { | 255 | } else { |
252 | Message.error(res.message) | 256 | Message.error(res.message) |
253 | } | 257 | } |
... | @@ -311,11 +315,11 @@ | ... | @@ -311,11 +315,11 @@ |
311 | } | 315 | } |
312 | } | 316 | } |
313 | jzxsbatchModify(this.batchJzx).then(res => { | 317 | jzxsbatchModify(this.batchJzx).then(res => { |
314 | console.log(res) | ||
315 | if (res.success) { | 318 | if (res.success) { |
319 | this.getData(this.bsm) | ||
316 | this.centerDialogVisible = false; | 320 | this.centerDialogVisible = false; |
317 | } else { | 321 | } else { |
318 | Message.error("修改失败") | 322 | Message.error(res.message) |
319 | } | 323 | } |
320 | }) | 324 | }) |
321 | } | 325 | } | ... | ... |
-
Please register or sign in to post a comment