Commit 6fe48e08 by 陈超

T

parent 42638299
......@@ -351,11 +351,17 @@
let that = this
$.ajax({
type: "GET",
url: "{:U('exams/Index/paper')}"+"&api=1&search=" + '',
url: "{:U('exams/Index/paper')}"+"&api=1&search=" + that.keyword,
dataType: "json",
success: function(res) {
let array = res.data.length > 0 ? res.data : []
console.log(data)
that.options[1].items = array.map( r => {
return {
id: '',
title: '',
price: ''
}
})
}
})
},
......
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