|
@@ -1772,10 +1772,16 @@ class Talent extends AdminController {
|
|
|
$names["checkState"] = "审核状态";
|
|
|
$names["checkMsg"] = "审核意见";
|
|
|
$names["verifyDepts"] = "审核部门";
|
|
|
+ $names["deptPass"] = "部门通过";
|
|
|
+ $names["deptReject"] = "部门驳回";
|
|
|
+ $names["deptWait"] = "部门待审";
|
|
|
$list = VerifyApi::getExportDatas($process, $params);
|
|
|
if ($process == 4 && in_array($company["code"], ["super", "rsj"])) {
|
|
|
$fields[] = "verifyDepts";
|
|
|
- $verifyDeptsColumn = getExcelColumnByIndex(count($fields) - 1);
|
|
|
+ $fields[] = "deptPass";
|
|
|
+ $fields[] = "deptReject";
|
|
|
+ $fields[] = "deptWait";
|
|
|
+ $verifyDeptsColumn = getExcelColumnByIndex(count($fields) - 4);
|
|
|
$setting["font"][] = [sprintf("%s%d:%s%d", $verifyDeptsColumn, 2, $verifyDeptsColumn, count($list) + 1), 8, "宋体"];
|
|
|
$setting["width"][] = [$verifyDeptsColumn, 30];
|
|
|
}
|
|
@@ -1787,9 +1793,20 @@ class Talent extends AdminController {
|
|
|
$data = [];
|
|
|
for ($n = 0; $n < count($fields); $n++) {
|
|
|
$data[] = $list[$i][$fields[$n]];
|
|
|
+ if ($fields[$n] == "deptPass" && $list[$i][$fields[$n]] > 0) {
|
|
|
+ $setting["color"][] = [sprintf("%s%d", getExcelColumnByIndex($n), $i + 2), "15dd0f"];
|
|
|
+ }
|
|
|
+ if ($fields[$n] == "deptReject" && $list[$i][$fields[$n]] > 0) {
|
|
|
+ $setting["color"][] = [sprintf("%s%d", getExcelColumnByIndex($n), $i + 2), "ff0000"];
|
|
|
+ }
|
|
|
+ if ($fields[$n] == "deptWait" && $list[$i][$fields[$n]] > 0) {
|
|
|
+ $setting["color"][] = [sprintf("%s%d", getExcelColumnByIndex($n), $i + 2), "fdcb54"];
|
|
|
+ }
|
|
|
}
|
|
|
$datas[] = $data;
|
|
|
}
|
|
|
+ $setting["freeze"] = "A2";
|
|
|
+ $setting["filter"] = sprintf("A1:%s1", getExcelColumnByIndex(count($columns) - 1));
|
|
|
if ($datas) {
|
|
|
export($columns, $datas, "人才审核列表导出", $setting);
|
|
|
exit();
|