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
6f8b1f5d
Commit
6f8b1f5d
authored
Jul 04, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务管理-普通用户-云资源服务列表
parent
f671ecfe
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
475 additions
and
104 deletions
+475
-104
src/assets/imgs/ic_guoqi.png
src/assets/imgs/ic_guoqi.png
+0
-0
src/assets/imgs/ic_true.png
src/assets/imgs/ic_true.png
+0
-0
src/components/apass-list.vue
src/components/apass-list.vue
+64
-2
src/components/apass-table.vue
src/components/apass-table.vue
+47
-1
src/pages/workbench/fwgl/fwglList.vue
src/pages/workbench/fwgl/fwglList.vue
+361
-98
src/store/index.js
src/store/index.js
+3
-3
No files found.
src/assets/imgs/ic_guoqi.png
0 → 100644
View file @
6f8b1f5d
1.37 KB
src/assets/imgs/ic_true.png
View replaced file @
f671ecfe
View file @
6f8b1f5d
1.51 KB
|
W:
|
H:
1.51 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/components/apass-list.vue
View file @
6f8b1f5d
...
...
@@ -4,6 +4,8 @@
<slot
name=
"breadcrumb"
></slot>
</div>
<div
class=
"main-container"
>
<slot
name=
"top"
></slot>
<div
class=
"header-container"
v-if=
"!hideHeader"
>
<div
class=
"header-left apass_button"
>
<el-button
...
...
@@ -18,6 +20,28 @@
"
></i>
</el-button>
<div
v-for=
"(item, index) in selectFilter"
:key=
"'select_' + index"
class=
"select_container"
>
<span
class=
"select_title"
v-text=
"item.name"
></span>
<el-select
v-model=
"item.value"
placeholder=
"请选择"
@
change=
"listAction"
>
<el-option
v-for=
"(v, i) in item.options"
:key=
"'select_' + index + '_option_' + i"
:label=
"v.name"
:value=
"v.value"
>
</el-option>
</el-select>
</div>
<slot
name=
"header-left"
></slot>
</div>
<div
class=
"header-center"
>
...
...
@@ -51,7 +75,7 @@
<list-table
:header=
"listHeader"
:data=
"listData"
:padding-left=
"
35
"
:padding-left=
"
listPaddingLeft
"
></list-table>
</div>
...
...
@@ -84,6 +108,10 @@ export default {
type
:
Array
,
default
:
()
=>
[],
},
otherFilter
:
{
type
:
Array
,
default
:
()
=>
[],
},
listHeader
:
{
type
:
Array
,
default
:
()
=>
[],
...
...
@@ -116,8 +144,21 @@ export default {
currentPage
:
1
,
timer
:
null
,
pageSizes
:
[
15
,
50
,
100
],
selectFilter
:
[],
}),
methods
:
{
initOtherFilter
()
{
this
.
otherFilter
.
forEach
((
item
)
=>
{
this
.
$set
(
this
.
filter
,
item
.
prop
,
item
.
default
);
this
.
selectFilter
.
push
({
name
:
item
.
name
,
prop
:
item
.
prop
,
value
:
item
.
default
,
options
:
item
.
options
,
});
});
},
searchAction
(
value
)
{
this
.
listAction
();
},
...
...
@@ -140,8 +181,15 @@ export default {
}
this
.
timer
=
setTimeout
(()
=>
{
let
selectFilter
=
{};
this
.
selectFilter
.
forEach
((
item
)
=>
{
selectFilter
[
item
.
prop
]
=
item
.
value
;
});
this
.
$emit
(
"
list-action
"
,
{
...
this
.
filter
,
...
selectFilter
,
keyword
:
this
.
searchValue
,
size
:
this
.
pageSize
,
page
:
this
.
currentPage
,
...
...
@@ -150,6 +198,10 @@ export default {
},
},
mounted
()
{
if
(
this
.
otherFilter
&&
this
.
otherFilter
.
length
>
0
)
{
this
.
initOtherFilter
();
}
this
.
listAction
();
},
};
...
...
@@ -182,7 +234,17 @@ export default {
justify-content
:
space-between
;
align-items
:
center
;
}
.header-container
.el-button
+
.el-button
{
.header-container
.select_container
{
display
:
inline-block
;
vertical-align
:
middle
;
}
.header-container
.select_container
.select_title
{
font-size
:
14px
;
color
:
#242c43
;
margin-right
:
10px
;
}
.header-container
.el-button
+
.el-button
,
.header-container
.select_container
+
.select_container
{
margin-left
:
25px
;
}
.apass_filter
{
...
...
src/components/apass-table.vue
View file @
6f8b1f5d
<
template
>
<div
class=
"apass_table"
>
<el-table
:data=
"data"
>
<el-table-column
:width=
"Math.max(paddingLeft - 10, 0)"
></el-table-column>
<el-table-column
v-if=
"paddingLeft > 10"
:width=
"paddingLeft - 10"
></el-table-column>
<el-table-column
v-for=
"(item, index) in header"
:label=
"item.label"
...
...
@@ -43,6 +46,33 @@
@
click=
"item.callback && item.callback(scope.row)"
></a>
</div>
<div
v-else-if=
"item.type === 'image'"
class=
"img_content"
>
<img
:src=
"item.getImage && item.getImage(scope.row)"
:width=
"item.size"
/>
</div>
<div
v-else-if=
"
item.type === 'tooltip' &&
item.getLength &&
item.getLength(scope.row) > 1
"
>
<el-tooltip
placement=
"right-start"
popper-class=
"apass_table_tooltip"
>
<div
slot=
"content"
v-html=
"item.getContent && item.getContent(scope.row)"
></div>
<span
v-text=
"(item.getText && item.getText(scope.row)) + '..'"
style=
"text-decoration: underline;color: #515fe7;"
></span>
</el-tooltip>
</div>
<span
v-else
v-text=
"
...
...
@@ -73,3 +103,19 @@ export default {
},
};
</
script
>
<
style
scoped
>
.img_content
{
height
:
100%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
</
style
>
<
style
>
.apass_table_tooltip
{
font-size
:
12px
;
line-height
:
20px
;
}
</
style
>
src/pages/workbench/fwgl/fwglList.vue
View file @
6f8b1f5d
This diff is collapsed.
Click to expand it.
src/store/index.js
View file @
6f8b1f5d
...
...
@@ -8,9 +8,9 @@ const store = new Vuex.Store({
userInfo
:
null
,
// 用户信息
serviceShopMenu
:
"
/shop/data_service_list
"
,
// 服务超市侧边栏
fwglNav
:
[
[
"
注册发布的服务
"
,
"
申请的服务
"
/* , "云资源服务" */
],
// 普通用户
[
"
组织服务管理
"
,
"
服务审批管理
"
/* , "云资源管理" */
],
// 组织管理员
[
"
平台服务管理
"
,
"
服务审批管理
"
/* , "云资源管理" */
],
// 超级管理员
[
"
注册发布的服务
"
,
"
申请的服务
"
,
"
云资源服务
"
],
// 普通用户
[
"
组织服务管理
"
,
"
服务审批管理
"
,
"
云资源管理
"
],
// 组织管理员
[
"
平台服务管理
"
,
"
服务审批管理
"
,
"
云资源管理
"
],
// 超级管理员
],
// 服务管理列表,onlyRead
yyglNav
:
[
[
"
应用仓库
"
,
"
我部署的应用
"
,
"
申请的应用
"
],
// 普通用户
...
...
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