|
@@ -1756,6 +1756,10 @@ class Talent extends AdminController {
|
|
|
}
|
|
|
|
|
|
private function commonExport($process) {
|
|
|
+ $companyId = $this->user['companyId'];
|
|
|
+ $company = getCacheById("Company", $companyId);
|
|
|
+ $setting = [];
|
|
|
+
|
|
|
$params = $this->request->param();
|
|
|
$fields = $params["export"];
|
|
|
if (!$fields)
|
|
@@ -1767,7 +1771,14 @@ class Talent extends AdminController {
|
|
|
$names["street"] = "所属镇街";
|
|
|
$names["checkState"] = "审核状态";
|
|
|
$names["checkMsg"] = "审核意见";
|
|
|
+ $names["verifyDepts"] = "审核部门";
|
|
|
$list = VerifyApi::getExportDatas($process, $params);
|
|
|
+ if ($process == 4 && in_array($company["code"], ["super", "rsj"])) {
|
|
|
+ $fields[] = "verifyDepts";
|
|
|
+ $verifyDeptsColumn = getExcelColumnByIndex(count($fields) - 1);
|
|
|
+ $setting["font"][] = [sprintf("%s%d:%s%d", $verifyDeptsColumn, 2, $verifyDeptsColumn, count($list) + 1), 8, "宋体"];
|
|
|
+ $setting["width"][] = [$verifyDeptsColumn, 30];
|
|
|
+ }
|
|
|
foreach ($fields as $field) {
|
|
|
$columns[] = $names[$field];
|
|
|
}
|
|
@@ -1780,7 +1791,7 @@ class Talent extends AdminController {
|
|
|
$datas[] = $data;
|
|
|
}
|
|
|
if ($datas) {
|
|
|
- export($columns, $datas, "人才审核列表导出");
|
|
|
+ export($columns, $datas, "人才审核列表导出", $setting);
|
|
|
exit();
|
|
|
}
|
|
|
echo "<script>parent.layer.alert('没有可以导出的数据');window.history.go(-1);</script>";
|