Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
10db1cae
Commit
10db1cae
authored
Apr 18, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交报告
parent
7a596b09
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
140 additions
and
56 deletions
+140
-56
index.html
application/index/view/finance/index.html
+1
-1
main.js
public/resource/js/main.js
+1
-0
public.js
public/resource/js/public.js
+9
-2
reportList.js
public/resource/js/reportList.js
+94
-53
axios.min.js
public/resource/lib/js/axios.min.js
+0
-0
ssss.html
public/resource/template/ssss.html
+35
-0
No files found.
application/index/view/finance/index.html
View file @
10db1cae
...
...
@@ -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>
...
...
public/resource/js/main.js
View file @
10db1cae
...
...
@@ -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'
,
...
...
public/resource/js/public.js
View file @
10db1cae
...
...
@@ -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
=
''
;
};
public/resource/js/reportList.js
View file @
10db1cae
...
...
@@ -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
public/resource/lib/js/axios.min.js
0 → 100644
View file @
10db1cae
This diff is collapsed.
Click to expand it.
public/resource/template/ssss.html
0 → 100644
View file @
10db1cae
<!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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment