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
ad432c74
Commit
ad432c74
authored
May 08, 2021
by
高超凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
dddbd2ae
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
5 deletions
+22
-5
tableList.vue
src/pages/components/tableList.vue
+1
-1
page.vue
src/pages/eq/hall/page.vue
+5
-1
page.vue
src/pages/eq/office/page.vue
+15
-3
index.vue
src/pages/eq/view/index.vue
+1
-0
No files found.
src/pages/components/tableList.vue
View file @
ad432c74
...
...
@@ -94,7 +94,7 @@ export default {
// 不同状态颜色
differentStateColor
({
row
,
rowIndex
})
{
if
(
this
.
showStateColor
==
false
)
return
if
(
row
.
modeTypes
===
null
||
this
.
currentMode
===
null
)
{
if
(
row
.
modeTypes
===
null
||
this
.
currentMode
===
0
)
{
// 原有
return
''
}
else
if
(
row
.
modeTypes
.
includes
(
1
)
&&
this
.
currentMode
==
'1'
)
{
...
...
src/pages/eq/hall/page.vue
View file @
ad432c74
...
...
@@ -102,7 +102,8 @@
</div>
</div>
<!-- table -->
<table-list
:tableColums=
'tableColums'
:tableData=
'tableData'
:showOpr=
'true'
:opNum=
'3'
:showStateColor=
'true'
:currentMode=
'currentId && active ? currentId : null'
>
<!--
<table-list
:tableColums=
'tableColums'
:tableData=
'tableData'
:showOpr=
'true'
:opNum=
'3'
:showStateColor=
'true'
:currentMode=
'currentId && active ? currentId : null'
>
-->
<table-list
:tableColums=
'tableColums'
:tableData=
'tableData'
:showOpr=
'true'
:opNum=
'3'
:showStateColor=
'true'
:currentMode=
'currentId && active ? currentId : 0'
>
<template
v-slot:operation=
"scope"
>
<el-button
type=
"text"
...
...
@@ -291,6 +292,7 @@ export default {
tableColums
:
tableColumsOne
,
isSaving
:
1
,
//节能
isOpen
:
2
,
//定时开关
currentModel
:
this
.
$store
.
state
.
d2admin
.
paramsList
.
list
.
syBean
.
currentModel
,
//人工模式
formData
:
{
temperature
:
''
,
taskId
:
''
,
...
...
@@ -577,6 +579,8 @@ export default {
this
.
currentId
=
id
}
})
console
.
log
(
'currentModel'
+
this
.
currentModel
);
},
statusHandle
()
{},
// 人工节能
...
...
src/pages/eq/office/page.vue
View file @
ad432c74
...
...
@@ -12,7 +12,13 @@
></el-tab-pane>
</el-tabs>
<div
style=
"margin-top: 20px"
></div>
<en-table
<table-list
:tableColums=
'tableColums'
:tableData=
'tableData'
:showOpr=
'true'
:opNum=
'3'
:showStateColor=
'true'
:currentMode=
'currentModel'
>
<template
v-slot:operation=
"scope"
>
<el-button
type=
"text"
@
click=
"statusHandle"
>
开启
</el-button>
<el-button
type=
"text"
@
click=
"statusHandle"
>
关闭
</el-button>
</
template
>
</table-list>
<!-- <en-table
:tableData="tableData"
:tableColums="tableColums"
:isShowOp="true"
...
...
@@ -22,7 +28,7 @@
<el-button type="text" @click="statusHandle">开启</el-button>
<el-button type="text" @click="statusHandle">关闭</el-button>
</template>
</en-table>
</en-table>
-->
</div>
</cardList>
<table-pagination
...
...
@@ -38,13 +44,17 @@ import enTabs from '../../components/enTabs'
import
enTable
from
'../../components/enTable'
import
{
tableColumsOne
,
tableColumsTwo
}
from
'./config'
import
tablePagination
from
'@/pages/components/tablePagination'
import
tableList
from
'@/pages/components/tableList'
export
default
{
name
:
'officeAreaControl'
,
components
:
{
cardList
,
enTabs
,
enTable
,
tablePagination
tablePagination
,
tableList
,
},
data
()
{
...
...
@@ -55,6 +65,7 @@ export default {
activeTab
:
'b6af764f2a6e454490a6b1b3c9057e57'
,
tableData
:
[],
tableColums
:
tableColumsOne
,
currentModel
:
this
.
$store
.
state
.
d2admin
.
paramsList
.
list
.
syBean
.
currentModel
,
//人工模式
officeTabList
:
[
{
id
:
'b6af764f2a6e454490a6b1b3c9057e57'
,
...
...
@@ -121,6 +132,7 @@ export default {
},
mounted
()
{
this
.
getDataList
()
console
.
log
(
this
.
currentModel
);
},
methods
:
{
// 获取数据列表
...
...
src/pages/eq/view/index.vue
View file @
ad432c74
...
...
@@ -386,6 +386,7 @@ export default {
text
:
new
Text
({
text
:
name
,
// 添加文字描述
font
:
'bold 14px font-size'
,
// 设置字体大小
// padding: 'left',
fill
:
new
Fill
({
// 设置字体颜色
color
:
'black'
,
...
...
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