导出文件名显示

master
zhaocheng 2 years ago
parent 8170279558
commit 4dbd9203cc
  1. 4
      app/controller/Index.php

@ -54,7 +54,7 @@ class Index extends BaseController
} }
$offset = ($page - 1) * $limit; $offset = ($page - 1) * $limit;
$map = $this->getQueryCondition($params); $map = $this->getQueryCondition($params);
$jobs_name = ['0' => '']; $jobs_name = [];
if (isset($params['is_check_peer_phone']) && $params['is_check_peer_phone'] > 0) { if (isset($params['is_check_peer_phone']) && $params['is_check_peer_phone'] > 0) {
$params['data_check'] = 'car_phone_check'; $params['data_check'] = 'car_phone_check';
} }
@ -148,6 +148,8 @@ class Index extends BaseController
$jobs_name = $jobs_name + $export_name; $jobs_name = $jobs_name + $export_name;
} }
foreach ($list as &$item) { foreach ($list as &$item) {
$jobs_name[$item['is_export_bhx']] = $jobs_name[$item['is_export_bhx']] ?? JobsT::find($item['is_export_bhx']);
$jobs_name[$item['is_export_bmc']] = $jobs_name[$item['is_export_bmc']] ?? JobsT::find($item['is_export_bmc']);
$item['export_bhx_name'] = $jobs_name[$item['is_export_bhx']]['queue'] ?? ''; $item['export_bhx_name'] = $jobs_name[$item['is_export_bhx']]['queue'] ?? '';
$item['export_bmc_name'] = $jobs_name[$item['is_export_bmc']]['queue'] ?? ''; $item['export_bmc_name'] = $jobs_name[$item['is_export_bmc']]['queue'] ?? '';
$item['bhx_download_times'] = $jobs_name[$item['is_export_bhx']]['download_times'] ?? 0; $item['bhx_download_times'] = $jobs_name[$item['is_export_bhx']]['download_times'] ?? 0;

Loading…
Cancel
Save