Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
energyai_vue
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
葛齐林
energyai_vue
Commits
83213254
Commit
83213254
authored
Apr 14, 2021
by
xiexingan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面调整
parent
577d0221
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
20 deletions
+26
-20
history.vue
src/pages/kb/indoor/history.vue
+7
-5
index.vue
src/pages/kb/indoor/index.vue
+1
-1
history.vue
src/pages/kb/outdoor/history.vue
+11
-9
index.vue
src/pages/kb/outdoor/index.vue
+7
-5
No files found.
src/pages/kb/indoor/history.vue
View file @
83213254
...
@@ -27,8 +27,8 @@
...
@@ -27,8 +27,8 @@
.echartsWarp(width="100%", flex)
.echartsWarp(width="100%", flex)
div(v-for='item in chartList' :key='item.id')
div(v-for='item in chartList' :key='item.id')
chart(:id="item.id", :data="data", :title="item.title", :color="item.color")
chart(:id="item.id", :data="data", :title="item.title", :color="item.color")
div
//-
div
pie
//-
pie
span.dialog-footer(slot='footer')
span.dialog-footer(slot='footer')
el-button(@click='visible = false' size='mini') 取消
el-button(@click='visible = false' size='mini') 取消
el-button(type='primary', @click='dataFormSubmit' size='mini') 确定
el-button(type='primary', @click='dataFormSubmit' size='mini') 确定
...
@@ -66,7 +66,9 @@ export default {
...
@@ -66,7 +66,9 @@ export default {
chartList
:
[
chartList
:
[
{
id
:
'11'
,
title
:
'温度'
,
color
:
'#21ACFC'
},
{
id
:
'11'
,
title
:
'温度'
,
color
:
'#21ACFC'
},
{
id
:
'22'
,
title
:
'湿度'
,
color
:
'#36CBCB'
},
{
id
:
'22'
,
title
:
'湿度'
,
color
:
'#36CBCB'
},
{
id
:
'33'
,
title
:
'CO2'
,
color
:
'#4ECB74'
}
{
id
:
'33'
,
title
:
'CO2'
,
color
:
'#4ECB74'
},
{
id
:
'77'
,
title
:
'故障报警'
,
color
:
'#975FE4'
}
],
],
data
:
[
data
:
[
[
'2019-8-14 8:00:00'
,
70
],
[
'2019-8-14 8:00:00'
,
70
],
...
@@ -142,10 +144,10 @@ export default {
...
@@ -142,10 +144,10 @@ export default {
justify-content
:
space-between
;
justify-content
:
space-between
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
height
:
calc
(
100vh
-
530px
);
height
:
calc
(
100vh
-
530px
);
margin-bottom
:
90px
;
//
margin-bottom: 90px;
// border: 1px solid;
// border: 1px solid;
>
div
{
>
div
{
width
:
22
%
;
width
:
48
%
;
height
:
calc
(
85%
/
2
);
height
:
calc
(
85%
/
2
);
padding
:
10px
10px
0
10px
;
padding
:
10px
10px
0
10px
;
box-shadow
:
0px
0px
10px
0px
rgba
(
0
,
0
,
0
,
0
.1
);
box-shadow
:
0px
0px
10px
0px
rgba
(
0
,
0
,
0
,
0
.1
);
...
...
src/pages/kb/indoor/index.vue
View file @
83213254
...
@@ -163,7 +163,7 @@ export default {
...
@@ -163,7 +163,7 @@ export default {
}).
then
((
data
)
=>
{
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
console
.
log
(
'数据'
,
data
)
console
.
log
(
'数据'
,
data
)
this
.
dataList
=
data
.
page
.
rows
//
this.dataList = data.page.rows
// this.tableColums = crecords
// this.tableColums = crecords
this
.
totalSize
=
data
.
page
.
total
this
.
totalSize
=
data
.
page
.
total
...
...
src/pages/kb/outdoor/history.vue
View file @
83213254
...
@@ -3,7 +3,7 @@ el-dialog(
...
@@ -3,7 +3,7 @@ el-dialog(
:title="type == 1 ? '历史数据' : '统计图表'",
:title="type == 1 ? '历史数据' : '统计图表'",
:close-on-click-modal="false",
:close-on-click-modal="false",
:visible.sync="visible",
:visible.sync="visible",
width="8
0
%",
width="8
5
%",
:append-to-body="true"
:append-to-body="true"
)
)
el-form(
el-form(
...
@@ -122,8 +122,8 @@ el-dialog(
...
@@ -122,8 +122,8 @@ el-dialog(
:title="item.title",
:title="item.title",
:color="item.color"
:color="item.color"
)
)
div
//-
div
pie
//-
pie
//- span.dialog-footer(slot="footer")
//- span.dialog-footer(slot="footer")
//- el-button(@click="visible = false", size="mini") 取消
//- el-button(@click="visible = false", size="mini") 取消
//- el-button(type="primary", @click="dataFormSubmit", size="mini") 确定
//- el-button(type="primary", @click="dataFormSubmit", size="mini") 确定
...
@@ -132,13 +132,13 @@ el-dialog(
...
@@ -132,13 +132,13 @@ el-dialog(
<
script
>
<
script
>
import
tablePagination
from
'@/pages/components/tablePagination'
import
tablePagination
from
'@/pages/components/tablePagination'
import
chart
from
'@/pages/components/chart.vue'
import
chart
from
'@/pages/components/chart.vue'
import
pie
from
'./pie'
//
import pie from './pie'
export
default
{
export
default
{
components
:
{
components
:
{
tablePagination
,
tablePagination
,
chart
,
chart
pie
//
pie
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -166,7 +166,8 @@ export default {
...
@@ -166,7 +166,8 @@ export default {
{
id
:
'44'
,
title
:
'光照'
,
color
:
'#FAD337'
,
data
:
[]
},
{
id
:
'44'
,
title
:
'光照'
,
color
:
'#FAD337'
,
data
:
[]
},
{
id
:
'55'
,
title
:
'CO2'
,
color
:
'#4ECB74'
,
data
:
[]
},
{
id
:
'55'
,
title
:
'CO2'
,
color
:
'#4ECB74'
,
data
:
[]
},
{
id
:
'66'
,
title
:
'PM2.5'
,
color
:
'#999999'
,
data
:
[]
},
{
id
:
'66'
,
title
:
'PM2.5'
,
color
:
'#999999'
,
data
:
[]
},
{
id
:
'77'
,
title
:
'辐射'
,
color
:
'#975FE4'
,
data
:
[]
}
{
id
:
'77'
,
title
:
'辐射'
,
color
:
'#975FE4'
,
data
:
[]
},
{
id
:
'88'
,
title
:
'故障报警数'
,
color
:
'#F2637B'
,
data
:
[]
}
],
],
dataRule
:
{}
dataRule
:
{}
}
}
...
@@ -232,6 +233,7 @@ export default {
...
@@ -232,6 +233,7 @@ export default {
this
.
chartList
[
4
].
data
=
data
.
carbonDioxideList
this
.
chartList
[
4
].
data
=
data
.
carbonDioxideList
this
.
chartList
[
5
].
data
=
data
.
fineParticlesList
this
.
chartList
[
5
].
data
=
data
.
fineParticlesList
this
.
chartList
[
6
].
data
=
data
.
radiationList
this
.
chartList
[
6
].
data
=
data
.
radiationList
this
.
chartList
[
7
].
data
=
data
.
radiationList
}
}
})
})
},
},
...
@@ -250,8 +252,8 @@ export default {
...
@@ -250,8 +252,8 @@ export default {
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
height
:
calc
(
100vh
-
5
30px
);
height
:
calc
(
100vh
-
4
30px
);
margin-bottom
:
90px
;
//
margin-bottom: 90px;
// border: 1px solid;
// border: 1px solid;
>
div
{
>
div
{
width
:
22%
;
width
:
22%
;
...
...
src/pages/kb/outdoor/index.vue
View file @
83213254
...
@@ -140,8 +140,8 @@ card-warp(title="室外气象数据", height="45px", showBackground)
...
@@ -140,8 +140,8 @@ card-warp(title="室外气象数据", height="45px", showBackground)
:title="item.title",
:title="item.title",
:color="item.color"
:color="item.color"
)
)
div
//-
div
pie
//-
pie
history(
history(
v-if="historyVisible",
v-if="historyVisible",
ref="history",
ref="history",
...
@@ -151,7 +151,7 @@ card-warp(title="室外气象数据", height="45px", showBackground)
...
@@ -151,7 +151,7 @@ card-warp(title="室外气象数据", height="45px", showBackground)
<
script
>
<
script
>
import
tablePagination
from
'@/pages/components/tablePagination'
import
tablePagination
from
'@/pages/components/tablePagination'
import
pie
from
'./pie'
//
import pie from './pie'
import
history
from
'./history'
import
history
from
'./history'
import
chart
from
'@/pages/components/chart.vue'
import
chart
from
'@/pages/components/chart.vue'
...
@@ -159,7 +159,7 @@ export default {
...
@@ -159,7 +159,7 @@ export default {
components
:
{
components
:
{
tablePagination
,
tablePagination
,
chart
,
chart
,
pie
,
//
pie,
history
history
},
},
data
()
{
data
()
{
...
@@ -194,7 +194,8 @@ export default {
...
@@ -194,7 +194,8 @@ export default {
{
id
:
'44'
,
title
:
'光照'
,
color
:
'#FAD337'
,
data
:
[]
},
{
id
:
'44'
,
title
:
'光照'
,
color
:
'#FAD337'
,
data
:
[]
},
{
id
:
'55'
,
title
:
'CO2'
,
color
:
'#4ECB74'
,
data
:
[]
},
{
id
:
'55'
,
title
:
'CO2'
,
color
:
'#4ECB74'
,
data
:
[]
},
{
id
:
'66'
,
title
:
'PM2.5'
,
color
:
'#999999'
,
data
:
[]
},
{
id
:
'66'
,
title
:
'PM2.5'
,
color
:
'#999999'
,
data
:
[]
},
{
id
:
'77'
,
title
:
'辐射'
,
color
:
'#975FE4'
,
data
:
[]
}
{
id
:
'77'
,
title
:
'辐射'
,
color
:
'#975FE4'
,
data
:
[]
},
{
id
:
'88'
,
title
:
'故障报警数'
,
color
:
'#F2637B'
,
data
:
[]
}
],
],
type
:
1
,
type
:
1
,
data
:
[
data
:
[
...
@@ -229,6 +230,7 @@ export default {
...
@@ -229,6 +230,7 @@ export default {
this
.
chartList
[
4
].
data
=
data
.
carbonDioxideList
this
.
chartList
[
4
].
data
=
data
.
carbonDioxideList
this
.
chartList
[
5
].
data
=
data
.
fineParticlesList
this
.
chartList
[
5
].
data
=
data
.
fineParticlesList
this
.
chartList
[
6
].
data
=
data
.
radiationList
this
.
chartList
[
6
].
data
=
data
.
radiationList
this
.
chartList
[
7
].
data
=
data
.
radiationList
}
}
})
})
},
},
...
...
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