店铺设置增加是否使用本地数据的开关
This commit is contained in:
parent
885f35851a
commit
1f5a2e8318
@ -5,6 +5,7 @@ export const defaultShopData: IShopData = {
|
|||||||
name: '',
|
name: '',
|
||||||
address: '',
|
address: '',
|
||||||
logo: '',
|
logo: '',
|
||||||
|
local: 0,
|
||||||
qtypes: []
|
qtypes: []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
src/api/types.d.ts
vendored
1
src/api/types.d.ts
vendored
@ -31,4 +31,5 @@ export interface IShopData {
|
|||||||
qtypes: string[]
|
qtypes: string[]
|
||||||
location?: number[]
|
location?: number[]
|
||||||
numid?: number
|
numid?: number
|
||||||
|
local: number
|
||||||
}
|
}
|
||||||
|
@ -192,7 +192,6 @@ export default class extends Vue {
|
|||||||
} else {
|
} else {
|
||||||
this.postForm.shop = UserModule.department
|
this.postForm.shop = UserModule.department
|
||||||
this.getUserList(this.postForm.shop)
|
this.getUserList(this.postForm.shop)
|
||||||
this.getCouponList(this.postForm.shop)
|
|
||||||
}
|
}
|
||||||
if (id) {
|
if (id) {
|
||||||
this.fetchData(id)
|
this.fetchData(id)
|
||||||
@ -276,7 +275,6 @@ export default class extends Vue {
|
|||||||
})
|
})
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
this.postForm.shopShop = this.getShopName(this.postForm.shop)
|
|
||||||
if (this.postForm.type === 1) {
|
if (this.postForm.type === 1) {
|
||||||
this.postForm.shops = [this.postForm.shop]
|
this.postForm.shops = [this.postForm.shop]
|
||||||
}
|
}
|
||||||
|
@ -96,6 +96,15 @@
|
|||||||
更新座标
|
更新座标
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</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
|
<el-form-item
|
||||||
prop="imageURL"
|
prop="imageURL"
|
||||||
label="logo"
|
label="logo"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user