Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2ecfbe45
authored
Jan 17, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
7c7f4524
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
9 deletions
src/api/modules/solitaire.js
src/views/solitaire/add.vue
src/views/solitaire/index.vue
src/api/modules/solitaire.js
View file @
2ecfbe4
...
@@ -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
src/views/solitaire/add.vue
View file @
2ecfbe4
...
@@ -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
)
}
}
}
}
}
}
...
...
src/views/solitaire/index.vue
View file @
2ecfbe4
...
@@ -120,13 +120,12 @@ export default {
...
@@ -120,13 +120,12 @@ export default {
label
:
'卡片标题'
,
label
:
'卡片标题'
,
name
:
'title'
,
name
:
'title'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
10
0
maxlength
:
2
0
}
,
}
,
{
{
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
:
1
5
0
,
minWidth
:
1
8
0
,
prop
:
'merchantName'
prop
:
'merchantName'
}
,
}
,
{
{
label
:
'卡片标题'
,
label
:
'卡片标题'
,
prop
:
'title'
,
prop
:
'title'
,
minWidth
:
10
0
minWidth
:
24
0
}
,
}
,
{
{
label
:
'关联奖品'
,
label
:
'关联奖品'
,
minWidth
:
10
0
,
minWidth
:
26
0
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
`${{
return
`${{
1: '红包活动',
1: '红包活动',
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment