|
@@ -1848,7 +1848,7 @@ export default {
|
|
|
this.$toast('图片未上传');
|
|
this.$toast('图片未上传');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (!fromValue.storeCompetitorList.length && fromValue.otherCompetitor == '') {
|
|
|
|
|
|
|
+ if (!fromValue.storeCompetitorList.length && !fromValue.otherCompetitor) {
|
|
|
this.$toast('主营竞品品牌未填写');
|
|
this.$toast('主营竞品品牌未填写');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -1874,7 +1874,7 @@ export default {
|
|
|
this.fromValue.myLat = this.location.lat;
|
|
this.fromValue.myLat = this.location.lat;
|
|
|
this.fromValue.myLon = this.location.lon;
|
|
this.fromValue.myLon = this.location.lon;
|
|
|
console.log(this.fromValue);
|
|
console.log(this.fromValue);
|
|
|
- if (this.fromValue.otherCompetitor != '')
|
|
|
|
|
|
|
+ if (this.fromValue.otherCompetitor)
|
|
|
this.fromValue.storeCompetitorList.push(this.fromValue.otherCompetitor);
|
|
this.fromValue.storeCompetitorList.push(this.fromValue.otherCompetitor);
|
|
|
updateStore(this.fromValue).then((res) => {
|
|
updateStore(this.fromValue).then((res) => {
|
|
|
loading1.clear();
|
|
loading1.clear();
|