店铺设置增加是否使用本地数据的开关
This commit is contained in:
parent
885f35851a
commit
1f5a2e8318
@ -5,6 +5,7 @@ export const defaultShopData: IShopData = {
|
||||
name: '',
|
||||
address: '',
|
||||
logo: '',
|
||||
local: 0,
|
||||
qtypes: []
|
||||
}
|
||||
|
||||
|
1
src/api/types.d.ts
vendored
1
src/api/types.d.ts
vendored
@ -31,4 +31,5 @@ export interface IShopData {
|
||||
qtypes: string[]
|
||||
location?: number[]
|
||||
numid?: number
|
||||
local: number
|
||||
}
|
||||
|
@ -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]
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user