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 f5eafa1d
authored
Jan 12, 2023
by
张立顺
Committed by
chenwq
Jan 13, 2023
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix_修复数据看板员工重置不刷新问题
1 parent
82561fc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
92 additions
and
31 deletions
src/views/seckillActivity/dataBoard.vue
src/views/seckillActivity/dataBoard.vue
View file @
f5eafa1
...
...
@@ -3,21 +3,34 @@
<div
class=
"data-board-box"
>
<p
class=
"edit-title"
>
数据看板
</p>
<div
class=
"p-20"
>
<GLCombiForm
ref=
"dataRef"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
></GLCombiForm>
<GLCombiForm
ref=
"dataRef"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
></GLCombiForm>
<div
class=
"data-view"
>
<template
v-for=
"(item, index) in dataList"
>
<div
:key=
"index"
class=
"item"
>
<div
:key=
"index"
class=
"item"
>
<div
class=
"name"
>
{{
item
.
name
}}
<el-popover
class=
"tips"
placement=
"top"
width=
"260"
trigger=
"hover"
:content=
"item.tips"
>
<img
slot=
"reference"
class=
"tips-icon"
src=
"@/components/glsx-combi-form/images/icon-tip.png"
/>
<el-popover
class=
"tips"
placement=
"top"
width=
"260"
trigger=
"hover"
:content=
"item.tips"
>
<img
slot=
"reference"
class=
"tips-icon"
src=
"@/components/glsx-combi-form/images/icon-tip.png"
/>
</el-popover>
</div>
<div
class=
"value"
>
{{
dataBoard
[
item
.
key
]
||
0
}}
</div>
<template
v-if=
"item.half"
>
<div
class=
"half"
>
日环比:
<div
:class=
"['icon',
{ up: dataBoard[item.half] > 0 }, { down: dataBoard[item.half]
< 0
}]"
></div>
<div
:class=
"['icon',
{ up: dataBoard[item.half] > 0 }, { down: dataBoard[item.half]
< 0
}]"
>
</div>
<span
class=
"num"
>
{{
Math
.
abs
(
dataBoard
[
item
.
half
]).
toFixed
(
2
)
||
0
}}
%
</span>
</div>
</
template
>
...
...
@@ -37,14 +50,33 @@
@
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('rank')"
>
导出
</el-button>
<el-button
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport('rank')"
>
导出
</el-button>
</div>
<GLTable
ref=
"dataTableRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
:hasNum=
"false"
>
<div
slot=
"shareName"
class=
"flex-align"
slot-scope=
"scope"
>
<GLTable
ref=
"dataTableRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
:hasNum=
"false"
>
<div
slot=
"shareName"
class=
"flex-align"
slot-scope=
"scope"
>
<
template
v-if=
"scope.scope.shareAvatar"
>
<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
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>
</
template
>
<span
class=
"m-l-10"
>
{{ scope.scope.shareName }}
</span>
...
...
@@ -58,20 +90,32 @@
<div
class=
"p-20"
>
<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('dailyOrders')"
>
导出
</el-button>
<el-button
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport('dailyOrders')"
>
导出
</el-button>
</div>
<el-table
v-if=
"DailyOrderQuantityList.length"
:data=
"DailyOrderQuantityListFormat"
style=
"width: 100%"
>
<el-table-column
:formatter=
"formatterHeader"
label=
""
></el-table-column>
<el-table
v-if=
"DailyOrderQuantityList.length"
:data=
"DailyOrderQuantityListFormat"
style=
"width: 100%"
>
<el-table-column
:formatter=
"formatterHeader"
label=
""
></el-table-column>
<!-- width="140px" -->
<el-table-column
v-for=
"(item, index) in DailyOrderQuantityList"
:key=
"index"
:prop=
"item"
:label=
"item.day"
>
<el-table-column
v-for=
"(item, index) in DailyOrderQuantityList"
:key=
"index"
:prop=
"item"
:label=
"item.day"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
$index
?
item
.
currentOrderQuantity
:
item
.
specificDate
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:formatter=
"formatterEnd"
fixed=
"right"
label=
"总计"
></el-table-column>
<el-table-column
:formatter=
"formatterEnd"
fixed=
"right"
label=
"总计"
></el-table-column>
</el-table>
<div
v-else
>
<img
src=
"url"
alt=
""
/>
<img
src=
"url"
alt=
""
/>
</div>
</div>
</div>
...
...
@@ -97,17 +141,32 @@
单
</span>
</span>
<el-button
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport('liveData')"
>
导出
</el-button>
<el-button
:size=
"size"
class=
"default-blue-btn"
type=
"default"
@
click=
"handleExport('liveData')"
>
导出
</el-button>
</div>
<!-- :searchForm="tableSearchForm" -->
<GLTable
ref=
"dataTableRefDetailPage"
:getListApi=
"getLiveDetailPage"
:noDataImg=
"url"
:tableParams=
"liveTableParams"
:searchForm=
"LiveTableSearchForm"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"weChatName"
class=
"flex-align"
slot-scope=
"scope"
>
<img
v-if=
"scope.scope.avatar"
class=
"img-36 pointer img-circle"
:src=
"scope.scope.avatar"
/>
<GLTable
ref=
"dataTableRefDetailPage"
:getListApi=
"getLiveDetailPage"
:noDataImg=
"url"
:tableParams=
"liveTableParams"
:searchForm=
"LiveTableSearchForm"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
slot=
"weChatName"
class=
"flex-align"
slot-scope=
"scope"
>
<img
v-if=
"scope.scope.avatar"
class=
"img-36 pointer img-circle"
:src=
"scope.scope.avatar"
/>
<span
class=
"m-l-10"
>
{{ scope.scope.nickname }}
</span>
<span
v-if=
"!scope.scope.avatar && !scope.scope.nickname"
>
-
</span>
</div>
<div
slot=
"orderStatus"
slot-scope=
"scope"
>
<span
:class=
"['table-circle', 'm-r-8', scope.scope.orderStatus == '已下单' ? 'back-green' : 'back-grey']"
></span>
<div
slot=
"orderStatus"
slot-scope=
"scope"
>
<span
:class=
"['table-circle', 'm-r-8', scope.scope.orderStatus == '已下单' ? 'back-green' : 'back-grey']"
></span>
<span>
{{ scope.scope.orderStatus ? scope.scope.orderStatus : '-' }}
</span>
</div>
</GLTable>
...
...
@@ -122,13 +181,13 @@ import { downLoadFile, orderManageStatusList } from '@/common/constant'
import
url
from
'@/assets/empty.png'
const
dataList
=
[
{
name
:
'新增浏览量'
,
key
:
'browseCount'
,
tips
:
'统计时间内,新增页面被浏览的次数(一人多次访问计为多次)'
,
half
:
'browseRingRatio'
},
{
name
:
'新增访客数'
,
key
:
'fansCount'
,
tips
:
'统计时间内访问页面的人数(一人多次访问计为一次)'
,
half
:
'fansRingRatio'
},
{
name
:
'新增订单数'
,
key
:
'orderCount'
,
tips
:
'统计时间内,新增订单数(只记录已付款的订单)'
,
half
:
'orderRingRatio'
},
{
name
:
'累计浏览量'
,
key
:
'totalBrowseCount'
,
tips
:
'页面被浏览的总次数(一人多次访问计为多次)'
},
{
name
:
'累计访客数'
,
key
:
'totalFansCount'
,
tips
:
'访问页面的总人数(一人多次访问计为一次)'
},
{
name
:
'累计订单数'
,
key
:
'totalOrderCount'
,
tips
:
'累计订单总数(只记录已付款的订单)'
}
],
{
name
:
'新增浏览量'
,
key
:
'browseCount'
,
tips
:
'统计时间内,新增页面被浏览的次数(一人多次访问计为多次)'
,
half
:
'browseRingRatio'
},
{
name
:
'新增访客数'
,
key
:
'fansCount'
,
tips
:
'统计时间内访问页面的人数(一人多次访问计为一次)'
,
half
:
'fansRingRatio'
},
{
name
:
'新增订单数'
,
key
:
'orderCount'
,
tips
:
'统计时间内,新增订单数(只记录已付款的订单)'
,
half
:
'orderRingRatio'
},
{
name
:
'累计浏览量'
,
key
:
'totalBrowseCount'
,
tips
:
'页面被浏览的总次数(一人多次访问计为多次)'
},
{
name
:
'累计访客数'
,
key
:
'totalFansCount'
,
tips
:
'访问页面的总人数(一人多次访问计为一次)'
},
{
name
:
'累计订单数'
,
key
:
'totalOrderCount'
,
tips
:
'累计订单总数(只记录已付款的订单)'
}
],
optionList
=
[
{
confId
:
'1'
,
confName
:
'转发次数'
},
{
confId
:
'2'
,
confName
:
'访客总数'
},
...
...
@@ -316,10 +375,12 @@ export default {
...
result
}
})
.
catch
(
err
=>
{})
.
catch
(
err
=>
{
})
},
handleReset
()
{
this
.
searchRankForm
=
this
.
$options
.
data
.
call
(
this
).
searchRankForm
console
.
log
(
'handleReset'
)
this
.
handleSearchRank
()
// this.$refs.rankRef.refreshTable()
// this.handleSearch()
},
...
...
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