Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
mes
mes-ui
Commits
eed622d2
Commit
eed622d2
authored
Sep 20, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刀模据界面优化
parent
a306ba53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
index.vue
src/views/mes/tm/tool/index.vue
+16
-2
No files found.
src/views/mes/tm/tool/index.vue
View file @
eed622d2
...
...
@@ -310,12 +310,12 @@
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
v
-
else
label
=
"最低寿命"
prop
=
"nextMaintenPeriod"
>
<
el
-
input
v
-
model
=
"form.nextMaintenPeriod"
placeholder
=
"请输入最低寿命"
/>
<
el
-
input
-
number
style
=
"width:100%;"
:
min
=
"0"
v
-
model
=
"form.nextMaintenPeriod"
/>
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"剩余寿命"
prop
=
"lifeTime"
>
<
el
-
input
v
-
model
=
"form.lifeTime"
placeholder
=
"请输入剩余寿命"
/>
<
el
-
input
-
number
style
=
"width:100%;"
:
min
=
"0"
v
-
model
=
"form.lifeTime"
/>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
...
...
@@ -553,6 +553,20 @@ export default {
}
,
/** 提交按钮 */
submitForm
()
{
if
(
this
.
form
.
maintenType
===
'USAGE'
){
if
(
this
.
form
.
nextMaintenPeriod
==
0
){
this
.
open
=
true
;
this
.
$modal
.
confirm
(
'请输入最低寿命数值'
);
return
;
}
}
if
(
this
.
form
.
lifeTime
==
0
){
this
.
open
=
true
;
this
.
$modal
.
confirm
(
'请输入剩余寿命数值'
);
return
;
}
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
toolId
!=
null
)
{
...
...
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