Commit 61477f34 by 刘海龙

111

parent a6fec128
......@@ -340,7 +340,7 @@
},
onDownload: function(index){
// if (item.attach) {
// if (item.attach) {
// window.location.href = item.attach;
// }
var link = document.createElement('a');
......@@ -440,7 +440,7 @@
success: function(res) {
if(res.status == 1) {
let array = res.data.data.length > 0 ? res.data.data : []
that.download = [].concat(array.map( r => {
let download = [].concat(array.map( r => {
return {
id: r.exams_paper_id,
title: r.exams_paper_title,
......@@ -452,9 +452,8 @@
attach: r.attach
}
}))
console.log(array)
console.log(that.download)
// that.page ++
that.download = that.download.concat(download)
that.page ++
if(that.condition.length == 0) {
that.condition = [{ id: '', title: '全部', select: true }].concat(res.cate.map( r => {
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