导出数据权限

master
liuweiwen 5 years ago
parent 96bf040f98
commit 0695a22472

@ -5326,7 +5326,8 @@ if ($key == 'model'){
if(isset($_REQUEST['status'])){ if(isset($_REQUEST['status'])){
$map['status']=$_REQUEST['status']; $map['status']=$_REQUEST['status'];
} }
//为数据权限添加
setPowerPromoteIds($map);
} else { } else {
$xlsCell = array( $xlsCell = array(
@ -5386,7 +5387,8 @@ if ($key == 'model'){
if (I('status')) { if (I('status')) {
$map['tab_promote.status'] = I('status'); $map['tab_promote.status'] = I('status');
} }
//为数据权限添加
setPowerPromoteIds($map, 'tab_promote.id');
} }
@ -5400,8 +5402,7 @@ if ($key == 'model'){
//为数据权限添加
setPowerPromoteIds($map, 'id');
$xlsData = []; $xlsData = [];
// if(is_array($data)){ // if(is_array($data)){
@ -6336,7 +6337,7 @@ if ($key == 'model'){
unset($map['promote_id']); unset($map['promote_id']);
//为数据权限添加 //为数据权限添加
setPowerPromoteIds($map); setPowerPromoteIds($map, 'tab_spend.promote_id');
$csvFileName = $xlsName . '.csv'; $csvFileName = $xlsName . '.csv';
//设置好告诉浏览器要下载excel文件的headers //设置好告诉浏览器要下载excel文件的headers

Loading…
Cancel
Save