File: /www/wwwroot/ly.fwmnzf.com/runtime/temp/f1f65d388d80ed5e237c7fa0abee30b2.php
<?php /*a:3:{s:76:"/data/wwwroot/www.had70.xyz/application/admin/view/fb_data_report/index.html";i:1620887329;s:68:"/data/wwwroot/www.had70.xyz/application/admin/view/index_layout.html";i:1620206728;s:61:"/data/wwwroot/www.had70.xyz/application/admin/view/layui.html";i:1619409779;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>报表管理系统</title>
<meta name="author" content="YZNCMS">
<link rel="stylesheet" href="/static/libs/layui/css/layui.css">
<link rel="stylesheet" href="/static/admin/css/admin.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
<link rel="stylesheet" href="/static/common/font/iconfont.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
<script src="/static/libs/layui/layui.js"></script>
<script src="/static/libs/jquery/jquery.min.js"></script>
<script type="text/javascript">
//全局变量
var GV = {
'site':<?php echo json_encode($site); ?>,
'image_upload_url': '<?php echo !empty($image_upload_url) ? htmlentities($image_upload_url) : url("attachment/upload/upload", ["dir" => "images", "module" => request()->module()]); ?>',
'file_upload_url': '<?php echo !empty($file_upload_url) ? htmlentities($file_upload_url) : url("attachment/upload/upload", ["dir" => "files", "module" => request()->module()]); ?>',
'jcrop_upload_url': '<?php echo !empty($jcrop_upload_url) ? htmlentities($jcrop_upload_url) : url("attachment/Attachments/cropper"); ?>',
'ueditor_upload_url': '<?php echo !empty($ueditor_upload_url) ? htmlentities($ueditor_upload_url) : url("attachment/upload/upload", ["dir" => "images","from"=>"ueditor", "module" => request()->module()]); ?>',
'ueditor_grabimg_url': '<?php echo !empty($ueditor_upload_url) ? htmlentities($ueditor_upload_url) : url("attachment/Attachments/geturlfile"); ?>',
'image_select_url': '<?php echo !empty($image_select_url) ? htmlentities($image_select_url) : url("attachment/Attachments/select"); ?>',
'filter_word_url': '<?php echo !empty($filter_word_url) ? htmlentities($filter_word_url) : url("admin/ajax/filterWord"); ?>',
};
</script>
</head>
<body class="childrenBody <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
<div class="layui-card">
<div class="layui-card-header">FB数据</div>
<div class="layui-card-body">
<div class="layui-form">
<table class="layui-hide" id="currentTable" lay-filter="currentTable"></table>
</div>
</div>
</div>
<script type="text/javascript">
layui.config({
version: '<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>',
base: '/static/libs/layui_exts/'
}).extend({
yzn: 'yzn/yzn',
yznForm: 'yznForm/yznForm',
yznTable: 'yznTable/yznTable',
treeGrid: 'treeGrid/treeGrid',
clipboard: 'clipboard/clipboard',
notice: 'notice/notice',
iconPicker: 'iconPicker/iconPicker',
tableSelect: 'tableSelect/tableSelect',
ztree: 'ztree/ztree',
dragsort: 'dragsort/dragsort',
tagsinput: 'tagsinput/tagsinput',
xmSelect: 'xmSelect/xm-select',
selectPage: 'selectPage/selectpage',
echarts: 'echarts/echarts',
echartsTheme: 'echarts/echartsTheme',
citypicker: 'citypicker/city-picker',
webuploader: 'webuploader/webuploader',
ueditor: 'ueditor/ueditor.min',
}).use('yznForm');
</script>
<script type="text/javascript">
layui.use(['yznTable', 'laydate', 'form'], function () {
var $ = layui.$,
table = layui.yznTable,
laydate = layui.laydate,
form = layui.form;
laydate.render({
elem: '#startTime'
});
laydate.render({
elem: '#endtTime'
});
var pitcherdata = $.parseJSON('<?php echo $pitcherdata ?>');
var companydata = $.parseJSON('<?php echo $companydata ?>');
// var currencydata = $.parseJSON('<?php echo $currencydata ?>');
var projectdata = $.parseJSON('<?php echo $projectdata ?>');
table.render({
id: 'currentTable',
toolbar: ['refresh'],
url: '<?php echo url("index"); ?>',
totalRow:true,
cols: [
[{
field: 'Ttime',
title: '时间',
search: false,
templet: function (res) {
// console.log(res.Ttime);
if (res.Ttime != undefined) {
return res.Ttime;
} else {
if (res.startTime == res.endTtime) {
return res.startTime;
} else {
return res.startTime + ' 至 ' + res.endTtime;
}
}
}
},
{
field: 'startTime',
title: '开始时间',
hide:true,
search:'time'
},
{
field: 'endTime',
title: '结束时间',
hide:true,
search:'time'
},
{
field: 'company',
title: '公司名称',
selectList: companydata,
totalRowText: '汇总'
},
{
field: 'project',
title: '项目',
selectList: projectdata
},
{
field: 'area',
title: '地区',
search: false
},
{
field: 'channel',
title: '渠道',
search: false
},
// {
// field: 'currency',
// title: '币种',
// // hide: true,
// selectList: currencydata
// },
{
field: 'consume',
title: '消费/人民币',
search: false,
totalRow: true,
templet: function (res) {
if(res.currency!=undefined){
return res.consume + '(' + res.currency + ')';
}
return res.consume;
},
},
// {
// field: 'consume_after',
// title: '税后消费',
// search: false,
// totalRow: true,
// templet: function (res) {
// if(res.currency!=undefined){
// return res.consume_after + '(' + res.currency + ')';
// }
// return res.consume_after;
// },
// },
// {
// field: 'consume_rmb',
// title: '人民币消费',
// search: false,
// totalRow: true
// },
{
field: 'add_fan',
title: '加粉',
search: false,
totalRow: true
},
{
field: 'cost',
title: '成本/人民币',
search: false,
totalRow: true
},
// {
// field: 'cost_rmb',
// title: '人民币成本',
// search: false,
// totalRow: true
// },
{
field: 'pitcher',
title: '投手',
// hide: true,
selectList: pitcherdata
}
]
],
page: {}
});
});
</script>
</body>
</html>