修复policy-head-list 多选样式不刷新
Showing
3 changed files
with
4 additions
and
17 deletions
... | @@ -317,7 +317,7 @@ export default { | ... | @@ -317,7 +317,7 @@ export default { |
317 | 317 | ||
318 | // 获取省份 | 318 | // 获取省份 |
319 | this.provinceList = getCnProvinceList(this.$i18n.locale); | 319 | this.provinceList = getCnProvinceList(this.$i18n.locale); |
320 | // console.log("this.provinceList:", this.provinceList); | 320 | |
321 | 321 | ||
322 | if (this.dataInit) { | 322 | if (this.dataInit) { |
323 | return; | 323 | return; |
... | @@ -337,8 +337,6 @@ export default { | ... | @@ -337,8 +337,6 @@ export default { |
337 | sid: true | 337 | sid: true |
338 | }) | 338 | }) |
339 | .then(response => { | 339 | .then(response => { |
340 | // this.data = {}; | ||
341 | // console.log("response:", response); | ||
342 | this.loading = false; | 340 | this.loading = false; |
343 | this.dataInit = true; | 341 | this.dataInit = true; |
344 | if (response) { | 342 | if (response) { |
... | @@ -350,16 +348,6 @@ export default { | ... | @@ -350,16 +348,6 @@ export default { |
350 | ); | 348 | ); |
351 | } | 349 | } |
352 | } | 350 | } |
353 | // if (response) { | ||
354 | // this.loading = false; | ||
355 | // this.dataInit = true; | ||
356 | // this.data.mobile = response.clientMobileNo; | ||
357 | // this.checked1 = "1" == response.clientMobileAcceptMessage; | ||
358 | // this.data.address = response.clientContactAddress; | ||
359 | // this.checked2 = "1" == response.clientAddressAcceptMessage; | ||
360 | // this.data.email = response.clientEmail; | ||
361 | // this.checked3 = "1" == response.clientEmailAcceptMessage; | ||
362 | // } | ||
363 | }) | 351 | }) |
364 | .catch(res => { | 352 | .catch(res => { |
365 | if (res.code == "404") { | 353 | if (res.code == "404") { |
... | @@ -368,7 +356,6 @@ export default { | ... | @@ -368,7 +356,6 @@ export default { |
368 | }); | 356 | }); |
369 | }, | 357 | }, |
370 | handlePolicySelect(data) { | 358 | handlePolicySelect(data) { |
371 | console.log("handlePolicySelect:",data); | ||
372 | this.selectedPolicies = data; | 359 | this.selectedPolicies = data; |
373 | this.initData(); | 360 | this.initData(); |
374 | }, | 361 | }, | ... | ... |
... | @@ -5,7 +5,7 @@ | ... | @@ -5,7 +5,7 @@ |
5 | <input type="password" style="display: none;" /> | 5 | <input type="password" style="display: none;" /> |
6 | <auth @onLogin="userLogin" @onLogout="userLogout" :checkProfile="true" ref="auth" :tipModel="'m2'"></auth> | 6 | <auth @onLogin="userLogin" @onLogout="userLogout" :checkProfile="true" ref="auth" :tipModel="'m2'"></auth> |
7 | <modal-comp :visible="modalVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="modalCallback" :overlay="modalCallback"></modal-comp> | 7 | <modal-comp :visible="modalVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="modalCallback" :overlay="modalCallback"></modal-comp> |
8 | <us-tax-form-upload-comp :visible="usTaxFormUploadCompVisible" @close="usTaxFormUploadCompVisible = false" @submit="onUsTaxSubmit" ></us-tax-form-upload-comp> | 8 | <us-tax-form-upload-comp :visible="usTaxFormUploadCompVisible" @close="usTaxFormUploadCompVisible = false" @submit="onUsTaxSubmit"></us-tax-form-upload-comp> |
9 | <template v-if="showForm"> | 9 | <template v-if="showForm"> |
10 | <policy-head-list :multiSelectable="true" @onSelect="handlePolicySelect"></policy-head-list> | 10 | <policy-head-list :multiSelectable="true" @onSelect="handlePolicySelect"></policy-head-list> |
11 | 11 | ||
... | @@ -145,7 +145,7 @@ | ... | @@ -145,7 +145,7 @@ |
145 | </div> | 145 | </div> |
146 | 146 | ||
147 | </div> | 147 | </div> |
148 | </template> | 148 | </template> |
149 | </div> | 149 | </div> |
150 | </template> | 150 | </template> |
151 | 151 | ... | ... |
... | @@ -169,7 +169,7 @@ export default { | ... | @@ -169,7 +169,7 @@ export default { |
169 | item.activity = false; | 169 | item.activity = false; |
170 | delete this.selectPolicyCodes[code]; | 170 | delete this.selectPolicyCodes[code]; |
171 | } | 171 | } |
172 | // this.$set(this, 'myPolicyList', this.myPolicyList); | 172 | this.$set(this.myPolicyList, index, item); |
173 | let data = []; | 173 | let data = []; |
174 | for (let key in this.selectPolicyCodes) { | 174 | for (let key in this.selectPolicyCodes) { |
175 | data.push(this.selectPolicyCodes[key]); | 175 | data.push(this.selectPolicyCodes[key]); | ... | ... |
-
Please register or sign in to post a comment