Commit 2ecfbe45 by 李伟康

提交

1 parent 7c7f4524
......@@ -109,5 +109,12 @@ export default {
data: params
})
},
/**群聊列表 */
getMerchantWechatGroupList (params) {
params.method = 'entmicro.api.customer.base.list.simple'
return http({
url: '/rop-scrm-entmicro/router',
data: params
})
},
}
\ No newline at end of file
......@@ -63,9 +63,9 @@
>
<el-option
v-for="item in groupLimitList"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.id"
:label="item.groupName"
:value="item.id"
>
</el-option>
</el-select>
......@@ -144,6 +144,7 @@ export default {
optionList.map(e => {
if (e.confId == n) this.configForm.merchantName = e.confName
})
this.getMerchantWechatGroupList([n])
if (!disabled) {
this.$refs.prizeRef.reset()
this.configForm.groupLimitList = []
......@@ -203,6 +204,7 @@ export default {
confName: data.merchantName
}]
})
let description = decodeURIComponent(data.description),
endTimeType = 0,
numWin = data.numWin,
......@@ -213,6 +215,8 @@ export default {
endTime = dayjs(endTime).format('YYYY/MM/DD HH:mm:ss')
}
if (data.numType == 1) numWin = 0
if(data.groupLimitOpen) {
}
this.configForm = {
description,
merchantId: data.merchantId,
......@@ -223,6 +227,7 @@ export default {
endTimeType,
lotteryTime: dayjs(data.lotteryTime).format('YYYY/MM/DD HH:mm:ss'),
groupLimitOpen: data.groupLimitOpen,
groupLimitList:data.groupLimits,
rewardType: data.rewardType,
rewardId: data.rewardId,
numWin,
......@@ -237,6 +242,7 @@ export default {
},
async getMerchantList (merchantName = '') {
if(!merchantName) return
this.$loading()
try {
const { list } = await this.$apis.redenvelope.getRedEnvelopeMerchantList({
......@@ -291,6 +297,18 @@ export default {
}
})
},
async getMerchantWechatGroupList(merchantIdList){
try {
const res = await this.$apis.solitaire.getMerchantWechatGroupList({
merchantIdList
})
this.groupLimitList = res
console.log(res)
} catch (error) {
console.log(error)
if (error) this.$message.error(error)
}
}
}
}
......
......@@ -120,13 +120,12 @@ export default {
label: '卡片标题',
name: 'title',
type: 'input',
maxlength: 100
maxlength: 20
},
{
label: '状态',
name: 'activityState',
type: 'select',
maxlength: 100,
optionList: [
{ text: '全部', id: '' },
// { text: '未开始', id: '0' },
......@@ -182,17 +181,17 @@ export default {
},
{
label: '所属渠道',
minWidth: 150,
minWidth: 180,
prop: 'merchantName'
},
{
label: '卡片标题',
prop: 'title',
minWidth: 100
minWidth: 240
},
{
label: '关联奖品',
minWidth: 100,
minWidth: 260,
formatter: cell => {
return `${{
1: '红包活动',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!