Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 91c0a261
authored
Feb 14, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.5.0-0227' of
http://192.168.3.233:8090/saas/scrm-micro-battles
into v3.5.0-0227
2 parents
e9559a37
7b687a44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
2 deletions
src/views/battle/index.vue
vue.config.js
src/views/battle/index.vue
View file @
91c0a26
...
@@ -183,11 +183,21 @@ export default {
...
@@ -183,11 +183,21 @@ export default {
optionList
:
[],
optionList
:
[],
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
optionLabel
:
'confName'
},
{
label
:
'活动类型'
,
name
:
'marketingType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'activityTypeList'
}
}
],
],
tableSearchForm
:
{
tableSearchForm
:
{
merchantName
:
''
,
merchantName
:
''
,
activityName
:
''
activityName
:
''
,
activityType
:
''
},
},
// 表格
// 表格
userList
:
[],
userList
:
[],
...
@@ -212,6 +222,14 @@ export default {
...
@@ -212,6 +222,14 @@ export default {
label
:
'活动门店'
,
label
:
'活动门店'
,
prop
:
'merchantName'
prop
:
'merchantName'
},
},
{
label
:
'活动类型'
,
prop
:
'marketingType'
,
formatter
:
cellValue
=>
{
const
data
=
this
.
baseData
.
activityTypeList
.
filter
(
item
=>
item
.
confId
==
cellValue
.
marketingType
)
return
data
.
length
>
0
?
data
[
0
].
confName
:
'--'
}
},
{
{
label
:
'活动时间'
,
label
:
'活动时间'
,
addHtml
:
'activityTime'
addHtml
:
'activityTime'
...
@@ -244,11 +262,18 @@ export default {
...
@@ -244,11 +262,18 @@ export default {
wechat
:
{
wechat
:
{
automaticName
:
''
,
automaticName
:
''
,
roomName
:
''
roomName
:
''
},
baseData
:
{
activityTypeList
:
[
{
confId
:
'3'
,
confName
:
'众筹'
},
{
confId
:
'5'
,
confName
:
'膨胀金'
}
]
}
}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getOptionsList
(
'searchFormData'
)
this
.
getCrowdfundingParams
()
this
.
getCrowdfundingParams
()
this
.
getMerchantList
()
this
.
getMerchantList
()
},
},
...
@@ -287,6 +312,31 @@ export default {
...
@@ -287,6 +312,31 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
else
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
]?.
length
)
{
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
})
}
},
async
getCrowdfundingParams
()
{
async
getCrowdfundingParams
()
{
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
const
activity
=
await
this
.
$apis
.
seckillActivity
.
getCrowdfundingParams
({
const
activity
=
await
this
.
$apis
.
seckillActivity
.
getCrowdfundingParams
({
...
...
vue.config.js
View file @
91c0a26
...
@@ -3,7 +3,7 @@ const packageName = require('./package.json').name
...
@@ -3,7 +3,7 @@ const packageName = require('./package.json').name
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
const
publicPath
=
node_env
?
`/child/
${
packageName
}
/`
:
'/'
const
publicPath
=
node_env
?
`/child/
${
packageName
}
/`
:
'/'
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
CDN_DOMAIN
=
'https://
cdn.bootcdn.net
/'
const
CDN_DOMAIN
=
'https://
img02.glsx.com.cn
/'
const
cdn
=
{
const
cdn
=
{
css
:
[
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
],
css
:
[
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
],
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
,
'https://webapi.amap.com/loader.js'
]
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
,
'https://webapi.amap.com/loader.js'
]
...
...
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