Commit 10db1cae authored by xishifeng's avatar xishifeng

成交报告

parent 7a596b09
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<tr> <tr>
<td colspan="9"> <td colspan="9">
<a class="btn btn-info liudan_pic_btn">专员审核</a> <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>
<a class="btn btn-default liudan_pic_btn">出纳审核</a> <a class="btn btn-default liudan_pic_btn">出纳审核</a>
......
...@@ -6,6 +6,7 @@ require.config ({ ...@@ -6,6 +6,7 @@ require.config ({
'paths': { 'paths': {
'app': 'js', 'app': 'js',
'jquery': 'lib/js/jquery-2.0.3.min', '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', 'temp': (location.origin || location.protocol + '//' + location.hostname + (location.port == 80 ? '' : ':' + location.port)) + '/resource/template',
'style': 'css', 'style': 'css',
'doT': 'lib/js/doT', 'doT': 'lib/js/doT',
......
...@@ -109,4 +109,12 @@ function check_auth(auth_rule) { ...@@ -109,4 +109,12 @@ function check_auth(auth_rule) {
} }
return result; 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 @@ ...@@ -2,57 +2,97 @@
* Created by 刘丹 on 2017/12/11. * 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) { define(['axios', 'doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', 'pagination', 'bootstrapJs'], function(axios, doT, template) {
reportList = { console.log(axios);
pageNo: 1, /*第几页*/
pageSize: 10, /*每页显示多少条*/ reportList = {
id : '', pageNo: 1,
house_id:'', /*第几页*/
type:'', pageSize: 10,
valueCurrent:'', /*每页显示多少条*/
ajaxObj:'', id: '',
stopstatus:true, house_id: '',
ldHtml: $('.phone_list'), type: '',
boxphoto:'', valueCurrent: '',
init: function () { ajaxObj: '',
//初始化dot stopstatus: true,
$ ("body").append (template); ldHtml: $('.phone_list'),
reportList.getList (); boxphoto: '',
reportList.event (); init: function() {
}, //初始化dot
event: function () { $("body").append(template);
reportList.getList(1);
}, reportList.event();
},
getList: function (pageNo) { event: function() {
reportList.pageNo = pageNo;
var params = {}; },
params.pageNo = reportList.pageNo;
params.pageSize = reportList.pageSize; getList: function(pageNo) {
$.ajax ({ reportList.pageNo = pageNo;
url: '/index/reportListAttache/0',//获取列表 var params = {};
type: 'GET', params.pageNo = reportList.pageNo;
async: true, params.pageSize = reportList.pageSize;
data: params,
dataType: 'json', axios({
success: function (data) { method:'get',
var temp = document.getElementById ('reportList_list_tpl').innerHTML; url:'/index/reportListAttache/0',
var doTtmpl = doT.template (temp); responseType:'json',
$ ("#reportList_list").html (doTtmpl (data.data.list)); params: params,
headers: {
/*分页代码*/ 'Content-Type': 'application/json',
$ ("#pagediv").pagination ({ 'X-Requested-With': 'XMLHttpRequest'
length: data.data.total, }
current: pageNo, })
every: reportList.pageSize, .then(function(response) {
onClick: function (el) { console.log(response);
reportList.getList (el.num.current);
} var temp = document.getElementById('reportList_list_tpl').innerHTML;
}); var doTtmpl = doT.template(temp);
} $("#reportList_list").html(doTtmpl(response.data.data.list));
});
} /*分页代码*/
// PaginationX({
}; // 'dom': $("#pagediv")
return reportList; // });
$("#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