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
c91fa696
Commit
c91fa696
authored
Apr 06, 2021
by
caojm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微调
parent
75f3d0fa
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
26 deletions
+43
-26
public.scss
src/assets/style/public.scss
+6
-0
cardList.vue
src/pages/components/cardList.vue
+5
-2
enTable.vue
src/pages/components/enTable.vue
+2
-2
historyDataModal.vue
src/pages/kb/power/components/historyDataModal.vue
+7
-6
statisticPicTableModal.vue
src/pages/kb/power/components/statisticPicTableModal.vue
+23
-16
No files found.
src/assets/style/public.scss
View file @
c91fa696
...
@@ -113,6 +113,12 @@ $el-bg-color-4: #F2F6FC;
...
@@ -113,6 +113,12 @@ $el-bg-color-4: #F2F6FC;
.el-table__row
>
td
{
.el-table__row
>
td
{
border
:
none
;
border
:
none
;
}
}
th
{
background
:
rgba
(
0
,
151
,
255
,
0
.08
);
font-size
:
12px
;
}
td
:
:
before
{
td
:
:
before
{
height
:
0px
;
height
:
0px
;
...
...
src/pages/components/cardList.vue
View file @
c91fa696
...
@@ -36,15 +36,18 @@ export default {
...
@@ -36,15 +36,18 @@ export default {
&
-line
{
&
-line
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
17px
15px
17px
17
px
;
padding
:
0
20
px
;
border-bottom
:
1px
solid
#d9d9d9
;
border-bottom
:
1px
solid
#d9d9d9
;
background
:
#F2FAFF
;
height
:
45px
;
line-height
:
45px
;
.card-list-title
{
.card-list-title
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
font-size
:
16px
;
font-size
:
16px
;
font-family
:
Microsoft
YaHei
;
font-family
:
Microsoft
YaHei
;
font-weight
:
4
00
;
font-weight
:
6
00
;
color
:
#000000
;
color
:
#000000
;
}
}
.
card-list-title
:
:
before
{
.
card-list-title
:
:
before
{
...
...
src/pages/components/enTable.vue
View file @
c91fa696
...
@@ -41,9 +41,9 @@
...
@@ -41,9 +41,9 @@
line-height: 3;
line-height: 3;
"
"
>
>
<div
class=
"record-color marg_r_18"
>
共34860条记录
</div>
<
!-- <
div class="record-color marg_r_18">共34860条记录</div>
<div class="record-color marg_r_8">共20页</div>
<div class="record-color marg_r_8">共20页</div>
<div
class=
"record-color"
>
每页显示
</div>
<div class="record-color">每页显示</div>
-->
<!-- background -->
<!-- background -->
<el-pagination
layout=
"sizes, prev, pager, next"
:total=
"1000"
>
<el-pagination
layout=
"sizes, prev, pager, next"
:total=
"1000"
>
</el-pagination>
</el-pagination>
...
...
src/pages/kb/power/components/historyDataModal.vue
View file @
c91fa696
...
@@ -3,19 +3,20 @@
...
@@ -3,19 +3,20 @@
title=
"历史数据"
title=
"历史数据"
:visible
.
sync=
"historyDataModalVisible"
:visible
.
sync=
"historyDataModalVisible"
:append-to-body=
"true"
:append-to-body=
"true"
@
close=
"cancelhandle"
>
>
<el-form
:inline=
"true"
>
<el-form
:inline=
"true"
>
<el-form-item
label=
"设备名称:"
:label-width=
"formLabelWidth
"
>
<el-form-item
label=
"设备名称:"
style=
"margin-bottom:0
"
>
<el-input
size=
"mini"
autocomplete=
"off"
></el-input>
<el-input
size=
"mini"
autocomplete=
"off"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"设备编号:"
:label-width=
"formLabelWidth
"
>
<el-form-item
label=
"设备编号:"
style=
"margin-bottom:0
"
>
<el-input
size=
"mini"
autocomplete=
"off"
></el-input>
<el-input
size=
"mini"
autocomplete=
"off"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"数据起止阶段:"
:label-width=
"formLabelWidth"
>
<el-form-item
label=
"数据起止阶段:"
>
<el-date-picker
style=
"width:1
57
px"
size=
"mini"
type=
"date"
placeholder=
""
>
<el-date-picker
style=
"width:1
72
px"
size=
"mini"
type=
"date"
placeholder=
""
>
</el-date-picker>
</el-date-picker>
<span
style=
"padding:0 10px"
>
至
</span>
<span
style=
"padding:0 10px"
>
至
</span>
<el-date-picker
style=
"width:1
57
px"
size=
"mini"
type=
"date"
placeholder=
""
>
<el-date-picker
style=
"width:1
72
px"
size=
"mini"
type=
"date"
placeholder=
""
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
>
<el-form-item
>
...
@@ -64,7 +65,7 @@ export default {
...
@@ -64,7 +65,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
formLabelWidth
:
"
11
0px"
,
formLabelWidth
:
"0px"
,
historyData
,
historyData
,
tableColums
,
tableColums
,
};
};
...
...
src/pages/kb/power/components/statisticPicTableModal.vue
View file @
c91fa696
...
@@ -3,17 +3,18 @@
...
@@ -3,17 +3,18 @@
title=
"统计图表"
title=
"统计图表"
:visible
.
sync=
"statisticModalVisible"
:visible
.
sync=
"statisticModalVisible"
:append-to-body=
"true"
:append-to-body=
"true"
@
close=
"cancelhandlePic"
>
>
<el-form
:inline=
"true"
>
<el-form
:inline=
"true"
>
<el-form-item
label=
"设备名称:"
label-width=
"formLabelWidth
"
>
<el-form-item
label=
"设备名称:"
style=
"margin-bottom:0
"
>
<el-input
size=
"mini"
autocomplete=
"off"
></el-input>
<el-input
size=
"mini"
autocomplete=
"off"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"设备编号:"
label-width=
"formLabelWidth
"
>
<el-form-item
label=
"设备编号:"
style=
"margin-bottom:0
"
>
<el-input
size=
"mini"
autocomplete=
"off"
></el-input>
<el-input
size=
"mini"
autocomplete=
"off"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"数据起止阶段:"
label-width=
"formLabelWidth"
>
<el-form-item
label=
"数据起止阶段:"
>
<el-date-picker
<el-date-picker
style=
"width:
157
px"
style=
"width:
172
px"
size=
"mini"
size=
"mini"
type=
"date"
type=
"date"
placeholder=
""
placeholder=
""
...
@@ -21,7 +22,7 @@
...
@@ -21,7 +22,7 @@
</el-date-picker>
</el-date-picker>
<span
style=
"padding: 0 10px"
>
至
</span>
<span
style=
"padding: 0 10px"
>
至
</span>
<el-date-picker
<el-date-picker
style=
"width: 157
px"
style=
"width:172
px"
size=
"mini"
size=
"mini"
type=
"date"
type=
"date"
placeholder=
""
placeholder=
""
...
@@ -34,14 +35,14 @@
...
@@ -34,14 +35,14 @@
>
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
id=
"categoryId"
style=
"height: 200px"
></div>
<div
v-if=
"statisticModalVisible"
id=
"categoryId"
style=
"height: 200px"
></div>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
@
click=
"cancelhandlePic"
>
取 消
</el-button>
<el-button
@
click=
"cancelhandlePic"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click
.
stop=
"cancelhandlePic"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click
.
stop=
"cancelhandlePic"
>
确 定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
>
export
default
{
export
default
{
name
:
"statisticPicTableModal"
,
name
:
"statisticPicTableModal"
,
props
:
[
"statisticModalVisible"
],
props
:
[
"statisticModalVisible"
],
...
@@ -51,17 +52,22 @@ export default {
...
@@ -51,17 +52,22 @@ export default {
category
:
null
,
category
:
null
,
};
};
},
},
// watch: {
watch
:
{
// statisticModalVisible(value) {
statisticModalVisible
(
value
)
{
// if (value) {
if
(
value
)
{
// }
// },
// },
mounted
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
initCategory
();
this
.
initCategory
();
},
3000
);
},
3000
);
}
else
{
this
.
category
=
null
}
},
},
mounted
()
{
// setTimeout(() => {
// this.initCategory();
// }, 3000);
},
},
methods
:
{
methods
:
{
cancelhandlePic
()
{
cancelhandlePic
()
{
...
@@ -69,6 +75,7 @@ export default {
...
@@ -69,6 +75,7 @@ export default {
},
},
initCategory
()
{
initCategory
()
{
let
gId
=
document
.
getElementById
(
"categoryId"
);
let
gId
=
document
.
getElementById
(
"categoryId"
);
this
.
category
=
this
.
$echarts
.
init
(
gId
);
this
.
category
=
this
.
$echarts
.
init
(
gId
);
const
option
=
{
const
option
=
{
xAxis
:
{
xAxis
:
{
...
...
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