Merge pull request 'feature/more_payment' (#350) from feature/more_payment into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/350
master
廖金灵 4 years ago
commit de6d328ca5

@ -133,7 +133,7 @@ class GameMarginController extends AdminController
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
Vendor("PHPExcel.PHPExcel"); Vendor("PHPExcel.PHPExcel");
$objReader = \PHPExcel_IOFactory::createReader('excel2007'); $objReader = \PHPExcel_IOFactory::createReader('Excel2007');
//设置模板文件 //设置模板文件
$objPHPExcel = $objReader->load("Public/Admin/excel/gamemargin.xlsx"); $objPHPExcel = $objReader->load("Public/Admin/excel/gamemargin.xlsx");
$marginInfo = json_decode($info['margin_info'],true); $marginInfo = json_decode($info['margin_info'],true);
@ -263,7 +263,7 @@ class GameMarginController extends AdminController
header('pragma:public'); header('pragma:public');
header('Content-type:application/vnd.ms-excel;charset=utf-8;name="'.$fileName.'".xlsx'); header('Content-type:application/vnd.ms-excel;charset=utf-8;name="'.$fileName.'".xlsx');
header("Content-Disposition:attachment;filename={$fileName}.xlsx");//attachment新窗口打印inline本窗口打印 header("Content-Disposition:attachment;filename={$fileName}.xlsx");//attachment新窗口打印inline本窗口打印
$objWriter = \PHPExcel_IOFactory::createWriter($objPHPExcel, 'excel2007'); $objWriter = \PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
$objWriter->save('php://output'); $objWriter->save('php://output');
exit; exit;

@ -83,8 +83,8 @@
<div class="butnlist jscheckbutn" style="margin-left: 2px"> <div class="butnlist jscheckbutn" style="margin-left: 2px">
<if condition = "$isCanRecount"> <if condition = "$isCanRecount">
<a class="butn" id="addMargin">生成毛利表</a> <a class="butn" id="addMargin">生成毛利表</a>
<a class='butn' id='export'>导出</a>
</if> </if>
<a class='butn' id='export'>导出</a>
</div> </div>
</div> </div>

Loading…
Cancel
Save