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
29e47021
Commit
29e47021
authored
May 07, 2021
by
高超凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
c86644fd
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
858 additions
and
16 deletions
+858
-16
enTable.vue
src/pages/components/enTable.vue
+38
-1
tableList.vue
src/pages/components/tableList.vue
+32
-1
page copy.vue
src/pages/eq/hall/page copy.vue
+698
-0
page.vue
src/pages/eq/hall/page.vue
+65
-6
index.vue
src/pages/kb/indoor/index.vue
+3
-0
page.vue
src/pages/kb/power/page.vue
+20
-3
query-detail.vue
src/pages/sys/commandlog/query-detail.vue
+2
-5
No files found.
src/pages/components/enTable.vue
View file @
29e47021
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
stripe
stripe
:data=
"tableData"
:data=
"tableData"
style=
"width: 100%"
style=
"width: 100%"
:row-class-name=
"differentStateColor"
:header-cell-style=
"
{
:header-cell-style=
"
{
background: 'rgba(0, 151, 255, 0.08)',
background: 'rgba(0, 151, 255, 0.08)',
color: '#333333'
color: '#333333'
...
@@ -80,6 +81,16 @@ export default {
...
@@ -80,6 +81,16 @@ export default {
},
},
isEdit
:
{
isEdit
:
{
default
:
true
default
:
true
},
// 展示每行状态颜色
showStateColor
:
{
type
:
Boolean
,
default
:
false
,
},
// 人工模式
currentMode
:
{
type
:
Number
,
default
:
null
}
}
},
},
data
()
{
data
()
{
...
@@ -88,7 +99,24 @@ export default {
...
@@ -88,7 +99,24 @@ export default {
methods
:
{
methods
:
{
handleClick
()
{
handleClick
()
{
this
.
$emit
(
'handleBtnClick'
)
this
.
$emit
(
'handleBtnClick'
)
},
// 不同状态颜色
differentStateColor
({
row
,
rowIndex
})
{
if
(
this
.
showStateColor
==
false
)
return
;
if
(
row
.
modeTypes
===
null
||
this
.
currentMode
===
null
)
{
// 原有
return
""
;
}
else
if
(
row
.
modeTypes
.
includes
(
1
)
&&
this
.
currentMode
==
"1"
)
{
// 供暖模式
return
"table-row-mode"
;
}
else
if
(
row
.
modeTypes
.
includes
(
2
)
&&
this
.
currentMode
==
"2"
)
{
// 机械通风
return
"table-row-mechanical"
;
}
else
if
(
row
.
modeTypes
.
includes
(
3
)
&&
this
.
currentMode
==
"3"
)
{
// 自然通风
return
"table-row-natural"
;
}
}
},
}
}
}
}
</
script
>
</
script
>
...
@@ -112,5 +140,14 @@ export default {
...
@@ -112,5 +140,14 @@ export default {
color
:
#32a5ea
!
important
;
color
:
#32a5ea
!
important
;
background-color
:
red
!
important
;
background-color
:
red
!
important
;
}
}
.table-row-mode
{
background
:
rgb
(
245
,
214
,
155
);
}
.table-row-mechanical
{
background
:
#71e6e6
;
}
.table-row-natural
{
background
:
#b5f096
;
}
}
}
</
style
>
</
style
>
src/pages/components/tableList.vue
View file @
29e47021
...
@@ -2,8 +2,10 @@
...
@@ -2,8 +2,10 @@
<div
class=
"en-table"
>
<div
class=
"en-table"
>
<el-table
<el-table
stripe
stripe
border
:data=
"tableData"
:data=
"tableData"
style=
"width: 100%"
style=
"width: 100%"
:row-class-name=
"differentStateColor"
:header-cell-style=
"
{
:header-cell-style=
"
{
background: 'rgba(0, 151, 255, 0.08)',
background: 'rgba(0, 151, 255, 0.08)',
color: '#333333',
color: '#333333',
...
@@ -44,7 +46,7 @@
...
@@ -44,7 +46,7 @@
</el-table-column>
</el-table-column>
</template>
</template>
<el-table-column
v-if=
'showOpr'
align=
"center"
label=
"操作"
:width=
"opNum * 80"
>
<el-table-column
v-if=
'showOpr'
align=
"center"
label=
"操作"
fixed=
"right"
:width=
"opNum * 80"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<slot
name=
"operation"
:scope=
"scope.row"
></slot>
<slot
name=
"operation"
:scope=
"scope.row"
></slot>
</
template
>
</
template
>
...
@@ -70,10 +72,39 @@ export default {
...
@@ -70,10 +72,39 @@ export default {
showOpr
:
{
showOpr
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
// 展示每行状态颜色
showStateColor
:
{
type
:
Boolean
,
default
:
false
,
},
// 人工模式
currentMode
:
{
type
:
Number
,
default
:
null
}
}
},
},
data
()
{
data
()
{
return
{}
return
{}
},
methods
:{
// 不同状态颜色
differentStateColor
({
row
,
rowIndex
})
{
if
(
this
.
showStateColor
==
false
)
return
;
if
(
row
.
modeTypes
===
null
||
this
.
currentMode
===
null
)
{
// 原有
return
""
;
}
else
if
(
row
.
modeTypes
.
includes
(
1
)
&&
this
.
currentMode
==
"1"
)
{
// 供暖模式
return
"table-row-mode"
;
}
else
if
(
row
.
modeTypes
.
includes
(
2
)
&&
this
.
currentMode
==
"2"
)
{
// 机械通风
return
"table-row-mechanical"
;
}
else
if
(
row
.
modeTypes
.
includes
(
3
)
&&
this
.
currentMode
==
"3"
)
{
// 自然通风
return
"table-row-natural"
;
}
},
}
}
}
}
</
script
>
</
script
>
...
...
src/pages/eq/hall/page copy.vue
0 → 100644
View file @
29e47021
This diff is collapsed.
Click to expand it.
src/pages/eq/hall/page.vue
View file @
29e47021
...
@@ -148,11 +148,68 @@
...
@@ -148,11 +148,68 @@
</div>
</div>
</div>
</div>
<!-- table -->
<!-- table -->
<enTable
<table-list
:tableColums=
'tableColums'
:tableData=
'tableData'
:showOpr=
'true'
:opNum=
'3'
:showStateColor=
'true'
:currentMode=
'currentId && active ? currentId :null'
>
<template
v-slot:operation=
"scope"
>
<el-button
type=
"text"
v-if=
"activeTab != 'c788ce98c1f248f590434394da485ce4'"
@
click=
"statusHandle"
>
开启
</el-button
>
<el-button
type=
"text"
v-if=
"activeTab != 'c788ce98c1f248f590434394da485ce4'"
@
click=
"statusHandle"
>
关闭
</el-button
>
<el-button
type=
"text"
@
click=
"statusHandle"
v-if=
"activeTab == 'b45827c068254695864ee3c1d42573cb'"
>
故障复位
</el-button
>
<el-button
type=
"text"
@
click=
"handleBtnClick(scope.scope.row)"
v-if=
"
activeTab == '303310efddb34a2e9bf269bdff8a7dc5' ||
activeTab == 'f4c840711eae4bcb9536a890cdfda493'
"
>
设置频率
</el-button
>
<el-button
type=
"text"
@
click=
"statusHandle"
v-if=
"activeTab == 'c788ce98c1f248f590434394da485ce4'"
>
上升
</el-button
>
<el-button
type=
"text"
@
click=
"statusHandle"
v-if=
"activeTab == 'c788ce98c1f248f590434394da485ce4'"
>
下降
</el-button
>
<el-button
type=
"text"
@
click=
"statusHandle"
v-if=
"activeTab == 'c788ce98c1f248f590434394da485ce4'"
>
停止
</el-button
>
<el-button
type=
"text"
@
click=
"handleUpAndDownBtnClick"
v-if=
"activeTab == 'c788ce98c1f248f590434394da485ce4'"
>
定时升降
</el-button
>
</
template
>
</table-list>
<!-- <enTable
:tableData="tableData"
:tableData="tableData"
:tableColums="tableColums"
:tableColums="tableColums"
:isShowOp="true"
:isShowOp="true"
isShowPage="true"
isShowPage="true"
:showStateColor='true'
:currentMode='currentId && active ? currentId :null'
>
>
<template v-slot:operation="scope">
<template v-slot:operation="scope">
<el-button
<el-button
...
@@ -207,7 +264,7 @@
...
@@ -207,7 +264,7 @@
>定时升降</el-button
>定时升降</el-button
>
>
</template>
</template>
</enTable>
</enTable>
-->
</div>
</div>
</cardList>
</cardList>
<table-pagination
<table-pagination
...
@@ -226,6 +283,7 @@ import enTabs from '../../components/enTabs'
...
@@ -226,6 +283,7 @@ import enTabs from '../../components/enTabs'
import
hallModal
from
'./components/hallModal'
import
hallModal
from
'./components/hallModal'
import
tablePagination
from
'@/pages/components/tablePagination'
import
tablePagination
from
'@/pages/components/tablePagination'
import
setUpAndDown
from
'./components/setUpAndDown.vue'
import
setUpAndDown
from
'./components/setUpAndDown.vue'
import
tableList
from
'@/pages/components/tableList'
import
{
import
{
tableColumsOne
,
tableColumsOne
,
...
@@ -241,7 +299,8 @@ export default {
...
@@ -241,7 +299,8 @@ export default {
enTabs
,
enTabs
,
hallModal
,
hallModal
,
tablePagination
,
tablePagination
,
setUpAndDown
setUpAndDown
,
tableList
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -692,7 +751,7 @@ export default {
...
@@ -692,7 +751,7 @@ export default {
background
:
#4cb527
!
important
;
background
:
#4cb527
!
important
;
border
:
1px
solid
transparent
;
border
:
1px
solid
transparent
;
}
}
.el-table__body-wrapper
{
//
.el-table__body-wrapper {
height
:
400px
;
//
height: 400px;
}
//
}
</
style
>
</
style
>
src/pages/kb/indoor/index.vue
View file @
29e47021
...
@@ -338,4 +338,7 @@ export default {
...
@@ -338,4 +338,7 @@ export default {
}
}
}
}
}
}
.el-table
{
height
:
350px
;
}
</
style
>
</
style
>
src/pages/kb/power/page.vue
View file @
29e47021
...
@@ -64,7 +64,13 @@
...
@@ -64,7 +64,13 @@
</el-form>
</el-form>
</div>
</div>
<enTable
<table-list
:tableColums=
'tableColums'
:tableData=
'tableData'
:showOpr=
'true'
:opNum=
'2'
>
<template
#
operation=
"data"
>
<el-button
type=
"text"
@
click=
"openHistoryHandle(data.scope.row)"
>
历史数据
</el-button>
<el-button
type=
"text"
@
click=
"openPicTHandle(data.scope.row)"
>
统计图表
</el-button>
</
template
>
</table-list>
<!-- <enTable
:tableColums="tableColums"
:tableColums="tableColums"
:tableData="tableData"
:tableData="tableData"
:isShowOp="true"
:isShowOp="true"
...
@@ -77,7 +83,7 @@
...
@@ -77,7 +83,7 @@
>统计图表</el-button
>统计图表</el-button
>
>
</template>
</template>
</enTable>
</enTable>
-->
</div>
</div>
</cardList>
</cardList>
<tablePagination
<tablePagination
...
@@ -103,6 +109,8 @@ import historyDataModal from './components/historyDataModal'
...
@@ -103,6 +109,8 @@ import historyDataModal from './components/historyDataModal'
import
statisticPicTableModal
from
'./components/statisticPicTableModal'
import
statisticPicTableModal
from
'./components/statisticPicTableModal'
import
tablePagination
from
'@/pages/components/tablePagination'
import
tablePagination
from
'@/pages/components/tablePagination'
import
{
tableColums
}
from
'./config'
import
{
tableColums
}
from
'./config'
import
tableList
from
'@/pages/components/tableList'
export
default
{
export
default
{
name
:
'useElectroData'
,
name
:
'useElectroData'
,
components
:
{
components
:
{
...
@@ -111,7 +119,8 @@ export default {
...
@@ -111,7 +119,8 @@ export default {
enTable
,
enTable
,
historyDataModal
,
historyDataModal
,
statisticPicTableModal
,
statisticPicTableModal
,
tablePagination
tablePagination
,
tableList
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -333,4 +342,12 @@ export default {
...
@@ -333,4 +342,12 @@ export default {
margin-top
:
15px
;
margin-top
:
15px
;
}
}
}
}
.box_main
/
deep
/
.el-table
.el-table--fit
.el-table--striped
.el-table--enable-row-hover
.el-table--enable-row-transition
{
border
:
1px
solid
!
important
;
}
</
style
>
</
style
>
src/pages/sys/commandlog/query-detail.vue
View file @
29e47021
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.m_i_dialog_lift
{
.m_i_dialog_lift
{
width
:
364px
;
width
:
364px
;
height
:
45
0px
;
height
:
30
0px
;
background
:
rgba
(
255
,
255
,
255
,
1
);
background
:
rgba
(
255
,
255
,
255
,
1
);
border
:
1px
solid
rgba
(
23
,
41
,
71
,
0
.08
);
border
:
1px
solid
rgba
(
23
,
41
,
71
,
0
.08
);
...
@@ -121,7 +121,7 @@ export default {
...
@@ -121,7 +121,7 @@ export default {
}
}
.m_i_dialog_right
{
.m_i_dialog_right
{
width
:
670px
;
width
:
670px
;
height
:
45
0px
;
height
:
30
0px
;
float
:
left
;
float
:
left
;
background
:
rgba
(
255
,
255
,
255
,
1
);
background
:
rgba
(
255
,
255
,
255
,
1
);
border
:
1px
solid
rgba
(
23
,
41
,
71
,
0
.08
);
border
:
1px
solid
rgba
(
23
,
41
,
71
,
0
.08
);
...
@@ -140,8 +140,5 @@ export default {
...
@@ -140,8 +140,5 @@ export default {
.el-form-item
{
.el-form-item
{
margin
:
10px
0
0
0
;
margin
:
10px
0
0
0
;
}
}
.el-textarea
{
width
:
267%
;
}
}
}
</
style
>
</
style
>
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