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
aee76340
Commit
aee76340
authored
Jul 16, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页接口对接
parent
6f382e65
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
76 additions
and
34 deletions
+76
-34
src/components/allot-info-confirm.vue
src/components/allot-info-confirm.vue
+1
-0
src/components/shop-car-apply/apply_form.vue
src/components/shop-car-apply/apply_form.vue
+1
-1
src/components/table/table-um.vue
src/components/table/table-um.vue
+2
-2
src/pages/workbench/fwgl/serviceDetail.vue
src/pages/workbench/fwgl/serviceDetail.vue
+1
-1
src/pages/workbench/workPlace.vue
src/pages/workbench/workPlace.vue
+35
-22
src/pages/workbench/yygl/app_detail.vue
src/pages/workbench/yygl/app_detail.vue
+1
-1
src/pages/workbench/yygl/deploy_app_detail.vue
src/pages/workbench/yygl/deploy_app_detail.vue
+21
-6
src/pages/workbench/yygl/deployment.vue
src/pages/workbench/yygl/deployment.vue
+14
-1
No files found.
src/components/allot-info-confirm.vue
View file @
aee76340
...
@@ -146,6 +146,7 @@ export default {
...
@@ -146,6 +146,7 @@ export default {
params
:
{
params
:
{
id
:
this
.
detail
.
id
,
id
:
this
.
detail
.
id
,
user_id
:
this
.
detail
.
user_id
,
user_id
:
this
.
detail
.
user_id
,
namespace
:
this
.
detail
.
namespace
},
},
})
})
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
...
...
src/components/shop-car-apply/apply_form.vue
View file @
aee76340
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</el-form-item>
</el-form-item>
<el-form-item
prop=
"preson"
>
<el-form-item
prop=
"preson"
>
<p
class=
"formname"
>
部门联系人:
</p>
<p
class=
"formname"
>
部门联系人:
</p>
<el-input
v-model=
"formInline.preson"
placeholder=
"
审批
人"
></el-input>
<el-input
v-model=
"formInline.preson"
placeholder=
"
申请
人"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"phone"
>
<el-form-item
prop=
"phone"
>
<p
class=
"formname"
>
联系电话:
</p>
<p
class=
"formname"
>
联系电话:
</p>
...
...
src/components/table/table-um.vue
View file @
aee76340
...
@@ -89,12 +89,12 @@
...
@@ -89,12 +89,12 @@
<b
v-for=
"(btn, key) in item.btnList"
:key=
"key"
:style=
"
{marginRight:item.btngap}">
<b
v-for=
"(btn, key) in item.btnList"
:key=
"key"
:style=
"
{marginRight:item.btngap}">
<em
v-if=
"btn.label == '分配'"
>
<em
v-if=
"btn.label == '分配'"
>
<em
<em
v-if=
"btn.label == '分配' && !scope.row.
use_uid
"
v-if=
"btn.label == '分配' && !scope.row.
State
"
class=
"cur_pointer"
class=
"cur_pointer"
style=
"color: #0f2683"
style=
"color: #0f2683"
@
click=
"handleClick(btn.type, scope.row)"
@
click=
"handleClick(btn.type, scope.row)"
>
分配
</em>
>
分配
</em>
<em
v-if=
"btn.label == '分配' && scope.row.
use_uid
"
>
已分配
</em>
<em
v-if=
"btn.label == '分配' && scope.row.
State
"
>
已分配
</em>
</em>
</em>
<em
v-else-if=
"btn.label == '当前版本'"
>
<em
v-else-if=
"btn.label == '当前版本'"
>
...
...
src/pages/workbench/fwgl/serviceDetail.vue
View file @
aee76340
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
:list_arr=
"now_service == 0 ? list_arr : servicead_arr"
:list_arr=
"now_service == 0 ? list_arr : servicead_arr"
v-if=
"now_service == 0 || now_service == 1"
v-if=
"now_service == 0 || now_service == 1"
>
>
<table-um
:headers=
"header_arr"
:datas=
"res_data"
slot=
"zd_table"
></table-um>
<table-um
:headers=
"header_arr"
:datas=
"res_data"
:stripe=
"true"
slot=
"zd_table"
></table-um>
<v-apaas-code
:datas=
"code_arr"
slot=
"zd_code"
></v-apaas-code>
<v-apaas-code
:datas=
"code_arr"
slot=
"zd_code"
></v-apaas-code>
</info-list>
</info-list>
<div
v-show=
"now_service == 2"
>
<div
v-show=
"now_service == 2"
>
...
...
src/pages/workbench/workPlace.vue
View file @
aee76340
...
@@ -560,17 +560,17 @@ export default {
...
@@ -560,17 +560,17 @@ export default {
[
[
"
/apaas/service/v3/service/manager/list
"
,
"
/apaas/service/v3/service/manager/list
"
,
"
/apaas/service/v3/service/apply/service/list
"
,
"
/apaas/service/v3/service/apply/service/list
"
,
"
/apaas/service/v3/
resource/user/apply
/list
"
"
/apaas/service/v3/
workplace/normal
/list
"
],
],
[
[
"
/apaas/service/v3/service/manager/list
"
,
"
/apaas/service/v3/service/manager/list
"
,
"
/apaas/service/v3/service/approval/applied/list
"
,
"
/apaas/service/v3/service/approval/applied/list
"
,
"
/apaas/service/v3/
resource/user/apply
/list
"
"
/apaas/service/v3/
workplace/org
/list
"
],
],
[
[
"
/apaas/service/v3/service/manager/list
"
,
"
/apaas/service/v3/service/manager/list
"
,
"
/apaas/service/v3/service/approval/applied/list
"
,
"
/apaas/service/v3/service/approval/applied/list
"
,
"
/apaas/service/v3/
resource/user/apply
/list
"
"
/apaas/service/v3/
workplace/super
/list
"
]
]
],
],
service_head
:
[
service_head
:
[
...
@@ -633,37 +633,37 @@ export default {
...
@@ -633,37 +633,37 @@ export default {
],
],
[
[
{
{
prop
:
"
name_sp
ace
"
,
prop
:
"
Workpl
ace
"
,
label
:
"
工作区域
"
,
label
:
"
工作区域
"
,
width
:
"
150px
"
,
width
:
"
150px
"
,
align
:
"
left
"
align
:
"
left
"
},
},
{
{
prop
:
"
wlhj
"
,
prop
:
"
network
"
,
label
:
"
网络环境
"
,
label
:
"
网络环境
"
,
width
:
"
120px
"
,
width
:
"
120px
"
,
align
:
"
center
"
align
:
"
center
"
},
},
{
{
prop
:
"
c
pu
"
,
prop
:
"
C
pu
"
,
label
:
"
CPU(核)
"
,
label
:
"
CPU(核)
"
,
width
:
"
90px
"
,
width
:
"
90px
"
,
align
:
"
center
"
align
:
"
center
"
},
},
{
{
prop
:
"
m
emory
"
,
prop
:
"
M
emory
"
,
label
:
"
内存(GB)
"
,
label
:
"
内存(GB)
"
,
width
:
"
90px
"
,
width
:
"
90px
"
,
align
:
"
center
"
align
:
"
center
"
},
},
{
{
prop
:
"
zyzlgb
"
,
prop
:
"
pan
"
,
label
:
"
资源总量(
GB)
"
,
label
:
"
数据盘(块/
GB)
"
,
width
:
"
120px
"
,
width
:
"
120px
"
,
align
:
"
center
"
align
:
"
center
"
},
},
{
{
prop
:
"
approve_state_
name
"
,
prop
:
"
state
name
"
,
label
:
"
申请状态
"
,
label
:
"
申请状态
"
,
width
:
"
110px
"
,
width
:
"
110px
"
,
align
:
"
center
"
align
:
"
center
"
...
@@ -729,33 +729,33 @@ export default {
...
@@ -729,33 +729,33 @@ export default {
],
],
[
[
{
{
prop
:
"
name_sp
ace
"
,
prop
:
"
Workpl
ace
"
,
label
:
"
工作区域
"
,
label
:
"
工作区域
"
,
width
:
"
100px
"
,
width
:
"
100px
"
,
align
:
"
left
"
align
:
"
left
"
},
},
{
{
prop
:
"
wlhj
"
,
prop
:
"
network
"
,
label
:
"
网络环境
"
,
label
:
"
网络环境
"
,
width
:
"
90px
"
,
width
:
"
90px
"
,
align
:
"
center
"
align
:
"
center
"
},
},
{
{
prop
:
"
c
pu
"
,
prop
:
"
C
pu
"
,
label
:
"
CPU(核)
"
,
label
:
"
CPU(核)
"
,
width
:
"
80px
"
,
width
:
"
80px
"
,
align
:
"
center
"
align
:
"
center
"
},
},
{
{
prop
:
"
m
emory
"
,
prop
:
"
M
emory
"
,
label
:
"
内存(GB)
"
,
label
:
"
内存(GB)
"
,
width
:
"
80px
"
,
width
:
"
80px
"
,
align
:
"
center
"
align
:
"
center
"
},
},
{
{
prop
:
"
zyzlgb
"
,
prop
:
"
pan
"
,
label
:
"
资源总量(
GB)
"
,
label
:
"
数据盘(块/
GB)
"
,
width
:
"
1
1
0px
"
,
width
:
"
1
2
0px
"
,
align
:
"
center
"
align
:
"
center
"
},
},
{
{
...
@@ -835,7 +835,7 @@ export default {
...
@@ -835,7 +835,7 @@ export default {
],
],
[
[
{
{
prop
:
"
department_name
"
,
prop
:
"
department_name
"
,
label
:
"
所属组织
"
,
label
:
"
所属组织
"
,
width
:
"
170px
"
,
width
:
"
170px
"
,
align
:
"
left
"
align
:
"
left
"
...
@@ -853,7 +853,7 @@ export default {
...
@@ -853,7 +853,7 @@ export default {
align
:
"
center
"
align
:
"
center
"
},
},
{
{
prop
:
"
gzqysl
"
,
prop
:
"
container
"
,
label
:
"
工作区域数量(个)
"
,
label
:
"
工作区域数量(个)
"
,
width
:
"
130px
"
,
width
:
"
130px
"
,
align
:
"
center
"
align
:
"
center
"
...
@@ -1162,8 +1162,21 @@ export default {
...
@@ -1162,8 +1162,21 @@ export default {
}
}
let
data
=
response
.
data
.
data
;
let
data
=
response
.
data
.
data
;
if
(
this
.
now_type
==
2
){
if
(
this
.
now_type
==
2
){
this
.
service_data
=
data
.
cloud_apply_list
this
.
listTotal
=
data
.
total
;
this
.
listTotal
=
response
.
data
.
total
;
data
.
data
.
forEach
(
e
=>
{
if
(
e
.
DiskList
&&
e
.
DiskList
.
length
){
e
[
'
pan
'
]
=
e
.
DiskList
.
join
(
'
;
'
)
}
if
(
e
.
State
||
e
.
State
==
0
){
e
[
'
statename
'
]
=
e
.
State
==
1
?
'
审核通过
'
:
e
.
State
==
0
?
'
待审核
'
:
'
拒绝
'
}
if
(
e
.
NetworkEnv
||
e
.
NetworkEnv
==
0
){
e
[
'
network
'
]
=
e
.
NetworkEnv
==
0
?
'
外网
'
:
'
政府内网
'
}
});
this
.
service_data
=
data
.
data
}
else
{
}
else
{
this
.
service_data
=
data
.
data
;
this
.
service_data
=
data
.
data
;
this
.
service_data
.
forEach
(
e
=>
{
this
.
service_data
.
forEach
(
e
=>
{
...
@@ -1410,7 +1423,7 @@ export default {
...
@@ -1410,7 +1423,7 @@ export default {
//分配接口调用
//分配接口调用
distribut
(
val
)
{
distribut
(
val
)
{
console
.
log
(
val
);
console
.
log
(
val
);
this
.
$refs
.
allotConfirm
.
getDetail
(
val
.
apply_i
d
);
this
.
$refs
.
allotConfirm
.
getDetail
(
val
.
ApplyI
d
);
},
},
manage_func
(
n
)
{
manage_func
(
n
)
{
console
.
log
(
n
);
console
.
log
(
n
);
...
...
src/pages/workbench/yygl/app_detail.vue
View file @
aee76340
...
@@ -530,7 +530,7 @@ export default {
...
@@ -530,7 +530,7 @@ export default {
},
},
delete_data
(
name
)
{
delete_data
(
name
)
{
this
.
$http
this
.
$http
.
delete
(
`/apaas/hubApi/image/del/
${
name
}
`
)
.
delete
(
`/apaas/hubApi/image/del/
${
name
}
?app_id=
${
this
.
$route
.
params
.
id
}
`
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
.
success
(
"
删除成功
"
);
this
.
$message
.
success
(
"
删除成功
"
);
...
...
src/pages/workbench/yygl/deploy_app_detail.vue
View file @
aee76340
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
></table-um>
></table-um>
</info-list>
</info-list>
<div
<
!--
<
div
@
click=
"public_form = true"
@
click=
"public_form = true"
v-if=
"public && now_service == 0"
v-if=
"public && now_service == 0"
class=
"addimage"
class=
"addimage"
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
<div
class=
"btnsty"
@
click=
"saveInfo('ruleForm')"
>
保存
</div>
<div
class=
"btnsty"
@
click=
"saveInfo('ruleForm')"
>
保存
</div>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
-->
</div>
</div>
<!--
<div
v-if=
"now_service == 1&&image_arr.length"
>
-->
<!--
<div
v-if=
"now_service == 1&&image_arr.length"
>
-->
...
@@ -245,9 +245,9 @@
...
@@ -245,9 +245,9 @@
<p
class=
"formname"
>
开放程度:
</p>
<p
class=
"formname"
>
开放程度:
</p>
<el-form-item
prop=
"open"
>
<el-form-item
prop=
"open"
>
<el-radio-group
v-model=
"publicForm.open"
>
<el-radio-group
v-model=
"publicForm.open"
>
<el-radio
label=
"共享"
>
</el-radio>
<el-radio
:label=
"1"
>
共享
</el-radio>
<el-radio
label=
"受限"
>
</el-radio>
<el-radio
:label=
"2"
>
受限
</el-radio>
<el-radio
label=
"敏感"
>
</el-radio>
<el-radio
:label=
"3"
>
敏感
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -590,11 +590,26 @@ export default {
...
@@ -590,11 +590,26 @@ export default {
dialogCancel
(){
dialogCancel
(){
this
.
$refs
.
actiondialog
.
hide
();
this
.
$refs
.
actiondialog
.
hide
();
},
},
service_public
(){
this
.
$http
.
post
(
`/apaas/service/v3/service/manager/apptoserv`
,{
sectors
:
this
.
publicForm
.
area
,
deply_id
:
parseInt
(
this
.
$route
.
params
.
deploy_id
),
openness
:
this
.
publicForm
.
open
})
.
then
(
response
=>
{
if
(
response
.
data
.
success
){
this
.
$message
.
success
(
response
.
data
.
errMsg
)
}
else
{
this
.
$message
.
error
(
response
.
data
.
errMsg
)
}
})
},
save_file
(){
save_file
(){
this
.
$refs
[
'
publicForm
'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'
publicForm
'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
$refs
.
actiondialog
.
hide
();
this
.
$refs
.
actiondialog
.
hide
();
this
.
$router
.
push
(
'
/fwzc/fwcs
'
)
this
.
service_public
(
)
}
else
{
}
else
{
console
.
log
(
'
error submit!!
'
);
console
.
log
(
'
error submit!!
'
);
return
false
;
return
false
;
...
...
src/pages/workbench/yygl/deployment.vue
View file @
aee76340
...
@@ -169,6 +169,9 @@
...
@@ -169,6 +169,9 @@
</el-radio-group>
</el-radio-group>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"item.text"
v-if=
"item.type == 'view'"
>
<p
style=
"color:#515fe7;padding-left:10px;"
>
{{item.value}}
</p>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
<div
class=
"senior_box"
@
click=
"senior_flag = true"
v-if=
"!senior_flag"
>
<div
class=
"senior_box"
@
click=
"senior_flag = true"
v-if=
"!senior_flag"
>
...
@@ -272,6 +275,8 @@ export default {
...
@@ -272,6 +275,8 @@ export default {
data
:
()
=>
({
data
:
()
=>
({
step
:
0
,
step
:
0
,
senior_flag
:
false
,
senior_flag
:
false
,
host
:
''
,
path
:
''
,
begin_code
:
""
,
begin_code
:
""
,
baseInfoForm
:
{
baseInfoForm
:
{
namespace
:
""
,
namespace
:
""
,
...
@@ -485,7 +490,9 @@ export default {
...
@@ -485,7 +490,9 @@ export default {
uu
:
this
.
evtUuid
,
uu
:
this
.
evtUuid
,
values
:
this
.
app_set_info
,
values
:
this
.
app_set_info
,
source
:
this
.
$route
.
query
.
source
==
"
apply
"
?
"
apply
"
:
""
,
source
:
this
.
$route
.
query
.
source
==
"
apply
"
?
"
apply
"
:
""
,
pvc_id
:
this
.
parseInt_arr
(
this
.
select_volumn
)
pvc_id
:
this
.
parseInt_arr
(
this
.
select_volumn
),
host
:
this
.
host
,
path
:
this
.
path
,
};
};
}
else
{
}
else
{
//编辑提交
//编辑提交
...
@@ -567,6 +574,12 @@ export default {
...
@@ -567,6 +574,12 @@ export default {
}
else
if
(
e
.
type
==
"
volume
"
)
{
}
else
if
(
e
.
type
==
"
volume
"
)
{
this
.
deal_key_value
(
e
.
name
,
e
.
type
,
[
e
.
value
,
e
.
check_type
]);
this
.
deal_key_value
(
e
.
name
,
e
.
type
,
[
e
.
value
,
e
.
check_type
]);
}
else
{
}
else
{
if
(
e
.
type
==
"
text
"
&&
e
.
name
==
'
host
'
){
this
.
host
=
e
.
value
}
if
(
e
.
type
==
"
view
"
&&
e
.
name
==
'
path
'
){
this
.
path
=
e
.
value
}
this
.
deal_key_value
(
e
.
name
,
e
.
type
,
e
.
value
);
this
.
deal_key_value
(
e
.
name
,
e
.
type
,
e
.
value
);
}
}
});
});
...
...
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