Commit 2ecfbe45 by 李伟康

提交

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