Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-report
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
4
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fb99243c
authored
Feb 08, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
20ccfb75
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
34 additions
and
47 deletions
src/assets/css/index.scss
src/assets/css/sprite.scss
src/assets/images/sprite.png
src/assets/spritesmith/masonry.png
src/components/Ranking.vue
src/components/Tab.vue
src/components/TimeSearch.vue
src/router/router.js
src/views/report/index.vue
src/assets/css/index.scss
View file @
fb99243
...
...
@@ -4,8 +4,8 @@ body .app {
color
:
#333333
;
font-family
:
Arial
,
Helvetica
,
'STHeiti STXihei'
,
'Microsoft YaHei'
,
Tohoma
,
sans-serif
;
-webkit-overflow-scrolling
:
touch
;
height
:
100
%
;
//
overflow: hidden;
height
:
100
vh
;
overflow
:
hidden
;
}
img
{
...
...
src/assets/css/sprite.scss
View file @
fb99243
.sprite-icon
{
background-image
:
url(../images/sprite.png)
;
background-size
:
345px
270px
;}
.icon-bg
{
width
:
345px
;
height
:
180px
;
background-position
:
0px
0px
;}
.icon-client
{
width
:
26px
;
height
:
26px
;
background-position
:
-37px
-244px
;}
.icon-crown
{
width
:
12px
;
height
:
9px
;
background-position
:
-
265
px
-244px
;}
.icon-crown
{
width
:
12px
;
height
:
9px
;
background-position
:
-
301
px
-244px
;}
.icon-customers
{
width
:
40px
;
height
:
44px
;
background-position
:
0px
-190px
;}
.icon-equity
{
width
:
40px
;
height
:
44px
;
background-position
:
-50px
-190px
;}
.icon-helmet
{
width
:
26px
;
height
:
26px
;
background-position
:
-73px
-244px
;}
.icon-huangguan
{
width
:
14px
;
height
:
15px
;
background-position
:
-2
17
px
-244px
;}
.icon-icondown
{
width
:
5px
;
height
:
8px
;
background-position
:
-
287
px
-244px
;}
.icon-iconup
{
width
:
5px
;
height
:
8px
;
background-position
:
-3
02
px
-244px
;}
.icon-huangguan
{
width
:
14px
;
height
:
15px
;
background-position
:
-2
53
px
-244px
;}
.icon-icondown
{
width
:
5px
;
height
:
8px
;
background-position
:
-
323
px
-244px
;}
.icon-iconup
{
width
:
5px
;
height
:
8px
;
background-position
:
-3
38
px
-244px
;}
.icon-liushi
{
width
:
40px
;
height
:
44px
;
background-position
:
-100px
-190px
;}
.icon-message
{
width
:
14px
;
height
:
13px
;
background-position
:
-2
41
px
-244px
;}
.icon-message
{
width
:
14px
;
height
:
13px
;
background-position
:
-2
77
px
-244px
;}
.icon-production
{
width
:
40px
;
height
:
44px
;
background-position
:
-150px
-190px
;}
.icon-proportion
{
width
:
26px
;
height
:
26px
;
background-position
:
-109px
-244px
;}
.icon-Qy
{
width
:
40px
;
height
:
44px
;
background-position
:
-200px
-190px
;}
...
...
@@ -17,4 +17,5 @@
.icon-rank
{
width
:
27px
;
height
:
26px
;
background-position
:
0px
-244px
;}
.icon-speed
{
width
:
26px
;
height
:
26px
;
background-position
:
-181px
-244px
;}
.icon-totalCu
{
width
:
40px
;
height
:
44px
;
background-position
:
-250px
-190px
;}
.icon-wechat-customers
{
width
:
40px
;
height
:
44px
;
background-position
:
-300px
-190px
;}
\ No newline at end of file
.icon-wechat-customers
{
width
:
40px
;
height
:
44px
;
background-position
:
-300px
-190px
;}
.icon-masonry
{
width
:
26px
;
height
:
26px
;
background-position
:
-217px
-244px
;}
\ No newline at end of file
src/assets/images/sprite.png
View file @
fb99243
173 KB
|
W:
|
H:
175 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/spritesmith/masonry.png
0 → 100644
View file @
fb99243
1.92 KB
src/components/Ranking.vue
View file @
fb99243
...
...
@@ -59,19 +59,20 @@ export default {
?
'精品升级'
:
'权益提单'
}
this
.
fastData
.
push
({
text
:
'增长速度最快业务:'
,
info
:
text
,
icon
:
'rank'
})
if
(
accountLevel
!==
4
)
{
this
.
fastData
.
push
({
text
:
'产值排行榜冠军店:'
,
value
:
obj
=>
{
return
obj
.
mostProductionValueMerchantName
?
obj
.
mostProductionValueMerchantName
:
'-'
},
icon
:
'helmet'
})
this
.
fastData
.
push
(
{
text
:
'增长速度最快的业务:'
,
info
:
text
,
icon
:
'rank'
},
{
text
:
'产值排行榜冠军店:'
,
value
:
obj
=>
{
return
obj
.
mostProductionValueMerchantName
?
obj
.
mostProductionValueMerchantName
:
'-'
},
icon
:
'helmet'
}
)
}
else
{
this
.
fastData
.
push
({
text
:
'增长速度最快的业务:'
,
info
:
text
,
icon
:
'masonry'
})
}
}
else
{
if
(
accountLevel
!==
4
)
{
...
...
src/components/Tab.vue
View file @
fb99243
<
template
>
<div
:class=
"[
{'sticky':sticky},'Tab']">
<van-tabs
v-model=
"tabIndex"
:color=
"activeColor"
title-inactive-color=
"#BBB"
title-active-color=
"#2c2c2c"
@
click=
"click"
:key=
"updata"
:line-width=
"lineWidth"
>
<template
v-for=
"(i,index) in data"
>
<van-tab
:title=
"i"
:key=
"index"
>
<div
:class=
"[
{ sticky: sticky }, 'Tab']">
<van-tabs
v-model=
"tabIndex"
:color=
"activeColor"
title-inactive-color=
"#BBB"
title-active-color=
"#2c2c2c"
@
click=
"click"
:key=
"updata"
:line-width=
"lineWidth"
>
<template
v-for=
"(i, index) in data"
>
<van-tab
:title=
"i"
:key=
"index"
>
<slot
/>
</van-tab>
</
template
>
...
...
@@ -43,25 +32,24 @@ export default {
updata
:
null
,
lineWidth
:
null
},
data
()
{
data
()
{
return
{
tabIndex
:
this
.
index
,
data
:
this
.
list
}
},
watch
:
{
'index'
(
n
)
{
index
(
n
)
{
this
.
tabIndex
=
n
},
'updata'
(
n
)
{
updata
(
n
)
{
this
.
data
=
this
.
list
this
.
tabIndex
=
this
.
index
}
},
mounted
()
{
},
mounted
()
{},
methods
:
{
click
(
tabIndex
)
{
click
(
tabIndex
)
{
this
.
tabIndex
=
tabIndex
this
.
$emit
(
'change'
,
tabIndex
)
}
...
...
src/components/TimeSearch.vue
View file @
fb99243
...
...
@@ -152,7 +152,6 @@ export default {
<
style
scoped
lang=
'scss'
>
.top
{
border-radius
:
4px
;
//
position
:
fixed
;
width
:
345px
;
height
:
40px
;
box-sizing
:
border-box
;
...
...
src/router/router.js
View file @
fb99243
...
...
@@ -33,7 +33,6 @@ function createRouter() {
}
// http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-attachment-activity/
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
console
.
log
(
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'reportType'
)).
reportType
)
/* 路由发生变化修改页面title */
if
(
to
.
meta
.
title
)
{
...
...
src/views/report/index.vue
View file @
fb99243
...
...
@@ -20,10 +20,11 @@
<div
class=
"bottom"
>
<tab
:list=
"['客户统计', '产值统计']"
@
change=
"change"
:index=
"tabIndex"
></tab>
</div>
</div>
</template>
<
script
>
import
{
mapState
,
map
Getters
,
map
Actions
,
mapMutations
}
from
'vuex'
import
{
mapState
,
mapActions
,
mapMutations
}
from
'vuex'
import
{
scriptData
}
from
'@/api/reportApi'
export
default
{
name
:
'report'
,
...
...
@@ -54,6 +55,7 @@ export default {
},
created
()
{
let
reportType
=
this
.
getQuery
().
reportType
?
this
.
getQuery
().
reportType
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'reportType'
)).
reportType
// let reportType =0
if
(
reportType
==
0
)
{
document
.
title
=
'周报'
}
else
{
...
...
@@ -130,11 +132,8 @@ export default {
.layout-wrap
{
color
:
#333333
;
font-size
:
14px
;
height
:
100%
;
padding
:
0
15px
;
box-sizing
:
border-box
;
position
:
relative
;
height
:
100%
;
box-sizing
:
border-box
;
overflow
:
scroll
;
.content
{
...
...
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