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
7887dd94
Commit
7887dd94
authored
Aug 12, 2024
by
xuke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善-瞬时热量
parent
562534e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
InstantHeatPage.vue
src/views/SchedulingPage/InstantHeatPage.vue
+17
-16
No files found.
src/views/SchedulingPage/InstantHeatPage.vue
View file @
7887dd94
...
...
@@ -5,9 +5,7 @@
<div
class=
"card-header"
>
<span>
瞬时热量对比配置
</span>
</div>
<table
cellpadding=
"0"
cellspacing=
"1"
>
<table
v-loading=
"loading"
cellpadding=
"0"
cellspacing=
"1"
>
<tr>
<th
style=
"width: 25%"
>
计划名称:
</th>
<td
style=
"width: 60%; margin:0; padding: 0"
>
...
...
@@ -96,7 +94,7 @@ import { vFloatNumber } from "@/utils/directives.js";
const
loading
=
ref
(
false
)
const
List
=
ref
(
[
const
List
=
ref
(
{
"planId"
:
""
,
"planName"
:
""
,
...
...
@@ -106,25 +104,28 @@ const List = ref([
"description"
:
""
,
"isActive"
:
''
}
]
)
)
const
getInstanceHeat
=
async
()
=>
{
const
getInstanceHeat
=
()
=>
{
loading
.
value
=
true
const
data
=
await
postInstantHeat
();
console
.
log
(
data
);
List
.
value
=
data
.
data
[
0
]
http
.
post
(
"api/Scheduling/BizInstantaneousHeat/Get"
,
false
).
then
(
res
=>
{
if
(
res
.
success
)
{
List
.
value
=
res
.
data
[
0
]
console
.
log
(
"res.data===>"
,
res
.
data
);
loading
.
value
=
false
}
})
}
const
onSave
=
async
()
=>
{
// await postInstantHeatUpdate(List.value)
await
http
.
post
(
"/api/Scheduling/BizInstantaneousHeat/Update"
,
{
...
List
.
value
},
false
).
then
((
result
)
=>
{
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
)
})
ElMessage
.
success
(
'修改成功'
)
getInstanceHeat
()
}
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