Commit 10db1cae authored by xishifeng's avatar xishifeng

成交报告

parent 7a596b09
......@@ -17,7 +17,7 @@
<tr>
<td colspan="9">
<a class="btn btn-info liudan_pic_btn">专员审核</a>
<a class="btn btn-default liudan_pic_btn">经理审核</a>
<a class="btn btn-default liudan_pic_btn" href="1">经理审核</a>
<a class="btn btn-default liudan_pic_btn">总监审核</a>
<a class="btn btn-default liudan_pic_btn">出纳审核</a>
......
......@@ -6,6 +6,7 @@ require.config ({
'paths': {
'app': 'js',
'jquery': 'lib/js/jquery-2.0.3.min',
'axios': 'lib/js/axios.min',
'temp': (location.origin || location.protocol + '//' + location.hostname + (location.port == 80 ? '' : ':' + location.port)) + '/resource/template',
'style': 'css',
'doT': 'lib/js/doT',
......
......@@ -109,4 +109,12 @@ function check_auth(auth_rule) {
}
return result;
}
\ No newline at end of file
}
//分页插件封装
function PaginationX(obj){
obj.dom.html('wrgwg');
var _preHtml = '<div class="ui-page-x"><span class="ui-page ui-page-prev"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><path d="M85.876,100.5l49.537-50.526c4.089-4.215,4.089-11.049,0-15.262 c-4.089-4.218-10.719-4.218-14.808,0L63.586,92.868c-4.089,4.215-4.089,11.049,0,15.264l57.018,58.156 c4.089,4.215,10.719,4.215,14.808,0c4.089-4.215,4.089-11.049,0-15.262L85.876,100.5z"></path></svg></span>';
var _aftHtml = '';
};
......@@ -2,57 +2,97 @@
* Created by 刘丹 on 2017/12/11.
*/
define (['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css','ckfinder','ckfinderStart','pagination','bootstrapJs'], function (doT, template) {
reportList = {
pageNo: 1, /*第几页*/
pageSize: 10, /*每页显示多少条*/
id : '',
house_id:'',
type:'',
valueCurrent:'',
ajaxObj:'',
stopstatus:true,
ldHtml: $('.phone_list'),
boxphoto:'',
init: function () {
//初始化dot
$ ("body").append (template);
reportList.getList ();
reportList.event ();
},
event: function () {
},
getList: function (pageNo) {
reportList.pageNo = pageNo;
var params = {};
params.pageNo = reportList.pageNo;
params.pageSize = reportList.pageSize;
$.ajax ({
url: '/index/reportListAttache/0',//获取列表
type: 'GET',
async: true,
data: params,
dataType: 'json',
success: function (data) {
var temp = document.getElementById ('reportList_list_tpl').innerHTML;
var doTtmpl = doT.template (temp);
$ ("#reportList_list").html (doTtmpl (data.data.list));
/*分页代码*/
$ ("#pagediv").pagination ({
length: data.data.total,
current: pageNo,
every: reportList.pageSize,
onClick: function (el) {
reportList.getList (el.num.current);
}
});
}
});
}
};
return reportList;
define(['axios', 'doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', 'pagination', 'bootstrapJs'], function(axios, doT, template) {
console.log(axios);
reportList = {
pageNo: 1,
/*第几页*/
pageSize: 10,
/*每页显示多少条*/
id: '',
house_id: '',
type: '',
valueCurrent: '',
ajaxObj: '',
stopstatus: true,
ldHtml: $('.phone_list'),
boxphoto: '',
init: function() {
//初始化dot
$("body").append(template);
reportList.getList(1);
reportList.event();
},
event: function() {
},
getList: function(pageNo) {
reportList.pageNo = pageNo;
var params = {};
params.pageNo = reportList.pageNo;
params.pageSize = reportList.pageSize;
axios({
method:'get',
url:'/index/reportListAttache/0',
responseType:'json',
params: params,
headers: {
'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest'
}
})
.then(function(response) {
console.log(response);
var temp = document.getElementById('reportList_list_tpl').innerHTML;
var doTtmpl = doT.template(temp);
$("#reportList_list").html(doTtmpl(response.data.data.list));
/*分页代码*/
// PaginationX({
// 'dom': $("#pagediv")
// });
$("#pagediv").pagination({
length: response.data.data.total,
current: pageNo,
every: reportList.pageSize,
onClick: function(el) {
console.log(el);
reportList.getList(el.num.current);
}
});
})
.catch(function(error) {
console.log(error);
});
// $.ajax({
// url: '/index/reportListAttache/0', //获取列表
// type: 'GET',
// async: true,
// data: params,
// dataType: 'json',
// success: function(data) {
// var temp = document.getElementById('reportList_list_tpl').innerHTML;
// var doTtmpl = doT.template(temp);
// $("#reportList_list").html(doTtmpl(data.data.list));
//
// /*分页代码*/
// $("#pagediv").pagination({
// length: data.data.total,
// current: pageNo,
// every: reportList.pageSize,
// onClick: function(el) {
// reportList.getList(el.num.current);
// }
// });
// }
// });
}
};
return reportList;
});
\ No newline at end of file
This diff is collapsed.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div class="text-right" id="pagediv">
<div class="ui-page-x">
<span class="ui-page ui-page-prev">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
<path d="M85.876,100.5l49.537-50.526c4.089-4.215,4.089-11.049,0-15.262 c-4.089-4.218-10.719-4.218-14.808,0L63.586,92.868c-4.089,4.215-4.089,11.049,0,15.264l57.018,58.156 c4.089,4.215,10.719,4.215,14.808,0c4.089-4.215,4.089-11.049,0-15.262L85.876,100.5z"></path>
</svg>
</span>
<span class="ui-page ui-page-current" aria-label="第1页,共200页" aria-selected="true" role="option">1</span>
<a href="javascript:" class="ui-page" data-page="2" aria-label="第2页,共200页">2</a>
<a href="javascript:" class="ui-page" data-page="3" aria-label="第3页,共200页">3</a>
<a href="javascript:" class="ui-page" data-page="4" aria-label="第4页,共200页">4</a>
<a href="javascript:" class="ui-page" data-page="5" aria-label="第5页,共200页">5</a><span class="ui-page ui-page-ellipsis">...</span>
<a href="javascript:" class="ui-page" data-page="200" aria-label="第200页,共200页">200</a>
<a href="javascript:" class="ui-page ui-page-next" data-page="2" aria-label="下一页,当前第1页">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
<path d="M85.876,100.5l49.537-50.526c4.089-4.215,4.089-11.049,0-15.262 c-4.089-4.218-10.719-4.218-14.808,0L63.586,92.868c-4.089,4.215-4.089,11.049,0,15.264l57.018,58.156 c4.089,4.215,10.719,4.215,14.808,0c4.089-4.215,4.089-11.049,0-15.262L85.876,100.5z"></path>
</svg>
</a>
</div>
</div>
</body>
</html>
\ No newline at end of file
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