Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
renewal-interest-data-board
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 f69e7d20
authored
Jul 11, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
二轮bug修复
1 parent
94156456
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
186 additions
and
147 deletions
src/components/StaticRank.vue
src/components/ViewContent.vue
src/components/ViewContentBottom.vue
src/components/ViewContentLeft.vue
src/components/ViewContentRight.vue
src/components/ViewDialogTable.vue
src/components/ViewSubTitle.vue
src/components/ViewTabs.vue
src/components/ViewTitle.vue
src/components/options.js
src/views/login/index.vue
src/components/StaticRank.vue
View file @
f69e7d2
...
...
@@ -55,7 +55,7 @@ export default {
color
:
#606266
;
}
.rank-name
{
cursor
:
pointer
;
cursor
:
default
;
span{
display
:
block
;
width
:
93%
;
...
...
src/components/ViewContent.vue
View file @
f69e7d2
...
...
@@ -2,6 +2,7 @@
<div
class=
'content'
>
<div
class=
'top'
>
<view-content-left
/>
<!--
<div
class=
'line'
></div>
-->
<view-content-right
/>
</div>
<div
class=
'bottom'
>
...
...
@@ -27,13 +28,16 @@ export default {
position
:
relative
;
padding
:
1vh
24px
1.1vh
;
min-height
:
94.15vh
;
//
z-index
:
1000
;
.top{
display
:
grid
;
grid-template-columns
:
30%
70%
;
gap
:
0
24px
;
}
.bottom
{
//
background
:
#0a0909
;
grid-template-columns
:
30%
70%
;
gap
:
0
10px
;
//.line{
//
background
:
red
;
//
height
:
100%
;
//
width
:
1px
;
//
}
}
}
</
style
>
src/components/ViewContentBottom.vue
View file @
f69e7d2
...
...
@@ -37,7 +37,7 @@
</el-form-item>
<el-form-item
label=
'查询时间'
size=
'mini'
>
<el-date-picker
class=
"top-date"
class=
'top-date'
size=
'mini'
value-format=
'yyyy-MM-dd'
v-model=
'renewalSearchForm.withdrawalTime'
...
...
@@ -359,7 +359,8 @@ export default {
clickDialogTable
(
row
,
type
,
index
)
{
const
{
merchantName
,
merchantId
}
=
row
const
list
=
this
.
switchType
(
row
,
type
)
this
.
selectedData
=
{
...
list
[
index
],
merchantName
,
type
,
merchantId
}
const
params
=
this
.
getSearchForm
()
this
.
selectedData
=
{
...
list
[
index
],
merchantName
,
type
,
merchantId
,
params
}
// this.$nextTick(() => {
// this.showFuncIntro = !this.showFuncIntro
// })
...
...
@@ -375,6 +376,7 @@ export default {
color
:
#ffffff
;
//
border
:
1px
solid
#93bee7
!important
;
}
//
.el-picker-panel
.el-date-range-picker__time-header
{
//
border-bottom
:
1px
solid
#93bee7
!important
;
//
}
...
...
@@ -383,6 +385,7 @@ export default {
height
:
10px
;
color
:
#EB6001
!important
;
}
.el-picker-panel
.el-input__inner
{
background-color
:
#333
;
//
border
:
#75ebf2
;
...
...
@@ -392,9 +395,11 @@ export default {
.el-picker-panel
.el-date-range-picker__header
{
color
:
#fff
;
}
.el-picker-panel
.el-date-table
th
{
color
:
#fff
;
}
.el-picker-panel
.el-date-table
td
.available
{
//
width
:
14px
;
//
height
:
14px
;
...
...
@@ -403,28 +408,35 @@ export default {
font-weight
:
bold
;
color
:
#fff
;
}
.el-picker-panel
.el-date-table
td
.available
:hover
{
color
:
#ffffff
;
}
.el-date-table
td
.end-date
span
,
.el-date-table
td
.start-date
span
{
.el-date-table
td
.end-date
span
,
.el-date-table
td
.start-date
span
{
background-color
:
#EB6001
!important
;
}
.el-date-table
td
.today
span
{
.el-date-table
td
.today
span
{
color
:
#EB6001
!important
;
}
.el-picker-panel
.el-date-table
td
.available
{
.el-picker-panel
.el-date-table
td
.available
{
color
:
#c5c5c5
;
}
.el-select-dropdown__list
{
background
:
#333
;
.el-select-dropdown__list
{
background
:
#333
;
}
</
style
>
<
style
lang=
'scss'
scoped
>
.high-light-num
{
.high-light-num
{
color
:
#FFF
;
cursor
:
pointer
;
//
font-weight
:
700
;
}
.activity-Name
{
//
width
:
100%
;
display
:
grid
;
...
...
@@ -450,14 +462,17 @@ export default {
height
:
56px
;
width
:
100%
;
position
:
relative
;
.demo-form-inline
{
height
:
76px
;
display
:
flex
;
align-items
:
center
;
/deep/.el-select-dropdown__item.selected{
/deep/
.el-select-dropdown__item.selected
{
color
:
#EB6001
;
}
/
deep
/
.el-date-table
td
.available
today
span
{
/
deep
/
.el-date-table
td
.available
today
span
{
color
:
red
!important
;
}
...
...
@@ -469,11 +484,14 @@ export default {
/
deep
/
.el-input--mini
.el-input__inner
,
/
deep
/
.el-range-editor--mini.el-input__inner
,
/
deep
/
.el-range-editor--mini
.el-range-input
{
background
:
#353535
;
border
:
none
;
color
:
#fff
;
}
.btn-out-warp
{
.btn-out-warp
{
right
:
0
;
position
:
absolute
;
}
.btn-wrap
{
.btn
{
border
:
none
;
...
...
@@ -510,6 +528,7 @@ export default {
background
:
#262525
;
border-color
:
#606266
;
}
/
deep
/
.el-table
.descending
.sort-caret.descending
{
//
border-bottom-color
:
#EB6001
;
border-top-color
:
#EB6001
...
...
@@ -521,7 +540,7 @@ export default {
}
/
deep
/
.el-table__empty-block
{
max-height
:
20vh
;
max-height
:
20vh
;
background
:
#0A0909
;
}
...
...
@@ -537,7 +556,7 @@ export default {
/
deep
/
.el-table--enable-row-hover
.el-table__body
tr
:hover
>
td
{
background-color
:
#353535
!important
;
cursor
:
pointer
;
cursor
:
default
;
}
//
去掉外边框线
...
...
src/components/ViewContentLeft.vue
View file @
f69e7d2
<
template
>
<div
class=
"left"
>
<div
class=
"top"
>
<view-sub-title
title=
"数据总览"
/>
<div
class=
'left'
>
<div
class=
'top'
>
<view-sub-title
title=
'数据总览'
/>
<view-tabs
/>
</div>
</div>
</
template
>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
'text/ecmascript-6'
>
import
datas
from
'../utils/data'
export
default
{
name
:
'ViewContentLeft'
,
components
:
{
},
components
:
{},
data
()
{
return
{
defaultHeight
:
datas
.
DefaultData
.
defaultPieHeight
,
defaultHeight
:
datas
.
DefaultData
.
defaultPieHeight
}
},
mounted
()
{
},
methods
:
{
}
methods
:
{}
}
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
'scss'
>
.left
{
display
:
flex
;
flex-direction
:
column
;
.top{
height
:
100%
;
}
}
</
style
>
src/components/ViewContentRight.vue
View file @
f69e7d2
...
...
@@ -8,10 +8,10 @@
<
template
>
<div
class=
'right'
>
<!--
<view-sub-title
title=
"售后数据总览"
/>
-->
<StaticRank
:rankDataList=
'totalRank'
name=
'viewMerchant'
numName=
'viewNum'
title=
'访问排名'
/>
<StaticRank
:rankDataList=
'totalRank'
name=
'forwardMerchant'
numName=
'forwardMum'
title=
'转发排名'
/>
<StaticRank
:rankDataList=
'totalRank'
name=
'clueMerchant'
numName=
'clueMum'
title=
'线索排名'
/>
<StaticRank
:rankDataList=
'totalRank'
name=
'activateMerchant'
numName=
'activateMum'
title=
'激活排名'
/>
<StaticRank
:rankDataList=
'totalRank'
name=
'viewMerchant'
numName=
'viewNum'
title=
'访问排名'
/>
<StaticRank
:rankDataList=
'totalRank'
name=
'forwardMerchant'
numName=
'forwardMum'
title=
'转发排名'
/>
<StaticRank
:rankDataList=
'totalRank'
name=
'clueMerchant'
numName=
'clueMum'
title=
'线索排名'
/>
<StaticRank
:rankDataList=
'totalRank'
name=
'activateMerchant'
numName=
'activateMum'
title=
'激活排名'
/>
</div>
</
template
>
...
...
@@ -29,7 +29,7 @@ export default {
this
.
getRank
()
},
methods
:
{
getRank
(){
getRank
()
{
this
.
api
.
renewal
.
getRanking
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
totalRank
=
res
.
data
.
dataList
...
...
@@ -42,7 +42,7 @@ export default {
<
style
scoped
lang=
'scss'
>
.right
{
width
:
9
8
%
;
width
:
9
9
%
;
display
:
grid
;
grid-template-columns
:
25%
25%
25%
25%
;
}
...
...
src/components/ViewDialogTable.vue
View file @
f69e7d2
...
...
@@ -141,12 +141,14 @@ export default {
watch
:
{
selectedData
:
{
handler
(
newValue
,
oldValue
)
{
console
.
log
(
newValue
)
this
.
detailTitle
=
newValue
&&
this
.
switchSelectedType
(
newValue
.
type
)
this
.
renewalSearchForm
.
activityName
=
newValue
.
activityName
// '活动1'
this
.
renewalSearchForm
.
merchantId
=
newValue
.
merchantId
// '4419194XX'
this
.
renewalSearchForm
.
startDate
=
newValue
.
params
.
startDate
this
.
renewalSearchForm
.
endDate
=
newValue
.
params
.
endDate
setTimeout
(()
=>
{
this
.
$refs
.
renewalListRef
?.
refreshTable
()
this
.
showFuncIntro
=
true
...
...
src/components/ViewSubTitle.vue
View file @
f69e7d2
...
...
@@ -37,4 +37,4 @@ export default {
}
}
</
style
>
\ No newline at end of file
</
style
>
src/components/ViewTabs.vue
View file @
f69e7d2
...
...
@@ -21,13 +21,14 @@
</div>
</div>
</div>
<div
class=
'tabs-content box'
>
<div
class=
'tabs-content box'
v-loading=
'loading'
>
<div
class=
'tabs-title title-icon'
>
<span>
{{
linaBarTitle
}}
</span>
</div>
<line-bar
domId=
'viewTrendDomId'
:dataList=
'viewTrendList'
boxHeight=
'20vh'
></line-bar>
<line-bar
:isDatazoom=
'true'
domId=
'viewTrendDomId'
:dataList=
'viewTrendList'
boxHeight=
'190px'
></line-bar>
</div>
</div>
</
template
>
...
...
@@ -40,6 +41,7 @@ export default {
mixins
:
[
changeMixin
],
data
()
{
return
{
loading
:
false
,
tabHead
:
[],
tabTitle
:
'客户总数'
,
tabType
:
'total'
,
...
...
@@ -82,8 +84,10 @@ export default {
this
.
getviewTrend
(
type
,
title
)
},
getOverview
()
{
// this.loading = true
this
.
api
.
renewal
.
getOverview
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
// this.loading = false
this
.
dataOverView
=
res
.
data
.
dataList
[
0
]
}
})
...
...
@@ -92,6 +96,7 @@ export default {
// 获取浏览量趋势
getviewTrend
(
type
=
'view'
,
title
=
'访问量'
)
{
this
.
linaBarTitle
=
title
if
(
type
==
'views'
)
type
=
'view'
let
params
=
{
queryItem
:
type
}
this
.
api
.
renewal
.
getviewTrend
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
...
...
@@ -108,7 +113,7 @@ export default {
//
margin-bottom
:
0.6vh
;
.tab
{
height
:
7.8vh
;
//
height
:
7.8vh
;
display
:
grid
;
margin-bottom
:
3px
;
//
overflow
:
hidden
;
...
...
@@ -169,7 +174,9 @@ export default {
}
&
-content
{
height
:
24.4vh
;
//
height
:
24.4vh
;
height
:
67%
;
overflow
:
hidden
;
box-sizing
:
border-box
;
padding
:
1vh
8px
;
display
:
flex
;
...
...
@@ -186,96 +193,96 @@ export default {
}
}
&
-chart
{
height
:
20.2vh
;
margin-top
:
auto
;
justify-content
:
space-between
;
gap
:
0
8px
;
.line
{
flex
:
7
;
justify-content
:
center
;
.canvas
{
width
:
100%
;
height
:
100%
;
}
.empty-img
{
max-width
:
20vh
;
height
:
9.5vh
;
}
}
.table
{
flex
:
3
;
background
:
#262525
;
position
:
relative
;
.table-position
{
position
:
absolute
;
top
:
-20px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
color
:
#606266
!important
;
}
&
-head
{
display
:
grid
;
grid-template-columns
:
repeat
(
2
,
50%
);
height
:
2.4vh
;
&-item
{
height
:
100%
;
font-size
:
10px
;
background
:
#353535
;
color
:
rgba
(
$
color
:
#fff
,
$
alpha
:
0.7
);
justify-content
:
center
;
&:hover
{
opacity
:
0.9
;
}
}
.active
{
background
:
#eb6001
;
color
:
#fff
;
}
}
&
-body
{
height
:
calc
(
100%
-
2.4vh
);
&-item
{
//
line-height
:
3.4vh
;
width
:
100%
;
font-size
:
10px
;
color
:
#ffffff
;
.table-num
{
width
:
22px
;
justify-content
:
center
;
color
:
#606266
;
}
.table-key
{
width
:
calc
(
100%
-
96px
);
//
height
:
3.6vh
;
}
.tab-value
{
width
:
52px
;
margin-left
:
auto
;
padding-right
:
4px
;
}
}
}
}
>
div
{
height
:
100%
;
}
}
//
&
-chart
{
//
height
:
20.2vh
;
//
margin-top
:
auto
;
//
justify-content
:
space-between
;
//
gap
:
0
8px
;
//
//
.line
{
//
flex
:
7
;
//
justify-content
:
center
;
//
//
.canvas
{
//
width
:
100%
;
//
height
:
100%
;
//
}
//
//
.empty-img
{
//
max-width
:
20vh
;
//
height
:
9.5vh
;
//
}
//
}
//
//
.table
{
//
flex
:
3
;
//
background
:
#262525
;
//
position
:
relative
;
//
//
.table-position
{
//
position
:
absolute
;
//
top
:
-20px
;
//
left
:
50%
;
//
transform
:
translateX
(
-50%
);
//
color
:
#606266
!important
;
//
}
//
//
&
-head
{
//
display
:
grid
;
//
grid-template-columns
:
repeat
(
2
,
50%
);
//
height
:
2.4vh
;
//
//
&-item
{
//
height
:
100%
;
//
font-size
:
10px
;
//
background
:
#353535
;
//
color
:
rgba
(
$
color
:
#fff
,
$
alpha
:
0.7
);
//
justify-content
:
center
;
//
//
&:hover
{
//
opacity
:
0.9
;
//
}
//
}
//
//
.active
{
//
background
:
#eb6001
;
//
color
:
#fff
;
//
}
//
}
//
//
&
-body
{
//
height
:
calc
(
100%
-
2.4vh
);
//
//
&-item
{
//
//
line-height
:
3.4vh
;
//
width
:
100%
;
//
font-size
:
10px
;
//
color
:
#ffffff
;
//
//
.table-num
{
//
width
:
22px
;
//
justify-content
:
center
;
//
color
:
#606266
;
//
}
//
//
.table-key
{
//
width
:
calc
(
100%
-
96px
);
//
//
height
:
3.6vh
;
//
}
//
//
.tab-value
{
//
width
:
52px
;
//
margin-left
:
auto
;
//
padding-right
:
4px
;
//
}
//
}
//
}
//
}
//
//
>
div
{
//
height
:
100%
;
//
}
//
}
}
}
...
...
src/components/ViewTitle.vue
View file @
f69e7d2
...
...
@@ -66,7 +66,7 @@ export default {
padding
:
0
24px
;
position
:
relative
;
background
:
#1d1c1c
;
z-index
:
9999999999
;
z-index
:
1000
;
.view-title
{
color
:
transparent
;
background
:
linear-gradient
(
left
,
#e60115
10%
,
#eb6001
25%
,
#f5aa01
50%
,
#fdf006
100%
);
...
...
src/components/options.js
View file @
f69e7d2
...
...
@@ -485,9 +485,9 @@ function getLineDoubleOptions(obj) {
function
lineAndBarZoomOptions
(
list
,
namelist
)
{
const
statDate
=
namelist
?
list
.
map
(
item
=>
item
[
namelist
.
xName
])
:
list
.
map
(
item
=>
item
.
stat
Month
)
const
orderNum
=
namelist
?
list
.
map
(
item
=>
item
[
namelist
.
leftYName
])
:
list
.
map
(
item
=>
item
.
orderNum
)
const
orderMoney
=
namelist
?
list
.
map
(
item
=>
item
[
namelist
.
rightYName
])
:
list
.
map
(
item
=>
item
.
orderMoney
)
const
statDate
=
namelist
?
list
.
map
(
item
=>
item
[
namelist
.
xName
])
:
list
.
map
(
item
=>
item
.
stat
Date
)
const
orderNum
=
namelist
?
list
.
map
(
item
=>
item
[
namelist
.
leftYName
])
:
list
.
map
(
item
=>
item
.
viewsincr
)
const
orderMoney
=
namelist
?
list
.
map
(
item
=>
item
[
namelist
.
rightYName
])
:
list
.
map
(
item
=>
item
.
viewstotal
)
// const statDate = list.map(item => item.statMonth)
// const orderNum = list.map(item => item.orderNum)
// const orderMoney = list.map(item => item.orderMoney)
...
...
@@ -501,17 +501,15 @@ function lineAndBarZoomOptions(list, namelist) {
},
padding
:
5
,
borderWidth
:
1
,
backgroundColor
:
'
rgba(35, 45, 152, 1)
'
,
backgroundColor
:
'
#444444
'
,
borderRadius
:
4
,
textStyle
:
{
color
:
'rgba(255,255,255,1)'
,
fontSize
:
10
},
formatter
:
function
(
item
)
{
// console.log(item)
const
items
=
list
[
item
[
0
].
dataIndex
]
return
namelist
?
`
${
items
.
statDate
}
<br>订单成功的门店数:
${
items
.
merchantNum
}
<br>订单数:
${
items
.
orderNum
}
<br>订单金额:
${
items
.
totalPrice
}
`
:
`订单数:
${
items
.
orderNum
}
<br>订单金额:
${
items
.
orderMoney
}
`
return
`
${
items
.
statDate
}
<br>总访问量:
${
items
.
viewstotal
}
<br>当日新增:
${
items
.
viewsincr
}
`
}
},
xAxis
:
[
...
...
@@ -563,13 +561,13 @@ function lineAndBarZoomOptions(list, namelist) {
grid
:
{
left
:
'6%'
,
right
:
'5%'
,
top
:
'
6
%'
,
top
:
'
10
%'
,
bottom
:
'1%'
,
containLabel
:
true
},
yAxis
:
[
{
name
:
'
bar
'
,
name
:
''
,
nameGap
:
30
,
type
:
'value'
,
splitLine
:
{
...
...
@@ -584,7 +582,7 @@ function lineAndBarZoomOptions(list, namelist) {
splitNumber
:
4
},
{
name
:
'
line
'
,
name
:
''
,
nameGap
:
30
,
type
:
'value'
,
splitLine
:
{
...
...
@@ -593,7 +591,7 @@ function lineAndBarZoomOptions(list, namelist) {
}
},
axisLabel
:
{
color
:
'#
769EFF
'
,
color
:
'#
F5AA01
'
,
fontSize
:
'0.8em'
},
splitNumber
:
4
...
...
@@ -636,8 +634,11 @@ function lineAndBarZoomOptions(list, namelist) {
name
:
'bar'
,
type
:
'bar'
,
symbol
:
'circle'
,
itemStyle
:
{
color
:
'#F5AA01'
},
backgroundStyle
:
{
color
:
'#
6578FF
'
color
:
'#
F5AA01
'
},
yAxisIndex
:
1
,
barWidth
:
'30%'
,
...
...
src/views/login/index.vue
View file @
f69e7d2
...
...
@@ -81,10 +81,12 @@ export default {
background-image
:
url('./../../assets/images/login/login-bg.png')
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
overflow
:
hidden
;
.login-top
{
width
:
100%
;
height
:
18vh
;
margin-top
:
15px
;
background-image
:
url('./../../assets/images/login/login-top.png')
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
...
...
@@ -111,13 +113,14 @@ export default {
.login-center
{
margin
:
0
auto
;
width
:
75%
;
height
:
70%
;
width
:
1068.03px
;
height
:
500px
;
//
display
:
block
;
background-image
:
url('./../../assets/images/login/login-center.png')
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
justify-content
:
center
;
//
align-items
:
center
;
align-items
:
center
;
position
:
relative
;
.authorization-wrap
{
...
...
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