fix: 合并城市之后, 只要有一个城市有数据就行

main
Lei OT 1 year ago
parent a3e7a05526
commit a590c056b1

@ -389,6 +389,15 @@
for (const iterator of selectedCity.cii_sn_arr) {
this.getData(Object.assign({}, _param, { CITY_SN: iterator }), true);
}
if (this.feedbackItem.guide.length === 0
&& this.feedbackItem.driver.length === 0
&& this.feedbackItem.experience.length === 0
&& this.feedbackItem.hotel.length === 0
) {
this.error = true;
this.errorMsg = 'Data error.';
return false;
}
} else {
this.getData(Object.assign({}, _param, { CITY_SN: selectedCity.cii_sn }));
}
@ -419,8 +428,10 @@
).then((res) => {
that.loading = false;
if (res.errcode !== 0) {
if (continually === false) {
that.error = true;
that.errorMsg = 'Data error.';
}
return false;
}
that.feedbackCity[`city_${res.feedbackEvaluation[0].feedback_cii_sn}`] = res;

Loading…
Cancel
Save