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 af388a18
authored
Feb 28, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
90b1c3d5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
15 deletions
src/components/CanvasTab.vue
src/components/Chart.vue
src/components/Ranking.vue
src/components/Tab.vue
src/main.js
src/mixins/canvasMixin.js
src/views/report/index.vue
src/components/CanvasTab.vue
View file @
af388a1
...
@@ -22,14 +22,13 @@ export default {
...
@@ -22,14 +22,13 @@ export default {
watch
:
{
watch
:
{
tabIndex
:
{
tabIndex
:
{
handler
()
{
handler
()
{
this
.
initTextData
()
this
.
initTextData
()
},
},
immediate
:
true
immediate
:
true
},
},
outputData
:
{
outputData
:
{
handler
()
{
handler
()
{
this
.
initTextData
()
this
.
initTextData
()
},
},
deep
:
true
,
deep
:
true
,
immediate
:
true
immediate
:
true
...
@@ -65,10 +64,10 @@ export default {
...
@@ -65,10 +64,10 @@ export default {
if
(
parseInt
(
time
[
1
])
>
9
)
{
if
(
parseInt
(
time
[
1
])
>
9
)
{
this
.
text
=
time
[
1
]
+
'月'
this
.
text
=
time
[
1
]
+
'月'
}
else
{
}
else
{
this
.
text
=
time
[
1
]
&&
time
[
1
].
split
(
''
)[
1
]
+
'月'
this
.
text
=
time
[
1
]
&&
time
[
1
].
split
(
''
)[
1
]
+
'月'
}
}
}
}
this
.
initData
()
this
.
initData
()
},
},
initData
()
{
initData
()
{
let
{
let
{
...
@@ -128,6 +127,7 @@ export default {
...
@@ -128,6 +127,7 @@ export default {
}
}
},
},
click
(
index
)
{
click
(
index
)
{
this
.
$emit
(
'change'
,
index
)
this
.
$emit
(
'change'
,
index
)
}
}
}
}
...
@@ -149,7 +149,7 @@ export default {
...
@@ -149,7 +149,7 @@ export default {
background-color
:
#dfe7f1
;
background-color
:
#dfe7f1
;
.item
{
.item
{
width
:
50%
;
width
:
50%
;
transition
:
all
0.5s
;
//
transition
:
all
0.5s
;
font-size
:
14px
;
font-size
:
14px
;
}
}
.active-left
{
.active-left
{
...
@@ -184,7 +184,7 @@ export default {
...
@@ -184,7 +184,7 @@ export default {
.item
{
.item
{
color
:
#333333
;
color
:
#333333
;
flex
:
1
;
flex
:
1
;
transition
:
all
0.5s
;
//
transition
:
all
0.5s
;
font-size
:
14px
;
font-size
:
14px
;
}
}
.active
{
.active
{
...
...
src/components/Chart.vue
View file @
af388a1
...
@@ -119,6 +119,8 @@ export default {
...
@@ -119,6 +119,8 @@ export default {
})
})
},
},
initLineChart
(
id
=
'lineChart'
)
{
initLineChart
(
id
=
'lineChart'
)
{
let
offsetY
offsetY
=
document
.
getElementById
(
id
).
height
*
0.4
let
{
trendList
}
=
this
let
{
trendList
}
=
this
trendList
.
forEach
(
item
=>
{
trendList
.
forEach
(
item
=>
{
item
.
type
=
'新增产值'
item
.
type
=
'新增产值'
...
@@ -127,7 +129,7 @@ export default {
...
@@ -127,7 +129,7 @@ export default {
this
.
lineChart
=
null
this
.
lineChart
=
null
this
.
lineChart
=
new
F2
.
Chart
({
this
.
lineChart
=
new
F2
.
Chart
({
id
,
id
,
padding
:
[
5
0
,
50
,
20
,
50
],
padding
:
[
7
0
,
50
,
20
,
50
],
pixelRatio
:
window
.
devicePixelRatio
pixelRatio
:
window
.
devicePixelRatio
})
})
...
@@ -156,6 +158,7 @@ export default {
...
@@ -156,6 +158,7 @@ export default {
// layout: 'vertical'
// layout: 'vertical'
// })
// })
const
tooltipEl
=
this
.
$refs
.
lineTooltip
const
tooltipEl
=
this
.
$refs
.
lineTooltip
this
.
lineChart
.
tooltip
({
this
.
lineChart
.
tooltip
({
custom
:
true
,
custom
:
true
,
showCrosshairs
:
false
,
showCrosshairs
:
false
,
...
@@ -196,7 +199,8 @@ export default {
...
@@ -196,7 +199,8 @@ export default {
...
textObj
,
...
textObj
,
content
:
'产值'
,
content
:
'产值'
,
offsetX
:
-
10
,
offsetX
:
-
10
,
offsetY
:
-
165
// offsetY: -`${offsetY}`
offsetY
:
-
156
})
})
this
.
lineChart
.
render
()
this
.
lineChart
.
render
()
},
},
...
@@ -246,19 +250,21 @@ export default {
...
@@ -246,19 +250,21 @@ export default {
onClick
(
ev
)
{
onClick
(
ev
)
{
const
data
=
ev
.
data
const
data
=
ev
.
data
if
(
data
)
{
if
(
data
)
{
console
.
log
(
data
)
//
console.log(data)
}
}
}
}
})
})
this
.
chart
.
render
()
this
.
chart
.
render
()
},
},
async
lineCustomerChart
(
id
=
'lineCustomerChart'
)
{
async
lineCustomerChart
(
id
=
'lineCustomerChart'
)
{
let
offsetY
offsetY
=
document
.
getElementById
(
id
).
height
*
0.4
await
this
.
dynamicTick
()
//动态生成各个标度点的间距
await
this
.
dynamicTick
()
//动态生成各个标度点的间距
this
.
lineChartCustomer
&&
this
.
lineChartCustomer
.
clear
()
this
.
lineChartCustomer
&&
this
.
lineChartCustomer
.
clear
()
this
.
lineChartCustomer
=
null
this
.
lineChartCustomer
=
null
this
.
lineChartCustomer
=
new
F2
.
Chart
({
this
.
lineChartCustomer
=
new
F2
.
Chart
({
id
,
id
,
padding
:
[
5
0
,
50
,
20
,
50
],
padding
:
[
7
0
,
50
,
20
,
50
],
pixelRatio
:
window
.
devicePixelRatio
pixelRatio
:
window
.
devicePixelRatio
})
})
let
trendList
=
[]
let
trendList
=
[]
...
@@ -347,7 +353,7 @@ export default {
...
@@ -347,7 +353,7 @@ export default {
...
textObj
,
...
textObj
,
content
:
'数量'
,
content
:
'数量'
,
offsetX
:
-
10
,
offsetX
:
-
10
,
offsetY
:
-
1
65
offsetY
:
-
1
56
})
})
this
.
lineChartCustomer
.
render
()
this
.
lineChartCustomer
.
render
()
},
},
...
...
src/components/Ranking.vue
View file @
af388a1
...
@@ -64,8 +64,8 @@ export default {
...
@@ -64,8 +64,8 @@ export default {
?
'精品升级'
?
'精品升级'
:
'权益提单'
:
'权益提单'
}
}
console
.
log
(
fastOrderSource
)
//
console.log(fastOrderSource)
console
.
log
(
text
)
//
console.log(text)
if
(
accountLevel
!==
4
)
{
if
(
accountLevel
!==
4
)
{
this
.
fastData
.
push
(
this
.
fastData
.
push
(
{
text
:
'增长速度最快的业务:'
,
info
:
text
,
icon
:
'rank'
},
{
text
:
'增长速度最快的业务:'
,
info
:
text
,
icon
:
'rank'
},
...
...
src/components/Tab.vue
View file @
af388a1
...
@@ -50,6 +50,7 @@ export default {
...
@@ -50,6 +50,7 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
click
(
tabIndex
)
{
click
(
tabIndex
)
{
this
.
showLoading
()
this
.
tabIndex
=
tabIndex
this
.
tabIndex
=
tabIndex
this
.
$emit
(
'change'
,
tabIndex
)
this
.
$emit
(
'change'
,
tabIndex
)
}
}
...
...
src/main.js
View file @
af388a1
...
@@ -50,7 +50,7 @@ fetchConfig(!isMock).then(res => {
...
@@ -50,7 +50,7 @@ fetchConfig(!isMock).then(res => {
window
.
$fetchConfig
=
res
window
.
$fetchConfig
=
res
/**登录过期 重新登录 */
/**登录过期 重新登录 */
window
.
reLogin
=
()
=>
{
window
.
reLogin
=
()
=>
{
console
.
log
(
'重新登录'
)
//
console.log('重新登录')
util
.
clearSessionId
()
util
.
clearSessionId
()
store
.
dispatch
(
'navigation'
)
store
.
dispatch
(
'navigation'
)
}
}
...
...
src/mixins/canvasMixin.js
View file @
af388a1
...
@@ -208,7 +208,7 @@ export default {
...
@@ -208,7 +208,7 @@ export default {
onClick
(
ev
)
{
onClick
(
ev
)
{
const
data
=
ev
.
data
const
data
=
ev
.
data
if
(
data
)
{
if
(
data
)
{
console
.
log
(
data
)
//
console.log(data)
}
}
}
}
})
})
...
...
src/views/report/index.vue
View file @
af388a1
...
@@ -87,6 +87,7 @@ export default {
...
@@ -87,6 +87,7 @@ export default {
},
},
getData
()
{
getData
()
{
this
.
INIT_DATA
()
this
.
INIT_DATA
()
// this.hideLoading()
if
(
this
.
tabIndex
==
1
)
{
if
(
this
.
tabIndex
==
1
)
{
this
.
getReport
({
this
.
getReport
({
reportType
:
this
.
reportType
,
reportType
:
this
.
reportType
,
...
...
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