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
7699210c
Commit
7699210c
authored
Aug 14, 2024
by
xuke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
瞬时热量-输入格式
parent
9dece472
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
26 deletions
+26
-26
AnnualParamPage.vue
src/views/SchedulingPage/AnnualParamPage.vue
+14
-15
InstantHeatPage.vue
src/views/SchedulingPage/InstantHeatPage.vue
+12
-11
No files found.
src/views/SchedulingPage/AnnualParamPage.vue
View file @
7699210c
<
script
setup
>
import
{
computed
,
onBeforeMount
,
onMounted
,
reactive
,
ref
}
from
"vue"
;
import
{
computed
,
onBeforeMount
,
onMounted
,
reactive
,
ref
}
from
"vue"
;
import
{
getAnnualParam
,
alterAnnualParam
,
...
...
@@ -100,11 +100,11 @@ function handleSearch() {
}
}
// 处理查询
function
onReviseSubmit
()
{
if
(
reviseForm
.
value
.
hasOwnProperty
(
'supplyName'
))
{
if
(
reviseForm
.
value
.
hasOwnProperty
(
'supplyName'
))
{
delete
reviseForm
.
value
.
supplyName
}
if
(
reviseForm
.
value
.
year
.
length
>
4
)
{
reviseForm
.
value
.
year
=
reviseForm
.
value
.
year
.
slice
(
6
,
10
)
if
(
reviseForm
.
value
.
year
.
length
>
4
)
{
reviseForm
.
value
.
year
=
reviseForm
.
value
.
year
.
slice
(
6
,
10
)
}
alterAnnualParam
(
reviseForm
.
value
).
then
(
res
=>
{
if
(
res
.
success
)
{
...
...
@@ -135,11 +135,8 @@ function onAddSubmit() { // 提交新增
return
}
})
<<<<<<<
HEAD
console
.
log
(
'>>>>>>>>=='
,
addForm
.
value
)
console
.
log
(
'========>>>>'
,
addForm
.
value
.
year
)
=======
>>>>>>>
9264
ee33b707bc7814b1379ef943cba565c98072
addAnnualParam
(
addForm
.
value
).
then
(
res
=>
{
if
(
res
.
success
)
{
getData
()
...
...
@@ -166,7 +163,7 @@ function handleClose() {
addWindowOpen
.
value
=
false
resetInput
()
}
// 关闭弹窗
onBeforeMount
(()
=>
{
onBeforeMount
(()
=>
{
getData
()
getOrganizationStructure
()
})
...
...
@@ -232,7 +229,7 @@ function getSupply() {
supplyId
:
sec_item
.
supplyId
,
supplyName
:
sec_item
.
supplyName
,
}
supplyData
.
value
.
push
({
...
temp
})
supplyData
.
value
.
push
({
...
temp
})
})
})
}
// 根据组织结构获取供热站数据
...
...
@@ -244,10 +241,10 @@ function getOrganizationStructure() {
ElMessage
.
error
(
'接口异常,获取数据失败.'
)
})
}
// 获取组织结构
function
showSupplyName
(
id
){
function
showSupplyName
(
id
)
{
let
supplyName
=
""
supplyData
.
value
.
forEach
(
item
=>
{
if
(
item
.
supplyId
===
id
)
{
supplyData
.
value
.
forEach
(
item
=>
{
if
(
item
.
supplyId
===
id
)
{
supplyName
=
item
.
supplyName
}
})
...
...
@@ -275,7 +272,7 @@ function showSupplyName(id){
<el-table-column
label=
"节能类型"
sortable
:sort-method=
"customSort"
prop=
"energyType"
/>
<el-table-column
label=
"供热站名称"
>
<template
#
default=
"scope"
>
{{
showSupplyName
(
scope
.
row
.
supplyId
)
}}
{{
showSupplyName
(
scope
.
row
.
supplyId
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"年度"
sortable
prop=
"year"
/>
...
...
@@ -317,7 +314,8 @@ function showSupplyName(id){
<el-col
:span=
"8"
col-label
>
供热站:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-select
placeholder=
"请选择供热站"
size=
"small"
v-model=
"reviseForm.supplyId"
style=
"width: 370px"
>
<el-option
v-for=
"item in supplyData"
:key=
"item.supplyId"
:value=
"item.supplyId"
:label=
"item.supplyName"
/>
<el-option
v-for=
"item in supplyData"
:key=
"item.supplyId"
:value=
"item.supplyId"
:label=
"item.supplyName"
/>
</el-select>
</el-col>
</el-row>
...
...
@@ -382,7 +380,8 @@ function showSupplyName(id){
<el-col
:span=
"8"
col-label
>
供热站:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-select
placeholder=
"请选择供热站"
size=
"small"
v-model=
"addForm.supplyId"
style=
"width: 370px"
>
<el-option
v-for=
"item in supplyData"
:key=
"item.supplyId"
:value=
"item.supplyId"
:label=
"item.supplyName"
/>
<el-option
v-for=
"item in supplyData"
:key=
"item.supplyId"
:value=
"item.supplyId"
:label=
"item.supplyName"
/>
</el-select>
</el-col>
</el-row>
...
...
src/views/SchedulingPage/InstantHeatPage.vue
View file @
7699210c
...
...
@@ -117,10 +117,10 @@ const rules = reactive({
{
pattern
:
/^
([
0-9
]\d{0,1}
|100$
)(\.\d{1,4})?
$/
,
"message"
:
"请输入正确的百分比格式"
,
trigger
:
"blur"
}
],
timeoutMin
:
[
{
pattern
:
/^
(\d{1,
5
})(\.[
0-9
]{1,4})?
$/
,
"message"
:
"判断时间必须是1-10位实数"
,
trigger
:
"blur"
}
{
pattern
:
/^
(\d{1,
10
})(\.[
0-9
]{1,4})?
$/
,
"message"
:
"判断时间必须是1-10位实数"
,
trigger
:
"blur"
}
],
tempRegulation
:
[
{
pattern
:
/^
(
-
?\d{1,
5
})(\.[
0-9
]{1,4})?
$/
,
message
:
"请输入正确的调节温度最大值"
,
trigger
:
"blur"
}
{
pattern
:
/^
(
-
?\d{1,
10
})(\.[
0-9
]{1,4})?
$/
,
message
:
"请输入正确的调节温度最大值"
,
trigger
:
"blur"
}
],
description
:
[
{
pattern
:
/^.
{1,50}
$/
,
"message"
:
"备注必须是1-50位字符"
,
trigger
:
"blur"
}
...
...
@@ -137,15 +137,16 @@ const getInstanceHeat = () => {
}
})
}
const
onSave
=
()
=>
{
http
.
post
(
"/api/Scheduling/BizInstantaneousHeat/Update"
,
{
...
List
.
value
},
false
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
ElMessage
.
success
(
res
.
message
)
getInstanceHeat
()
}
}).
catch
((
error
)
=>
{
console
.
log
(
error
)
})
const
onSave
=
async
()
=>
{
await
formRef
.
value
.
validate
()
await
http
.
post
(
"/api/Scheduling/BizInstantaneousHeat/Update"
,
{
...
List
.
value
},
false
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
ElMessage
.
success
(
res
.
message
)
getInstanceHeat
()
}
}).
catch
((
error
)
=>
{
console
.
log
(
error
)
})
}
onMounted
(()
=>
{
getInstanceHeat
()
...
...
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