{isImage ? (
-
+
) : (
window.open(item)}>{item}
)}
diff --git a/src/enumerate/constant/index.js b/src/enumerate/constant/index.js
index adc1d11..74d8704 100644
--- a/src/enumerate/constant/index.js
+++ b/src/enumerate/constant/index.js
@@ -482,34 +482,4 @@ export const NATIONAL_COUNTIES = (() => {
return result;
})();
-/** 专业学科 */
-export const DISCIPLINE_OPTIONS = [
- { label: "安全", value: "SAFETY" },
- { label: "机械", value: "MECHANICAL" },
- { label: "电气", value: "ELECTRICAL" },
- { label: "采矿", value: "MINING" },
- { label: "通风", value: "VENTILATION" },
- { label: "矿建", value: "MINE_CONSTRUCTION" },
- { label: "地质", value: "GEOLOGY" },
- { label: "水工结构", value: "HYDRAULIC_STRUCTURE" },
- { label: "采油", value: "OIL_PRODUCTION" },
- { label: "储运", value: "STORAGE_AND_TRANSPORT" },
- { label: "油气储运", value: "OIL_GAS_STORAGE_TRANSPORT" },
- { label: "工艺设备与控制", value: "PROCESS_EQUIPMENT_CONTROL" },
- { label: "自动化(仪表)", value: "AUTOMATION_INSTRUMENT" },
- { label: "防腐", value: "ANTICORROSION" },
- { label: "化工工艺", value: "CHEMICAL_PROCESS" },
- { label: "化工机械", value: "CHEMICAL_MECHANICAL" },
- { label: "自动化", value: "AUTOMATION" },
- { label: "火炸药", value: "EXPLOSIVES" },
- { label: "爆炸技术", value: "EXPLOSION_TECHNOLOGY" },
- { label: "冶金", value: "METALLURGY" },
- { label: "有色金属", value: "NONFERROUS_METAL" },
- { label: "设备", value: "EQUIPMENT" },
- { label: "仪表", value: "INSTRUMENT" },
-];
-export const DISCIPLINE_MAP = DISCIPLINE_OPTIONS.reduce((acc, cur) => {
- acc[cur.value] = cur.label;
- return acc;
-}, {});
diff --git a/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js b/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js
index 22a56f4..c6a35c1 100644
--- a/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js
+++ b/src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js
@@ -1,5 +1,6 @@
import { Connect } from "@cqsjjb/jjb-dva-runtime";
import {
+ Alert,
Button,
DatePicker,
Form,
@@ -9,9 +10,12 @@ import {
Row,
Col,
Select,
+ Space,
Table,
TreeSelect,
+ Upload,
} from "antd";
+import { InboxOutlined } from "@ant-design/icons";
import { Get } from "@cqsjjb/jjb-common-lib/http";
import { useEffect, useRef, useState } from "react";
import dayjs from "dayjs";
@@ -29,17 +33,18 @@ import {
REGISTER_ENGINEER_OPTIONS,
TITLE_LEVEL_OPTIONS,
} from "~/enumerate/enterpriseOptions";
-import { DISCIPLINE_MAP } from "~/enumerate/constant";
import { getBirthDateFromIdCard } from "~/utils";
import { idCardRule, mobileRule } from "~/utils/validators";
import AttachmentUpload from "~/components/AttachmentUpload";
import StaffViewModal from "~/components/StaffViewModal";
const { router } = tools;
+const API_HOST = window.process?.env?.app?.API_HOST || "";
function PersonnelInfoPage(props) {
const [formModalOpen, setFormModalOpen] = useState(false);
const [viewModalOpen, setViewModalOpen] = useState(false);
+ const [importModalOpen, setImportModalOpen] = useState(false);
const [currentId, setCurrentId] = useState("");
const [searchForm] = Form.useForm();
const [deptOptions, setDeptOptions] = useState([]);
@@ -135,15 +140,18 @@ function PersonnelInfoPage(props) {
}
extra={
-