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
aa6cad4f
Commit
aa6cad4f
authored
Jul 13, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运行状态日期排序
parent
758d6cab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/pages/workbench/yygl/deploy_app_detail.vue
src/pages/workbench/yygl/deploy_app_detail.vue
+7
-3
No files found.
src/pages/workbench/yygl/deploy_app_detail.vue
View file @
aa6cad4f
...
...
@@ -643,6 +643,7 @@ export default {
this
.
get_micro_service
()
},
compare
(
property
){
debugger
return
function
(
a
,
b
){
var
value1
=
a
[
property
];
var
value2
=
b
[
property
];
...
...
@@ -657,8 +658,6 @@ export default {
console
.
log
(
response
);
var
_this
=
this
let
data
=
response
.
data
.
data
;
// this.image_arr = data.imagearr;
// console.log(data.list.sort(_this.compare('date')))
data
.
list
.
forEach
(
e
=>
{
data
.
runnings
.
forEach
(
el
=>
{
if
(
e
.
tag
==
el
.
tag
){
...
...
@@ -666,7 +665,12 @@ export default {
}
});
});
this
.
$set
(
this
.
image_arr
[
this
.
image_select
],
'
data
'
,
data
.
list
.
sort
(
this
.
compare
(
'
date
'
)))
data
.
list
.
forEach
(
e
=>
{
e
[
'
num
'
]
=
parseInt
(
e
.
date
.
replace
(
/-/g
,
''
).
replace
(
/:/g
,
''
).
replace
(
'
'
,
''
))
});
var
temp_arr
=
data
.
list
.
sort
(
this
.
compare
(
'
num
'
))
console
.
log
(
temp_arr
);
this
.
$set
(
this
.
image_arr
[
this
.
image_select
],
'
data
'
,
temp_arr
)
this
.
now_image_version
=
[]
this
.
image_arr
[
this
.
image_select
].
data
.
forEach
((
e
,
idx
)
=>
{
if
(
e
.
subsets
){
...
...
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