Commit 09a5bac7 authored by agping's avatar agping

约带看修改

parent 8d2341aa
......@@ -89,6 +89,7 @@ define(['doT', 'text!temp/inspectionRecord_list_template_tpl.html', 'css!style/h
});
},
getList: function(pageNo) { //获取约带看记录列表
record.pageNo = pageNo;//接收参数
var params = {};
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
console.log(user_info_obj);
......@@ -115,7 +116,7 @@ define(['doT', 'text!temp/inspectionRecord_list_template_tpl.html', 'css!style/h
params.pageSize = record.pageSize;
$.ajax({
type: 'GET',
url: '/broker/reportList', //约带看记录 对接接口
url: '/broker/reportListForPc', //约带看记录 对接接口
data: params,
timeout: 30000,
dataType: 'json',
......@@ -124,10 +125,11 @@ define(['doT', 'text!temp/inspectionRecord_list_template_tpl.html', 'css!style/h
if(typeof data === 'object') {
if(data.code == 200) {
var doTtmpl = doT.template(document.getElementById('inspectionRecord_list_tpl').innerHTML);
$("#follow_list").html(doTtmpl(data.data));
$("#follow_list").html(doTtmpl(data.data.result));
/*分页代码*/
console.log(data.data.total);
add_page(data.data.total, pageNo, record.pageSize, record.getList);
$(".move-block").html(' ');
// $(".move-block").html(' ');
} else {
alert(data['msg']);
......
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