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
10e2e52a
Commit
10e2e52a
authored
Aug 12, 2024
by
xuke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善-参数配置
parent
7887dd94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
29 deletions
+13
-29
ConfigBoilerPage.vue
src/views/SchedulingPage/ConfigBoilerPage.vue
+13
-29
No files found.
src/views/SchedulingPage/ConfigBoilerPage.vue
View file @
10e2e52a
...
...
@@ -2,7 +2,7 @@
<div
class=
"contentBlock"
>
<div
class=
"contentBlockInn"
>
<el-card
class=
"card-contianer"
>
<table
cellpadding=
"0"
cellspacing=
"1"
style=
"background-color: #99bbe8"
>
<table
v-loading=
"loading"
cellpadding=
"0"
cellspacing=
"1"
style=
"background-color: #99bbe8"
>
<tr>
<th
style=
"width: 25%"
>
电调阈开启度
</th>
<td
style=
"width: 60%; margin: 0; padding: 0"
>
...
...
@@ -24,15 +24,6 @@
<tr>
<th
style=
"width: 25%"
>
换热站
</th>
<td
style=
"text-align: left"
>
<!-- <el-checkbox-group v-model="formDatas.transferIds" style="width: 60%;">
<el-checkbox v-for="(option, index) in options" :key="index" :label="option" :value="options.value">
{{ option.label }}
</el-checkbox>
</el-checkbox-group> -->
<!-- <el-checkbox-group v-model="checkList" style="width: 60%;">
<el-checkbox v-for="(option, index) in options" :key="index" :label="option" :value="option.value">
{{ option.label }}
</el-checkbox> -->
<el-checkbox-group
v-model=
"formDatas.transferIds"
style=
"width: 60%"
>
<el-checkbox
v-for=
"(option, index) in options"
:label=
"option.value"
:key=
"index"
>
{{ option.label }}
...
...
@@ -169,7 +160,7 @@ import { ElMessage } from "element-plus";
const
options
=
reactive
([]);
import
store
from
"../../store/index"
;
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
import
{
ElLoading
}
from
"element-plus"
;
const
loading
=
ref
(
false
)
const
form
=
ref
({
types
:
[],
});
...
...
@@ -189,32 +180,25 @@ const formDatas = ref([
},
]);
const
getListData
=
()
=>
{
const
loading
=
ElLoading
.
service
({
lock
:
true
,
text
:
"获取数据中"
,
background
:
"rgba(0, 0, 0, 0.7)"
,
});
loading
.
value
=
true
http
.
get
(
"/api/configboiler/getData"
).
then
((
result
)
=>
{
formDatas
.
value
=
result
.
data
;
formDatas
.
value
.
transferIds
=
formDatas
.
value
.
transferIds
.
split
(
","
);
formDatas
.
value
.
updateNullFields
=
""
;
loading
.
close
();
if
(
result
.
success
)
{
formDatas
.
value
=
result
.
data
;
ElMessage
.
success
(
result
.
message
)
formDatas
.
value
.
transferIds
=
formDatas
.
value
.
transferIds
.
split
(
","
);
formDatas
.
value
.
updateNullFields
=
""
;
loading
.
value
=
false
}
}).
catch
(
err
=>
{
console
.
log
(
err
);
});
};
const
onSave
=
async
()
=>
{
const
loading
=
ElLoading
.
service
({
lock
:
true
,
text
:
"保存数据中"
,
background
:
"rgba(0, 0, 0, 0.7)"
,
});
formDatas
.
value
.
transferIds
=
formDatas
.
value
.
transferIds
.
join
(
","
);
const
result
=
await
postConfigBoilerUpdate
({
...
formDatas
.
value
});
if
(
result
.
success
)
{
ElMessage
.
success
(
result
.
message
)
getListData
();
loading
.
close
();
ElMessage
.
success
(
"修改成功"
);
}
};
...
...
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