Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e08f6d3d
authored
2018-03-17 22:27:55 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
c2125448
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
20 deletions
application/views/work/index.php
application/views/work/index.php
View file @
e08f6d3
<?php
$this
->
load
->
view
(
'common/header'
);
?>
<body>
<?php
$this
->
load
->
view
(
'common/work_header'
);
?>
<div
class=
"page-container"
>
<?php
$this
->
load
->
view
(
'common/work_header'
);
?>
<div
class=
"page-container"
>
<form
class=
""
onreset=
"resetHandler()"
>
<div
class=
"date mb-20"
>
<input
type=
"text"
onfocus=
"WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}',onpicked:function(){$('#table').DataTable().draw()} })"
id=
"min"
class=
"input-text Wdate"
>
-
<input
type=
"text"
onfocus=
"WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d',onpicked:function(){$('#table').DataTable().draw()} })"
id=
"max"
class=
"input-text Wdate"
>
<input
type=
"text"
onfocus=
"WdatePicker({ maxDate:'#F{$dp.$D(\'max\')||\'%y-%M-%d\'}',onpicked:function(){$('#table').DataTable().draw()} })"
id=
"min"
class=
"input-text Wdate"
>
-
<input
type=
"text"
onfocus=
"WdatePicker({ minDate:'#F{$dp.$D(\'min\')}',maxDate:'%y-%M-%d',onpicked:function(){$('#table').DataTable().draw()} })"
id=
"max"
class=
"input-text Wdate"
>
</div>
<div
class=
"row cl mb-20"
>
<div
class=
"col-xs-2"
>
...
...
@@ -93,17 +97,17 @@
</tbody>
</table>
</div>
</div>
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
</div>
<?php
$this
->
load
->
view
(
'common/footer'
);
?>
<script>
<script>
var table = $('#table').dataTable({
aaSorting: [[ 1, "desc"
]],
aaSorting: [[1, "desc"
]],
serverSide: true,
processing: true,
bSort
: false,
searching
: false,//是否显示搜索
iDisplayLength:
10,
bSort
: false,
searching
: false,//是否显示搜索
iDisplayLength:
10,
bLengthChange: false,
//ajax: '
<?
//=site_url("work/data")?>//',
// dataSrc: function ( json ) {
...
...
@@ -115,7 +119,15 @@
// },
ajax
:
{
url
:
apiBaseUrl
+
'/order/into/getAllApplyOrder'
,
dataSrc
:
function
(
json
)
{
dataFilter
:
function
(
json
)
{
var
ret
=
{};
ret
.
data
=
json
.
data
;
ret
.
draw
=
parseInt
(
json
.
page
.
currentPage
);
ret
.
recordsTotal
=
parseInt
(
json
.
page
.
totalNumber
);
ret
.
recordsFiltered
=
parseInt
(
json
.
page
.
totalNumber
);
return
ret
;
},
dataSrc
:
function
(
json
)
{
// for ( var i=0, ien=json.data.length ; i<ien ; i++ ) {
// json.data[i][0] = '<a href="/message/'+json.data[i][0]+'>View message</a>';
// }
...
...
@@ -128,14 +140,16 @@
}
},
columns
:
[
{
data
:
"id"
,
render
:
function
(
data
,
type
,
full
)
{
{
data
:
"id"
,
render
:
function
(
data
,
type
,
full
)
{
return
'
<
span
class
="
dropDown
dropDown_hover
">\
<button class="
btn
radius
size
-
M
">请选择 <i class="
Hui
-
iconfont
"></i></button>\
<ul class="
dropDown
-
menu
menu
radius
box
-
shadow
"><li><a href="
javascript
:
;
" onclick="
layer_show
(
\
'订单详情\', \'/work/detail/'
+
data
+
'
?
tab
=
0
\
'
)
">查看详细</a></li>\
<li><a href="
javascript
:
;
" onclick="
layer_show
(
\
'订单详情\', \'/work/detail/'
+
data
+
'
?
tab
=
2
\
'
)
">处理记录</a></li>\
<ul class="
dropDown
-
menu
menu
radius
box
-
shadow
"><li><a href="
javascript
:
;
" onclick="
layer_show
(
\
'订单详情\', \'/work/detail/'
+
data
+
'
?
tab
=
0
\
'
)
">查看详细</a></li>\
<li><a href="
javascript
:
;
" onclick="
layer_show
(
\
'订单详情\', \'/work/detail/'
+
data
+
'
?
tab
=
2
\
'
)
">处理记录</a></li>\
<li><a href="
#">客户取消</a></li>\
</
ul
></
span
>
';
}},
}
},
{data: "orderId"},
{data: "createUser"},
{data: "idCard"},
...
...
@@ -153,7 +167,7 @@
});
$.fn.dataTableExt.afnFiltering.push(
function( oSettings, aData, iDataIndex
) {
function (oSettings, aData, iDataIndex
) {
var min = document.getElementById('
min
').value;
var max = document.getElementById('
max
').value;
var iDateCol = 12;
...
...
@@ -182,10 +196,9 @@
$
(
'#table'
)
.
DataTable
()
.
draw
();
});
function
resetHandler
()
{
function
resetHandler
()
{
$
(
'#table'
)
.
DataTable
()
.
columns
()
.
search
(
""
)
.
draw
();
}
</
script
>
</
script
>
</
body
>
<
html
>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment