Commit d2b85f40 by 李伟康

提交

1 parent 2ecfbe45
......@@ -204,18 +204,22 @@ export default {
confName: data.merchantName
}]
})
let description = decodeURIComponent(data.description),
endTimeType = 0,
numWin = data.numWin,
endTime = data.endTime
endTime = data.endTime,
groupLimitList = []
this.$refs.formRef.$refs.descriptionTextBox[0].setEdit(description)
if (endTime) {
if (endTime != data.lotteryTime) endTimeType = 1
endTime = dayjs(endTime).format('YYYY/MM/DD HH:mm:ss')
}
if (data.numType == 1) numWin = 0
if(data.groupLimitOpen) {
if (data.groupLimitOpen) {
data.groupLimits.map(e => {
groupLimitList.push(Number(e))
})
}
this.configForm = {
description,
......@@ -227,7 +231,7 @@ export default {
endTimeType,
lotteryTime: dayjs(data.lotteryTime).format('YYYY/MM/DD HH:mm:ss'),
groupLimitOpen: data.groupLimitOpen,
groupLimitList:data.groupLimits,
groupLimitList,
rewardType: data.rewardType,
rewardId: data.rewardId,
numWin,
......@@ -242,7 +246,7 @@ export default {
},
async getMerchantList (merchantName = '') {
if(!merchantName) return
if (!merchantName) return
this.$loading()
try {
const { list } = await this.$apis.redenvelope.getRedEnvelopeMerchantList({
......@@ -272,7 +276,6 @@ export default {
this.formRef.clearValidate('rewardId')
},
handleConfirm () {
console.log()
this.formRef.validate(async valid => {
if (valid) {
try {
......@@ -297,13 +300,12 @@ export default {
}
})
},
async getMerchantWechatGroupList(merchantIdList){
async getMerchantWechatGroupList (merchantIdList) {
try {
const res = await this.$apis.solitaire.getMerchantWechatGroupList({
const res = await this.$apis.solitaire.getMerchantWechatGroupList({
merchantIdList
})
this.groupLimitList = res
console.log(res)
this.groupLimitList = res || []
} catch (error) {
console.log(error)
if (error) this.$message.error(error)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!