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 b06191a1
authored
Dec 19, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
17b95108
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
114 additions
and
78 deletions
src/views/orderManage/index.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/editCrowdFund.vue
src/views/orderManage/index.vue
View file @
b06191a
This diff is collapsed.
Click to expand it.
src/views/seckillActivity/crowdFundList.vue
View file @
b06191a
...
...
@@ -2,75 +2,103 @@
<
template
>
<div
class=
"marketing"
>
<div
class=
"m-b-20"
>
<GLButton
:size=
"size"
class=
"default-blue-btn el-icon-plus"
type=
"default"
@
click=
"handleEdit('add')"
fn=
"新增众筹"
mode=
"el-button"
>
新建众筹
</GLButton>
<el-button
:size=
"size"
type=
"default"
class=
"default-blue-btn"
@
click=
"handleJump"
>
订单管理
</el-button>
<GLButton
:size=
"size"
class=
"default-blue-btn el-icon-plus"
type=
"default"
@
click=
"handleEdit('add')"
fn=
"新增众筹"
mode=
"el-button"
>
新建众筹
</GLButton>
<el-button
:size=
"size"
type=
"default"
class=
"default-blue-btn"
@
click=
"handleJump"
>
订单管理
</el-button>
</div>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"flex m-b-10 w-100-percent"
>
<span
class=
"table-title"
></span>
<el-button
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
</div>
<!-- 表格区域 开始 -->
<GLTable
ref=
"activity"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
: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"
/>
<GLTable
ref=
"activity"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
: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>
</div>
<div
slot=
"linkText"
slot-scope=
"scope"
>
<p
class=
"cursor-pointer"
@
click=
"handleDetail(scope)"
>
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
</p>
<div
slot=
"linkText"
slot-scope=
"scope"
>
<p
class=
"cursor-pointer"
@
click=
"handleDetail(scope)"
>
{{
scope
.
scope
[
scope
.
prop
]
||
0
}}
</p>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
<!-- 众筹分享 -->
<crowdFundingShare
:isShareVisible=
"isShareVisible"
:shareForm=
"shareForm"
@
handleShareClose=
"handleShareClose"
></crowdFundingShare>
<crowdFundingShare
:isShareVisible=
"isShareVisible"
:shareForm=
"shareForm"
@
handleShareClose=
"handleShareClose"
></crowdFundingShare>
</div>
</
template
>
...
...
@@ -81,7 +109,7 @@ import url from '@/assets/empty.png'
import
{
exportFn
}
from
'@/common/constant'
export
default
{
name
:
'crowdFundList'
,
data
()
{
data
()
{
return
{
size
:
'small'
,
url
:
url
,
...
...
@@ -100,6 +128,7 @@ export default {
tableSearchForm
:
{},
// 搜索
searchFormData
:
[
/*******改👇 */
{
label
:
'活动名称'
,
name
:
'activityName'
,
...
...
@@ -117,12 +146,19 @@ export default {
optionLabel
:
'confName'
,
optionsName
:
'statusList'
},
/*******改👇 */
{
label
:
'门店'
,
name
:
'merchantName'
,
type
:
'
inpu
t'
,
type
:
'
selec
t'
,
width
:
'215px'
,
maxlength
:
20
// maxlength: 20,
multiple
:
true
,
noFilter
:
false
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'statusList'
}
],
// 表格按钮
...
...
@@ -134,7 +170,7 @@ export default {
type
:
'text'
},
condition
:
row
=>
{
return
row
.
activityStatus
==
'1'
return
[
1
,
3
].
includes
(
row
.
activityStatus
)
},
listeners
:
{
click
:
this
.
start
...
...
@@ -391,7 +427,7 @@ export default {
crowdFundingShare
},
mounted
()
{
mounted
()
{
this
.
getOptionsList
(
'searchFormData'
)
// const {
// $GLBUTTION_PERMISSIONS: { routes = [], routerBase }
...
...
@@ -404,17 +440,17 @@ export default {
},
methods
:
{
__getRoutes
(
ctx
)
{
__getRoutes
(
ctx
)
{
const
{
$GLBUTTION_PERMISSIONS
:
{
routes
=
[],
routerBase
}
}
=
ctx
return
routes
.
find
(
route
=>
location
.
pathname
===
`
${
routerBase
}${
route
.
path
.
split
(
':/'
)[
0
]}
`
)
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
return
params
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
getParams
()
// delete this.tableSearchForm.createDate
...
...
@@ -422,13 +458,13 @@ export default {
})
},
handleJump
(
path
,
row
=
{})
{
handleJump
(
path
,
row
=
{})
{
this
.
$router
.
push
({
path
:
'/orderManage/index'
})
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
)
{
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
)
{
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
...
...
@@ -454,16 +490,16 @@ export default {
},
//开始
start
(
item
)
{
start
(
item
)
{
this
.
startOrEndConfirm
(
'开始'
,
item
)
},
//结束
end
(
item
)
{
end
(
item
)
{
this
.
startOrEndConfirm
(
'结束'
,
item
)
},
startOrEndConfirm
(
txt
,
row
)
{
startOrEndConfirm
(
txt
,
row
)
{
var
title
=
txt
var
params
=
{}
params
.
id
=
row
.
id
...
...
@@ -476,21 +512,21 @@ export default {
},
//置顶
topping
(
row
)
{
topping
(
row
)
{
var
params
=
{}
params
.
id
=
row
.
id
this
.
secondConfirm
(
'删除'
,
'确定置顶此活动?'
,
'seckillActivity'
,
'topActivityApi'
,
params
)
},
//删除
del
(
row
)
{
del
(
row
)
{
var
params
=
{}
params
.
id
=
row
.
id
this
.
secondConfirm
(
'删除'
,
'确定删除此活动?'
,
'seckillActivity'
,
'deleteActivityApi'
,
params
)
},
// 1-新增;2-编辑
handleEdit
(
addOrEdit
,
row
)
{
handleEdit
(
addOrEdit
,
row
)
{
var
txtObj
=
{
add
:
'新建'
,
edit
:
'编辑'
,
...
...
@@ -509,11 +545,11 @@ export default {
query
:
params
})
},
test
(
option
)
{
test
(
option
)
{
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
option
)))
},
// 明细
handleDetail
({
prop
,
scope
})
{
handleDetail
({
prop
,
scope
})
{
let
data
=
{
viewAmount
:
{
type
:
1
,
...
...
@@ -539,25 +575,25 @@ export default {
})
},
handleExport
()
{
handleExport
()
{
var
params
=
this
.
getParams
()
this
.
$apis
.
seckillActivity
.
exportCrowdfundApi
(
params
).
then
(
res
=>
{
exportFn
(
res
)
})
},
handleShare
(
row
)
{
handleShare
(
row
)
{
this
.
$apis
.
seckillActivity
.
getCrowdSharedApi
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
shareForm
=
res
this
.
handleShareClose
()
})
},
handleShareClose
()
{
handleShareClose
()
{
this
.
isShareVisible
=
!
this
.
isShareVisible
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
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
)
...
...
@@ -583,11 +619,11 @@ export default {
}
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
activity
.
refreshTable
()
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
activityName
:
''
,
activityStatus
:
''
...
...
@@ -595,7 +631,7 @@ export default {
this
.
handleSearch
()
},
setTableFinishFun
()
{
setTableFinishFun
()
{
//接收到的数据为空
this
.
$refs
.
activity
.
data
.
length
?
(
this
.
$refs
.
activity
.
tableHeightValues
=
''
)
:
this
.
$refs
.
activity
.
setTableHeightFun
()
}
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
b06191a
This diff is collapsed.
Click to expand it.
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