Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
work-order-web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
张圳龙
work-order-web
Commits
fa64e1ee
Commit
fa64e1ee
authored
Jul 14, 2020
by
Mr. Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug.
parent
f92049a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
18 deletions
+29
-18
classify.vue
src/views/process/admin/classify.vue
+29
-18
No files found.
src/views/process/admin/classify.vue
View file @
fa64e1ee
...
@@ -182,12 +182,14 @@ export default {
...
@@ -182,12 +182,14 @@ export default {
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
createClassify
(
this
.
ruleForm
).
then
(
response
=>
{
createClassify
(
this
.
ruleForm
).
then
(
response
=>
{
if
(
response
!==
undefined
)
{
this
.
getList
()
this
.
getList
()
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'分类已增加!'
message
:
'分类已增加!'
})
})
this
.
open
=
false
this
.
open
=
false
}
})
})
}
}
})
})
...
@@ -196,12 +198,14 @@ export default {
...
@@ -196,12 +198,14 @@ export default {
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
updateClassify
(
this
.
ruleForm
).
then
(
response
=>
{
updateClassify
(
this
.
ruleForm
).
then
(
response
=>
{
if
(
response
!==
undefined
)
{
this
.
getList
()
this
.
getList
()
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'分类已更新!'
message
:
'分类已更新!'
})
})
this
.
open
=
false
this
.
open
=
false
}
})
})
}
}
})
})
...
@@ -219,12 +223,19 @@ export default {
...
@@ -219,12 +223,19 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
deleteClassify
({
deleteClassify
({
classifyId
:
row
.
id
classifyId
:
row
.
id
}).
then
(()
=>
{
}).
then
(
response
=>
{
if
(
response
!==
undefined
)
{
this
.
getList
()
this
.
getList
()
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'分类已删除!'
message
:
'分类已删除!'
})
})
}
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消删除'
})
})
})
})
},
},
...
...
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