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
88c39c0d
Commit
88c39c0d
authored
Aug 12, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改报警参数
parent
36e11d9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
78 deletions
+53
-78
InstantHeatPage.vue
src/views/SchedulingPage/InstantHeatPage.vue
+53
-78
No files found.
src/views/SchedulingPage/InstantHeatPage.vue
View file @
88c39c0d
...
@@ -6,17 +6,15 @@
...
@@ -6,17 +6,15 @@
<span>
瞬时热量对比配置
</span>
<span>
瞬时热量对比配置
</span>
</div>
</div>
<table
cellpadding=
"0"
cellspacing=
"1"
>
<table
cellpadding=
"0"
cellspacing=
"1"
>
<tr>
<tr>
<th
style=
"width: 25%"
>
计划名称:
</th>
<th
style=
"width: 25%"
>
计划名称:
</th>
<td
style=
"width: 60%; margin:
0; padding: 0"
>
<td
style=
"width: 60%; margin:0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<tr>
<td
style=
"text-align: left"
>
<td
style=
"text-align: left"
>
<el-input
<el-input
style=
"width: 80%"
v-model=
"List.planName"
></el-input>
style=
"width: 80%"
v-model=
"List.planName"
></el-input>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -28,143 +26,114 @@
...
@@ -28,143 +26,114 @@
<table
cellpadding=
"0"
cellspacing=
"0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<tr>
<td
style=
"text-align: left"
>
<td
style=
"text-align: left"
>
<el-input
<el-input
v-float-number
style=
"width: 80%"
v-model=
"List.diffPercentage"
></el-input>
v-float-number
style=
"width: 80%"
v-model=
"List.diffPercentage"
></el-input>
</td>
</td>
</tr>
</tr>
</table>
</table>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<th
style=
"width: 25%"
>
判断时间 (分):
</th>
<th
style=
"width: 25%"
>
判断时间 (分):
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<tr>
<td
style=
"text-align: left"
>
<td
style=
"text-align: left"
>
<el-input
<el-input
style=
"width: 80%"
v-model=
"List.timeoutMin"
></el-input>
style=
"width: 80%"
v-model=
"List.timeoutMin"
></el-input>
</td>
</td>
</tr>
</tr>
</table>
</table>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<th
style=
"width: 25%"
>
调节温度 (℃)
</th>
<th
style=
"width: 25%"
>
调节温度 (℃)
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<tr>
<td
style=
"text-align: left"
>
<td
style=
"text-align: left"
>
<el-input
<el-input
v-float-number
style=
"width: 80%"
v-model=
"List.tempRegulation"
></el-input>
v-float-number
style=
"width: 80%"
v-model=
"List.tempRegulation"
></el-input>
</td>
</td>
</tr>
</tr>
</table>
</table>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<th
style=
"width: 25%"
>
备注
</th>
<th
style=
"width: 25%"
>
备注
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<tr>
<td
style=
"text-align: left"
>
<td
style=
"text-align: left"
>
<el-input
<el-input
style=
"width: 80%"
type=
"textarea"
rows=
"6"
v-model=
"List.description"
></el-input>
style=
"width: 80%"
type=
"textarea"
rows=
"6"
v-model=
"List.description"
></el-input>
</td>
</td>
</tr>
</tr>
</table>
</table>
</td>
</td>
</tr>
</tr>
</table>
</table>
<div
class=
"btngrounp"
>
<div
class=
"btngrounp"
>
<el-button
type=
"primary"
@
click=
"onSave"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"onSave"
>
保存
</el-button>
<el-button
type=
"primary"
style=
"margin: 0 0 0 5px"
@
click=
"onCancel"
<el-button
type=
"primary"
style=
"margin: 0 0 0 5px"
@
click=
"onCancel"
>
关闭
</el-button>
>
关闭
</el-button
>
</div>
</div>
</el-card>
</el-card>
<!--
<AudioPlayer
:option=
"
{
src: aedio,
title: 'your-audio-title',
}"
/> -->
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
setup
>
<
script
setup
>
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
}
from
"vue"
;
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
}
from
"vue"
;
import
{
postInstantHeat
,
postInstantHeatUpdate
}
from
"@/api/scheduling"
;
import
{
postInstantHeat
,
postInstantHeatUpdate
}
from
"@/api/scheduling"
import
{
ElMessage
}
from
"element-plus"
;
import
{
ElMessage
}
from
"element-plus"
;
import
http
from
"../../api/http"
;
import
http
from
"../../api/http"
;
import
aedio
from
"./aedio.mp3"
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
const
loading
=
ref
(
false
);
const
loading
=
ref
(
false
)
import
AudioPlayer
from
"vue3-audio-player"
;
import
"vue3-audio-player/dist/style.css"
;
const
audioList
=
ref
([]);
const
handleBeforePlay
=
(
next
)
=>
{
this
.
currentAudioName
=
audioList
[
this
.
$refs
.
audioPlayer
.
currentPlayIndex
].
title
;
next
();
// Start play
};
const
List
=
ref
([
const
List
=
ref
([
{
{
planId
:
""
,
"planId"
:
""
,
planName
:
""
,
"planName"
:
""
,
diffPercentage
:
""
,
"diffPercentage"
:
""
,
timeoutMin
:
""
,
"timeoutMin"
:
""
,
tempRegulation
:
""
,
"tempRegulation"
:
""
,
description
:
""
,
"description"
:
""
,
isActive
:
""
,
"isActive"
:
''
},
}
]);
])
const
getInstanceHeat
=
async
()
=>
{
const
getInstanceHeat
=
async
()
=>
{
loading
.
value
=
true
;
loading
.
value
=
true
const
data
=
await
postInstantHeat
();
const
data
=
await
postInstantHeat
();
console
.
log
(
data
);
console
.
log
(
data
);
List
.
value
=
data
.
data
[
0
]
;
List
.
value
=
data
.
data
[
0
]
loading
.
value
=
false
;
loading
.
value
=
false
}
;
}
const
onSave
=
async
()
=>
{
const
onSave
=
async
()
=>
{
// await postInstantHeatUpdate(List.value)
// await postInstantHeatUpdate(List.value)
await
http
await
http
.
post
(
"/api/Scheduling/BizInstantaneousHeat/Update"
,
{
...
List
.
value
},
false
).
then
((
result
)
=>
{
.
post
(
}).
catch
((
error
)
=>
{
"/api/Scheduling/BizInstantaneousHeat/Update"
,
console
.
log
(
error
)
{
...
List
.
value
},
})
false
ElMessage
.
success
(
'修改成功'
)
)
getInstanceHeat
()
.
then
((
result
)
=>
{})
}
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
ElMessage
.
success
(
"修改成功"
);
getInstanceHeat
();
};
onMounted
(()
=>
{
onMounted
(()
=>
{
getInstanceHeat
();
getInstanceHeat
()
});
})
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.card-contianer {
.card-contianer {
background-color: #
dfe8f
6;
background-color: #
DFE8F
6;
}
}
.card-header {
.card-header {
...
@@ -177,8 +146,10 @@ onMounted(() => {
...
@@ -177,8 +146,10 @@ onMounted(() => {
.btngrounp {
.btngrounp {
margin-top: 10px;
margin-top: 10px;
text-align: center;
text-align: center;
}
}
table {
table {
width: 100%;
width: 100%;
}
}
...
@@ -190,28 +161,32 @@ td {
...
@@ -190,28 +161,32 @@ td {
font-size: 14px;
font-size: 14px;
margin: 0;
margin: 0;
padding: 0;
padding: 0;
}
}
table {
table {
width: 100%;
width: 100%;
border-collapse: collapse;
border-collapse: collapse;
}
}
table th {
table th {
background-color: #
f2f6f
8;
background-color: #
F2F6F
8;
text-align: center;
text-align: center;
padding: 5px 10px;
padding: 5px 10px;
border: 1px solid #
dfe8f
6;
border: 1px solid #
DFE8F
6;
}
}
table td {
table td {
text-align: center;
text-align: center;
background-color: #ffffff;
background-color: #ffffff;
padding: 5px 10px;
padding: 5px 10px;
border: 1px solid #
dfe8f
6;
border: 1px solid #
DFE8F
6;
border-bottom: 0;
border-bottom: 0;
}
}
table.botList td {
table.botList td {
width: 33%;
width: 33%;
text-align: left;
text-align: left;
...
...
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