Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
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
海康威视
web-project
Commits
4c8a80c3
Commit
4c8a80c3
authored
Aug 09, 2024
by
裴文涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
气象干预列表增加排序,固定表头,固定列功能
parent
4b0e0076
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
126 additions
and
65 deletions
+126
-65
package.json
package.json
+1
-0
scheduling.js
src/api/scheduling.js
+5
-1
HisPatrolPage.vue
src/views/PatrolPage/HisPatrolPage.vue
+3
-0
AnnualParamPage.vue
src/views/SchedulingPage/AnnualParamPage.vue
+11
-10
PhenomenonPage.vue
src/views/SchedulingPage/PhenomenonPage.vue
+3
-2
WeatherManagePage.vue
src/views/SchedulingPage/WeatherManagePage.vue
+49
-26
WindManagePage.vue
src/views/SchedulingPage/WindManagePage.vue
+5
-2
AddWindow.vue
src/views/SchedulingPage/weatherManageSub/AddWindow.vue
+6
-5
BindWindow.vue
src/views/SchedulingPage/weatherManageSub/BindWindow.vue
+31
-12
ReviseWindow.vue
src/views/SchedulingPage/weatherManageSub/ReviseWindow.vue
+12
-7
No files found.
package.json
View file @
4c8a80c3
...
...
@@ -19,6 +19,7 @@
"
jquery
"
:
"
^3.7.1
"
,
"
jsencrypt
"
:
"
^3.3.2
"
,
"
less
"
:
"
^4.2.0
"
,
"
lodash
"
:
"
^4.17.21
"
,
"
mitt
"
:
"
^3.0.1
"
,
"
mock
"
:
"
^0.1.1
"
,
"
mockjs
"
:
"
^1.1.0
"
,
...
...
src/api/scheduling.js
View file @
4c8a80c3
...
...
@@ -75,7 +75,11 @@ export const alterWeatherMagData = params => { // 添加或修改气象干预数
}
export
const
getTransfer
=
param
=>
{
// 获取换热站列表
return
http
.
post
(
`/api/cusweather/getTransferIds?id=
${
param
}
`
,
param
)
return
http
.
post
(
"/api/cusweather/getTransferIds"
,
param
)
}
export
const
deleteWeatherMagData
=
params
=>
{
// 删除气象干预数据
return
http
.
post
(
"/api/cusweather/Delete"
,
params
)
}
export
const
getAnnualParam
=
()
=>
{
// 获取年度参数列表
...
...
src/views/PatrolPage/HisPatrolPage.vue
View file @
4c8a80c3
...
...
@@ -173,13 +173,16 @@
options
.
length
=
0
;
PatrolInfo
.
Id
.
length
=
0
;
var
result
=
store
.
getters
.
getEnterprise
();
console
.
log
(
"result的值:"
,
result
)
if
(
result
)
{
result
.
forEach
(
element
=>
{
if
(
element
.
enterpriseId
===
enterpriseId
.
value
){
if
(
element
.
enterpriseId
===
"9BCA54BC-8F27-4849-8D7D-50C5099E1949"
.
toLowerCase
()){
element
.
serviceCenterList
.
forEach
(
center
=>
{
let
c
=
[];
center
.
supplyList
.
forEach
(
supply
=>
{
// console.log("suppleList",supply)
let
chi
=
[];
supply
.
transferList
.
forEach
(
unit
=>
{
chi
.
push
({
value
:
unit
.
unitId
,
label
:
unit
.
unitName
});
...
...
src/views/SchedulingPage/AnnualParamPage.vue
View file @
4c8a80c3
...
...
@@ -3,6 +3,7 @@ import {computed, onMounted, reactive, ref} from "vue";
import
{
zhCn
}
from
"element-plus/es/locale/index"
;
import
{
getAnnualParam
,
alterAnnualParam
,
addAnnualParam
,
deleteAnnualParam
}
from
'@/api/scheduling.js'
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
const
data
=
ref
()
const
dataBackup
=
ref
([])
...
...
@@ -217,31 +218,31 @@ function resetInput() {
<el-row>
<el-col
:span=
"8"
col-label
>
标准:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"reviseForm.standard"
placeholder=
""
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"reviseForm.standard"
placeholder=
""
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
度日数标定值:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"reviseForm.degreeStandard"
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"reviseForm.degreeStandard"
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
室内温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"reviseForm.indoorTemperature"
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"reviseForm.indoorTemperature"
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
室外温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"reviseForm.outdoorTemperature"
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"reviseForm.outdoorTemperature"
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
回水温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"reviseForm.backWaterTemperature"
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"reviseForm.backWaterTemperature"
style=
"width: 370px"
/>
</el-col>
</el-row>
</
template
>
...
...
@@ -282,31 +283,31 @@ function resetInput() {
<el-row>
<el-col
:span=
"8"
col-label
>
标准:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"addForm.standard"
placeholder=
""
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"addForm.standard"
placeholder=
""
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
度日数标定值:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"addForm.degreeStandard"
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"addForm.degreeStandard"
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
室内温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"addForm.indoorTemperature"
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"addForm.indoorTemperature"
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
室外温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"addForm.outdoorTemperature"
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"addForm.outdoorTemperature"
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
回水温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"addForm.backWaterTemperature"
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"addForm.backWaterTemperature"
style=
"width: 370px"
/>
</el-col>
</el-row>
</
template
>
...
...
src/views/SchedulingPage/PhenomenonPage.vue
View file @
4c8a80c3
...
...
@@ -2,6 +2,7 @@
import
{
onMounted
,
ref
}
from
"vue"
;
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
{
getPhenomenon
,
addPhenomenon
,
alterPhenomenon
,
deletePhenomenon
}
from
"@/api/scheduling.js"
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
const
data
=
ref
()
const
dataBackup
=
ref
([])
...
...
@@ -175,7 +176,7 @@ function getData(){
<el-row>
<el-col
:span=
"8"
col-label
>
对应温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"reviseForm.phenomenonTemp"
placeholder=
""
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"reviseForm.phenomenonTemp"
placeholder=
""
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
...
...
@@ -221,7 +222,7 @@ function getData(){
<el-row>
<el-col
:span=
"8"
col-label
>
对应温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"addForm.phenomenonTemp"
placeholder=
""
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"addForm.phenomenonTemp"
placeholder=
""
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
...
...
src/views/SchedulingPage/WeatherManagePage.vue
View file @
4c8a80c3
...
...
@@ -2,9 +2,12 @@
import
{
computed
,
isRef
,
onMounted
,
reactive
,
ref
,
shallowRef
}
from
"vue"
;
import
ReviseWindow
from
"./weatherManageSub/ReviseWindow.vue"
;
import
BindWindow
from
"./weatherManageSub/BindWindow.vue"
;
import
{
getWeatherMagData
,
alterWeatherMagData
,
getTransfer
}
from
'@/api/scheduling.js'
import
{
getWeatherMagData
,
alterWeatherMagData
,
deleteWeatherMagData
}
from
'@/api/scheduling.js'
import
AddWindow
from
"./weatherManageSub/AddWindow.vue"
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
store
from
"@/store/index.js"
;
import
cloneDeep
from
'lodash/cloneDeep'
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
const
data
=
ref
()
const
reviseWindowOpen
=
ref
(
false
)
// 修改按钮弹窗状态
...
...
@@ -27,22 +30,30 @@ const bind = (row) => { // 绑定按钮单击事件
bindWindowOpen
.
value
=
true
}
const
confirmRevise
=
val
=>
{
// 修改弹窗确认按钮事件
console
.
log
(
'修改数据'
,
val
)
// alterWeatherMagData(val).then(res=>{
// getData()
// reviseWindowOpen.value = false
// ElMessage({
// message: '修改成功.',
// type: 'success',
// })
// }).catch(err=>{
// ElMessage({
// message: '修改失败.',
// type: 'error',
// })
// })
let
params
=
cloneDeep
(
val
)
params
.
isAuto
=
params
.
isAuto
===
'自动模式'
?
true
:
false
params
.
isFixed
=
params
.
isFixed
===
'固定模式'
?
true
:
false
params
.
operateTime
=
getCurrentDateTime
()
if
(
params
.
supplyId
===
''
){
delete
params
.
supplyId
// 移除supplyId属性
// 该属性要么有一个正确的值,要么移除,否则报错
}
alterWeatherMagData
(
params
).
then
(
res
=>
{
getData
()
reviseWindowOpen
.
value
=
false
ElMessage
({
message
:
'修改成功.'
,
type
:
'success'
,
})
}).
catch
(
err
=>
{
ElMessage
({
message
:
'修改失败.'
,
type
:
'error'
,
})
})
}
const
confirmBind
=
val
=>
{
// 绑定,新增,和修改用的是同一个接口
bindWindowOpen
.
value
=
false
}
onMounted
(()
=>
{
...
...
@@ -51,7 +62,7 @@ onMounted(() => {
function
getData
()
{
getWeatherMagData
().
then
(
res
=>
{
data
.
value
=
res
.
data
console
.
log
(
"所有数据"
,
data
.
value
)
console
.
log
(
"
气象干预
所有数据"
,
data
.
value
)
})
}
function
handleAddWinOpenClose
(){
...
...
@@ -73,18 +84,28 @@ function handleAdd(val){
})
})
}
// 新增数据提交
function
getCurrentDateTime
()
{
const
now
=
new
Date
();
const
year
=
now
.
getFullYear
();
const
month
=
(
'0'
+
(
now
.
getMonth
()
+
1
)).
slice
(
-
2
);
// 月份从0开始,所以加1
const
day
=
(
'0'
+
now
.
getDate
()).
slice
(
-
2
);
const
hours
=
(
'0'
+
now
.
getHours
()).
slice
(
-
2
);
const
minutes
=
(
'0'
+
now
.
getMinutes
()).
slice
(
-
2
);
const
seconds
=
(
'0'
+
now
.
getSeconds
()).
slice
(
-
2
);
return
`
${
year
}
-
${
month
}
-
${
day
}
${
hours
}
:
${
minutes
}
:
${
seconds
}
`
;
}
// 生成时间
</
script
>
<
template
>
<div
class=
"weather-manage-container"
>
<el-row>
<el-col
:span=
"15"
left-col
>
<el-button
type=
"primary"
@
click=
"addWindowOpen = true"
class=
"add-btn"
>
新增
</el-button>
<el-button
type=
"primary"
@
click=
"getData"
>
查询
</el-button>
</el-col>
<el-col
:span=
"9"
right-col
>
<el-button
type=
"primary"
@
click=
"addWindowOpen = true"
class=
"add-btn"
>
新增
</el-button>
<!--
<el-button
type=
"primary"
class=
"add-btn"
>
新增
</el-button>
-->
<el-button
type=
"primary"
>
查询
</el-button>
</el-col>
</el-row>
<div
class=
"table-wrapper"
>
...
...
@@ -93,12 +114,13 @@ function handleAdd(val){
stripe
border
style=
"width: 100%"
height=
"900px"
:header-cell-class-name=
"tableHeaderClass"
:row-class-name=
"tableBodyClass"
>
<el-table-column
prop=
"allowPagingId"
label=
"编号"
align=
"center"
width=
"60"
/>
<el-table-column
prop=
"customizeName"
label=
"自定义名称"
width=
"200"
/>
<el-table-column
prop=
"supplyName"
label=
"供热站名称"
width=
"160"
/>
<el-table-column
prop=
"operateTime"
label=
"操作时间"
width=
"210"
/>
<el-table-column
prop=
"customizeName"
sortable
label=
"自定义名称"
width=
"200"
/>
<el-table-column
prop=
"supplyName"
sortable
label=
"供热站名称"
width=
"160"
/>
<el-table-column
prop=
"operateTime"
sortable
label=
"操作时间"
width=
"210"
/>
<el-table-column
prop=
"isFixed"
label=
"干预模式"
width=
"120"
/>
<el-table-column
prop=
"temperature"
label=
"温度"
width=
"60"
/>
<el-table-column
prop=
"wind"
label=
"风速"
width=
"60"
/>
...
...
@@ -107,8 +129,8 @@ function handleAdd(val){
<el-table-column
prop=
"diffPercentage"
label=
"自动偏差百分比"
width=
"170"
/>
<el-table-column
prop=
"timeoutMin"
label=
"验证时间"
width=
"100"
/>
<el-table-column
prop=
"tempRegulation"
label=
"调节温度"
width=
"100"
/>
<el-table-column
prop=
"sort"
sortable
label=
"排序"
width=
"60"
/>
<el-table-column
label=
"操作"
width=
"200"
>
<el-table-column
prop=
"sort"
label=
"排序"
width=
"60"
/>
<el-table-column
label=
"操作"
fixed=
"right"
width=
"200"
>
<template
#
default=
"scope"
>
<div
class=
"table-operate-column"
>
<el-button
link
@
click=
"revise(scope.row)"
type=
"primary"
>
修改
</el-button>
...
...
@@ -163,6 +185,7 @@ function handleAdd(val){
.add-btn
{
margin
:
5px
0
;
margin-left
:
10px
;
}
:deep
(
.table-header-class
)
{
...
...
src/views/SchedulingPage/WindManagePage.vue
View file @
4c8a80c3
...
...
@@ -2,6 +2,8 @@
import
{
onMounted
,
ref
,
watch
,
watchEffect
}
from
"vue"
;
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
{
getWind
,
deleteWind
,
alterWind
,
addWind
}
from
"@/api/scheduling.js"
import
store
from
"@/store/index.js"
;
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
const
data
=
ref
()
const
dataBackup
=
ref
([])
...
...
@@ -94,6 +96,7 @@ function onAddSubmit() {
onMounted
(()
=>
{
getData
()
})
function
getData
()
{
...
...
@@ -165,7 +168,7 @@ function resetInput() {
<el-row>
<el-col
:span=
"8"
col-label
>
对应温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"reviseForm.windTemp"
placeholder=
""
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"reviseForm.windTemp"
placeholder=
""
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
...
...
@@ -199,7 +202,7 @@ function resetInput() {
<el-row>
<el-col
:span=
"8"
col-label
>
对应温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"addForm.windTemp"
placeholder=
""
style=
"width: 370px"
/>
<el-input
v-
float-number
v-
model=
"addForm.windTemp"
placeholder=
""
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
...
...
src/views/SchedulingPage/weatherManageSub/AddWindow.vue
View file @
4c8a80c3
<
script
setup
>
import
{
ref
,
defineProps
,
defineEmits
,
computed
,
isRef
,
onMounted
,
watchEffect
}
from
"vue"
;
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
const
props
=
defineProps
({
open
:
{
...
...
@@ -82,7 +83,7 @@ function resetInput(){
<el-row
style=
"border-top: #a6c3e9 1px solid"
>
<el-col
:span=
"8"
class=
"content-col-label"
>
自定义名称:
</el-col>
<el-col
:span=
"16"
class=
"content-col-value"
>
<el-input
:input-style=
"inputStyle"
v-model=
"addData.customizeName"
style=
"width: 510px"
/>
<el-input
:input-style=
"inputStyle"
v-model=
"addData.customizeName"
style=
"width: 510px"
/>
</el-col>
</el-row>
<el-row>
...
...
@@ -97,7 +98,7 @@ function resetInput(){
<el-row>
<el-col
:span=
"8"
class=
"content-col-label"
>
温度:
</el-col>
<el-col
:span=
"16"
class=
"content-col-value"
>
<el-input
:input-style=
"inputStyle"
v-model=
"addData.temperature"
style=
"width: 510px"
/>
<el-input
v-float-number
:input-style=
"inputStyle"
v-model=
"addData.temperature"
style=
"width: 510px"
/>
</el-col>
</el-row>
<el-row>
...
...
@@ -125,17 +126,17 @@ function resetInput(){
</el-col>
<el-col
:span=
"5"
class=
"content-col-label"
>
自动偏差百分比(%d):
</el-col>
<el-col
:span=
"7"
class=
"content-col-value"
>
<el-input
:input-style=
"inputStyle"
v-model=
"addData.diffPercentage"
style=
"width: 240px"
/>
<el-input
v-float-number
:input-style=
"inputStyle"
v-model=
"addData.diffPercentage"
style=
"width: 240px"
/>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"5"
class=
"content-col-label"
>
自动验证循环时间(分钟):
</el-col>
<el-col
:span=
"7"
class=
"content-col-value"
>
<el-input
:input-style=
"inputStyle"
v-model=
"addData.timeoutMin"
style=
"width: 240px"
/>
<el-input
v-float-number
:input-style=
"inputStyle"
v-model=
"addData.timeoutMin"
style=
"width: 240px"
/>
</el-col>
<el-col
:span=
"5"
class=
"content-col-label"
>
自动调节温度(℃):
</el-col>
<el-col
:span=
"7"
class=
"content-col-value"
>
<el-input
:input-style=
"inputStyle"
v-model=
"addData.tempRegulation"
style=
"width: 240px"
/>
<el-input
v-float-number
:input-style=
"inputStyle"
v-model=
"addData.tempRegulation"
style=
"width: 240px"
/>
</el-col>
</el-row>
</div>
...
...
src/views/SchedulingPage/weatherManageSub/BindWindow.vue
View file @
4c8a80c3
<
script
setup
>
import
{
ref
,
defineProps
,
defineEmits
,
watchEffect
,
onMounted
}
from
"vue"
;
import
http
from
"@/api/http.js"
;
import
{
ref
,
defineProps
,
defineEmits
,
watchEffect
,
onMounted
,
reactive
}
from
"vue"
;
import
{
getTransfer
}
from
"@/api/scheduling.js"
import
store
from
"@/store/index.js"
;
import
cloneDeep
from
'lodash/cloneDeep'
const
props
=
defineProps
({
open
:
{
...
...
@@ -23,17 +24,15 @@ const emit = defineEmits({
})
const
bindData
=
ref
({})
watchEffect
(()
=>
{
bindData
.
value
=
{...
props
.
data
}
// bindData.value = {...props.data}
bindData
.
value
=
cloneDeep
(
props
.
data
)
// 深拷贝数据
})
const
inputStyle
=
{
color
:
'black'
,
height
:
'24px'
}
const
heatingStationList
=
ref
([
'行政区供热站'
,
'二号供热站'
,
'三号供热站'
])
// 供热站列表
const
supplyData
=
ref
([])
// 供热站数据
const
transferData
=
ref
([])
// 换热站数据
const
heatExchangeList
=
ref
([
'兴安里'
,
'永明里'
,
...
...
@@ -55,12 +54,32 @@ const heatExchangeList = ref([
'振业里'
])
// 换热站列表
onMounted
(()
=>
{
// let result = store.getters.getEnterprise
()
// console.log("绑定窗口挂载",result
)
getSupply
()
getTransferData
(
)
})
const
onSubmit
=
()
=>
{
emit
(
'onConfirm'
,
bindData
)
}
// 点击保存按钮
function
getTransferData
(){
// 获取绑定换热站数据,若在onMounted中无法调用失败(id可能为空),则在opOpen时操作
let
param
=
{
id
:
bindData
.
value
.
customizeId
}
getTransfer
(
param
).
then
(
res
=>
{
transferData
.
value
=
res
.
data
})
}
function
getSupply
(){
let
result
=
store
.
getters
.
getEnterprise
()
result
[
0
].
serviceCenterList
.
forEach
(
fir_item
=>
{
fir_item
.
supplyList
.
forEach
(
sec_item
=>
{
supplyData
.
value
.
push
({
supplyId
:
sec_item
.
supplyId
,
supplyName
:
sec_item
.
supplyName
,
})
})
})
}
</
script
>
<
template
>
...
...
@@ -80,8 +99,8 @@ const onSubmit = ()=>{
<el-row
class=
"not-select-row"
>
<el-col
:span=
"8"
class=
"content-col-label"
>
供热站:
</el-col>
<el-col
:span=
"16"
class=
"content-col-value"
>
<el-select
v-model=
"bindData.supply
Name
"
placeholder=
""
style=
"width: 210px;"
class=
"custom-select"
size=
"small"
>
<el-option
v-for=
"item in
heatingStationList"
:key=
"item"
:label=
"item"
:value=
"item"
/
>
<el-select
v-model=
"bindData.supply
Id
"
placeholder=
""
style=
"width: 210px;"
class=
"custom-select"
size=
"small"
>
<el-option
v-for=
"item in
supplyData"
:key=
"item.supplyId"
:label=
"item.supplyName"
:value=
"item.supplyId"
/>
<!--此处还需考虑--
>
</el-select>
</el-col>
</el-row>
...
...
src/views/SchedulingPage/weatherManageSub/ReviseWindow.vue
View file @
4c8a80c3
<
script
setup
>
import
{
ref
,
defineProps
,
defineEmits
,
computed
,
isRef
,
onMounted
,
watchEffect
}
from
"vue"
;
import
cloneDeep
from
'lodash/cloneDeep'
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
const
props
=
defineProps
({
open
:
{
...
...
@@ -21,7 +23,10 @@ const emit = defineEmits({
})
const
reviseData
=
ref
({})
watchEffect
(()
=>
{
reviseData
.
value
=
{...
props
.
data
}
// reviseData.value = {...props.data}
props
.
data
.
transfers
=
[]
props
.
data
.
updateNullFields
=
''
reviseData
.
value
=
cloneDeep
(
props
.
data
)
// 深拷贝数据
})
const
inputStyle
=
{
color
:
'black'
,
...
...
@@ -40,8 +45,8 @@ const switchingisAuto = computed({
}
})
// 可写计算属性,手动、自动模式切换
function
onOpen
(){
console
.
log
(
'props.data数据'
,
props
.
data
)
console
.
log
(
'修改弹窗接收到的数据'
,
reviseData
.
value
)
//
console.log('props.data数据',props.data)
//
console.log('修改弹窗接收到的数据',reviseData.value)
}
</
script
>
...
...
@@ -72,7 +77,7 @@ function onOpen(){
<el-row>
<el-col
:span=
"8"
class=
"content-col-label"
>
温度:
</el-col>
<el-col
:span=
"16"
class=
"content-col-value"
>
<el-input
:input-style=
"inputStyle"
v-model=
"reviseData.temperature"
style=
"width: 510px"
/>
<el-input
v-float-number
:input-style=
"inputStyle"
v-model=
"reviseData.temperature"
style=
"width: 510px"
/>
</el-col>
</el-row>
<el-row>
...
...
@@ -100,17 +105,17 @@ function onOpen(){
</el-col>
<el-col
:span=
"5"
class=
"content-col-label"
>
自动偏差百分比(%d):
</el-col>
<el-col
:span=
"7"
class=
"content-col-value"
>
<el-input
:input-style=
"inputStyle"
v-model=
"reviseData.diffPercentage"
style=
"width: 240px"
/>
<el-input
v-float-number
:input-style=
"inputStyle"
v-model=
"reviseData.diffPercentage"
style=
"width: 240px"
/>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"5"
class=
"content-col-label"
>
自动验证循环时间(分钟):
</el-col>
<el-col
:span=
"7"
class=
"content-col-value"
>
<el-input
:input-style=
"inputStyle"
v-model=
"reviseData.timeoutMin"
style=
"width: 240px"
/>
<el-input
v-float-number
:input-style=
"inputStyle"
v-model=
"reviseData.timeoutMin"
style=
"width: 240px"
/>
</el-col>
<el-col
:span=
"5"
class=
"content-col-label"
>
自动调节温度(℃):
</el-col>
<el-col
:span=
"7"
class=
"content-col-value"
>
<el-input
:input-style=
"inputStyle"
v-model=
"reviseData.tempRegulation"
style=
"width: 240px"
/>
<el-input
v-float-number
:input-style=
"inputStyle"
v-model=
"reviseData.tempRegulation"
style=
"width: 240px"
/>
</el-col>
</el-row>
</div>
...
...
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