售卖时间管控
This commit is contained in:
parent
0bccf5db8a
commit
611194b587
|
|
@ -69,6 +69,7 @@ export default {
|
||||||
isShow: 1,
|
isShow: 1,
|
||||||
sort: 0,
|
sort: 0,
|
||||||
productIds: [],
|
productIds: [],
|
||||||
|
saleTime:[],
|
||||||
useTime: 0,
|
useTime: 0,
|
||||||
shopId: localStorage.getItem('shopId')
|
shopId: localStorage.getItem('shopId')
|
||||||
},
|
},
|
||||||
|
|
@ -114,7 +115,7 @@ export default {
|
||||||
return falg
|
return falg
|
||||||
},
|
},
|
||||||
onSubmitHandle() {
|
onSubmitHandle() {
|
||||||
|
console.log(this.form.saleTime)
|
||||||
this.$refs.form.validate(async valid => {
|
this.$refs.form.validate(async valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|
@ -152,13 +153,18 @@ export default {
|
||||||
},
|
},
|
||||||
show(obj) {
|
show(obj) {
|
||||||
if (obj && obj.id) {
|
if (obj && obj.id) {
|
||||||
|
console.log(obj, '调试1')
|
||||||
|
this.form = obj
|
||||||
this.form.id = obj.id
|
this.form.id = obj.id
|
||||||
this.form.isShow = obj.isShow
|
this.form.isShow = obj.isShow
|
||||||
this.form.name = obj.name
|
this.form.name = obj.name
|
||||||
this.form.sort = obj.sort
|
this.form.sort = obj.sort
|
||||||
this.form.productIds = obj.productIds
|
this.form.productIds = obj.productIds
|
||||||
|
this.$set(this.form , 'saleTime',[obj.saleStartTime, obj.saleEndTime])
|
||||||
this.getProduts()
|
this.getProduts()
|
||||||
|
console.log(this.form, '调试1')
|
||||||
}
|
}
|
||||||
|
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue