店铺设置增加是否使用本地数据的开关

This commit is contained in:
zhl 2021-06-11 11:35:58 +08:00
parent 885f35851a
commit 1f5a2e8318
4 changed files with 11 additions and 2 deletions

View File

@ -5,6 +5,7 @@ export const defaultShopData: IShopData = {
name: '',
address: '',
logo: '',
local: 0,
qtypes: []
}

1
src/api/types.d.ts vendored
View File

@ -31,4 +31,5 @@ export interface IShopData {
qtypes: string[]
location?: number[]
numid?: number
local: number
}

View File

@ -192,7 +192,6 @@ export default class extends Vue {
} else {
this.postForm.shop = UserModule.department
this.getUserList(this.postForm.shop)
this.getCouponList(this.postForm.shop)
}
if (id) {
this.fetchData(id)
@ -276,7 +275,6 @@ export default class extends Vue {
})
return false
}
this.postForm.shopShop = this.getShopName(this.postForm.shop)
if (this.postForm.type === 1) {
this.postForm.shops = [this.postForm.shop]
}

View File

@ -96,6 +96,15 @@
更新座标
</el-button>
</el-form-item>
<el-form-item label="使用本地数据">
<el-switch
v-model="postForm.local"
active-color="#13ce66"
inactive-color="#ff4949"
:active-value="1"
:inactive-value="0"
/>
</el-form-item>
<el-form-item
prop="imageURL"
label="logo"