Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
data-view
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 300e59d4
authored
Jul 22, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'gh_v1.2.0' of
http://192.168.3.233:8090/gh/data-view
into gh_v1.2.0
2 parents
12015a3a
6d2305ce
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
src/components/PieChart.vue
src/components/ViewTabs.vue
src/views/salesData/trend.vue
src/components/PieChart.vue
View file @
300e59d
...
@@ -149,7 +149,6 @@ export default {
...
@@ -149,7 +149,6 @@ export default {
this
.
mTime
=
setInterval
(
this
.
pieActive
,
15000
)
this
.
mTime
=
setInterval
(
this
.
pieActive
,
15000
)
})
})
this
.
echartsPie
.
on
(
'mouseover'
,
data
=>
{
this
.
echartsPie
.
on
(
'mouseover'
,
data
=>
{
console
.
log
(
data
,
'data'
)
this
.
mainValue
=
data
.
data
.
value
this
.
mainValue
=
data
.
data
.
value
this
.
numDesc
=
data
.
data
.
name
this
.
numDesc
=
data
.
data
.
name
this
.
descColor
=
data
.
color
this
.
descColor
=
data
.
color
...
...
src/components/ViewTabs.vue
View file @
300e59d
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</template>
</template>
</div>
</div>
<div
class=
"table user-select pointer"
>
<div
class=
"table user-select pointer"
>
<div
class=
"tabs-title-info table-position"
>
({{ tabTitle }})
</div>
<div
class=
"tabs-title-info table-position"
>
{{ tabTitle }}
</div>
<div
class=
"table-head"
>
<div
class=
"table-head"
>
<
template
v-for=
"(i, index) in tabHead"
>
<
template
v-for=
"(i, index) in tabHead"
>
<div
:class=
"['table-head-item flex',
{ active: index == tabIndex }]" :key="index" @click="tabIndex = index">
<div
:class=
"['table-head-item flex',
{ active: index == tabIndex }]" :key="index" @click="tabIndex = index">
...
@@ -233,8 +233,14 @@ export default {
...
@@ -233,8 +233,14 @@ export default {
this
.
flag
=
true
this
.
flag
=
true
})
})
},
},
chartAction
(
dataList
)
{
this
.
canvas
.
dispatchAction
({
type
:
'showTip'
,
seriesIndex
:
0
,
dataIndex
:
dataList
.
length
-
1
})
},
draw
(
lineData
,
queryType
)
{
draw
(
lineData
,
queryType
)
{
console
.
log
(
lineData
)
let
data
=
[],
let
data
=
[],
Min
=
0
,
Min
=
0
,
xData
=
[],
xData
=
[],
...
@@ -337,6 +343,7 @@ export default {
...
@@ -337,6 +343,7 @@ export default {
]
]
}
}
this
.
canvas
.
setOption
(
options
)
this
.
canvas
.
setOption
(
options
)
this
.
chartAction
(
lineData
)
window
.
addEventListener
(
'resize'
,
()
=>
{
window
.
addEventListener
(
'resize'
,
()
=>
{
this
.
canvas
.
resize
()
this
.
canvas
.
resize
()
})
})
...
@@ -490,6 +497,7 @@ export default {
...
@@ -490,6 +497,7 @@ export default {
top
:
-20px
;
top
:
-20px
;
left
:
50%
;
left
:
50%
;
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
color
:
#606266
!important
;
}
}
&
-head
{
&
-head
{
display
:
grid
;
display
:
grid
;
...
...
src/views/salesData/trend.vue
View file @
300e59d
...
@@ -108,7 +108,6 @@ export default {
...
@@ -108,7 +108,6 @@ export default {
const
date
=
this
.
dataList
[
0
][
index
].
statDate
const
date
=
this
.
dataList
[
0
][
index
].
statDate
var
txt
=
date
+
'<br />'
var
txt
=
date
+
'<br />'
e
.
forEach
(
item
=>
{
e
.
forEach
(
item
=>
{
console
.
log
(
item
)
item
.
marker
=
'<span style=\"display:inline-block;margin-right:4px;border-radius:5px;width:5px;height:5px;background-color:'
+
this
.
colorList
[
item
.
componentIndex
]
+
';\"></span>'
item
.
marker
=
'<span style=\"display:inline-block;margin-right:4px;border-radius:5px;width:5px;height:5px;background-color:'
+
this
.
colorList
[
item
.
componentIndex
]
+
';\"></span>'
txt
=
txt
+
item
.
marker
+
item
.
seriesName
+
':'
+
item
.
value
+
'<br />'
txt
=
txt
+
item
.
marker
+
item
.
seriesName
+
':'
+
item
.
value
+
'<br />'
})
})
...
...
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