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
a86f0844
Commit
a86f0844
authored
Jul 11, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
云资源管理接口调试
parent
af5a9323
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
119 additions
and
15 deletions
+119
-15
src/pages/workbench/fwgl/approveWorkspace.vue
src/pages/workbench/fwgl/approveWorkspace.vue
+35
-2
src/pages/workbench/fwgl/fwglList.vue
src/pages/workbench/fwgl/fwglList.vue
+1
-0
src/pages/workbench/fwgl/organizationCloudResource.vue
src/pages/workbench/fwgl/organizationCloudResource.vue
+83
-13
No files found.
src/pages/workbench/fwgl/approveWorkspace.vue
View file @
a86f0844
...
@@ -94,15 +94,48 @@ export default {
...
@@ -94,15 +94,48 @@ export default {
});
});
},
},
approveAction
(
item
)
{
approveAction
(
item
)
{
let
action
=
(
type
)
=>
{
this
.
$http
.
put
(
"
/apaas/service/v3/resource/apply/approve
"
,
null
,
{
params
:
{
apply_id
:
item
.
apply_id
,
apply_type
:
item
.
apply_type
,
cloud_id
:
item
.
id
,
apply_state
:
type
,
},
})
.
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
this
.
$message
({
message
:
data
.
errMsg
||
`操作成功.`
,
type
:
"
success
"
,
});
this
.
init
(
this
.
tempFilter
);
}
else
{
this
.
$message
({
message
:
data
.
errMsg
||
"
操作失败
"
,
type
:
"
warning
"
,
});
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
this
.
$message
({
message
:
"
操作失败
"
,
type
:
"
warning
"
,
});
});
};
this
.
dialogInfo
.
msg
=
"
该工作区域的申请通过还是拒绝?
"
;
this
.
dialogInfo
.
msg
=
"
该工作区域的申请通过还是拒绝?
"
;
this
.
dialogInfo
.
cancelText
=
"
拒绝
"
;
this
.
dialogInfo
.
cancelText
=
"
拒绝
"
;
this
.
dialogInfo
.
cancelType
=
"
danger
"
;
this
.
dialogInfo
.
cancelType
=
"
danger
"
;
this
.
dialogInfo
.
cancel
=
()
=>
{
this
.
dialogInfo
.
cancel
=
()
=>
{
console
.
log
(
"
approveAction - false
"
);
action
(
-
1
);
};
};
this
.
dialogInfo
.
sunbmitText
=
"
通过
"
;
this
.
dialogInfo
.
sunbmitText
=
"
通过
"
;
this
.
dialogInfo
.
submit
=
()
=>
{
this
.
dialogInfo
.
submit
=
()
=>
{
console
.
log
(
"
approveAction - true
"
);
action
(
1
);
};
};
this
.
showDialog
();
this
.
showDialog
();
},
},
...
...
src/pages/workbench/fwgl/fwglList.vue
View file @
a86f0844
...
@@ -2037,6 +2037,7 @@ export default {
...
@@ -2037,6 +2037,7 @@ export default {
<
style
scoped
>
<
style
scoped
>
.service_management_list
{
.service_management_list
{
height
:
100%
;
height
:
100%
;
min-width
:
1500px
;
}
}
.cloud_title
{
.cloud_title
{
margin-top
:
15px
;
margin-top
:
15px
;
...
...
src/pages/workbench/fwgl/organizationCloudResource.vue
View file @
a86f0844
...
@@ -83,12 +83,15 @@ export default {
...
@@ -83,12 +83,15 @@ export default {
cancelHide
:
false
,
cancelHide
:
false
,
submit
:
null
,
submit
:
null
,
},
},
tempFilter
:
null
,
}),
}),
computed
:
{},
computed
:
{},
methods
:
{
methods
:
{
init
(
filter
)
{
init
(
filter
)
{
// console.log(filter);
// console.log(filter);
this
.
tempFilter
=
filter
;
this
.
$http
this
.
$http
.
get
(
"
/apaas/service/v3/resource/user/apply/list
"
,
{
.
get
(
"
/apaas/service/v3/resource/user/apply/list
"
,
{
params
:
{
params
:
{
...
@@ -323,19 +326,59 @@ export default {
...
@@ -323,19 +326,59 @@ export default {
});
});
},
},
stateAction
(
item
)
{
stateAction
(
item
)
{
this
.
dialogInfo
.
msg
=
"
您确认要禁用该工作区域吗?
"
;
let
action
=
(
type
,
cb
)
=>
{
this
.
dialogInfo
.
cancelHide
=
false
;
this
.
$http
this
.
dialogInfo
.
submit
=
()
=>
{
.
put
(
"
/apaas/service/v3/resource/apply/disable
"
,
null
,
{
console
.
log
(
"
deleteAction
"
);
params
:
{
id
:
item
.
id
,
setTimeout
(()
=>
{
type
,
this
.
dialogInfo
.
msg
=
`该工作区域已被禁用,普通用户与组织管理员依旧能查看该工作区域,但无法做任何操作。`
;
},
this
.
dialogInfo
.
cancelHide
=
true
;
})
this
.
dialogInfo
.
submit
=
null
;
.
then
(({
data
})
=>
{
this
.
showDialog
();
if
(
data
.
success
==
1
)
{
},
500
);
typeof
cb
==
"
function
"
&&
cb
();
this
.
init
(
this
.
tempFilter
);
}
else
{
this
.
$message
({
message
:
data
.
errMsg
||
"
操作失败
"
,
type
:
"
warning
"
,
});
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
this
.
$message
({
message
:
"
操作失败
"
,
type
:
"
warning
"
,
});
});
};
};
this
.
showDialog
();
if
(
item
.
state
==
1
)
{
this
.
dialogInfo
.
msg
=
"
您确认要禁用该工作区域吗?
"
;
this
.
dialogInfo
.
cancelHide
=
false
;
this
.
dialogInfo
.
submit
=
()
=>
{
action
(
0
,
()
=>
{
this
.
dialogInfo
.
msg
=
`该工作区域已被禁用,普通用户与组织管理员依旧能查看该工作区域,但无法做任何操作。`
;
this
.
dialogInfo
.
cancelHide
=
true
;
this
.
dialogInfo
.
submit
=
null
;
this
.
showDialog
();
});
};
this
.
showDialog
();
}
else
{
this
.
dialogInfo
.
msg
=
"
您确认要启用该工作区域吗?
"
;
this
.
dialogInfo
.
cancelHide
=
false
;
this
.
dialogInfo
.
submit
=
()
=>
{
action
(
1
,
()
=>
{
this
.
$message
({
message
:
"
该工作区域已被启用
"
,
type
:
"
success
"
,
});
});
};
this
.
showDialog
();
}
},
},
deleteAction
(
item
)
{
deleteAction
(
item
)
{
this
.
dialogInfo
.
msg
=
`
this
.
dialogInfo
.
msg
=
`
...
@@ -344,7 +387,34 @@ export default {
...
@@ -344,7 +387,34 @@ export default {
`
;
`
;
this
.
dialogInfo
.
cancelHide
=
false
;
this
.
dialogInfo
.
cancelHide
=
false
;
this
.
dialogInfo
.
submit
=
()
=>
{
this
.
dialogInfo
.
submit
=
()
=>
{
console
.
log
(
"
deleteAction
"
);
this
.
$http
.
delete
(
"
/apaas/service/v3/resource/apply/remove
"
,
{
params
:
{
id
:
item
.
id
,
name_space
:
item
.
name_space
,
use_uid
:
item
.
use_uid
,
},
})
.
then
(({
data
})
=>
{
if
(
data
.
success
)
{
this
.
$message
({
message
:
data
.
errMsg
||
`删除
${
item
.
name_space
}
成功.`
,
type
:
"
success
"
,
});
this
.
init
(
this
.
tempFliter
);
}
else
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
warning
"
,
});
}
})
.
catch
((
error
)
=>
{
this
.
$message
({
message
:
`删除
${
item
.
name
}
失败.`
,
type
:
"
warning
"
,
});
});
};
};
this
.
showDialog
();
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