Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
6806b00d
Commit
6806b00d
authored
Jun 11, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务管理up
parent
95488142
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
85 additions
and
18 deletions
+85
-18
src/pages/workbench/fwgl/fwglList.vue
src/pages/workbench/fwgl/fwglList.vue
+85
-18
No files found.
src/pages/workbench/fwgl/fwglList.vue
View file @
6806b00d
...
...
@@ -265,7 +265,7 @@ export default {
label
:
"
删除
"
,
callback
:
this
.
deleteItem
,
disabledRule
(
item
)
{
return
item
.
approval_status
===
1
;
return
item
.
service_apply_info
.
approval_status
===
1
;
},
},
],
...
...
@@ -931,11 +931,25 @@ export default {
.
post
(
`/apaas/service/v3/service/manager/send/downnotice`
,
{
id
:
item
.
id
,
})
.
then
((
response
)
=>
{
console
.
log
(
"
已申请下架
"
+
item
.
name
);
.
then
(({
data
})
=>
{
if
(
data
.
success
)
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
success
"
,
});
}
else
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
warn
"
,
});
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
this
.
$message
({
message
:
"
申请${item.name}失败
"
,
type
:
"
warn
"
,
});
});
};
this
.
showDialog
();
...
...
@@ -951,10 +965,24 @@ export default {
id
:
item
.
id
,
})
.
then
((
response
)
=>
{
console
.
log
(
"
已申请上架
"
+
item
.
name
);
if
(
data
.
success
)
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
success
"
,
});
}
else
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
warn
"
,
});
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
this
.
$message
({
message
:
"
申请${item.name}失败
"
,
type
:
"
warn
"
,
});
});
};
this
.
showDialog
();
...
...
@@ -968,15 +996,28 @@ export default {
this
.
$http
.
delete
(
this
.
deleteUrl
,
{
params
:
{
id
:
item
.
id
,
id
:
this
.
type
==
1
?
item
.
service_apply_info
.
id
:
item
.
id
,
},
})
.
then
((
response
)
=>
{
this
.
initDatas
(
this
.
tempFliter
);
console
.
log
(
"
已删除
"
+
item
.
name
);
.
then
(({
data
})
=>
{
if
(
data
.
success
)
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
success
"
,
});
this
.
initDatas
(
this
.
tempFliter
);
}
else
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
warn
"
,
});
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
this
.
$message
({
message
:
`删除
${
item
.
name
}
失败.`
,
type
:
"
warn
"
,
});
});
};
this
.
showDialog
();
...
...
@@ -986,7 +1027,7 @@ export default {
},
approvalItem
(
item
)
{
this
.
$router
.
push
(
`/fwgl/
${
this
.
level
}
/
${
this
.
type
}
/approvalserviceedit/
${
item
.
id
}
`
`/fwgl/
${
this
.
level
}
/
${
this
.
type
}
/approvalserviceedit/
${
item
.
service_apply_info
.
id
}
`
);
},
allotItem
(
item
)
{
...
...
@@ -1003,12 +1044,25 @@ export default {
.
post
(
`/apaas/service/v3/service/manager/down`
,
{
id
:
item
.
id
,
})
.
then
((
response
)
=>
{
this
.
initDatas
(
this
.
tempFliter
);
console
.
log
(
"
已下架
"
+
item
.
name
);
.
then
(({
data
})
=>
{
if
(
data
.
success
)
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
success
"
,
});
this
.
initDatas
(
this
.
tempFliter
);
}
else
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
warn
"
,
});
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
this
.
$message
({
message
:
`下架
${
item
.
name
}
失败.`
,
type
:
"
warn
"
,
});
});
};
this
.
showDialog
();
...
...
@@ -1023,12 +1077,25 @@ export default {
.
post
(
`/apaas/service/v3/service/manager/up`
,
{
id
:
item
.
id
,
})
.
then
((
response
)
=>
{
this
.
initDatas
(
this
.
tempFliter
);
console
.
log
(
"
已下架
"
+
item
.
name
);
.
then
(({
data
})
=>
{
if
(
data
.
success
)
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
success
"
,
});
this
.
initDatas
(
this
.
tempFliter
);
}
else
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
warn
"
,
});
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
this
.
$message
({
message
:
`上架
${
item
.
name
}
失败.`
,
type
:
"
warn
"
,
});
});
};
this
.
showDialog
();
...
...
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