Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yuji-dataview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭铭瑶
yuji-dataview
Commits
3911c170
Commit
3911c170
authored
Aug 27, 2020
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
b5acf296
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
20 deletions
+35
-20
App.vue
src/App.vue
+7
-4
special-monitoring.vue
src/views/components/disease/special-monitoring.vue
+2
-2
quality-warning.vue
src/views/components/quality-safety/quality-warning.vue
+1
-1
mode-rate2.vue
src/views/components/rice-fish/mode-rate2.vue
+25
-13
No files found.
src/App.vue
View file @
3911c170
...
...
@@ -17,8 +17,11 @@ export default {
return
(
path
===
'/quality-safety'
||
path
===
'/seedling'
)
?
({
'background'
:
`url(
${
require
(
'./assets/images/bg.jpeg'
)}
)`
,
'background-size'
:
'cover'
,
'background-position'
:
'center'
,
'background-size'
:
'120%'
,
'background-position'
:
'30% 80%'
,
// 'background': `url(${require('./assets/images/bg.jpeg')})`,
// 'background-size': 'cover',
// 'background-position': 'center',
})
:
({})
}
...
...
@@ -30,8 +33,8 @@ export default {
#app
background url('./assets/images/bg.png')
background-repeat no-repeat
background-size 1
1
0%
background-position
90% -5
0%
background-size 1
2
0%
background-position
40% -8
0%
.router-view
height calc(100% - 4rem)
</
style
>
...
...
src/views/components/disease/special-monitoring.vue
View file @
3911c170
...
...
@@ -104,7 +104,7 @@ export default {
},
axisLabel
:
{
textStyle
:
{
color
:
'
red
'
,
color
:
'
#00d2ff
'
,
},
fontSize
:
this
.
fontSize
,
},
...
...
@@ -158,7 +158,7 @@ export default {
const
list
=
mock
.
filter
(
item
=>
item
.
disease
===
disease
).
reverse
()
this
.
option
.
series
=
[
{
name
:
'阳性监测点数量'
,
itemStyle
:
{
color
:
'gold'
},
type
:
'line'
,
data
:
list
.
map
(
item
=>
item
.
data1
)},
{
name
:
'阳性样品数量'
,
itemStyle
:
{
color
:
'
red
'
},
yAxisIndex
:
1
,
type
:
'line'
,
data
:
list
.
map
(
item
=>
item
.
data2
)},
{
name
:
'阳性样品数量'
,
itemStyle
:
{
color
:
'
#00d2ff
'
},
yAxisIndex
:
1
,
type
:
'line'
,
data
:
list
.
map
(
item
=>
item
.
data2
)},
]
const
max
=
Math
.
max
(...
list
.
map
(
item
=>
item
.
data1
),
...
list
.
map
(
item
=>
item
.
data2
))
this
.
option
.
yAxis
[
0
].
max
=
max
...
...
src/views/components/quality-safety/quality-warning.vue
View file @
3911c170
...
...
@@ -55,7 +55,7 @@ export default {
color
:
'#fff'
,
},
inRange
:
{
color
:
[
'
green'
,
'yellow'
,
'red
'
]
color
:
[
'
#46e016'
,
'gold'
,
'#ff2424
'
]
}
},
series
:
[],
...
...
src/views/components/rice-fish/mode-rate2.vue
View file @
3911c170
<
template
>
<div
class=
"mode-rate"
>
<div
class=
"legend"
>
<
!--
<
div
class=
"legend"
>
<p
v-for=
"(item, i) in data"
:key=
"item.name"
><span
:style=
"`background:$
{config.colors[i]}`"/>
{{
item
.
name
}}
</p>
</div>
</div>
-->
<div
class=
"chart-wrapper"
v-if=
"showChart"
>
<div>
<p
class=
"title"
><span/>
面积
</p>
...
...
@@ -15,12 +15,12 @@
</div>
<div>
<p
class=
"title"
><span/>
水稻产值
</p>
<m-chart
style=
"z-index:99;"
:config=
"
config3
"
:data=
"data3"
/>
<m-chart
style=
"z-index:99;"
:config=
"
{...config3, colors: config2.colors}
" :data="data3"/>
<div
class=
"border"
/>
</div>
<div>
<p
class=
"title"
><span/>
水产品产量
</p>
<m-chart
style=
"z-index:99;"
:config=
"
config2
"
:data=
"data4"
/>
<m-chart
style=
"z-index:99;"
:config=
"
{...config2, colors: config3.colors}
" :data="data4"/>
<div
class=
"border"
/>
</div>
<div>
...
...
@@ -40,7 +40,7 @@ export default {
showChart
:
false
,
config
:
{
// colors: ['#41D9C7', '#2FC25B', '#FACC14', '#E6965C', '#223273', '#7564CC', '#5CA3E6', '#F04864', '#D598D9'],
colors
:
[
'#
02efd7'
,
'#00c6c7
'
,
'#f59946'
,
'#45dbf6'
,
'#44b0f2'
,
'#4777f5'
,
'#4f45f7'
,
'#af43f7'
,
'#fb43f2'
],
colors
:
[
'#
21f4f9'
,
'#2182f9
'
,
'#f59946'
,
'#45dbf6'
,
'#44b0f2'
,
'#4777f5'
,
'#4f45f7'
,
'#af43f7'
,
'#fb43f2'
],
legend
:
{
hide
:
true
,
},
...
...
@@ -54,8 +54,8 @@ export default {
},
data
:
[
{
name
:
'稻小龙虾'
,
value
:
19824
},
{
name
:
'稻青虾'
,
value
:
0
},
{
name
:
'稻蟹'
,
value
:
780
},
{
name
:
'稻青虾'
,
value
:
0
},
{
name
:
'稻鲤'
,
value
:
0
},
{
name
:
'稻鳅'
,
value
:
0
},
{
name
:
'稻鳖'
,
value
:
0
},
...
...
@@ -65,7 +65,7 @@ export default {
],
config2
:
{
// colors: ['#41D9C7', '#2FC25B', '#FACC14', '#E6965C', '#223273', '#7564CC', '#5CA3E6', '#F04864', '#D598D9'],
colors
:
[
'#
02efd7'
,
'#00c6c7
'
,
'#f59946'
,
'#45dbf6'
,
'#44b0f2'
,
'#4777f5'
,
'#4f45f7'
,
'#af43f7'
,
'#fb43f2'
],
colors
:
[
'#
ffda30'
,
'#31d7ff
'
,
'#f59946'
,
'#45dbf6'
,
'#44b0f2'
,
'#4777f5'
,
'#4f45f7'
,
'#af43f7'
,
'#fb43f2'
],
legend
:
{
hide
:
true
,
},
...
...
@@ -79,8 +79,8 @@ export default {
},
data2
:
[
{
name
:
'稻小龙虾'
,
value
:
10650.02
},
{
name
:
'稻青虾'
,
value
:
0
},
{
name
:
'稻蟹'
,
value
:
385.28
},
{
name
:
'稻青虾'
,
value
:
0
},
{
name
:
'稻鲤'
,
value
:
0
},
{
name
:
'稻鳅'
,
value
:
0
},
{
name
:
'稻鳖'
,
value
:
0
},
...
...
@@ -90,7 +90,7 @@ export default {
],
config3
:
{
// colors: ['#41D9C7', '#2FC25B', '#FACC14', '#E6965C', '#223273', '#7564CC', '#5CA3E6', '#F04864', '#D598D9'],
colors
:
[
'#
02efd7'
,
'#00c6c7
'
,
'#f59946'
,
'#45dbf6'
,
'#44b0f2'
,
'#4777f5'
,
'#4f45f7'
,
'#af43f7'
,
'#fb43f2'
],
colors
:
[
'#
4f7aed'
,
'#ffa820
'
,
'#f59946'
,
'#45dbf6'
,
'#44b0f2'
,
'#4777f5'
,
'#4f45f7'
,
'#af43f7'
,
'#fb43f2'
],
legend
:
{
hide
:
true
,
},
...
...
@@ -104,8 +104,8 @@ export default {
},
data3
:
[
{
name
:
'稻小龙虾'
,
value
:
3863
},
{
name
:
'稻青虾'
,
value
:
0
},
{
name
:
'稻蟹'
,
value
:
316
},
{
name
:
'稻青虾'
,
value
:
0
},
{
name
:
'稻鲤'
,
value
:
0
},
{
name
:
'稻鳅'
,
value
:
0
},
{
name
:
'稻鳖'
,
value
:
0
},
...
...
@@ -115,8 +115,8 @@ export default {
],
data4
:
[
{
name
:
'稻小龙虾'
,
value
:
2305.104
},
{
name
:
'稻青虾'
,
value
:
0
},
{
name
:
'稻蟹'
,
value
:
75.546
},
{
name
:
'稻青虾'
,
value
:
0
},
{
name
:
'稻鲤'
,
value
:
0
},
{
name
:
'稻鳅'
,
value
:
0
},
{
name
:
'稻鳖'
,
value
:
0
},
...
...
@@ -126,8 +126,8 @@ export default {
],
data5
:
[
{
name
:
'稻小龙虾'
,
value
:
8190
},
{
name
:
'稻青虾'
,
value
:
0
},
{
name
:
'稻蟹'
,
value
:
334
},
{
name
:
'稻青虾'
,
value
:
0
},
{
name
:
'稻鲤'
,
value
:
0
},
{
name
:
'稻鳅'
,
value
:
0
},
{
name
:
'稻鳖'
,
value
:
0
},
...
...
@@ -171,7 +171,7 @@ export default {
.border
width 8rem
height @width
border 0.2rem solid
#00f2ff
border 0.2rem solid
transparent
position absolute
top 50%
left 50%
...
...
@@ -179,6 +179,18 @@ export default {
border-radius 50%
box-shadow 0 0 1rem 0.2rem rgba(255,255,255,0.3), inset 0 0 1rem 0.2rem rgba(255,255,255,0.3)
opacity .9
&:nth-of-type(2)
.border
border-color #f6d633
&:nth-of-type(3)
.border
border-color #36d4f5
&:nth-of-type(4)
.border
border-color #4b78e2
&:nth-of-type(5)
.border
border-color #e39e2c
.title
position absolute
left 1rem
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment