Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
Z
zhxf_vue
Project
Project
Details
Activity
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
葛齐林
zhxf_vue
Commits
a7415cb5
Commit
a7415cb5
authored
May 21, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面调整
parent
079df3f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
add-or-update.vue
src/pages/sys/threshold/add-or-update.vue
+7
-2
No files found.
src/pages/sys/threshold/add-or-update.vue
View file @
a7415cb5
...
@@ -12,10 +12,10 @@
...
@@ -12,10 +12,10 @@
el-input.mywidth(v-model='dataForm.code' placeholder='请填写编码' clearable)
el-input.mywidth(v-model='dataForm.code' placeholder='请填写编码' clearable)
el-col(:span='14' :offset='4')
el-col(:span='14' :offset='4')
el-form-item(label='最小值:' prop='minValue')
el-form-item(label='最小值:' prop='minValue')
el-input.mywidth(v-model='dataForm.minValue' placeholder='请填写最小值' clearable)
el-input
-number
.mywidth(v-model='dataForm.minValue' placeholder='请填写最小值' clearable)
el-col(:span='14' :offset='4')
el-col(:span='14' :offset='4')
el-form-item(label='最大值:' prop='maxValue')
el-form-item(label='最大值:' prop='maxValue')
el-input.mywidth(v-model='dataForm.maxValue' placeholder='请填写最大值' clearable)
el-input
-number
.mywidth(v-model='dataForm.maxValue' placeholder='请填写最大值' clearable)
el-col(:span='14' :offset='4')
el-col(:span='14' :offset='4')
el-form-item(label='单位:' prop='unit')
el-form-item(label='单位:' prop='unit')
el-select.mywidth(style='width:100%;' v-model='dataForm.unit' placeholder="请选择单位" clearable)
el-select.mywidth(style='width:100%;' v-model='dataForm.unit' placeholder="请选择单位" clearable)
...
@@ -126,6 +126,11 @@ export default {
...
@@ -126,6 +126,11 @@ export default {
},
},
// 表单提交
// 表单提交
dataFormSubmit
()
{
dataFormSubmit
()
{
if
(
Number
(
this
.
dataForm
.
minValue
)
>
Number
(
this
.
dataForm
.
maxValue
))
{
this
.
$message
.
warning
(
'最小值不能大于最大值'
)
return
false
}
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
$http
({
this
.
$http
({
...
...
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