Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
bfb1ee38
Commit
bfb1ee38
authored
Apr 21, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changeStatu
parent
3a421ecf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
19 deletions
+21
-19
index.vue
pages/aps/aps/index.vue
+21
-19
No files found.
pages/aps/aps/index.vue
View file @
bfb1ee38
...
...
@@ -60,9 +60,9 @@
footer-hide
width=
"1000"
class=
"tempModal"
@
on-cancel=
"te
st
Cancel"
@
on-cancel=
"te
mp
Cancel"
>
<Temp
:data=
"listTemp"
></Temp>
<Temp
:data=
"listTemp"
@
changeStatu=
"changeStatu"
ref=
"tempRef"
></Temp>
</Modal>
<Modal
v-model=
"addModal"
title=
"工序参数设置"
footer-hide
width=
"1000"
>
<Add
...
...
@@ -365,19 +365,7 @@ export default {
}
});
},
//选择排序模板
tempValueChange
(
val
)
{
let
params
=
{
id
:
val
};
Api
.
usesorttemplate
(
params
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"设置成功"
);
this
.
list
=
[];
this
.
loadList
();
}
});
},
addOk
()
{
this
.
list
=
[];
this
.
loadList
();
...
...
@@ -596,19 +584,19 @@ export default {
}
this
.
addModal
=
true
;
},
//自定义排序模板相关start------
//打开自定义排序模板窗口
openaddModalTemp
()
{
this
.
addModalTemp
=
true
;
},
testCancel
()
{
alert
(
this
.
tempStatu
);
tempCancel
()
{
if
(
this
.
tempStatu
!=
0
)
{
let
params
=
{
id
:
this
.
tempStatu
};
Api
.
removesorttemplate
(
params
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
tempRef
.
cancel
()
}
else
{
this
.
$Message
.
error
(
"删除失败"
);
}
...
...
@@ -617,7 +605,21 @@ export default {
},
changeStatu
(
val
)
{
this
.
tempStatu
=
val
;
}
},
//选择排序模板
tempValueChange
(
val
)
{
let
params
=
{
id
:
val
};
Api
.
usesorttemplate
(
params
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"设置成功"
);
this
.
list
=
[];
this
.
loadList
();
}
});
},
//自定义排序模板相关end------
}
};
</
script
>
...
...
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