a9e38a86 by joe

交互上稍微调整

1 parent 499701bd
......@@ -72,6 +72,8 @@ export default {
modalIcon: "succ",
modalContent: "",
lastPolicyCode: "",
// 国际号码区号列表
nationsPhoneCodeList: [],
// 国际地区区号
......@@ -330,10 +332,13 @@ export default {
// 获取省份
this.provinceList = getCnProvinceList(this.$i18n.locale);
if (this.dataInit) {
// if (this.dataInit) {
// return;
// }
if (this.loading) {
return;
}
if (this.loading) {
if (!this.selectedPolicies || this.selectedPolicies.length == 0) {
return;
}
// this.data = null;
......@@ -342,6 +347,12 @@ export default {
policyId: this.selectedPolicies[0].id,
policyCode: this.selectedPolicies[0].code
};
if (this.lastPolicyCode == param.policyCode) {
return;
}
this.lastPolicyCode = param.policyCode;
httpPost({
url: api.policyContactDetailApi,
data: param,
......@@ -361,6 +372,7 @@ export default {
}
})
.catch(res => {
this.loading = false;
if (res.code == "404") {
this.$refs.auth.noAuth();
}
......@@ -384,7 +396,7 @@ export default {
console.error(e);
}
},
uploadExcel() {},
uploadExcel() { },
// aaa(){
// httpPost({
// url: api.indexManageListApi,
......@@ -397,29 +409,29 @@ export default {
// console.log("ttt:", ttt);
// })
// .catch(res => {});
// }
},
watch: {
"data.mobile": function() {
"data.mobile": function () {
this.errorTips.e1 = "";
},
"data.address": function() {
"data.address": function () {
this.errorTips.e2 = "";
},
"data.email": function() {
"data.email": function () {
this.errorTips.e3 = "";
},
"data.mobileAreaCode": function() {
"data.mobileAreaCode": function () {
this.errorTips.e4 = "";
},
"data.countryId": function() {
"data.countryId": function () {
this.errorTips.e5 = "";
},
"data.provinceId": function() {
"data.provinceId": function () {
this.errorTips.e6 = "";
},
"data.cityId": function() {
"data.cityId": function () {
this.errorTips.e7 = "";
}
},
......@@ -430,7 +442,7 @@ export default {
this.$root.eventBus.$on("langChange", () => {
try {
this.initData();
} catch (e) {}
} catch (e) { }
});
}
};
......