feat: 买家端使用最新地址选择器,默认在config关闭高德地图功能,开启后可继续使用

master
Yer 2023-08-03 16:36:41 +08:00
parent 552b4c605d
commit 128ad892d1
7 changed files with 325 additions and 174 deletions

View File

@ -12,12 +12,8 @@
<i-input v-model="formData.name" style="width: 600px"></i-input> <i-input v-model="formData.name" style="width: 600px"></i-input>
</FormItem> </FormItem>
<FormItem label="收件地区" prop="address"> <FormItem label="收件地区" prop="address">
<i-input {{ formData.address || '暂无地址' }}
v-model="formData.address" <Button type="primary" style="margin-left: 10px;" size="small" @click="$refs.map.open()"></Button>
disabled
style="width: 600px"
></i-input>
<Button type="primary" size="small" @click="$refs.map.showMap = true">选择</Button>
</FormItem> </FormItem>
<FormItem label="详细地址" prop="detail"> <FormItem label="详细地址" prop="detail">
<i-input v-model="formData.detail" style="width: 600px"></i-input> <i-input v-model="formData.detail" style="width: 600px"></i-input>
@ -43,12 +39,12 @@
<Button type="primary" class="mr_10" :loading="loading" @click="save"></Button> <Button type="primary" class="mr_10" :loading="loading" @click="save"></Button>
</div> </div>
</Modal> </Modal>
<lili-map ref="map" @getAddress="getAddress"></lili-map> <multipleMap ref="map" @callback="getAddress"></multipleMap>
</div> </div>
</template> </template>
<script> <script>
import liliMap from '@/components/map'; import multipleMap from "@/components/map/multiple-map";
import { import {
newMemberAddress, newMemberAddress,
editMemberAddress, editMemberAddress,
@ -129,14 +125,24 @@ export default {
} }
}); });
}, },
getAddress (item) { getAddress (val) {
// //
this.mapMsg = item; if(val.type === 'select'){
this.$set(this.formData, 'address', item.addr); const paths = val.data.map(item => item.name).join(',')
this.$set(this.formData, 'consigneeAddressIdPath', item.addrId); const ids = val.data.map(item => item.id).join(',')
this.$set(this.formData, 'detail', item.detail); this.$set(this.formData,'address',paths)
this.formData.lat = item.position.lat; this.$set(this.formData,'consigneeAddressIdPath',ids)
this.formData.lon = item.position.lng; const coord = val.data[val.data.length - 1].center.split(',')
this.formData.lat = coord[1]
this.formData.lon = coord[0]
}else{
this.$set(this.formData, "address", val.data.addr);
this.$set(this.formData, "consigneeAddressIdPath", val.data.addrId);
this.$set(this.formData, "detail", val.data.address);
this.formData.lat = val.data.position.lat;
this.formData.lon = val.data.position.lng;
}
}, },
show () { // show () { //
this.showAddr = true; this.showAddr = true;
@ -158,7 +164,7 @@ export default {
} }
}, },
components: { components: {
liliMap multipleMap
} }
}; };
</script> </script>

View File

