customer stat export del html

This commit is contained in:
qianhy
2023-03-31 11:22:54 +08:00
committed by lccsw
parent 104f24e201
commit 5539c20063
2 changed files with 3 additions and 4 deletions
+3 -3
View File
@@ -195,7 +195,7 @@ class Customer extends HD_Controller
return $this->show_view('receiver/customer/lists_statdata', true);
}
private function get_statdata($id){
private function get_statdata($id, $export=false){
if (!$id){
return array();
}
@@ -211,7 +211,7 @@ class Customer extends HD_Controller
$group_id = $val['group_id'];
$k = $val['k'];
$list['序号'] = $i;
$list['栏目'] = $k;
$list['栏目'] = $export ? str_replace('</b>', '', str_replace('<b>', '', $k)) : $k;
foreach ($rows_stat_date as $key_date => $val_date){
$stat_date = $val_date['stat_date'];
#$index = str_replace('-', '', substr($stat_date, 5));
@@ -874,7 +874,7 @@ class Customer extends HD_Controller
return $this->show_json(SYS_CODE_FAIL, '计划不存在!');
}
$stat_data = $this->get_statdata($id);
$stat_data = $this->get_statdata($id, $export=true);
$indexs = array();
foreach ($stat_data['indexs'] as $index){
$indexs[$index] = $index;
@@ -24,7 +24,6 @@
</div>
</div>
<div class="am-form-group" style="margin-bottom: 0px;"></div>
<div class="am-form-group fl" style="margin-bottom: 0px;">
<div class="am-form-group fl ml10">
<button type="submit" class="am-btn am-btn-success am-btn-sm w100">搜索</button>