Toggle navigation
This project
Loading...
Sign in
najixian
/
xt_dc_admin
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Download as
Email Patches
Plain Diff
Browse Files
Commit
bb90ded91c7dab5a656533a0bd6cf8304899c606
Authored by
teemitop
2019-05-21 14:15:10 +0800
1 parent
7b2be481
build: skipped
报表生成
Changes
2
Builds
0
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
application/admin/controller/Customer.php
application/admin/view/customer/index.html
application/admin/controller/Customer.php
0 → 100644
View file @
bb90ded
<?php
namespace
app\admin\controller
;
use
think\Db
;
use
think\facade\Request
;
class
Customer
extends
Common
{
/********************************报表导出*******************************/
/**
* 报表导出
*/
public
function
index
(){
$this
->
assign
(
'title'
,
'报表下载'
);
return
$this
->
fetch
();
}
}
...
...
application/admin/view/customer/index.html
0 → 100644
View file @
bb90ded
{include file="common/head"/}
<div
class=
"admin-main layui-anim layui-anim-upbit"
>
<fieldset
class=
"layui-elem-field layui-field-title"
>
<legend>
{:$title}
</legend>
</fieldset>
<div
class=
"demoTable"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
选择日期
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
class=
"layui-input"
name=
"time"
id=
"time"
placeholder=
"请选择导出日期"
>
</div>
</div>
<button
class=
"layui-btn"
id=
'sub'
lay-filter=
"sub"
>
导出
</button>
</div>
</div>
{include file="common/foot"/}
<script>
layui
.
use
([
'table'
,
'form'
,
'laydate'
],
function
()
{
var
table
=
layui
.
table
,
laydate
=
layui
.
laydate
,
$
=
layui
.
jquery
;
var
ins22
=
laydate
.
render
({
elem
:
'#time'
,
min
:
'2019-05-15'
,
max
:
'date'
,
ready
:
function
(){
//ins22.hint('日期可选值设定在 <br> 2019-05-15 到 当天日期');
}
});
$
(
'#sub'
).
on
(
'click'
,
function
()
{
if
(
$
(
'#time'
).
val
())
window
.
open
(
'http://xt04.colorcun.com/index.php?service=App.Report.StatementStatisticsTask&date_time='
+
$
(
'#time'
).
val
());
else
window
.
open
(
'http://xt04.colorcun.com/index.php?service=App.Report.StatementStatisticsTask&token='
);
});
})
</script>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment