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
35857be2
Commit
35857be2
authored
Aug 13, 2024
by
xuke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-瞬时热量
parent
13817988
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
InstantHeatPage.vue
src/views/SchedulingPage/InstantHeatPage.vue
+16
-12
No files found.
src/views/SchedulingPage/InstantHeatPage.vue
View file @
35857be2
...
...
@@ -13,7 +13,9 @@
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<td
style=
"text-align: left"
>
<el-input
style=
"width: 80%"
v-model=
"List.planName"
></el-input>
<el-form-item
prop=
"planName"
style=
"padding: 0;margin: 0;"
>
<el-input
style=
"width: 80%"
v-model=
"List.planName"
></el-input>
</el-form-item>
</td>
</tr>
</table>
...
...
@@ -54,7 +56,7 @@
<tr>
<td
style=
"text-align: left"
>
<el-form-item
prop=
"tempRegulation"
style=
"padding: 0;margin: 0;"
>
<el-input
v-float-number
style=
"width: 80%"
v-model=
"List.tempRegulation"
></el-input>
<el-input
style=
"width: 80%"
v-model=
"List.tempRegulation"
></el-input>
</el-form-item>
</td>
</tr>
...
...
@@ -67,7 +69,9 @@
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<td
style=
"text-align: left"
>
<el-input
style=
"width: 80%"
type=
"textarea"
rows=
"6"
v-model=
"List.description"
></el-input>
<el-form-item
prop=
"description"
style=
"padding: 0;margin: 0;"
>
<el-input
style=
"width: 80%"
type=
"textarea"
rows=
"6"
v-model=
"List.description"
></el-input>
</el-form-item>
</td>
</tr>
</table>
...
...
@@ -106,20 +110,20 @@ const List = ref(
)
//校验规则
const
rules
=
reactive
({
planName
:
[
{
pattern
:
/^.
{1,20}
$/
,
"message"
:
"计划名称必须是1-20位字符"
,
trigger
:
"blur"
}
],
diffPercentage
:
[
{
required
:
true
,
message
:
"偏差百分比是必填项"
,
trigger
:
"blur"
},
{
pattern
:
/^
(
-
?[
0-9
]
+
(\.[
0-9
]
+
)?){1,10}
$/
,
"message"
:
"偏差百分比输入不合法"
,
trigger
:
'blur'
},
{
min
:
1
,
max
:
10
,
message
:
'偏差百分比必须是 1-10位的数字'
,
trigger
:
'change'
}
{
pattern
:
/^
([
0-9
]\d{0,1}
|100$
)(\.\d{1,4})?
$/
,
"message"
:
"请输入正确的百分比格式"
,
trigger
:
"blur"
}
],
timeoutMin
:
[
{
required
:
true
,
message
:
"判断时间是必填项"
,
trigger
:
"blur"
},
{
pattern
:
/^
[
0-9
]\d{1,10}
$/
,
"message"
:
"判断时间必须是 1-10位的数字"
,
trigger
:
'change'
}
{
pattern
:
/^
(\d{1,5})(\.[
0-9
]{1,4})?
$/
,
"message"
:
"判断时间必须是1-10位实数"
,
trigger
:
"blur"
}
],
tempRegulation
:
[
{
required
:
true
,
message
:
"调节温度是必选项"
,
trigger
:
"blur"
},
{
pattern
:
/^
(
-
?[
0-9
]
+
(\.[
0-9
]
+
)?)
$/
,
"message"
:
"调节温度输入不合法"
,
trigger
:
'blur'
}
,
{
min
:
1
,
max
:
10
,
message
:
'调节温度必须是 1-10位的数字'
,
trigger
:
'change'
}
{
pattern
:
/^
(
-
?\d{1,5})(\.[
0-9
]{1,4})?
$/
,
message
:
"请输入正确的调节温度最大值"
,
trigger
:
"blur"
}
]
,
description
:
[
{
pattern
:
/^.
{1,50}
$/
,
"message"
:
"备注必须是1-50位字符"
,
trigger
:
"blur"
}
]
});
...
...
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