f6af18f2 by simon

修复policy-head-list 多选样式不刷新

1 parent bbdc2758
......@@ -317,7 +317,7 @@ export default {
// 获取省份
this.provinceList = getCnProvinceList(this.$i18n.locale);
// console.log("this.provinceList:", this.provinceList);
if (this.dataInit) {
return;
......@@ -337,8 +337,6 @@ export default {
sid: true
})
.then(response => {
// this.data = {};
// console.log("response:", response);
this.loading = false;
this.dataInit = true;
if (response) {
......@@ -350,16 +348,6 @@ export default {
);
}
}
// if (response) {
// this.loading = false;
// this.dataInit = true;
// this.data.mobile = response.clientMobileNo;
// this.checked1 = "1" == response.clientMobileAcceptMessage;
// this.data.address = response.clientContactAddress;
// this.checked2 = "1" == response.clientAddressAcceptMessage;
// this.data.email = response.clientEmail;
// this.checked3 = "1" == response.clientEmailAcceptMessage;
// }
})
.catch(res => {
if (res.code == "404") {
......@@ -368,7 +356,6 @@ export default {
});
},
handlePolicySelect(data) {
console.log("handlePolicySelect:",data);
this.selectedPolicies = data;
this.initData();
},
......
......@@ -5,7 +5,7 @@
<input type="password" style="display: none;" />
<auth @onLogin="userLogin" @onLogout="userLogout" :checkProfile="true" ref="auth" :tipModel="'m2'"></auth>
<modal-comp :visible="modalVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="modalCallback" :overlay="modalCallback"></modal-comp>
<us-tax-form-upload-comp :visible="usTaxFormUploadCompVisible" @close="usTaxFormUploadCompVisible = false" @submit="onUsTaxSubmit" ></us-tax-form-upload-comp>
<us-tax-form-upload-comp :visible="usTaxFormUploadCompVisible" @close="usTaxFormUploadCompVisible = false" @submit="onUsTaxSubmit"></us-tax-form-upload-comp>
<template v-if="showForm">
<policy-head-list :multiSelectable="true" @onSelect="handlePolicySelect"></policy-head-list>
......@@ -145,7 +145,7 @@
</div>
</div>
</template>
</template>
</div>
</template>
......
......@@ -169,7 +169,7 @@ export default {
item.activity = false;
delete this.selectPolicyCodes[code];
}
// this.$set(this, 'myPolicyList', this.myPolicyList);
this.$set(this.myPolicyList, index, item);
let data = [];
for (let key in this.selectPolicyCodes) {
data.push(this.selectPolicyCodes[key]);
......