Commit 61477f34 by 刘海龙

111

parent a6fec128
...@@ -440,7 +440,7 @@ ...@@ -440,7 +440,7 @@
success: function(res) { success: function(res) {
if(res.status == 1) { if(res.status == 1) {
let array = res.data.data.length > 0 ? res.data.data : [] let array = res.data.data.length > 0 ? res.data.data : []
that.download = [].concat(array.map( r => { let download = [].concat(array.map( r => {
return { return {
id: r.exams_paper_id, id: r.exams_paper_id,
title: r.exams_paper_title, title: r.exams_paper_title,
...@@ -452,9 +452,8 @@ ...@@ -452,9 +452,8 @@
attach: r.attach attach: r.attach
} }
})) }))
console.log(array) that.download = that.download.concat(download)
console.log(that.download) that.page ++
// that.page ++
if(that.condition.length == 0) { if(that.condition.length == 0) {
that.condition = [{ id: '', title: '全部', select: true }].concat(res.cate.map( r => { that.condition = [{ id: '', title: '全部', select: true }].concat(res.cate.map( r => {
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment