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
863132ab
Commit
863132ab
authored
Jul 17, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用构建组织不可选
parent
4766fe8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
11 deletions
+21
-11
src/pages/workbench/app_build.vue
src/pages/workbench/app_build.vue
+21
-11
No files found.
src/pages/workbench/app_build.vue
View file @
863132ab
...
...
@@ -72,7 +72,11 @@
></upload-file>
</el-form-item>
<el-form-item
label=
"所属组织:"
prop=
"org"
>
<el-select
v-model=
"app_info.org"
placeholder=
"请选择所属组织"
>
<el-select
v-model=
"app_info.org"
placeholder=
"请选择所属组织"
:disabled=
"true"
>
<el-option
v-for=
"item in orgs"
:key=
"item.value"
...
...
@@ -428,13 +432,27 @@ export default {
});
},
getOrgs
()
{
this
.
$http
/*
this.$http
.get("/apaas/hubApi/market/departments")
.then((response) => {
this.orgs = response.data.data;
})
.catch((error) => {
console.log(error);
}); */
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
this
.
orgs
=
[
{
id
:
data
.
data
.
department_id
,
name
:
data
.
data
.
department_name
,
},
];
this
.
app_info
.
org
=
data
.
data
.
department_id
;
}
else
{
console
.
log
(
data
.
errMsg
);
}
});
},
getNewList
(
file
)
{
...
...
@@ -649,14 +667,6 @@ export default {
this
.
getTypes
();
this
.
getOrgs
();
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
this
.
app_info
.
org
=
data
.
data
.
department_id
;
}
else
{
console
.
log
(
data
.
errMsg
);
}
});
this
.
image_headers
=
[
{
label
:
"
镜像名称
"
,
...
...
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