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
f65cf8e7
Commit
f65cf8e7
authored
Oct 25, 2021
by
dxw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
热泵设置
parent
48634421
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
337 additions
and
20 deletions
+337
-20
hallModal.vue
src/pages/eq/hall/components/hallModal.vue
+38
-13
settingFlrb.vue
src/pages/eq/hall/components/settingFlrb.vue
+279
-0
page.vue
src/pages/eq/hall/page.vue
+19
-6
page.vue
src/pages/eq/office/page.vue
+1
-1
No files found.
src/pages/eq/hall/components/hallModal.vue
View file @
f65cf8e7
...
@@ -5,24 +5,19 @@
...
@@ -5,24 +5,19 @@
:append-to-body=
"true"
:append-to-body=
"true"
width=
"30%"
width=
"30%"
>
>
<el-form>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
>
<el-form-item
label=
"设置频率:"
:label-width=
"formLabelWidth"
>
<el-form-item
label=
"设置频率:"
:label-width=
"formLabelWidth"
prop=
"set_frequency"
>
<el-input
<el-input
size=
"mini"
size=
"mini"
autocomplete=
"off"
autocomplete=
"off"
style=
"width: 300px"
style=
"width: 300px"
v-model=
"frequency"
v-model=
"
dataForm.set_
frequency"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"启动控制:"
:label-width=
"formLabelWidth"
>
<el-switch></el-switch>
</el-form-item>
-->
</el-form>
</el-form>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
size=
"mini"
@
click=
"hallModalVisible = false"
>
取 消
</el-button>
<el-button
size=
"mini"
@
click=
"hallModalVisible = false"
>
取 消
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"cancelhandle"
<el-button
size=
"mini"
type=
"primary"
@
click=
"submitHandle"
v-prevent-re-click
>
确 定
</el-button>
>
确 定
</el-button
>
</div>
</div>
</el-dialog>
</el-dialog>
</
template
>
</
template
>
...
@@ -33,17 +28,47 @@ export default {
...
@@ -33,17 +28,47 @@ export default {
return
{
return
{
formLabelWidth
:
'120px'
,
formLabelWidth
:
'120px'
,
hallModalVisible
:
false
,
hallModalVisible
:
false
,
frequency
:
''
frequency
:
''
,
dataForm
:
{},
dataRule
:
{
set_frequency
:
[
{
required
:
true
,
message
:
'设定频率必填'
}
// { type: 'number', message: '温度必须为数字' },
// { validator: validateNumber, trigger: ['blur', 'change'] }
]
}
}
}
},
},
methods
:
{
methods
:
{
init
(
data
)
{
init
(
data
)
{
console
.
log
(
'data'
,
data
)
console
.
log
(
'data'
,
data
)
this
.
frequency
=
data
.
current_frequency
this
.
dataForm
=
data
this
.
hallModalVisible
=
true
this
.
hallModalVisible
=
true
},
},
cancelhandle
()
{
submitHandle
()
{
this
.
hallModalVisible
=
false
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/equipment/onOrOff'
),
method
:
'post'
,
data
:
{
id
:
this
.
dataForm
.
id
,
params
:
this
.
dataForm
.
set_frequency
,
actionName
:
this
.
dataForm
.
name
+
"设定频率为:"
+
this
.
dataForm
.
set_frequency
,
actionType
:
5
}
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
hallModalVisible
=
false
this
.
$message
.
success
(
data
.
msg
)
this
.
$emit
(
'refreshdatalist'
)
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
})
}
}
}
}
}
}
...
...
src/pages/eq/hall/components/settingFlrb.vue
0 → 100644
View file @
f65cf8e7
<
template
>
<el-dialog
title=
"热泵主机设置"
:visible
.
sync=
"visible"
:append-to-body=
"true"
width=
"20%"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
:inline=
"true"
label-width=
"150px"
label-position=
""
>
<el-row>
<el-form-item
label=
"风水模式:"
>
</el-form-item>
<el-form-item>
<div
class=
"switch-warp"
style=
"transform: translateY(5px)"
>
<div
:class=
"[dataForm.feng_shui_mode == 'true' ? 'on' : '']"
@
click=
"setFsStatus(1)"
>
开
</div>
<div
:class=
"[dataForm.feng_shui_mode == 'false' ? 'on' : '']"
@
click=
"setFsStatus(0)"
>
关
</div>
</div>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"热水模式:"
>
</el-form-item>
<el-form-item>
<div
class=
"switch-warp"
style=
"transform: translateY(5px)"
>
<div
:class=
"[dataForm.hot_water_mode == 'true' ? 'on' : '']"
@
click=
"setRsStatus(1)"
>
开
</div>
<div
:class=
"[dataForm.hot_water_mode == 'false' ? 'on' : '']"
@
click=
"setRsStatus(0)"
>
关
</div>
</div>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"制热启动温度:"
:label-width=
"formLabelWidth"
prop=
"heating_start_temperature"
>
<el-input
size=
"mini"
autocomplete=
"off"
style=
"width: 120px"
v-model=
"dataForm.heating_start_temperature"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"mini"
@
click=
"changeTemperature()"
>
确定
</el-button
>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"制热停止温度:"
:label-width=
"formLabelWidth"
prop=
"heating_stop_temperature"
>
<el-input
size=
"mini"
autocomplete=
"off"
style=
"width: 120px"
v-model=
"dataForm.heating_stop_temperature"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"mini"
@
click=
"changeTemperature2()"
>
确定
</el-button
>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"热风启动温度:"
:label-width=
"formLabelWidth"
prop=
"hot_air_start_temperature"
>
<el-input
size=
"mini"
autocomplete=
"off"
style=
"width: 120px"
v-model=
"dataForm.hot_air_start_temperature"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"mini"
@
click=
"changeTemperature3()"
>
确定
</el-button
>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"热风停止温度:"
:label-width=
"formLabelWidth"
prop=
"hot_air_stop_temperature"
>
<el-input
size=
"mini"
autocomplete=
"off"
style=
"width: 120px"
v-model=
"dataForm.hot_air_stop_temperature"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"mini"
@
click=
"changeTemperature4()"
>
确定
</el-button
>
</el-form-item>
</el-row>
</el-form>
</el-dialog>
</
template
>
<
script
lang=
"ts"
>
export
default
{
name
:
'hallModal'
,
data
()
{
return
{
formLabelWidth
:
'120px'
,
visible
:
false
,
frequency
:
''
,
dataForm
:
{},
dataRule
:
{
set_frequency
:
[
{
required
:
true
,
message
:
'设定频率必填'
}
// { type: 'number', message: '温度必须为数字' },
// { validator: validateNumber, trigger: ['blur', 'change'] }
]
}
}
},
methods
:
{
init
(
data
)
{
console
.
log
(
'data'
,
data
)
this
.
dataForm
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
this
.
visible
=
true
},
setFsStatus
(
status
){
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/equipment/onOrOff'
),
method
:
'post'
,
data
:
{
id
:
this
.
dataForm
.
id
,
status
:
status
,
actionName
:
this
.
dataForm
.
name
+
(
status
==
0
?
'风水模式关闭'
:
'风水模式开启'
),
actionType
:
10
}
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$message
.
success
(
data
.
msg
)
this
.
dataForm
.
feng_shui_mode
=
(
status
==
0
?
"false"
:
"true"
)
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
},
setRsStatus
(
status
){
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/equipment/onOrOff'
),
method
:
'post'
,
data
:
{
id
:
this
.
dataForm
.
id
,
status
:
status
,
actionName
:
this
.
dataForm
.
name
+
(
status
==
0
?
'热水模式关闭'
:
'热水模式开启'
),
actionType
:
11
}
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$message
.
success
(
data
.
msg
)
this
.
dataForm
.
hot_water_mode
=
(
status
==
0
?
"false"
:
"true"
)
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
},
changeTemperature
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/equipment/onOrOff'
),
method
:
'post'
,
data
:
{
id
:
this
.
dataForm
.
id
,
params
:
this
.
dataForm
.
heating_start_temperature
,
actionName
:
this
.
dataForm
.
name
+
'设置制热启动温度为:'
+
this
.
dataForm
.
heating_start_temperature
,
actionType
:
6
}
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$message
.
success
(
data
.
msg
)
this
.
getDataList
()
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
},
changeTemperature2
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/equipment/onOrOff'
),
method
:
'post'
,
data
:
{
id
:
this
.
dataForm
.
id
,
params
:
this
.
dataForm
.
heating_stop_temperature
,
actionName
:
this
.
dataForm
.
name
+
'设置制热停止温度为:'
+
this
.
dataForm
.
heating_stop_temperature
,
actionType
:
7
}
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$message
.
success
(
data
.
msg
)
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
},
changeTemperature3
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/equipment/onOrOff'
),
method
:
'post'
,
data
:
{
id
:
this
.
dataForm
.
id
,
params
:
this
.
dataForm
.
hot_air_start_temperature
,
actionName
:
this
.
dataForm
.
name
+
'设置热风启动温度为:'
+
this
.
dataForm
.
hot_air_start_temperature
,
actionType
:
8
}
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$message
.
success
(
data
.
msg
)
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
},
changeTemperature4
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/equipment/onOrOff'
),
method
:
'post'
,
data
:
{
id
:
this
.
dataForm
.
id
,
params
:
this
.
dataForm
.
hot_air_stop_temperature
,
actionName
:
this
.
dataForm
.
name
+
'设置热风停止温度为:'
+
this
.
dataForm
.
hot_air_stop_temperature
,
actionType
:
9
}
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$message
.
success
(
data
.
msg
)
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.switch-warp
{
width
:
93px
;
height
:
26px
;
font-size
:
12px
;
line-height
:
25px
;
overflow
:
hidden
;
border-radius
:
13px
;
background
:
#d3d3d3
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.03
);
box-shadow
:
0px
1px
0px
1px
rgba
(
255
,
255
,
255
,
0
.25
)
,
0px
2px
4px
0px
rgba
(
0
,
0
,
0
,
0
.1
);
div
{
width
:
45px
;
height
:
24px
;
line-height
:
24px
;
float
:
left
;
text-align
:
center
;
cursor
:
pointer
;
}
div
.on
{
background
:
#4cb527
;
color
:
#fff
;
border-radius
:
13px
;
border
:
1px
solid
rgba
(
23
,
41
,
71
,
0
.02
);
box-shadow
:
0px
1px
0px
0px
rgba
(
255
,
255
,
255
,
0
.3
)
,
0px
2px
0px
0px
rgba
(
255
,
255
,
255
,
0
.15
);
}
}
</
style
>
\ No newline at end of file
src/pages/eq/hall/page.vue
View file @
f65cf8e7
...
@@ -166,6 +166,12 @@
...
@@ -166,6 +166,12 @@
@
click=
"statusHandle(scope.scope, 0)"
@
click=
"statusHandle(scope.scope, 0)"
>
关闭
</el-button
>
关闭
</el-button
>
>
<el-button
v-if=
"activeTab == 'b45827c068254695864ee3c1d42573cb' && (scope.scope.status == 1 || scope.scope.status == 2)"
type=
"text"
@
click=
"settingFlrb(scope.scope)"
>
设置
</el-button
>
<el-button
<el-button
type=
"text"
type=
"text"
@
click=
"statusHandle"
@
click=
"statusHandle"
...
@@ -174,7 +180,7 @@
...
@@ -174,7 +180,7 @@
>
>
<el-button
<el-button
type=
"text"
type=
"text"
@
click=
"handleBtnClick(scope.scope
.row
)"
@
click=
"handleBtnClick(scope.scope)"
v-if=
"activeTab == 'f4c840711eae4bcb9536a890cdfda493' && (scope.scope.status == 1 || scope.scope.status == 2)"
v-if=
"activeTab == 'f4c840711eae4bcb9536a890cdfda493' && (scope.scope.status == 1 || scope.scope.status == 2)"
>
设置频率
</el-button
>
设置频率
</el-button
>
>
...
@@ -211,7 +217,8 @@
...
@@ -211,7 +217,8 @@
:totalSize=
"totalSize"
:totalSize=
"totalSize"
@
parentMethod=
"getDataList"
@
parentMethod=
"getDataList"
></table-pagination>
></table-pagination>
<hall-modal
ref=
"hallModal"
></hall-modal>
<hall-modal
ref=
"hallModal"
@
refreshdatalist=
"getDataList"
></hall-modal>
<setting-flrb
ref=
"settingFlrb"
@
refreshdatalist=
"getDataList"
></setting-flrb>
<set-up-and-down
ref=
"setUpAndDown"
></set-up-and-down>
<set-up-and-down
ref=
"setUpAndDown"
></set-up-and-down>
</div>
</div>
</template>
</template>
...
@@ -220,10 +227,10 @@ import cardList from '../../components/cardList'
...
@@ -220,10 +227,10 @@ import cardList from '../../components/cardList'
import
enTable
from
'../../components/enTable'
import
enTable
from
'../../components/enTable'
import
enTabs
from
'../../components/enTabs'
import
enTabs
from
'../../components/enTabs'
import
hallModal
from
'./components/hallModal'
import
hallModal
from
'./components/hallModal'
import
settingFlrb
from
'./components/settingFlrb'
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
tableList
from
'@/pages/components/tableList'
import
{
import
{
tableColumsOne
,
tableColumsOne
,
tableColumsTwo
,
tableColumsTwo
,
...
@@ -239,7 +246,8 @@ export default {
...
@@ -239,7 +246,8 @@ export default {
hallModal
,
hallModal
,
tablePagination
,
tablePagination
,
setUpAndDown
,
setUpAndDown
,
tableList
tableList
,
settingFlrb
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -431,8 +439,8 @@ export default {
...
@@ -431,8 +439,8 @@ export default {
if
(
this
.
tableData
[
i
].
id
===
e
.
resource_id
)
{
if
(
this
.
tableData
[
i
].
id
===
e
.
resource_id
)
{
this
.
$set
(
this
.
tableData
[
i
],
'feng_shui_mode'
,
e
.
feng_shui_mode
)
this
.
$set
(
this
.
tableData
[
i
],
'feng_shui_mode'
,
e
.
feng_shui_mode
)
this
.
$set
(
this
.
tableData
[
i
],
'hot_water_mode'
,
e
.
hot_water_mode
)
this
.
$set
(
this
.
tableData
[
i
],
'hot_water_mode'
,
e
.
hot_water_mode
)
this
.
$set
(
this
.
tableData
[
i
],
'feng_shui_mode_n'
,
e
.
feng_shui_mode
==
0
?
"关闭"
:
"开启"
)
this
.
$set
(
this
.
tableData
[
i
],
'feng_shui_mode_n'
,
e
.
feng_shui_mode
==
"false"
?
"关闭"
:
"开启"
)
this
.
$set
(
this
.
tableData
[
i
],
'hot_water_mode_n'
,
e
.
hot_water_mode
==
0
?
"关闭"
:
"开启"
)
this
.
$set
(
this
.
tableData
[
i
],
'hot_water_mode_n'
,
e
.
hot_water_mode
==
"false"
?
"关闭"
:
"开启"
)
this
.
$set
(
this
.
$set
(
this
.
tableData
[
i
],
this
.
tableData
[
i
],
'water_supply_temperature'
,
'water_supply_temperature'
,
...
@@ -591,6 +599,11 @@ export default {
...
@@ -591,6 +599,11 @@ export default {
this
.
$refs
.
hallModal
.
init
(
data
)
this
.
$refs
.
hallModal
.
init
(
data
)
})
})
},
},
settingFlrb
(
data
){
this
.
$nextTick
(()
=>
{
this
.
$refs
.
settingFlrb
.
init
(
data
)
})
},
// 定时升降
// 定时升降
handleUpAndDownBtnClick
(
data
)
{
handleUpAndDownBtnClick
(
data
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
src/pages/eq/office/page.vue
View file @
f65cf8e7
...
@@ -468,7 +468,7 @@ export default {
...
@@ -468,7 +468,7 @@ export default {
}
}
})
})
},
},
//
看起
设置空调温度窗口
// 设置空调温度窗口
settingJfkt
(
row
,
status
)
{
settingJfkt
(
row
,
status
)
{
this
.
newObject
=
row
this
.
newObject
=
row
this
.
jfktDialogVisible
=
true
this
.
jfktDialogVisible
=
true
...
...
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