@ -1,114 +1,94 @@
<template> <template>
<div class="lili-map"> <div class="map">
<Modal v-model="showMap" title="选择地址" width="800">
<div class="address">{{ addrContent.address }}</div> <div class="address">{{ addrContent.address }}</div>
<div id="map-container"></div> <div id="map-container"></div>
<div class="search-con"> <div class="search-con">
<Input <Input placeholder="输入关键字搜索" id="input-map" v-model="mapSearch" />
placeholder="输入关键字搜索"
id="input-map"
v-model="mapSearch"
/>
<ul> <ul>
<li <li v-for="(tip, index) in tips" :key="index" @click="selectAddr(tip.location)">
v-for="(tip, index) in tips"
:key="index"
@click="selectAddr(tip.location)"
>
<p>{{ tip.name }}</p> <p>{{ tip.name }}</p>
<p>{{ tip.district + tip.address }}</p> <p>{{ tip.district + tip.address }}</p>
</li> </li>
</ul> </ul>
</div> </div>
<div slot="footer"> <div slot="footer" class="footer">
<Button type="default" @click="showMap = false">取消</Button>
<Button type="primary" :loading="loading" @click="ok"></Button> <Button type="primary" :loading="loading" @click="ok"></Button>
</div> </div>
</Modal>
</div> </div>
</template> </template>
<script> <script>
import AMapLoader from '@amap/amap-jsapi-loader'; import AMapLoader from "@amap/amap-jsapi-loader";
import { handleRegion } from '@/api/address.js'; import { handleRegion } from "@/api/address.js";
const config = require('@/config/index')
export default { export default {
name: 'map', name: "map",
props: {
useApi: {
default: true,
type: Boolean
}
},
data() { data() {
return { return {
config:require('@/config'), config,
showMap: false, // showMap: false, //
mapSearch: '', // mapSearch: "", //
map: null, // map: null, //
autoComplete: null, // autoComplete: null, //
geocoder: null, // geocoder: null, //
positionPicker: null, // positionPicker: null, //
tips: [], // tips: [], //
addrContent: {}, // addrContent: {}, //
loading: false // loading: false, //
}; };
}, },
watch: { watch: {
//
mapSearch: function (val) { mapSearch: function (val) {
this.searchOfMap(val); this.searchOfMap(val);
} },
}, },
methods: { methods: {
ok() { ok() {
//
this.loading = true; if (this.addrContent && this.addrContent.regeocode) {
const address = this.addrContent.address;
const township = this.addrContent.regeocode.addressComponent.township;
const index = address.indexOf(township) + township.length;
this.addrContent.detail = address.substring(index);
const params = { const params = {
cityCode: this.addrContent.regeocode.addressComponent.citycode, cityCode: this.addrContent.regeocode.addressComponent.citycode,
townName: this.addrContent.regeocode.addressComponent.township townName: this.addrContent.regeocode.addressComponent.township,
}; };
if (this.useApi) {
handleRegion(params).then((res) => { handleRegion(params).then((res) => {
this.loading = false;
if (res.success) { if (res.success) {
this.showMap = false; this.addrContent.addr = res.result.name.replace(/,/g, " ");
this.addrContent.addr = res.result.name.replace(/,/g, ' ');
this.addrContent.addrId = res.result.id; this.addrContent.addrId = res.result.id;
this.$emit('getAddress', this.addrContent); this.loading = false;
this.$emit("getAddress", this.addrContent);
} }
}); });
} else { } else {
this.loading = false; this.$Message.error('未获取到坐标信息请查看高德API配置是否正确')
this.showMap = false;
this.$emit('getAddress', this.addrContent);
} }
}, },
init () { // init() {
AMapLoader.load({ AMapLoader.load({
key: this.config.aMapKey, // WebKey load key: this.config.aMapKey, // WebKey load
version: '', // JSAPI 1.4.15 version: "", // JSAPI 1.4.15
plugins: [ plugins: [
'AMap.ToolBar', "AMap.ToolBar",
'AMap.Autocomplete', "AMap.Autocomplete",
'AMap.PlaceSearch', "AMap.PlaceSearch",
'AMap.Geolocation', "AMap.Geolocation",
'AMap.Geocoder' "AMap.Geocoder",
], // 使'AMap.Scale' ], // 使'AMap.Scale'
AMapUI: { AMapUI: {
// AMapUI // AMapUI
version: '1.1', // AMapUI 1.1 version: "1.1", // AMapUI 1.1
plugins: ['misc/PositionPicker'] // AMapUI ui plugins: ["misc/PositionPicker"], // AMapUI ui
} },
}) })
.then((AMap) => { .then((AMap) => {
let that = this; let that = this;
this.map = new AMap.Map('map-container', { this.map = new AMap.Map("map-container", {
zoom: 12 zoom: 12,
}); });
that.map.addControl(new AMap.ToolBar()); that.map.addControl(new AMap.ToolBar());
that.map.addControl(new AMap.Autocomplete()); that.map.addControl(new AMap.Autocomplete());
@ -117,15 +97,15 @@ export default {
// Autocomplete // Autocomplete
let autoOptions = { let autoOptions = {
city: '全国' city: "全国",
}; };
that.autoComplete = new AMap.Autocomplete(autoOptions); // that.autoComplete = new AMap.Autocomplete(autoOptions); //
that.geocoder = new AMap.Geocoder(autoOptions); that.geocoder = new AMap.Geocoder(autoOptions);
that.positionPicker = new AMapUI.PositionPicker({ that.positionPicker = new AMapUI.PositionPicker({
// //
mode: 'dragMap', mode: "dragMap",
map: that.map map: that.map,
}); });
that.positionPicker.start(); that.positionPicker.start();
/** /**
@ -134,8 +114,7 @@ export default {
* 需要字段可以查找 * 需要字段可以查找
* *
*/ */
that.positionPicker.on('success', function (positionResult) { that.positionPicker.on("success", function (positionResult) {
// console.log(positionResult);
that.addrContent = positionResult; that.addrContent = positionResult;
}); });
}) })
@ -146,7 +125,7 @@ export default {
let that = this; let that = this;
this.autoComplete.search(val, function (status, result) { this.autoComplete.search(val, function (status, result) {
// result // result
if (status === 'complete' && result.info === 'OK') { if (status == "complete" && result.info == "OK") {
that.tips = result.tips; that.tips = result.tips;
} else { } else {
that.tips = []; that.tips = [];
@ -156,16 +135,16 @@ export default {
selectAddr(location) { selectAddr(location) {
// //
if (!location) { if (!location) {
this.$Message.warning('请选择正确点位'); this.$Message.warning("请选择正确点位");
return false; return false;
} }
const lnglat = [location.lng, location.lat]; const lnglat = [location.lng, location.lat];
this.positionPicker.start(lnglat); this.positionPicker.start(lnglat);
} },
}, },
mounted() { mounted() {
this.init(); this.init();
} },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -179,16 +158,20 @@ export default {
right: 20px; right: 20px;
top: 64px; top: 64px;
width: 260px; width: 260px;
ul { ul {
width: 260px; width: 260px;
height: 400px; height: 360px;
overflow: scroll; overflow: scroll;
li { li {
padding: 5px; padding: 5px;
p:nth-child(2) { p:nth-child(2) {
color: #999; color: #999;
font-size: 12px; font-size: 12px;
} }
&:hover { &:hover {
background-color: #eee; background-color: #eee;
cursor: pointer; cursor: pointer;
@ -199,6 +182,12 @@ export default {
.address { .address {
margin-bottom: 10px; margin-bottom: 10px;
// color: $theme_color;
font-weight: bold; font-weight: bold;
} }
.footer {
text-align: right;
margin: 10px 0;
}
</style> </style>

View File

@ -0,0 +1,147 @@
<template>
<Modal width="800" footer-hide v-model="enableMap">
<RadioGroup @on-change="changeMap" v-model="mapDefault" type="button">
<Radio label="select">级联选择</Radio>
<Radio label="map" v-if="aMapSwitch"></Radio>
</RadioGroup>
<div>
<div v-if="mapDefault === 'select'">
<div class="selector">
<div class="selector-item" v-for="(plant, plantIndex) in Object.keys(data)" :key="plantIndex">
<div :class="{ 'active': chiosend[plantIndex].id == item.id }" v-for="(item, index) in data[plant]"
:key="index"
@click="init(item, plantIndex != Object.keys(data).length - 1 ? Object.keys(data)[plantIndex + 1] : 0, plantIndex)"
class="map-item">
{{ item.name }}
</div>
</div>
</div>
<div class="footer">
<Button type="primary" @click="finished"></Button>
</div>
</div>
<mapping v-if="mapDefault === 'map'" ref="map" @getAddress="getAddress" />
</div>
</Modal>
</template>
<script>
import { aMapSwitch } from '@/config/index'
import mapping from "@/components/map/index.vue";
import * as API_Setup from "@/api/common.js";
export default {
components: { mapping },
data() {
return {
aMapSwitch,
enableMap: false,
mapDefault: "select",
data: {
province: [], //
city: [], //
area: [], //
street: [], //
},
chiosend: [],
};
},
mounted() {
this.chiosend = new Array(4).fill("");
},
methods: {
open() {
this.enableMap = true
this.init({ id: 0 }, 'province');
},
changeMap(val) {
this.mapDefault = val
},
init(val, level = 'province', index) {
if (level == 0) {
// id
this.chiosend.splice(3, 1, val);
}
else {
API_Setup.getRegion(val.id).then((res) => {
if (res.result.length && val.id !== 0) {
this.chiosend[index] = val
}
this.data[level] = res.result;
if (level == 'city') {
this.data.area = []
this.data.street = []
}
if (level == 'area') {
this.data.street = []
}
});
}
},
getAddress(center) {
this.$emit('callback', {
type: this.mapDefault,
data: center
})
this.enableMap = false;
},
//
finished() {
if(!this.chiosend[0]){
this.$Message.error("请选择地址")
return
}
const params = this.chiosend.filter((item) => item!=="" && item.value !== "");
this.enableMap = false;
this.$emit('callback', {
type: this.mapDefault,
data: params
})
},
},
}
</script>
<style lang="scss" scoped>
.selector {
height: 400px;
padding: 10px 0;
display: flex;
}
.selector-item {
width: 100%;
flex: 1;
overflow: auto;
}
.map-item {
width: 100%;
padding: 10px;
border-bottom: 1px solid #eee;
cursor: pointer;
&:hover {
background: #eee;
}
}
.active {
background: #eee;
}
.footer {
text-align: right;
margin: 10px 0;
}
</style>

View File

@ -16,6 +16,7 @@ module.exports = {
//FIXME 请检查当前高德key创建的日期如果2021年12月02日之前申请的 无需填写安全密钥 //FIXME 请检查当前高德key创建的日期如果2021年12月02日之前申请的 无需填写安全密钥
aMapSecurityJsCode:"2bd0fbf621881f4c77be74f0e76495f3", // 高德web端js申请的安全密钥 aMapSecurityJsCode:"2bd0fbf621881f4c77be74f0e76495f3", // 高德web端js申请的安全密钥
aMapKey: "7f11113750315d8543daaf5c3ba353ca", //高德web端js申请的api key aMapKey: "7f11113750315d8543daaf5c3ba353ca", //高德web端js申请的api key
aMapSwitch:false, //是否开启高德定位
enableCDN: true, //生产环境 是否启用cdn加载 vue等js enableCDN: true, //生产环境 是否启用cdn加载 vue等js
port: 10000, //端口 port: 10000, //端口
inputMaxLength:'140' //全局输入框默认最大输入长度字 inputMaxLength:'140' //全局输入框默认最大输入长度字

View File

@ -7,8 +7,9 @@
<i-input v-model="formData.name" placeholder="请输入收件人姓名" style="width: 600px"></i-input> <i-input v-model="formData.name" placeholder="请输入收件人姓名" style="width: 600px"></i-input>
</FormItem> </FormItem>
<FormItem label="收件地区" prop="address"> <FormItem label="收件地区" prop="address">
<i-input v-model="formData.address" disabled placeholder="请选择收货地址" style="width: 600px"></i-input> <span>{{ formData.address || '暂无地址' }}</span>
<Button type="primary" size="small" @click="$refs.map.showMap = true">选择</Button>
<Button type="default" style="margin-left: 10px;" size="small" @click="$refs.map.open()"></Button>
</FormItem> </FormItem>
<FormItem label="详细地址" prop="detail"> <FormItem label="详细地址" prop="detail">
<i-input v-model="formData.detail" placeholder="请输入详细地址" style="width: 600px"></i-input> <i-input v-model="formData.detail" placeholder="请输入详细地址" style="width: 600px"></i-input>
@ -29,14 +30,15 @@
<Button type="primary" class="mr_10" :loading="loading" @click="save"></Button> <Button type="primary" class="mr_10" :loading="loading" @click="save"></Button>
<Button @click="$router.back()"></Button> <Button @click="$router.back()"></Button>
</div> </div>
<lili-map ref="map" @getAddress="getAddress"></lili-map>
<multipleMap ref="map" @callback="getAddress" />
</div> </div>
</template> </template>
<script> <script>
import card from "@/components/card"; import card from "@/components/card";
import liliMap from "@/components/map";
import multipleMap from "@/components/map/multiple-map";
import * as RegExp from "@/plugins/RegExp.js"; import * as RegExp from "@/plugins/RegExp.js";
import { import {
newMemberAddress, newMemberAddress,
@ -117,15 +119,25 @@ export default {
} }
}); });
}, },
getAddress(item) { getAddress(val) {
// //
console.log(item); if(val.type === 'select'){
this.mapMsg = item; const paths = val.data.map(item => item.name).join(',')
this.$set(this.formData, "address", item.addr); const ids = val.data.map(item => item.id).join(',')
this.$set(this.formData, "consigneeAddressIdPath", item.addrId); this.$set(this.formData,'address',paths)
this.$set(this.formData, "detail", item.detail); this.$set(this.formData,'consigneeAddressIdPath',ids)
this.formData.lat = item.position.lat; const coord = val.data[val.data.length - 1].center.split(',')
this.formData.lon = item.position.lng; this.formData.lat = coord[1]
this.formData.lon = coord[0]
}else{
this.$set(this.formData, "address", val.data.addr);
this.$set(this.formData, "consigneeAddressIdPath", val.data.addrId);
this.$set(this.formData, "detail", val.data.address);
this.formData.lat = val.data.position.lat;
this.formData.lon = val.data.position.lng;
}
}, },
}, },
mounted() { mounted() {
@ -134,7 +146,7 @@ export default {
}, },
components: { components: {
card, card,
liliMap, multipleMap
}, },
}; };
</script> </script>

View File

@ -10,11 +10,8 @@
/> />
</FormItem> </FormItem>
<FormItem prop="companyAddressIdPath" label="公司所在地"> <FormItem prop="companyAddressIdPath" label="公司所在地">
<region <span>{{ form.companyAddressPath || '暂无地址' }}</span>
style="width: 250px" <Button type="default" style="margin-left: 10px;" @click="$refs.map.open()"></Button>
@selected="selectedRegion"
:addressId="address"
/>
</FormItem> </FormItem>
<FormItem prop="companyAddress" label="公司详细地址"> <FormItem prop="companyAddress" label="公司详细地址">
<Input <Input
@ -187,16 +184,18 @@
<Modal title="View Image" v-model="visible"> <Modal title="View Image" v-model="visible">
<img :src="previewPicture" v-if="visible" style="width: 100%" /> <img :src="previewPicture" v-if="visible" style="width: 100%" />
</Modal> </Modal>
<multipleMap ref="map" @callback="getAddress" />
</div> </div>
</template> </template>
<script> <script>
import { applyFirst } from '@/api/shopentry'; import { applyFirst } from '@/api/shopentry';
import * as RegExp from '@/plugins/RegExp.js'; import * as RegExp from '@/plugins/RegExp.js';
import region from '@/components/map/region.vue'; import multipleMap from "@/components/map/multiple-map";
import storage from '@/plugins/storage'; import storage from '@/plugins/storage';
import { commonUrl } from '@/plugins/request.js'; import { commonUrl } from '@/plugins/request.js';
export default { export default {
components: { region }, components: { multipleMap },
props: { props: {
content: { content: {
default: {}, default: {},
@ -209,7 +208,7 @@ export default {
accessToken: {}, // token accessToken: {}, // token
visible: false, // visible: false, //
loading: false, // loading: false, //
address: '', //
previewPicture: '', // url previewPicture: '', // url
form: { // form: { //
legalPhoto: [], legalPhoto: [],
@ -258,6 +257,19 @@ export default {
}; };
}, },
methods: { methods: {
//
getAddress(val){
if(val.type === 'select'){
const paths = val.data.map(item => item.name).join(',')
const ids = val.data.map(item => item.id).join(',')
this.$set(this.form, 'companyAddressIdPath', ids)
this.$set(this.form, 'companyAddressPath', paths)
}else{
this.$set(this.form, 'companyAddressIdPath', val.data.addrId)
this.$set(this.form, 'companyAddressPath', val.data.addr)
}
},
// //
next () { next () {
this.$refs.firstForm.validate((valid) => { this.$refs.firstForm.validate((valid) => {
@ -279,15 +291,7 @@ export default {
} }
}); });
}, },
//
selectedRegion (item) {
this.$set(this.form, 'companyAddressIdPath', item[0].toString());
this.$set(
this.form,
'companyAddressPath',
item[1].toString().replace(/\s/g, '')
);
},
// //
beforeUpload () { beforeUpload () {
this.uploadLoading = true; this.uploadLoading = true;
@ -354,7 +358,7 @@ export default {
if (this.form.licencePhoto) { if (this.form.licencePhoto) {
this.form.legalPhoto = this.content.legalPhoto.split(','); this.form.legalPhoto = this.content.legalPhoto.split(',');
this.form.licencePhoto = this.content.licencePhoto.split(','); this.form.licencePhoto = this.content.licencePhoto.split(',');
this.address = this.form.companyAddressIdPath;
} }
} }
} }

View File

@ -60,24 +60,10 @@
> >
</Select> </Select>
</FormItem> </FormItem>
<FormItem prop="storeCenter" label="店铺定位">
<Button
type="info"
v-if="!form.storeCenter"
@click="$refs.liliMap.showMap = true"
>点击获取店铺定位</Button>
<Button
type="success"
v-else
@click="$refs.liliMap.showMap = true"
>已定位</Button>
</FormItem>
<FormItem prop="storeAddressIdPath" label="店铺所在地"> <FormItem prop="storeAddressIdPath" label="店铺所在地">
<region <span>{{ form.storeAddressPath || '暂无地址' }}</span>
style="width: 250px" <Button type="default" style="margin-left: 10px;" @click="$refs.map.open()"></Button>
@selected="selectedRegion"
:addressId="address"
/>
</FormItem> </FormItem>
<FormItem prop="storeAddressDetail" label="店铺详细地址"> <FormItem prop="storeAddressDetail" label="店铺详细地址">
<Input <Input
@ -107,16 +93,20 @@
<Modal title="View Image" v-model="visible"> <Modal title="View Image" v-model="visible">
<img :src="previewPicture" v-if="visible" style="width: 100%" /> <img :src="previewPicture" v-if="visible" style="width: 100%" />
</Modal> </Modal>
<lili-map ref="liliMap" @getAddress="getAddress" :useApi="false"></lili-map> <multipleMap ref="map" @callback="getAddress" />
</div> </div>
</template> </template>
<script> <script>
import { applyThird } from '@/api/shopentry'; import { applyThird } from '@/api/shopentry';
import { getCategory } from '@/api/goods'; import { getCategory } from '@/api/goods';
import Map from '@/components/map/index';
import storage from '@/plugins/storage'; import storage from '@/plugins/storage';
import { commonUrl } from '@/plugins/request.js'; import { commonUrl } from '@/plugins/request.js';
import region from '@/components/map/region.vue';
import multipleMap from "@/components/map/multiple-map";
export default { export default {
props: { props: {
content: { content: {
@ -124,7 +114,7 @@ export default {
type: Object type: Object
} }
}, },
components: { liliMap: Map, region }, components: { multipleMap },
data () { data () {
return { return {
loading: false, // loading: false, //
@ -132,7 +122,7 @@ export default {
action: commonUrl + '/common/common/upload/file', // action: commonUrl + '/common/common/upload/file', //
accessToken: {}, // token accessToken: {}, // token
previewPicture: '', // previewPicture: '', //
address: '', //
visible: false, // visible: false, //
form: { // form: { //
storeLogo: [] storeLogo: []
@ -217,12 +207,22 @@ export default {
this.form[listName].splice(index, 1); this.form[listName].splice(index, 1);
}, },
// //
getAddress (item) { getAddress (val) {
if(val.type === 'select'){
const paths = val.data.map(item => item.name).join(',')
const ids = val.data.map(item => item.id).join(',')
this.$set(this.form, "storeAddressPath", paths);
this.$set(this.form, "storeAddressIdPath", ids);
this.form.storeCenter = val.data[val.data.length - 1].center
}else{
this.$set(this.form, "storeAddressPath", val.data.addr);
this.$set(this.form, "storeAddressIdPath", val.data.addrId);
this.$set( this.$set(
this.form, this.form,
'storeCenter', 'storeCenter',
item.position.lng + ',' + item.position.lat val.data.position.lng + ',' + val.data.position.lat
); );
}
}, },
// //
getCategoryList () { getCategoryList () {
@ -230,15 +230,8 @@ export default {
if (res.success) this.categoryList = res.result; if (res.success) this.categoryList = res.result;
}); });
}, },
//
selectedRegion (item) {
this.$set(this.form, 'storeAddressIdPath', item[0].toString());
this.$set(
this.form,
'storeAddressPath',
item[1].toString().replace(/\s/g, '')
);
}
}, },
mounted () { mounted () {
this.accessToken.accessToken = storage.getItem('accessToken'); this.accessToken.accessToken = storage.getItem('accessToken');
@ -253,7 +246,6 @@ export default {
} else { } else {
this.form.storeLogo = []; this.form.storeLogo = [];
} }
this.address = this.form.storeAddressIdPath;
this.$forceUpdate(); this.$forceUpdate();
} }
this.$refs.thirdForm.resetFields() this.$refs.thirdForm.resetFields()