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
f019810e
Commit
f019810e
authored
Aug 12, 2024
by
裴文涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
气象干预8月十二号与后端沟通后提交
parent
91831caa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
91 deletions
+66
-91
AnnualParamPage.vue
src/views/SchedulingPage/AnnualParamPage.vue
+63
-88
WeatherManagePage.vue
src/views/SchedulingPage/WeatherManagePage.vue
+3
-3
No files found.
src/views/SchedulingPage/AnnualParamPage.vue
View file @
f019810e
<
script
setup
>
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"
;
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
([])
...
...
@@ -42,7 +42,7 @@ const selectYearValue = computed(() => {
function
handleEdit
(
val
)
{
currentYear
.
value
=
new
Date
().
getFullYear
()
currentMonth
.
value
=
new
Date
().
getMonth
()
+
1
reviseForm
.
value
=
{
...
val
}
reviseForm
.
value
=
{
...
val
}
reviseWindowOpen
.
value
=
true
}
// 处理修改
function
handleDelete
(
val
)
{
...
...
@@ -65,7 +65,7 @@ function handleDelete(val) {
message
:
'删除成功.'
,
type
:
'success'
,
})
}
else
{
}
else
{
ElMessage
({
message
:
'删除失败.'
,
type
:
'error'
,
...
...
@@ -100,13 +100,13 @@ function onSubmit() {
message
:
'修改成功.'
,
type
:
'success'
,
})
}
else
{
}
else
{
ElMessage
({
message
:
'修改失败.'
,
type
:
'error'
,
})
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
ElMessage
({
message
:
'修改失败.'
,
type
:
'error'
,
...
...
@@ -121,20 +121,20 @@ function onAddSubmit() { // 提交新增
}
})
addAnnualParam
(
addForm
.
value
).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
getData
()
handleClose
()
ElMessage
({
message
:
'新增成功.'
,
type
:
'success'
,
})
}
else
{
}
else
{
ElMessage
({
message
:
'新增失败.'
,
type
:
'error'
,
})
}
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
ElMessage
({
message
:
'新增失败.'
,
type
:
'error'
,
...
...
@@ -169,33 +169,33 @@ function resetInput() {
}
}
function
customSort
(
a
,
b
)
{
function
customSort
(
a
,
b
)
{
let
valA
;
let
valB
;
if
(
a
.
energyType
===
'一步节能'
)
{
if
(
a
.
energyType
===
'一步节能'
)
{
valA
=
1
}
else
if
(
a
.
energyType
===
'二步节能'
)
{
}
else
if
(
a
.
energyType
===
'二步节能'
)
{
valA
=
2
}
else
if
(
a
.
energyType
===
'三步节能'
)
{
}
else
if
(
a
.
energyType
===
'三步节能'
)
{
valA
=
3
}
else
if
(
a
.
energyType
===
'四步节能'
)
{
}
else
if
(
a
.
energyType
===
'四步节能'
)
{
valA
=
4
}
else
if
(
a
.
energyType
===
'非节能'
)
{
}
else
if
(
a
.
energyType
===
'非节能'
)
{
valA
=
5
}
else
{
}
else
{
valA
=
6
}
if
(
b
.
energyType
===
'一步节能'
)
{
if
(
b
.
energyType
===
'一步节能'
)
{
valB
=
1
}
else
if
(
b
.
energyType
===
'二步节能'
)
{
}
else
if
(
b
.
energyType
===
'二步节能'
)
{
valB
=
2
}
else
if
(
b
.
energyType
===
'三步节能'
)
{
}
else
if
(
b
.
energyType
===
'三步节能'
)
{
valB
=
3
}
else
if
(
b
.
energyType
===
'四步节能'
)
{
}
else
if
(
b
.
energyType
===
'四步节能'
)
{
valB
=
4
}
else
if
(
b
.
energyType
===
'非节能'
)
{
}
else
if
(
b
.
energyType
===
'非节能'
)
{
valB
=
5
}
else
{
}
else
{
valB
=
6
}
return
valA
-
valB
...
...
@@ -209,30 +209,23 @@ function customSort(a,b){
<el-row>
<el-col
:span=
"8"
label
>
年度:
</el-col>
<el-col
:span=
"16"
>
<el-input
clearable
v-model=
"searchKey"
/>
<el-input
clearable
v-model=
"searchKey"
/>
</el-col>
</el-row>
<el-button
type=
"primary"
class=
"add-search-btn"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
class=
"add-search-btn"
@
click=
"handleAdd"
>
新增
</el-button>
</div>
<div
class=
"table-wrapper"
>
<el-table
:data=
"data"
border
stripe
ref=
"elTableRef"
:default-sort=
"
{prop: 'year', order: 'descending'}"
:header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass"
style="width: 100%">
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
width=
"60"
/>
<el-table-column
label=
"节能类型"
sortable
:sort-method=
"customSort"
prop=
"energyType"
/>
<el-table-column
label=
"年度"
sortable
prop=
"year"
/>
<el-table-column
label=
"热指标(W/m²)"
prop=
"standard"
/>
<el-table-column
label=
"度日数标定值"
prop=
"degreeStandard"
/>
<el-table-column
label=
"室内温度(℃)"
prop=
"indoorTemperature"
/>
<el-table-column
label=
"室外温度(℃)"
prop=
"outdoorTemperature"
/>
<el-table-column
label=
"回水温度(℃)"
prop=
"backWaterTemperature"
/>
<el-table
:data=
"data"
border
stripe
ref=
"elTableRef"
:default-sort=
"
{ prop: 'year', order: 'descending' }"
:header-cell-class-name="tableHeaderClass" :row-class-name="tableBodyClass" style="width: 100%">
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
width=
"60"
/>
<el-table-column
label=
"节能类型"
sortable
:sort-method=
"customSort"
prop=
"energyType"
/>
<el-table-column
label=
"年度"
sortable
prop=
"year"
/>
<el-table-column
label=
"热指标(W/m²)"
prop=
"standard"
/>
<el-table-column
label=
"度日数标定值"
prop=
"degreeStandard"
/>
<el-table-column
label=
"室内温度(℃)"
prop=
"indoorTemperature"
/>
<el-table-column
label=
"室外温度(℃)"
prop=
"outdoorTemperature"
/>
<el-table-column
label=
"回水温度(℃)"
prop=
"backWaterTemperature"
/>
<el-table-column
label=
"操作"
>
<template
#
default=
"scope"
>
<div
class=
"table-operate-column"
>
...
...
@@ -244,22 +237,13 @@ function customSort(a,b){
</el-table>
</div>
<div
class=
"revise-window-dialog"
>
<el-dialog
title=
"年度参数修改"
v-model=
"reviseWindowOpen"
width=
"700px"
:before-close=
"handleClose"
>
<el-dialog
title=
"年度参数修改"
v-model=
"reviseWindowOpen"
width=
"700px"
:before-close=
"handleClose"
>
<
template
#
default
>
<el-row
first
>
<el-col
:span=
"8"
col-label
class=
"energy-type-class"
>
节能等级:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-select
placeholder=
""
size=
"small"
v-model=
"reviseForm.energyType"
style=
"width: 370px"
>
<el-option
v-for=
"item in energyTypeList"
:key=
"item"
:label=
"item"
:value=
"item"
/>
<el-option
v-for=
"item in energyTypeList"
:key=
"item"
:label=
"item"
:value=
"item"
/>
</el-select>
</el-col>
</el-row>
...
...
@@ -267,38 +251,38 @@ function customSort(a,b){
<el-col
:span=
"8"
col-label
>
年度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-select
placeholder=
""
size=
"small"
v-model=
"reviseForm.year"
style=
"width: 370px"
>
<el-option
:value=
"selectYearValue"
:label=
"selectYearValue"
/>
<el-option
:value=
"selectYearValue"
:label=
"selectYearValue"
/>
</el-select>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
热指标(W/m²):
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-float-number
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-float-number
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-float-number
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-float-number
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-float-number
v-model=
"reviseForm.backWaterTemperature"
style=
"width: 370px"
/>
<el-input
v-float-number
v-model=
"reviseForm.backWaterTemperature"
style=
"width: 370px"
/>
</el-col>
</el-row>
</
template
>
...
...
@@ -309,22 +293,13 @@ function customSort(a,b){
</div>
</
template
>
</el-dialog>
<!-- 修改弹窗 -->
<el-dialog
title=
"年度参数新增"
v-model=
"addWindowOpen"
width=
"700px"
:before-close=
"handleClose"
>
<el-dialog
title=
"年度参数新增"
v-model=
"addWindowOpen"
width=
"700px"
:before-close=
"handleClose"
>
<
template
#
default
>
<el-row
first
>
<el-col
:span=
"8"
col-label
class=
"energy-type-class"
>
节能等级:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-select
placeholder=
""
size=
"small"
v-model=
"addForm.energyType"
style=
"width: 370px"
>
<el-option
v-for=
"item in energyTypeList"
:key=
"item"
:label=
"item"
:value=
"item"
/>
<el-option
v-for=
"item in energyTypeList"
:key=
"item"
:label=
"item"
:value=
"item"
/>
</el-select>
</el-col>
</el-row>
...
...
@@ -332,38 +307,38 @@ function customSort(a,b){
<el-col
:span=
"8"
col-label
>
年度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-select
placeholder=
""
size=
"small"
v-model=
"selectYearValue"
style=
"width: 370px"
>
<el-option
:value=
"selectYearValue"
:label=
"selectYearValue"
/>
<el-option
:value=
"selectYearValue"
:label=
"selectYearValue"
/>
</el-select>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
热指标(W/m²):
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-float-number
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-float-number
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-float-number
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-float-number
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-float-number
v-model=
"addForm.backWaterTemperature"
style=
"width: 370px"
/>
<el-input
v-float-number
v-model=
"addForm.backWaterTemperature"
style=
"width: 370px"
/>
</el-col>
</el-row>
</
template
>
...
...
@@ -430,7 +405,7 @@ function customSort(a,b){
font-size: 12px;
}
::v-deep .el-table__body tr:hover
>
td {
::v-deep .el-table__body tr:hover
>
td {
background: linear-gradient(to top, rgb(0, 198, 255), rgb(255, 255, 255)) !important;
}
...
...
src/views/SchedulingPage/WeatherManagePage.vue
View file @
f019810e
...
...
@@ -48,7 +48,7 @@ const confirmRevise = val => { // 修改弹窗确认按钮事件
})
}
else
{
ElMessage
({
message
:
'修改失败.'
,
message
:
res
.
message
,
type
:
'error'
,
})
}
...
...
@@ -76,7 +76,7 @@ const confirmBind = val => {
bindWindowOpen
.
value
=
false
}
else
{
ElMessage
({
message
:
'绑定失败.'
,
message
:
res
.
message
,
type
:
'error'
,
})
}
...
...
@@ -117,7 +117,7 @@ function handleAdd(val){
})
}
else
{
ElMessage
({
message
:
'新增失败.'
,
message
:
res
.
message
,
type
:
'error'
,
})
}
...
...
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