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 70a2b370
authored
Mar 01, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除活动同步活动下拉列表
1 parent
60760b29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
119 deletions
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/crowdFundList.vue
View file @
70a2b37
...
@@ -2,123 +2,53 @@
...
@@ -2,123 +2,53 @@
<
template
>
<
template
>
<div
class=
"marketing"
>
<div
class=
"marketing"
>
<div
class=
"m-b-20"
>
<div
class=
"m-b-20"
>
<GLButton
<GLButton
:size=
"size"
class=
"default-blue-btn el-icon-plus"
type=
"default"
@
click=
"handleEdit('add')"
fn=
"新增众筹"
:size=
"size"
mode=
"el-button"
>
新建众筹
</GLButton>
class=
"default-blue-btn el-icon-plus"
type=
"default"
@
click=
"handleEdit('add')"
fn=
"新增众筹"
mode=
"el-button"
>
新建众筹
</GLButton>
<template
v-if=
"!hideStatus"
>
<template
v-if=
"!hideStatus"
>
<el-button
<el-button
:size=
"size"
type=
"default"
class=
"default-blue-btn"
@
click=
"handleJump"
>
订单管理
</el-button>
:size=
"size"
type=
"default"
class=
"default-blue-btn"
@
click=
"handleJump"
>
订单管理
</el-button>
</
template
>
</
template
>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
ref=
"showSearch"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"flex m-b-10 w-100-percent"
>
<div
class=
"flex m-b-10 w-100-percent"
>
<span
class=
"table-title"
></span>
<span
class=
"table-title"
></span>
<el-button
<el-button
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<single-gltable
<single-gltable
ref=
"activity"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
ref=
"activity"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
:getListApi=
"getListApi"
@
setTableFinishFun=
"setTableFinishFun"
>
:noDataImg=
"url"
<div
slot=
"activityImg"
class=
"table-image"
slot-scope=
"scope"
>
:searchForm=
"tableSearchForm"
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
:tableParams=
"tableParams"
<img
class=
"table-popover-img"
:src=
"scope.scope.activityImg"
/>
:pageConf=
"pageConf"
<img
class=
"img-60 pointer"
slot=
"reference"
:src=
"scope.scope.activityImg"
/>
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"activityImg"
class=
"table-image"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.activityImg"
/>
<img
class=
"img-60 pointer"
slot=
"reference"
:src=
"scope.scope.activityImg"
/>
</el-popover>
</el-popover>
</div>
</div>
<div
<div
slot=
"linkText"
slot-scope=
"scope"
>
slot=
"linkText"
slot-scope=
"scope"
>
<
template
v-if=
"scope.scope.incrementFlag == 'Y' || hideStatus"
>
<
template
v-if=
"scope.scope.incrementFlag == 'Y' || hideStatus"
>
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<p
<p
class=
"cursor-pointer"
@
click=
"handleDetail(scope)"
>
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
</p>
class=
"cursor-pointer"
@
click=
"handleDetail(scope)"
>
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
</p>
</
template
>
</
template
>
</div>
</div>
<div
<div
slot=
"joinText"
slot-scope=
"scope"
>
slot=
"joinText"
<el-tooltip
effect=
"dark"
:content=
"formatterNumber(scope.scope, scope.prop)"
placement=
"top"
>
slot-scope=
"scope"
<div
class=
"line-ellipsis"
>
{{ formatterNumber(scope.scope, scope.prop) }}
</div>
>
<el-tooltip
effect=
"dark"
:content=
"formatterNumber(scope.scope,scope.prop)"
placement=
"top"
>
<div
class=
"line-ellipsis"
>
{{formatterNumber(scope.scope,scope.prop)}}
</div>
</el-tooltip>
</el-tooltip>
</div>
</div>
<div
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
class=
"table-btns"
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</single-gltable>
</single-gltable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<!-- 众筹分享 -->
<!-- 众筹分享 -->
<crowdFundingShare
<crowdFundingShare
:isShareVisible=
"isShareVisible"
:shareForm=
"shareForm"
@
handleShareClose=
"handleShareClose"
:isShareVisible=
"isShareVisible"
:hideStatus=
"hideStatus"
></crowdFundingShare>
:shareForm=
"shareForm"
@
handleShareClose=
"handleShareClose"
:hideStatus=
"hideStatus"
></crowdFundingShare>
</div>
</div>
</template>
</template>
...
@@ -341,7 +271,7 @@ export default {
...
@@ -341,7 +271,7 @@ export default {
mounted
()
{
mounted
()
{
this
.
getCrowdfundingOrderConfig
()
this
.
getCrowdfundingOrderConfig
()
this
.
getCrowdfundingParams
()
this
.
getCrowdfundingParams
(
[
1
,
2
]
)
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
...
@@ -578,7 +508,9 @@ export default {
...
@@ -578,7 +508,9 @@ export default {
del
(
row
)
{
del
(
row
)
{
var
params
=
{}
var
params
=
{}
params
.
id
=
row
.
id
params
.
id
=
row
.
id
this
.
secondConfirm
(
'删除'
,
'确定删除此活动?'
,
'seckillActivity'
,
'deleteActivityApi'
,
params
)
this
.
secondConfirm
(
'删除'
,
'确定删除此活动?'
,
'seckillActivity'
,
'deleteActivityApi'
,
params
,
()
=>
{
this
.
getCrowdfundingParams
([
1
])
})
},
},
// 1-新增;2-编辑
// 1-新增;2-编辑
...
@@ -693,34 +625,39 @@ export default {
...
@@ -693,34 +625,39 @@ export default {
this
.
$refs
.
activity
.
data
.
length
?
(
this
.
$refs
.
activity
.
tableHeightValues
=
''
)
:
this
.
$refs
.
activity
.
setTableHeightFun
()
this
.
$refs
.
activity
.
data
.
length
?
(
this
.
$refs
.
activity
.
tableHeightValues
=
''
)
:
this
.
$refs
.
activity
.
setTableHeightFun
()
},
},
async
getCrowdfundingParams
()
{
async
getCrowdfundingParams
(
parameterTypeList
)
{
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
const
activity
=
await
this
.
$apis
.
seckillActivity
.
getCrowdfundingParams
({
if
(
parameterTypeList
.
includes
(
1
))
{
parameterType
:
1
const
activity
=
await
this
.
$apis
.
seckillActivity
.
getCrowdfundingParams
({
})
parameterType
:
1
let
activityNameList
=
[]
if
(
activity
?.
parameters
&&
activity
.
parameters
.
length
)
{
activity
.
parameters
.
map
(
e
=>
{
activityNameList
.
push
({
confId
:
e
,
confName
:
e
})
})
})
}
let
activityNameList
=
[]
this
.
$set
(
this
.
searchFormData
[
0
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
activityNameList
))
if
(
activity
?.
parameters
&&
activity
.
parameters
.
length
)
{
const
merchant
=
await
this
.
$apis
.
seckillActivity
.
getCrowdfundingParams
({
activity
.
parameters
.
map
(
e
=>
{
parameterType
:
2
activityNameList
.
push
({
})
confId
:
e
,
let
merchantNameList
=
[]
confName
:
e
if
(
merchant
?.
parameters
&&
merchant
.
parameters
.
length
)
{
})
merchant
.
parameters
.
map
(
e
=>
{
merchantNameList
.
push
({
confId
:
e
,
confName
:
e
})
})
}
this
.
$set
(
this
.
searchFormData
[
0
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
activityNameList
))
}
if
(
parameterTypeList
.
includes
(
2
))
{
const
merchant
=
await
this
.
$apis
.
seckillActivity
.
getCrowdfundingParams
({
parameterType
:
2
})
})
let
merchantNameList
=
[]
if
(
merchant
?.
parameters
&&
merchant
.
parameters
.
length
)
{
merchant
.
parameters
.
map
(
e
=>
{
merchantNameList
.
push
({
confId
:
e
,
confName
:
e
})
})
}
this
.
$set
(
this
.
searchFormData
[
2
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
merchantNameList
))
}
}
this
.
$set
(
this
.
searchFormData
[
2
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
merchantNameList
))
},
},
formatterNumber
(
cell
,
key
)
{
formatterNumber
(
cell
,
key
)
{
...
@@ -735,13 +672,15 @@ export default {
...
@@ -735,13 +672,15 @@ export default {
</
script
>
</
script
>
<
style
>
<
style
>
.el-select
.el-select__tags
>
span
{
.el-select
.el-select__tags
>
span
{
display
:
flex
!important
;
display
:
flex
!important
;
width
:
80%
;
width
:
80%
;
}
}
.el-select
.el-tag
{
.el-select
.el-tag
{
max-width
:
55%
!important
;
max-width
:
55%
!important
;
}
}
.line-ellipsis
{
.line-ellipsis
{
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
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