Commit 7a0fec3f by 刘海龙

111

parent de898f24
...@@ -437,7 +437,6 @@ ...@@ -437,7 +437,6 @@
url: "{:U('exams/Index/paper')}" + "&api=2&c=" + that.conditionId +"&p=" + this.page, url: "{:U('exams/Index/paper')}" + "&api=2&c=" + that.conditionId +"&p=" + this.page,
dataType: "json", dataType: "json",
success: function(res) { success: function(res) {
console.log(res.data.data)
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 = array.concat(array.map( r => { that.download = array.concat(array.map( r => {
...@@ -452,6 +451,8 @@ ...@@ -452,6 +451,8 @@
attach: r.attach attach: r.attach
} }
})) }))
console.log(array)
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 => {
......
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