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
5689716a
Commit
5689716a
authored
Apr 16, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面调整
parent
6a6da91b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
159 additions
and
20 deletions
+159
-20
config.js
src/pages/eq/hall/config.js
+3
-3
page.vue
src/pages/eq/hall/page.vue
+54
-8
config.js
src/pages/eq/office/config.js
+28
-1
page.vue
src/pages/eq/office/page.vue
+74
-7
page.vue
src/pages/kb/power/page.vue
+0
-1
No files found.
src/pages/eq/hall/config.js
View file @
5689716a
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
},
},
{
{
align
:
'center'
,
align
:
'center'
,
prop
:
'
D
'
,
prop
:
'
electric_energy
'
,
label
:
'今日用电量'
,
label
:
'今日用电量'
,
width
:
182
width
:
182
},
},
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
},
},
{
{
align
:
'center'
,
align
:
'center'
,
prop
:
'
C
'
,
prop
:
'
current_frequency
'
,
label
:
'当前频率'
,
label
:
'当前频率'
,
width
:
182
width
:
182
},
},
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
},
},
{
{
align
:
'center'
,
align
:
'center'
,
prop
:
'
E
'
,
prop
:
'
electric_energy
'
,
label
:
'今日用电量'
,
label
:
'今日用电量'
,
width
:
182
width
:
182
},
},
...
...
src/pages/eq/hall/page.vue
View file @
5689716a
...
@@ -151,13 +151,7 @@ import enTabs from '../../components/enTabs'
...
@@ -151,13 +151,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
{
import
{
tableColumsOne
,
tableColumsTwo
}
from
'./config'
tableDataOne
,
tableColumsOne
,
tableColumsTwo
,
tableDataTwo
,
tableDataThree
}
from
'./config'
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -219,6 +213,17 @@ export default {
...
@@ -219,6 +213,17 @@ export default {
hallModalVisible
:
false
hallModalVisible
:
false
}
}
},
},
computed
:
{
flrbList
()
{
return
this
.
$store
.
state
.
d2admin
.
paramsList
.
list
.
flrbList
},
sljfgList
()
{
return
this
.
$store
.
state
.
d2admin
.
paramsList
.
list
.
sljfgList
},
sbList
()
{
return
this
.
$store
.
state
.
d2admin
.
paramsList
.
list
.
sbList
}
},
watch
:
{
watch
:
{
activeTab
(
val
)
{
activeTab
(
val
)
{
this
.
activeTab
=
val
this
.
activeTab
=
val
...
@@ -259,7 +264,7 @@ export default {
...
@@ -259,7 +264,7 @@ export default {
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
console
.
log
(
'数据'
,
data
)
console
.
log
(
'数据'
,
data
)
this
.
tableData
=
data
.
page
.
rows
this
.
tableData
=
data
.
page
.
rows
// this.tableColums = crecords
this
.
setDataList
()
this
.
totalSize
=
data
.
page
.
total
this
.
totalSize
=
data
.
page
.
total
}
else
{
}
else
{
this
.
dataList
=
[]
this
.
dataList
=
[]
...
@@ -267,6 +272,47 @@ export default {
...
@@ -267,6 +272,47 @@ export default {
}
}
})
})
},
},
//修改列表数据
setDataList
()
{
for
(
var
i
=
0
;
i
<
this
.
tableData
.
length
;
i
++
)
{
if
(
this
.
tableData
[
i
].
type
===
'b45827c068254695864ee3c1d42573cb'
)
{
//风冷热泵机组
this
.
flrbList
.
forEach
((
e
)
=>
{
if
(
this
.
tableData
[
i
].
id
===
e
.
resource_id
)
{
this
.
$set
(
this
.
tableData
[
i
],
'electric_energy'
,
e
.
electric_energy
)
}
})
}
else
if
(
this
.
tableData
[
i
].
type
===
'303310efddb34a2e9bf269bdff8a7dc5'
)
{
//室内机风柜
this
.
sljfgList
.
forEach
((
e
)
=>
{
if
(
this
.
tableData
[
i
].
id
===
e
.
resource_id
)
{
this
.
$set
(
this
.
tableData
[
i
],
'electric_energy'
,
e
.
electric_energy
)
this
.
$set
(
this
.
tableData
[
i
],
'current_frequency'
,
e
.
current_frequency
)
}
})
}
else
if
(
this
.
tableData
[
i
].
type
===
'f4c840711eae4bcb9536a890cdfda493'
)
{
//水泵
this
.
sbList
.
forEach
((
e
)
=>
{
if
(
this
.
tableData
[
i
].
id
===
e
.
resource_id
)
{
this
.
$set
(
this
.
tableData
[
i
],
'electric_energy'
,
e
.
electric_energy
)
this
.
$set
(
this
.
tableData
[
i
],
'current_frequency'
,
e
.
current_frequency
)
}
})
}
}
},
getAllHcdt
()
{
getAllHcdt
()
{
this
.
dataListLoading
=
true
this
.
dataListLoading
=
true
this
.
$http
({
this
.
$http
({
...
...
src/pages/eq/office/config.js
View file @
5689716a
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
},
},
{
{
align
:
'center'
,
align
:
'center'
,
prop
:
'
D
'
,
prop
:
'
electric_energy
'
,
label
:
'今日用电量'
,
label
:
'今日用电量'
,
width
:
182
width
:
182
},
},
...
@@ -36,3 +36,30 @@
...
@@ -36,3 +36,30 @@
width
:
132
width
:
132
}
}
]
]
export
const
tableColumsTwo
=
[
{
align
:
'center'
,
prop
:
'name'
,
label
:
'设备名称'
// width: 132
},
{
align
:
'center'
,
prop
:
'deployLocation'
,
label
:
'设备位置'
// width: 150
},
{
align
:
'center'
,
prop
:
'status'
,
label
:
'设备状态'
// width: 182
},
{
align
:
'center'
,
prop
:
'code'
,
label
:
'设备编号'
// width: 132
}
]
src/pages/eq/office/page.vue
View file @
5689716a
...
@@ -22,31 +22,31 @@
...
@@ -22,31 +22,31 @@
<el-button
<el-button
type=
"text"
type=
"text"
@
click=
"statusHandle"
@
click=
"statusHandle"
v-if=
"activeTab != '
0
4'"
v-if=
"activeTab != '
c788ce98c1f248f590434394da485ce
4'"
>
开启
</el-button
>
开启
</el-button
>
>
<el-button
<el-button
type=
"text"
type=
"text"
@
click=
"statusHandle"
@
click=
"statusHandle"
v-if=
"activeTab != '
0
4'"
v-if=
"activeTab != '
c788ce98c1f248f590434394da485ce
4'"
>
关闭
</el-button
>
关闭
</el-button
>
>
<el-button
<el-button
type=
"text"
type=
"text"
@
click=
"statusHandle"
@
click=
"statusHandle"
v-if=
"activeTab == '
0
4'"
v-if=
"activeTab == '
c788ce98c1f248f590434394da485ce
4'"
>
上升
</el-button
>
上升
</el-button
>
>
<el-button
<el-button
type=
"text"
type=
"text"
@
click=
"statusHandle"
@
click=
"statusHandle"
v-if=
"activeTab == '
0
4'"
v-if=
"activeTab == '
c788ce98c1f248f590434394da485ce
4'"
>
下降
</el-button
>
下降
</el-button
>
>
<el-button
<el-button
type=
"text"
type=
"text"
@
click=
"statusHandle"
@
click=
"statusHandle"
v-if=
"activeTab == '
0
4'"
v-if=
"activeTab == '
c788ce98c1f248f590434394da485ce
4'"
>
停止
</el-button
>
停止
</el-button
>
>
</
template
>
</
template
>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
import
cardList
from
'../../components/cardList'
import
cardList
from
'../../components/cardList'
import
enTabs
from
'../../components/enTabs'
import
enTabs
from
'../../components/enTabs'
import
enTable
from
'../../components/enTable'
import
enTable
from
'../../components/enTable'
import
{
tableColumsOne
}
from
'./config'
import
{
tableColumsOne
,
tableColumsTwo
}
from
'./config'
export
default
{
export
default
{
name
:
'officeAreaControl'
,
name
:
'officeAreaControl'
,
...
@@ -109,6 +109,20 @@ export default {
...
@@ -109,6 +109,20 @@ export default {
]
]
}
}
},
},
computed
:
{
pfjList
()
{
return
this
.
$store
.
state
.
d2admin
.
paramsList
.
list
.
pfjList
},
jfktpList
()
{
return
this
.
$store
.
state
.
d2admin
.
paramsList
.
list
.
jfktpList
},
jfktgList
()
{
return
this
.
$store
.
state
.
d2admin
.
paramsList
.
list
.
jfktgList
},
dlswjList
()
{
return
this
.
$store
.
state
.
d2admin
.
paramsList
.
list
.
dlswjList
}
},
watch
:
{
watch
:
{
activeTab
(
val
)
{
activeTab
(
val
)
{
this
.
activeTab
=
val
this
.
activeTab
=
val
...
@@ -127,7 +141,7 @@ export default {
...
@@ -127,7 +141,7 @@ export default {
this
.
tableColums
=
tableColumsOne
this
.
tableColums
=
tableColumsOne
break
break
case
'173466a2cf9a42a6a17b2bdfbeae36d5'
:
case
'173466a2cf9a42a6a17b2bdfbeae36d5'
:
this
.
tableColums
=
tableColums
One
this
.
tableColums
=
tableColums
Two
break
break
case
'8f5530fee2484e8eb107c0ca672132b2'
:
case
'8f5530fee2484e8eb107c0ca672132b2'
:
this
.
tableColums
=
tableColumsOne
this
.
tableColums
=
tableColumsOne
...
@@ -157,6 +171,7 @@ export default {
...
@@ -157,6 +171,7 @@ export default {
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
console
.
log
(
'数据'
,
data
)
console
.
log
(
'数据'
,
data
)
this
.
tableData
=
data
.
page
.
rows
this
.
tableData
=
data
.
page
.
rows
this
.
setDataList
()
this
.
totalSize
=
data
.
page
.
total
this
.
totalSize
=
data
.
page
.
total
}
else
{
}
else
{
this
.
dataList
=
[]
this
.
dataList
=
[]
...
@@ -164,6 +179,58 @@ export default {
...
@@ -164,6 +179,58 @@ export default {
}
}
})
})
},
},
//修改列表数据
setDataList
()
{
for
(
var
i
=
0
;
i
<
this
.
tableData
.
length
;
i
++
)
{
if
(
this
.
tableData
[
i
].
type
===
'b6af764f2a6e454490a6b1b3c9057e57'
)
{
//排风机
this
.
pfjList
.
forEach
((
e
)
=>
{
if
(
this
.
tableData
[
i
].
id
===
e
.
resource_id
)
{
this
.
$set
(
this
.
tableData
[
i
],
'electric_energy'
,
e
.
electric_energy
)
}
})
}
else
if
(
this
.
tableData
[
i
].
type
===
'ece0b8b2db27411886254e81134988a3'
)
{
//机房空调(220V)
this
.
jfktpList
.
forEach
((
e
)
=>
{
if
(
this
.
tableData
[
i
].
id
===
e
.
resource_id
)
{
this
.
$set
(
this
.
tableData
[
i
],
'electric_energy'
,
e
.
electric_energy
)
}
})
}
else
if
(
this
.
tableData
[
i
].
type
===
'b47661ca1d454f9792ba5369f3cb2bc5'
)
{
//机房空调(380V)
this
.
jfktgList
.
forEach
((
e
)
=>
{
if
(
this
.
tableData
[
i
].
id
===
e
.
resource_id
)
{
this
.
$set
(
this
.
tableData
[
i
],
'electric_energy'
,
e
.
electric_energy
)
}
})
}
else
if
(
this
.
tableData
[
i
].
type
===
'c788ce98c1f248f590434394da485ce4'
)
{
//防火卷帘门
}
else
if
(
this
.
tableData
[
i
].
type
===
'173466a2cf9a42a6a17b2bdfbeae36d5'
)
{
//多联室内机
}
else
if
(
this
.
tableData
[
i
].
type
===
'49f5921a6d7f43cfa222c09f0223ae04'
)
{
//换气扇
}
else
if
(
this
.
tableData
[
i
].
type
===
'173466a2cf9a42a6a17b2bdfbeae36d5'
)
{
//多联室外机
this
.
dlswjList
.
forEach
((
e
)
=>
{
if
(
this
.
tableData
[
i
].
id
===
e
.
resource_id
)
{
this
.
$set
(
this
.
tableData
[
i
],
'electric_energy'
,
e
.
electric_energy
)
}
})
}
}
},
statusHandle
()
{}
statusHandle
()
{}
}
}
}
}
...
...
src/pages/kb/power/page.vue
View file @
5689716a
...
@@ -234,7 +234,6 @@ export default {
...
@@ -234,7 +234,6 @@ export default {
this
.
pfjList
.
forEach
((
e
)
=>
{
this
.
pfjList
.
forEach
((
e
)
=>
{
if
(
this
.
tableData
[
i
].
id
===
e
.
resource_id
)
{
if
(
this
.
tableData
[
i
].
id
===
e
.
resource_id
)
{
this
.
$set
(
this
.
tableData
[
i
],
'electric_energy'
,
e
.
electric_energy
)
this
.
$set
(
this
.
tableData
[
i
],
'electric_energy'
,
e
.
electric_energy
)
return
false
}
}
})
})
}
else
if
(
}
else
if
(
...
...
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