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