Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 a12341f0
authored
Sep 20, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
9c723cca
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
186 additions
and
42 deletions
src/components/glsx-combi-form/index.vue
src/views/seckillActivity/browseList.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/editCrowdFund.vue
src/components/glsx-combi-form/index.vue
View file @
a12341f
...
@@ -208,11 +208,13 @@ export default {
...
@@ -208,11 +208,13 @@ export default {
handleUploadChange
(
e
,
targetItem
)
{
handleUploadChange
(
e
,
targetItem
)
{
var
reader
=
new
FileReader
()
var
reader
=
new
FileReader
()
var
file
=
e
.
srcElement
.
files
[
0
]
var
file
=
e
.
srcElement
.
files
[
0
]
var
uploadType
=
targetItem
.
uploadType
||
'img'
var
uploadType
=
targetItem
.
uploadType
||
'img'
,
IMGTYPE
=
[
'image/jpeg'
,
'image/png'
,
'image/jpg'
]
if
(
targetItem
.
supportGif
)
IMGTYPE
.
push
(
'image/gif'
)
// 默认1MB
// 默认1MB
const
limitSize
=
targetItem
.
limitSize
||
1
const
limitSize
=
targetItem
.
limitSize
||
1
const
isLt
=
file
.
size
/
1024
/
1024
<
limitSize
const
isLt
=
file
.
size
/
1024
/
1024
<
limitSize
const
isType
=
uploadType
==
'img'
?
[
'image/jpeg'
,
'image/png'
,
'image/jpg'
]
.
includes
(
file
.
type
)
:
[
'video/mp4'
].
includes
(
file
.
type
)
const
isType
=
uploadType
==
'img'
?
IMGTYPE
.
includes
(
file
.
type
)
:
[
'video/mp4'
].
includes
(
file
.
type
)
const
maxPhotoNum
=
targetItem
.
maxPhotoNum
||
1
const
maxPhotoNum
=
targetItem
.
maxPhotoNum
||
1
const
wdithLt
=
targetItem
.
wdithLt
||
300
const
wdithLt
=
targetItem
.
wdithLt
||
300
const
heightLt
=
targetItem
.
heightLt
||
300
const
heightLt
=
targetItem
.
heightLt
||
300
...
...
src/views/seckillActivity/browseList.vue
View file @
a12341f
...
@@ -5,26 +5,83 @@
...
@@ -5,26 +5,83 @@
<p
class=
"edit-title"
>
{{
routeInfo
.
activityName
}}
</p>
<p
class=
"edit-title"
>
{{
routeInfo
.
activityName
}}
</p>
<div
class=
"p-20"
>
<div
class=
"p-20"
>
<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"
>
<div
class=
"flex m-b-10 w-100-percent"
>
<span
class=
"table-title"
></span>
<div
class=
"table-title"
>
<el-button
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
已累计
<template
v-if=
"routeInfo.type != 2"
>
{{
decodeURI
(
routeInfo
.
name
)
}}
</
template
>
<span>
{{routeInfo.count || 0}}
</span>
{{routeInfo.type == 2?'位访客':'次'}}
</div>
<el-button
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"browserRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
<div
slot=
"customerName"
class=
"flex-align"
slot-scope=
"scope"
>
ref=
"browserRef"
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
:getListApi=
"getListApi"
<img
class=
"table-popover-img"
:src=
"scope.scope.customerAvatar"
/>
:noDataImg=
"url"
<img
class=
"img-36 pointer"
slot=
"reference"
:src=
"scope.scope.customerAvatar"
/>
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"customerName"
class=
"flex-align"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.customerAvatar"
/>
<img
class=
"img-36 pointer"
slot=
"reference"
:src=
"scope.scope.customerAvatar"
/>
</el-popover>
</el-popover>
<span
class=
"m-l-10"
>
{{ scope.scope.customerName }}
</span>
<span
class=
"m-l-10"
>
{{ scope.scope.customerName }}
</span>
</div>
</div>
<div
slot=
"shareName"
class=
"flex-align"
slot-scope=
"scope"
>
<div
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
slot=
"shareName"
<img
class=
"table-popover-img"
:src=
"scope.scope.shareAvatar"
/>
class=
"flex-align"
<img
class=
"img-36 pointer"
slot=
"reference"
:src=
"scope.scope.shareAvatar"
/>
slot-scope=
"scope"
>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.shareAvatar"
/>
<img
class=
"img-36 pointer"
slot=
"reference"
:src=
"scope.scope.shareAvatar"
/>
</el-popover>
</el-popover>
<span
class=
"m-l-10"
>
{{ scope.scope.shareName }}
</span>
<span
class=
"m-l-10"
>
{{ scope.scope.shareName }}
</span>
</div>
</div>
...
@@ -32,8 +89,14 @@
...
@@ -32,8 +89,14 @@
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
</div>
</div>
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<div
<el-button
type=
"default"
@
click=
"handleJump"
>
返回
</el-button>
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
<el-button
type=
"default"
@
click=
"handleJump"
>
返回
</el-button>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -44,7 +107,7 @@ import url from '@/assets/empty.png'
...
@@ -44,7 +107,7 @@ import url from '@/assets/empty.png'
import
{
exportFn
}
from
'@/common/constant'
import
{
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
name
:
'browseList'
,
name
:
'browseList'
,
data
()
{
data
()
{
return
{
return
{
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
...
@@ -72,6 +135,12 @@ export default {
...
@@ -72,6 +135,12 @@ export default {
name
:
'mobile'
,
name
:
'mobile'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
11
maxlength
:
11
},
{
label
:
'分享人'
,
name
:
'a'
,
type
:
'input'
,
maxlength
:
50
}
}
],
],
// 表格
// 表格
...
@@ -89,42 +158,101 @@ export default {
...
@@ -89,42 +158,101 @@ export default {
prop
:
'mobile'
prop
:
'mobile'
},
},
{
{
label
:
'
来源
'
,
label
:
'
分享人
'
,
prop
:
'shareName'
,
prop
:
'shareName'
,
addHtml
:
'shareName'
addHtml
:
'shareName'
},
},
]
}
}
},
created
()
{
const
lastTableColumns
=
[
{
label
:
'浏览时长'
,
prop
:
'browseCount'
,
},
{
{
label
:
'浏览次数'
,
label
:
'进入页面时间'
,
prop
:
'browseCount'
prop
:
'lastBrowseDate'
,
width
:
'180'
},
},
{
{
label
:
'浏览
时间'
,
label
:
'离开页面
时间'
,
prop
:
'lastBrowseDate'
,
prop
:
'lastBrowseDate'
,
width
:
'180'
width
:
'180'
},
{
label
:
'订单状态'
,
prop
:
'lastBrowseDate'
,
}
}
]
],
{
}
query
}
}
=
this
.
$route
,
name
=
{
1
:
'浏览'
,
2
:
'访客'
,
3
:
'分享'
,
}[
query
.
type
]
query
.
name
=
name
this
.
routeInfo
=
query
history
.
replaceState
(
null
,
null
,
`
${
window
.
location
.
href
}
&$title=
${
name
}
明细`
)
if
(
query
.
type
!=
2
)
{
this
.
searchFormData
.
push
({
label
:
'订单状态'
,
name
:
'orderStatus'
,
type
:
'select'
,
width
:
'215px'
,
optionList
:
[
{
confId
:
''
,
confName
:
'全部'
},
},
{
confId
:
'2'
,
confName
:
'已付款'
},
{
confId
:
'3'
,
confName
:
'未付款'
}
],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'statusList'
})
if
(
query
.
type
==
3
)
this
.
tableParams
.
tableColumns
.
push
({
label
:
'分享时间'
,
prop
:
'lastBrowseDate'
,
width
:
'180'
})
this
.
tableParams
.
tableColumns
=
[...
this
.
tableParams
.
tableColumns
,
...
lastTableColumns
]
}
else
this
.
tableParams
.
tableColumns
=
[...
this
.
tableParams
.
tableColumns
,
{
label
:
'浏览次数'
,
prop
:
'browseCount'
,
},
{
label
:
'最后浏览时间'
,
prop
:
'lastBrowseDate'
,
width
:
'180'
}]
created
()
{
this
.
routeInfo
=
this
.
$route
.
query
},
},
mounted
()
{
mounted
()
{
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
},
},
methods
:
{
methods
:
{
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
searchForm
.
activityId
=
this
.
routeInfo
.
id
this
.
searchForm
.
activityId
=
this
.
routeInfo
.
id
resolve
()
resolve
()
})
})
},
},
handleExport
()
{
handleExport
()
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
)
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
)
params
.
pageNum
=
1
params
.
pageNum
=
1
params
.
pageSize
=
999999
params
.
pageSize
=
999999
...
@@ -133,22 +261,22 @@ export default {
...
@@ -133,22 +261,22 @@ export default {
})
})
},
},
handleJump
(
path
,
row
=
{})
{
handleJump
(
path
,
row
=
{})
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/seckillActivity/crowdFundList'
path
:
'/seckillActivity/crowdFundList'
})
})
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
//接收到的数据为空
//接收到的数据为空
this
.
$refs
.
browserRef
.
data
.
length
?
(
this
.
$refs
.
browserRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
browserRef
.
setTableHeightFun
()
this
.
$refs
.
browserRef
.
data
.
length
?
(
this
.
$refs
.
browserRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
browserRef
.
setTableHeightFun
()
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
browserRef
.
refreshTable
()
this
.
$refs
.
browserRef
.
refreshTable
()
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
activityId
:
this
.
routeInfo
.
id
,
activityId
:
this
.
routeInfo
.
id
,
customerName
:
''
,
customerName
:
''
,
...
@@ -160,4 +288,18 @@ export default {
...
@@ -160,4 +288,18 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
></
style
>
<
style
scoped
lang=
"scss"
>
.edit-container
{
.table-title
{
font-weight
:
400
;
font-size
:
14px
;
color
:
#333333
;
line-height
:
20px
;
display
:
flex
;
align-items
:
center
;
span
{
color
:
#5850ff
;
}
}
}
</
style
>
src/views/seckillActivity/crowdFundList.vue
View file @
a12341f
...
@@ -136,7 +136,7 @@ export default {
...
@@ -136,7 +136,7 @@ export default {
maxlength
:
20
maxlength
:
20
},
},
{
{
label
:
'状态'
,
label
:
'
活动
状态'
,
name
:
'activityStatus'
,
name
:
'activityStatus'
,
type
:
'select'
,
type
:
'select'
,
width
:
'215px'
,
width
:
'215px'
,
...
@@ -458,18 +458,18 @@ export default {
...
@@ -458,18 +458,18 @@ export default {
},
},
// 明细
// 明细
handleDetail
({
prop
,
scope
})
{
handleDetail
({
prop
,
scope
})
{
let
option
=
{
let
data
=
{
viewAmount
:
{
viewAmount
:
{
type
:
1
,
type
:
1
,
name
:
'浏览'
count
:
scope
.
viewAmount
},
},
fansAmount
:
{
fansAmount
:
{
type
:
2
,
type
:
2
,
name
:
'访客'
count
:
scope
.
fansAmount
},
},
shareAmount
:
{
shareAmount
:
{
type
:
3
,
type
:
3
,
name
:
'分享'
count
:
scope
.
shareAmount
}
}
}[
prop
]
}[
prop
]
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -477,8 +477,8 @@ export default {
...
@@ -477,8 +477,8 @@ export default {
query
:
{
query
:
{
id
:
scope
.
id
,
id
:
scope
.
id
,
activityName
:
scope
.
activityName
,
activityName
:
scope
.
activityName
,
detailType
:
option
.
type
,
type
:
data
.
type
,
$title
:
encodeURI
(
`
${
option
.
name
}
明细`
)
count
:
data
.
count
,
}
}
})
})
},
},
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
a12341f
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