Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Yasset Perez
pride-web
Commits
5fadc663
Commit
5fadc663
authored
Sep 06, 2018
by
shabai517
Browse files
update search function
parent
669c7996
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
src/components/archive/Dataset.vue
src/components/archive/Dataset.vue
+12
-8
No files found.
src/components/archive/Dataset.vue
View file @
5fadc663
...
...
@@ -753,7 +753,7 @@
},
beforeRouteUpdate
:
function
(
to
,
from
,
next
)
{
this
.
queryProjectDetails
(
to
.
params
.
id
);
this
.
queryAssay
(
to
.
params
.
id
);
//
this.queryAssay(to.params.id);
this
.
queryArchiveProjectFiles
(
to
.
params
.
id
);
this
.
querySimilarity
(
to
.
params
.
id
);
//console.log('to query',to.query);
...
...
@@ -817,7 +817,7 @@
}
},
function
(
err
){
//this.$router.replace({name:'404'});
});
},
queryArchiveProjectFiles
(
id
){
...
...
@@ -827,8 +827,9 @@
.
get
(
this
.
queryArchiveProjectFilesApi
+
id
+
'
/files
'
+
this
.
queryDownload
)
.
then
(
function
(
res
){
console
.
log
(
res
.
body
);
this
.
fileListLoading
=
false
;
this
.
totalDownLoad
=
res
.
body
.
page
.
totalElements
;
if
(
res
.
body
.
_embedded
.
files
){
if
(
res
.
body
.
_embedded
&&
res
.
body
.
_embedded
.
files
){
let
filesArray
=
res
.
body
.
_embedded
.
files
;
let
tempArray
=
[];
for
(
let
i
=
0
;
i
<
filesArray
.
length
;
i
++
){
...
...
@@ -843,20 +844,23 @@
}
tempArray
.
push
(
item
);
}
this
.
fileListLoading
=
false
;
this
.
fileList
=
tempArray
;
}
else
{
this
.
$Message
.
error
({
content
:
'
No results
'
,
duration
:
1
});
}
},
function
(
err
){
this
.
fileListLoading
=
false
;
});
},
pageChange
(
page
){
this
.
page
=
page
-
1
;
this
.
queryAssay
();
//
this.queryAssay();
},
pageSizeChange
(
size
){
this
.
size
=
size
;
this
.
queryAssay
();
//
this.queryAssay();
},
queryAssay
(
id
){
var
id
=
id
||
this
.
$route
.
params
.
id
;
...
...
@@ -934,7 +938,7 @@
},
mounted
:
function
(){
this
.
queryProjectDetails
();
this
.
queryAssay
();
//
this.queryAssay();
this
.
queryArchiveProjectFiles
();
this
.
querySimilarity
();
},
...
...
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