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
226589c8
Commit
226589c8
authored
Jul 07, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xym' into dev
parents
d8c6cc83
a574f9ef
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
251 additions
and
124 deletions
+251
-124
src/components/allot-info-confirm.vue
src/components/allot-info-confirm.vue
+66
-40
src/components/apass-list.vue
src/components/apass-list.vue
+2
-2
src/components/organization-list/organization-card.vue
src/components/organization-list/organization-card.vue
+12
-4
src/components/organization-list/organization-list.vue
src/components/organization-list/organization-list.vue
+5
-0
src/pages/workbench/fwgl/fwglList.vue
src/pages/workbench/fwgl/fwglList.vue
+166
-78
No files found.
src/components/allot-info-confirm.vue
View file @
226589c8
...
@@ -11,29 +11,23 @@
...
@@ -11,29 +11,23 @@
<p
class=
"info_text text_grey"
>
申请组织:
</p>
<p
class=
"info_text text_grey"
>
申请组织:
</p>
<p
<p
class=
"info_text"
class=
"info_text"
v-text=
"(detail && detail['
a_申请组织']) || '
'"
v-text=
"(detail && detail['
department_name']) || '-
'"
></p>
></p>
</div>
</div>
<div
class=
"info_list"
style=
"width: 50%;"
>
<div
class=
"info_list"
style=
"width: 50%;"
>
<p
class=
"info_text text_grey"
>
申请用户:
</p>
<p
class=
"info_text text_grey"
>
申请用户:
</p>
<p
<p
class=
"info_text"
class=
"info_text"
v-text=
"(detail && detail['
a_申请用户']) || '
'"
v-text=
"(detail && detail['
user_name']) || '-
'"
></p>
></p>
</div>
</div>
<div
class=
"info_list"
style=
"width: 50%;"
>
<div
class=
"info_list"
style=
"width: 50%;"
>
<p
class=
"info_text text_grey"
>
联系电话:
</p>
<p
class=
"info_text text_grey"
>
联系电话:
</p>
<p
<p
class=
"info_text"
v-text=
"(detail && detail['phone']) || '-'"
></p>
class=
"info_text"
v-text=
"(detail && detail['a_联系电话']) || ''"
></p>
</div>
</div>
<div
class=
"info_list"
style=
"width: 100%;"
>
<div
class=
"info_list"
style=
"width: 100%;"
>
<p
class=
"info_text text_grey"
>
上传申请文件:
</p>
<p
class=
"info_text text_grey"
>
上传申请文件:
</p>
<p
<p
class=
"info_text"
v-text=
"(detail && detail['file']) || '-'"
></p>
class=
"info_text"
v-text=
"(detail && detail['a_上传申请文件']) || ''"
></p>
</div>
</div>
<div
class=
"info_list"
style=
"width: 100%;"
>
<div
class=
"info_list"
style=
"width: 100%;"
>
<!--
<p
class=
"detail_title info_text text_grey"
>
原规格:
</p>
-->
<!--
<p
class=
"detail_title info_text text_grey"
>
原规格:
</p>
-->
...
@@ -42,35 +36,37 @@
...
@@ -42,35 +36,37 @@
<p
class=
"info_text"
>
基本信息:
</p>
<p
class=
"info_text"
>
基本信息:
</p>
<p
class=
"info_text info_cell"
>
<p
class=
"info_text info_cell"
>
<span
class=
"text_grey"
>
工作区域名称:
</span>
<span
class=
"text_grey"
>
工作区域名称:
</span>
<span
<span
v-text=
"(detail && detail['namespace']) || '-'"
></span>
v-text=
"(detail && detail['a_工作区域名称']) || ''"
></span>
</p>
</p>
<p
class=
"info_text info_cell"
>
<p
class=
"info_text info_cell"
>
<span
class=
"text_grey"
>
中文名称:
</span>
<span
class=
"text_grey"
>
中文名称:
</span>
<span
v-text=
"(detail && detail['
a_中文名称']) || '
'"
></span>
<span
v-text=
"(detail && detail['
workplace']) || '-
'"
></span>
</p>
</p>
<p
class=
"info_text info_cell"
>
<p
class=
"info_text info_cell"
>
<span
class=
"text_grey"
>
描述信息:
</span>
<span
class=
"text_grey"
>
描述信息:
</span>
<span
v-text=
"(detail && detail['a_描述信息']) || ''"
></span>
<span
v-text=
"(detail && detail['workplacedesc']) || '-'"
></span>
</p>
</p>
</div>
</div>
<div
class=
"detail_list"
>
<div
class=
"detail_list"
>
<p
class=
"info_text"
>
工作区域申请规格:
</p>
<p
class=
"info_text"
>
工作区域申请规格:
</p>
<p
class=
"info_text info_cell"
>
<p
class=
"info_text info_cell"
>
<span
class=
"text_grey"
>
CPU:
</span>
<span
class=
"text_grey"
>
CPU:
</span>
<span
v-text=
"(detail && detail['
a_CPU']) || '
'"
></span>
<span
v-text=
"(detail && detail['
cpu']) || '-
'"
></span>
</p>
</p>
<p
class=
"info_text info_cell"
>
<p
class=
"info_text info_cell"
>
<span
class=
"text_grey"
>
内存:
</span>
<span
class=
"text_grey"
>
内存:
</span>
<span
v-text=
"(detail && detail['
a_内存']) || '
'"
></span>
<span
v-text=
"(detail && detail['
memory']) || '-
'"
></span>
</p>
</p>
</div>
</div>
<div
class=
"detail_list"
>
<div
class=
"detail_list"
>
<p
class=
"info_text"
>
申请时长:
</p>
<p
class=
"info_text"
>
申请时长:
</p>
<p
class=
"info_text info_cell"
>
<p
class=
"info_text info_cell"
>
<span
class=
"text_grey"
>
申请时长:
</span>
<span
class=
"text_grey"
>
申请时长:
</span>
<span
v-text=
"(detail && detail['a_申请时长']) || ''"
></span>
<span
v-text=
"(detail && detail['duration_time']) || '-'"
></span>
</p>
</p>
</div>
</div>
</div>
</div>
...
@@ -82,7 +78,12 @@
...
@@ -82,7 +78,12 @@
<el-button
type=
"defalut"
size=
"mini"
@
click=
"hideDialog"
>
<el-button
type=
"defalut"
size=
"mini"
@
click=
"hideDialog"
>
取消
取消
</el-button>
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"confrimAction"
>
<el-button
type=
"primary"
size=
"mini"
:loading=
"submitLoading"
@
click=
"confrimAction"
>
确认提交
确认提交
</el-button>
</el-button>
</
template
>
</
template
>
...
@@ -96,6 +97,7 @@ export default {
...
@@ -96,6 +97,7 @@ export default {
components
:
{
apassDialog
},
components
:
{
apassDialog
},
data
:
()
=>
({
data
:
()
=>
({
detail
:
null
,
detail
:
null
,
submitLoading
:
false
,
}),
}),
methods
:
{
methods
:
{
showDialog
()
{
showDialog
()
{
...
@@ -104,18 +106,22 @@ export default {
...
@@ -104,18 +106,22 @@ export default {
hideDialog
()
{
hideDialog
()
{
this
.
$refs
.
confrim
.
hide
();
this
.
$refs
.
confrim
.
hide
();
},
},
getDetail
(
applyid
)
{
getDetail
(
apply
_
id
)
{
this
.
$http
this
.
$http
.
get
(
"
/apaas/service/v3/resource/
user/apply/approveddetail
"
,
{
.
get
(
"
/apaas/service/v3/resource/
apply/distributionDisplay
"
,
{
params
:
{
params
:
{
type
:
0
,
apply_id
:
apply_id
,
applyid
:
applyid
,
},
},
})
})
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
if
(
data
.
success
)
{
if
(
data
.
success
)
{
console
.
log
(
data
.
data
);
let
datas
=
data
.
data
;
// this.detail = data.data;
this
.
detail
=
{
...
datas
,
cpu
:
`最高
${
datas
.
max_cpu
}
核,默认
${
datas
.
min_cpu
}
核`
,
memory
:
`最高
${
datas
.
max_memory
}
GB,默认
${
datas
.
min_memory
}
GB`
,
};
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
message
:
"
获取详情失败
"
,
message
:
"
获取详情失败
"
,
...
@@ -130,24 +136,44 @@ export default {
...
@@ -130,24 +136,44 @@ export default {
});
});
});
});
this
.
detail
=
{
a_
申请组织
:
"
贵州省交通运输厅
"
,
a_
申请用户
:
"
贵州省交通运输厅
"
,
a_
联系电话
:
"
13523232333
"
,
a_
上传申请文件
:
"
云资源申请修改意见V2.0审批审批函.pdf
"
,
a_
工作区域名称
:
"
aPaaS-V3.0
"
,
a_
中文名称
:
"
aPaaS平台V3.0
"
,
a_
描述信息
:
"
用于部署运行aPaaS平台V3.0用于部署运行aPaaS平台V3.0用于部署运行aPaaS平台V3.0
"
,
a_CPU
:
"
最高2核,默认1核
"
,
a_
内存
:
"
最高2GB,默认1GB
"
,
a_
申请时长
:
"
6个月
"
,
};
this
.
showDialog
();
this
.
showDialog
();
},
},
confrimAction
()
{
confrimAction
()
{
console
.
log
(
"
confrim
"
);
this
.
submitLoading
=
true
;
this
.
$http
.
put
(
"
/apaas/service/v3/resource/apply/distribution
"
,
null
,
{
params
:
{
id
:
this
.
detail
.
id
,
user_id
:
this
.
detail
.
user_id
,
},
})
.
then
(({
data
})
=>
{
this
.
submitLoading
=
false
;
if
(
data
.
success
)
{
this
.
$message
({
message
:
"
分配成功
"
,
type
:
"
success
"
,
});
this
.
$emit
(
"
allot-success
"
);
this
.
hideDialog
();
}
else
{
this
.
$message
({
message
:
"
分配失败
"
,
type
:
"
warning
"
,
});
}
})
.
catch
((
error
)
=>
{
this
.
submitLoading
=
false
;
this
.
$message
({
message
:
"
分配失败
"
,
type
:
"
warning
"
,
});
});
},
},
},
},
};
};
...
...
src/components/apass-list.vue
View file @
226589c8
...
@@ -143,10 +143,10 @@ export default {
...
@@ -143,10 +143,10 @@ export default {
showListFilter
:
false
,
showListFilter
:
false
,
filter
:
{},
filter
:
{},
searchValue
:
""
,
searchValue
:
""
,
pageSize
:
1
5
,
pageSize
:
1
0
,
currentPage
:
1
,
currentPage
:
1
,
timer
:
null
,
timer
:
null
,
pageSizes
:
[
1
5
,
50
,
10
0
],
pageSizes
:
[
1
0
,
20
,
5
0
],
selectFilter
:
[],
selectFilter
:
[],
}),
}),
methods
:
{
methods
:
{
...
...
src/components/organization-list/organization-card.vue
View file @
226589c8
<
template
>
<
template
>
<div
class=
"organization_card"
>
<div
class=
"organization_card"
>
<a
class=
"remove_btn"
@
click.prevent=
"deleteAction"
>
<a
class=
"remove_btn"
@
click.prevent=
"deleteAction"
v-if=
"!hideDelete"
>
<i
class=
"el-icon-close"
></i>
<i
class=
"el-icon-close"
></i>
</a>
</a>
<div
class=
"organization_card-icon"
>
<div
class=
"organization_card-icon"
>
<el-avatar
shape=
"square"
:size=
"56"
fit=
"cover"
:src=
"data.picture_path"
/>
<el-avatar
shape=
"square"
:size=
"56"
fit=
"cover"
:src=
"data.picture_path"
/>
</div>
</div>
<div
class=
"organization_card-info"
>
<div
class=
"organization_card-info"
>
<p
<p
...
@@ -52,9 +57,12 @@ export default {
...
@@ -52,9 +57,12 @@ export default {
type
:
String
,
type
:
String
,
default
:
0
,
default
:
0
,
},
},
hideDelete
:
{
type
:
Boolean
,
default
:
false
,
},
},
},
created
(){
created
()
{},
},
methods
:
{
methods
:
{
deleteAction
()
{
deleteAction
()
{
this
.
$emit
(
"
delete-action
"
,
this
.
data
);
this
.
$emit
(
"
delete-action
"
,
this
.
data
);
...
...
src/components/organization-list/organization-list.vue
View file @
226589c8
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
:key=
"'organization_card_' + index"
:key=
"'organization_card_' + index"
:data=
"item"
:data=
"item"
@
delete-action=
"deleteAction"
@
delete-action=
"deleteAction"
:hide-delete=
"hideDelete"
:details-url=
"detailsUrl"
:details-url=
"detailsUrl"
:style=
"
{ width: 'calc(100% / ' + rowNum + ' - 36px)' }"
:style=
"
{ width: 'calc(100% / ' + rowNum + ' - 36px)' }"
>
</organization-card>
>
</organization-card>
...
@@ -27,6 +28,10 @@ export default {
...
@@ -27,6 +28,10 @@ export default {
type
:
String
,
type
:
String
,
default
:
0
,
default
:
0
,
},
},
hideDelete
:
{
type
:
Boolean
,
default
:
false
,
},
},
},
data
:
()
=>
({
data
:
()
=>
({
rowNum
:
5
,
rowNum
:
5
,
...
...
src/pages/workbench/fwgl/fwglList.vue
View file @
226589c8
This diff is collapsed.
Click to expand it.
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