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
58869448
"src/components/service-info/service-info.vue" did not exist on "10a05d3be30e731471724e4ae9c2fc20425ed8a6"
Commit
58869448
authored
May 19, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的应用列表页交互
parent
0099d224
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
12 deletions
+28
-12
src/components/app-card.vue
src/components/app-card.vue
+13
-1
src/components/app-list.vue
src/components/app-list.vue
+5
-0
src/pages/yyglList.vue
src/pages/yyglList.vue
+7
-8
src/router/index.js
src/router/index.js
+3
-3
No files found.
src/components/app-card.vue
View file @
58869448
...
@@ -7,7 +7,11 @@
...
@@ -7,7 +7,11 @@
<el-avatar
shape=
"square"
:size=
"56"
fit=
"cover"
:src=
"data.img"
/>
<el-avatar
shape=
"square"
:size=
"56"
fit=
"cover"
:src=
"data.img"
/>
</div>
</div>
<div
class=
"app_card-info"
>
<div
class=
"app_card-info"
>
<p
class=
"app_card-name text_clip"
v-text=
"data.name"
></p>
<p
class=
"app_card-name text_clip"
v-text=
"data.name"
@
click=
"intoDetail"
></p>
<p
class=
"app_card-version text_clip"
v-text=
"data.version"
></p>
<p
class=
"app_card-version text_clip"
v-text=
"data.version"
></p>
</div>
</div>
<div
class=
"app_card-action"
v-if=
"cardType == 0"
>
<div
class=
"app_card-action"
v-if=
"cardType == 0"
>
...
@@ -36,6 +40,10 @@ export default {
...
@@ -36,6 +40,10 @@ export default {
type
:
[
String
,
Number
],
type
:
[
String
,
Number
],
default
:
0
,
default
:
0
,
},
},
detailsUrl
:
{
type
:
String
,
default
:
0
,
},
},
},
methods
:
{
methods
:
{
deploymentAction
()
{
deploymentAction
()
{
...
@@ -44,6 +52,9 @@ export default {
...
@@ -44,6 +52,9 @@ export default {
deleteAction
()
{
deleteAction
()
{
this
.
$emit
(
"
delete-action
"
,
this
.
data
);
this
.
$emit
(
"
delete-action
"
,
this
.
data
);
},
},
intoDetail
()
{
this
.
$router
.
push
(
`
${
this
.
detailsUrl
}${
this
.
data
.
id
}
`
);
},
},
},
};
};
</
script
>
</
script
>
...
@@ -83,6 +94,7 @@ export default {
...
@@ -83,6 +94,7 @@ export default {
font-size
:
18px
;
font-size
:
18px
;
line-height
:
32px
;
line-height
:
32px
;
color
:
#0d1847
;
color
:
#0d1847
;
cursor
:
pointer
;
}
}
.app_card-info
>
.app_card-version
{
.app_card-info
>
.app_card-version
{
font-size
:
14px
;
font-size
:
14px
;
...
...
src/components/app-list.vue
View file @
58869448
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
:card-type=
"cardType"
:card-type=
"cardType"
@
deployment-action=
"deploymentAction"
@
deployment-action=
"deploymentAction"
@
delete-action=
"deleteAction"
@
delete-action=
"deleteAction"
:details-url=
"detailsUrl"
></app-card>
></app-card>
</div>
</div>
</
template
>
</
template
>
...
@@ -27,6 +28,10 @@ export default {
...
@@ -27,6 +28,10 @@ export default {
type
:
[
String
,
Number
],
type
:
[
String
,
Number
],
default
:
0
,
default
:
0
,
},
},
detailsUrl
:
{
type
:
String
,
default
:
0
,
},
},
},
methods
:
{
methods
:
{
deploymentAction
(
item
)
{
deploymentAction
(
item
)
{
...
...
src/pages/yyglList.vue
View file @
58869448
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
:card-type=
"cardType"
:card-type=
"cardType"
@
deployment-action=
"deploymentAction"
@
deployment-action=
"deploymentAction"
@
delete-action=
"deleteAction"
@
delete-action=
"deleteAction"
:details-url=
"detailsUrl"
></app-list>
></app-list>
<div
class=
"flex_grow"
></div>
<div
class=
"flex_grow"
></div>
<comments-pagination
<comments-pagination
...
@@ -240,10 +241,12 @@ export default {
...
@@ -240,10 +241,12 @@ export default {
detailsUrl
()
{
detailsUrl
()
{
let
url
=
""
;
let
url
=
""
;
if
(
this
.
level
==
0
&&
this
.
type
==
1
)
{
if
(
this
.
level
==
0
&&
this
.
type
==
0
)
{
url
=
`/fwgl/
${
this
.
level
}
/
${
this
.
type
}
/applyserviceedit/`
;
url
=
`/yygl/
${
this
.
level
}
/
${
this
.
type
}
/detail/`
;
}
else
if
(
this
.
level
==
0
&&
this
.
type
==
1
)
{
url
=
`/yygl/
${
this
.
level
}
/
${
this
.
type
}
/approvaldetail/`
;
}
else
{
}
else
{
url
=
`/
fwgl/
${
this
.
level
}
/
${
this
.
type
}
/service
detail/`
;
url
=
`/
yygl/
${
this
.
level
}
/
${
this
.
type
}
/
detail/`
;
}
}
return
url
;
return
url
;
...
@@ -298,10 +301,7 @@ export default {
...
@@ -298,10 +301,7 @@ export default {
console
.
log
(
"
delete ---
"
+
item
.
id
);
console
.
log
(
"
delete ---
"
+
item
.
id
);
},
},
editItem
(
item
)
{
editItem
(
item
)
{
console
.
log
(
"
edit ---
"
+
item
.
id
);
this
.
$router
.
push
(
`/yygl/
${
this
.
level
}
/
${
this
.
type
}
/edit/
${
item
.
id
}
`
);
/* this.$router.push(
`/fwgl/${this.level}/${this.type}/serviceedit/${item.id}`
); */
},
},
offLine
(
item
)
{
offLine
(
item
)
{
console
.
log
(
"
off line ---
"
+
item
.
id
);
console
.
log
(
"
off line ---
"
+
item
.
id
);
...
@@ -345,7 +345,6 @@ export default {
...
@@ -345,7 +345,6 @@ export default {
// 普通用户 --- 审批的应用
// 普通用户 --- 审批的应用
else
if
(
level
===
0
&&
type
===
3
)
{
else
if
(
level
===
0
&&
type
===
3
)
{
this
.
listType
=
"
table
"
;
this
.
listType
=
"
table
"
;
this
.
headers
=
[
this
.
headers
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
...
...
src/router/index.js
View file @
58869448
...
@@ -82,17 +82,17 @@ export default new Router({
...
@@ -82,17 +82,17 @@ export default new Router({
component
:
()
=>
import
(
"
@/pages/yyglList
"
),
component
:
()
=>
import
(
"
@/pages/yyglList
"
),
},
},
{
{
path
:
"
/yygl
detail/:level/0
"
,
// 应用仓库详情
path
:
"
/yygl
/:level/:type/detail/:id
"
,
// 应用仓库详情
name
:
"
appdetail
"
,
name
:
"
appdetail
"
,
component
:
()
=>
import
(
"
@/pages/app_detail
"
),
component
:
()
=>
import
(
"
@/pages/app_detail
"
),
},
},
{
{
path
:
"
/yygl
edit/:level/0
"
,
// 应用仓库编辑
path
:
"
/yygl
/:level/:type/edit/:id
"
,
// 应用仓库编辑
name
:
"
appedit
"
,
name
:
"
appedit
"
,
component
:
()
=>
import
(
"
@/pages/app_edit
"
),
component
:
()
=>
import
(
"
@/pages/app_edit
"
),
},
},
{
{
path
:
"
/yygl
approvaldetail/:level/1
"
,
// 应用仓库编辑
path
:
"
/yygl
/:level/:type/approvaldetail/:id
"
,
// 我部署的应用详情
name
:
"
approval_app_detail
"
,
name
:
"
approval_app_detail
"
,
component
:
()
=>
import
(
"
@/pages/approval_app_detail
"
),
component
:
()
=>
import
(
"
@/pages/approval_app_detail
"
),
},
},
...
...
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