Commit 6fe48e08 by 陈超

T

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