parent
83a7ecdc42
commit
03cf9d999c
41
README.md
41
README.md
|
|
@ -37,7 +37,7 @@ import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
||||||
|
|
||||||
- 本文档根据当前包内 `.d.ts` 类型声明整理。
|
- 本文档根据当前包内 `.d.ts` 类型声明整理。
|
||||||
- 继承自 `antd`、`@ant-design/pro-components`、`ahooks` 的原生属性不逐项展开,文档会说明继承关系;库自身新增的参数逐项列出。
|
- 继承自 `antd`、`@ant-design/pro-components`、`ahooks` 的原生属性不逐项展开,文档会说明继承关系;库自身新增的参数逐项列出。
|
||||||
- `css`、`json`、除 `formItemRender` 外的枚举仅做简要说明。
|
- `css` 仅做简要说明。
|
||||||
- 参数表中的 `-` 表示源码未设置显式默认值;`undefined` 表示源码显式传入或保留为 `undefined`。
|
- 参数表中的 `-` 表示源码未设置显式默认值;`undefined` 表示源码显式传入或保留为 `undefined`。
|
||||||
|
|
||||||
## 基础样式
|
## 基础样式
|
||||||
|
|
@ -50,14 +50,6 @@ import "zy-react-library/css/common.less";
|
||||||
|
|
||||||
`common.less` 提供组件库通用样式,适合在应用入口统一引入。
|
`common.less` 提供组件库通用样式,适合在应用入口统一引入。
|
||||||
|
|
||||||
## 静态 JSON
|
|
||||||
|
|
||||||
| 文件 | 引入路径 | 简要说明 |
|
|
||||||
| --- | --- | --- |
|
|
||||||
| `area.json` | `zy-react-library/json/area.json` | 行政区域树形数据,供地区级联、地区树选择使用。 |
|
|
||||||
| `industry.json` | `zy-react-library/json/industry.json` | 行业分类树形数据,供行业级联、行业树选择使用。 |
|
|
||||||
| `nation.json` | `zy-react-library/json/nation.json` | 民族数据列表。 |
|
|
||||||
|
|
||||||
## 枚举
|
## 枚举
|
||||||
|
|
||||||
### FORM_ITEM_RENDER_ENUM
|
### FORM_ITEM_RENDER_ENUM
|
||||||
|
|
@ -90,17 +82,6 @@ import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
||||||
| `DIVIDER` | `"divider"` | `antd Divider` | `DividerProps` |
|
| `DIVIDER` | `"divider"` | `antd Divider` | `DividerProps` |
|
||||||
| `FORM_LIST` | `"formList"` | `antd Form.List` | `FormListProps` |
|
| `FORM_LIST` | `"formList"` | `antd Form.List` | `FormListProps` |
|
||||||
|
|
||||||
### 其他枚举
|
|
||||||
|
|
||||||
| 枚举 | 引入路径 | 简要说明 |
|
|
||||||
| --- |------------------------------------| --- |
|
|
||||||
| `DICTIONARY_APP_KEY_ENUM` | `zy-react-library/enum/dictionary` | 字典接口使用的 `appKey` 常量,包含 `DEFAULT`、`GWJ`。 |
|
|
||||||
| `HIDDEN_SOURCE_ENUM` | `zy-react-library/enum/hidden/gwj` | 隐患来源选项列表。 |
|
|
||||||
| `HIDDEN_STATE_ENUM` | `zy-react-library/enum/hidden/gwj` | 隐患状态选项列表。 |
|
|
||||||
| `HIDDEN_RECTIFICATION_TYPE_ENUM` | `zy-react-library/enum/hidden/gwj` | 隐患整改类型选项列表。 |
|
|
||||||
| `UPLOAD_FILE_TYPE_ENUM` | `zy-react-library/enum/uploadFile` | 文件上传类型编码枚举。 |
|
|
||||||
| `UPLOAD_FILE_PATH_ENUM` | `zy-react-library/enum/uploadFile` | 文件上传类型编码到服务端路径标识的映射。 |
|
|
||||||
|
|
||||||
## 表单配置类型
|
## 表单配置类型
|
||||||
|
|
||||||
`FormBuilder` 和 `Search` 共用 `FormOption` 配置。
|
`FormBuilder` 和 `Search` 共用 `FormOption` 配置。
|
||||||
|
|
@ -232,22 +213,22 @@ import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
||||||
| `TooltipPreviewImg` | `files=[]`、`fileUrlKey="filePath"`。 |
|
| `TooltipPreviewImg` | `files=[]`、`fileUrlKey="filePath"`。 |
|
||||||
| `SelectCreate` | `showDelete=true`、`label=""`、`maxCount=1`,内部固定 `mode="tags"`。 |
|
| `SelectCreate` | `showDelete=true`、`label=""`、`maxCount=1`,内部固定 `mode="tags"`。 |
|
||||||
| `BasicSelect` | `placeholder=""`、`data=[]`、`nameKey="name"`、`idKey="id"`,内置 `showSearch=true`、`allowClear=true`、`optionFilterProp="children"`。 |
|
| `BasicSelect` | `placeholder=""`、`data=[]`、`nameKey="name"`、`idKey="id"`,内置 `showSearch=true`、`allowClear=true`、`optionFilterProp="children"`。 |
|
||||||
| `DictionarySelect` | `appKey=DICTIONARY_APP_KEY_ENUM.DEFAULT`、`dictValue=""`、`nameKey="dictLabel"`、`idKey="dictValue"`。 |
|
| `DictionarySelect` | `appKey="0bb989ecada5470c87635018ece9f327"`、`dictValue=""`、`nameKey="dictLabel"`、`idKey="dictValue"`。 |
|
||||||
| `PersonnelSelect` | `params={}`、`placeholder="人员"`、`isNeedCorpInfoId=false`、`isNeedDepartmentId=true`、`isNeedPostId=false`、`extraParams={}`,内部默认额外参数 `{ noMain: "", eqEmploymentFlag: 1 }`。 |
|
| `PersonnelSelect` | `params={}`、`placeholder="人员"`、`isNeedCorpInfoId=false`、`isNeedDepartmentId=true`、`isNeedPostId=false`、`extraParams={}`,内部默认额外参数 `{ noMain: "", eqEmploymentFlag: 1 }`。 |
|
||||||
| `BasicSelectTree` | `getNodePathsIsIncludeOneself=true`、`placeholder=""`、`treeData=[]`、`nameKey="name"`、`idKey="id"`、`childrenKey="children"`、`onlyLastLevel=false`,内置 `showSearch=true`、`allowClear=true`、`style={ width: "100%" }`。 |
|
| `BasicSelectTree` | `getNodePathsIsIncludeOneself=true`、`placeholder=""`、`treeData=[]`、`nameKey="name"`、`idKey="id"`、`childrenKey="children"`、`onlyLastLevel=false`,内置 `showSearch=true`、`allowClear=true`、`style={ width: "100%" }`。 |
|
||||||
| `AreaSelectTree` | 内部使用 `area.json`,默认 `nameKey="label"`、`idKey="value"`。 |
|
| `AreaSelectTree` | 内部使用 `area.json`,默认 `nameKey="label"`、`idKey="value"`。 |
|
||||||
| `IndustrySelectTree` | 内部使用 `industry.json`,默认 `nameKey="dict_label"`、`idKey="dict_value"`、`childrenKey="childrenList"`。 |
|
| `IndustrySelectTree` | 内部使用 `industry.json`,默认 `nameKey="dict_label"`、`idKey="dict_value"`、`childrenKey="childrenList"`。 |
|
||||||
| `DepartmentSelectTree` | `params={}`、`placeholder="部门"`、`isNeedCorpInfoId=false`、`isNeedParentId=false`、`searchType="current"`,内部固定 `childrenKey="childrenList"`。 |
|
| `DepartmentSelectTree` | `params={}`、`placeholder="部门"`、`isNeedCorpInfoId=false`、`isNeedParentId=false`、`searchType="current"`,内部固定 `childrenKey="childrenList"`。 |
|
||||||
| `DictionarySelectTree` | `appKey=DICTIONARY_APP_KEY_ENUM.DEFAULT`、`dictValue=""`、`nameKey="dictLabel"`、`idKey="dictValue"`。 |
|
| `DictionarySelectTree` | `appKey="0bb989ecada5470c87635018ece9f327"`、`dictValue=""`、`nameKey="dictLabel"`、`idKey="dictValue"`。 |
|
||||||
| `HiddenLevelSelectTree` | `isShowNeglect=true`、`isShowLarger=true`、`isShowMajor=true`,内部固定 `placeholder="隐患级别"`、`onlyLastLevel=true`、`nameKey="dictLabel"`、`idKey="dictValue"`。 |
|
| `HiddenLevelSelectTree` | `isShowNeglect=true`、`isShowLarger=true`、`isShowMajor=true`,内部固定 `placeholder="隐患级别"`、`onlyLastLevel=true`、`nameKey="dictLabel"`、`idKey="dictValue"`。 |
|
||||||
| `HiddenPartSelectTree` | `params={}`、`isNeedCorpInfoId=false`,内部固定 `placeholder="隐患部位"`、`nameKey="hiddenregion"`、`idKey="hiddenregionId"`。 |
|
| `HiddenPartSelectTree` | `params={}`、`isNeedCorpInfoId=false`,内部固定 `placeholder="隐患部位"`、`nameKey="hiddenregion"`、`idKey="hiddenregionId"`。 |
|
||||||
| `BasicCascader` | `getNodePathsIsIncludeOneself=true`、`placeholder=""`、`data=[]`、`nameKey="name"`、`idKey="id"`、`childrenKey="children"`。 |
|
| `BasicCascader` | `getNodePathsIsIncludeOneself=true`、`placeholder=""`、`data=[]`、`nameKey="name"`、`idKey="id"`、`childrenKey="children"`。 |
|
||||||
| `AreaCascader` | 内部使用 `area.json`,默认 `nameKey="label"`、`idKey="value"`。 |
|
| `AreaCascader` | 内部使用 `area.json`,默认 `nameKey="label"`、`idKey="value"`。 |
|
||||||
| `IndustryCascader` | 内部使用 `industry.json`,默认 `nameKey="dict_label"`、`idKey="dict_value"`、`childrenKey="childrenList"`。 |
|
| `IndustryCascader` | 内部使用 `industry.json`,默认 `nameKey="dict_label"`、`idKey="dict_value"`、`childrenKey="childrenList"`。 |
|
||||||
| `DictionaryCascader` | `appKey=DICTIONARY_APP_KEY_ENUM.DEFAULT`、`dictValue=""`、`nameKey="dictLabel"`、`idKey="dictValue"`。 |
|
| `DictionaryCascader` | `appKey="0bb989ecada5470c87635018ece9f327"`、`dictValue=""`、`nameKey="dictLabel"`、`idKey="dictValue"`。 |
|
||||||
| `BasicLeftTree` | `getNodePathsIsIncludeOneself=true`、`treeData=[]`、`nameKey="name"`、`idKey="id"`、`childrenKey="children"`,搜索框固定宽度容器 `300`。 |
|
| `BasicLeftTree` | `getNodePathsIsIncludeOneself=true`、`treeData=[]`、`nameKey="name"`、`idKey="id"`、`childrenKey="children"`,搜索框固定宽度容器 `300`。 |
|
||||||
| `AreaLeftTree` | 内部使用 `area.json`,默认 `nameKey="label"`、`idKey="value"`。 |
|
| `AreaLeftTree` | 内部使用 `area.json`,默认 `nameKey="label"`、`idKey="value"`。 |
|
||||||
| `DictionaryLeftTree` | `appKey=DICTIONARY_APP_KEY_ENUM.DEFAULT`、`dictValue=""`、`nameKey="dictLabel"`、`idKey="dictValue"`。 |
|
| `DictionaryLeftTree` | `appKey="0bb989ecada5470c87635018ece9f327"`、`dictValue=""`、`nameKey="dictLabel"`、`idKey="dictValue"`。 |
|
||||||
| `DepartmentLeftTree` | `params={}`、`searchType="current"`,内部固定 `childrenKey="childrenList"`。 |
|
| `DepartmentLeftTree` | `params={}`、`searchType="current"`,内部固定 `childrenKey="childrenList"`。 |
|
||||||
| `Map` | `longitudeProps="longitude"`、`latitudeProps="latitude"`、`required=true`、`area=""`、`showArea=false`、`disable=false`、`type="baidu"`。 |
|
| `Map` | `longitudeProps="longitude"`、`latitudeProps="latitude"`、`required=true`、`area=""`、`showArea=false`、`disable=false`、`type="baidu"`。 |
|
||||||
| `MapSelector` | `area=""`、`showArea=false`、`disable=false`、`type="baidu"`;弹窗宽度 `1000`、`maskClosable=false`、地图容器高度 `500px`。 |
|
| `MapSelector` | `area=""`、`showArea=false`、`disable=false`、`type="baidu"`;弹窗宽度 `1000`、`maskClosable=false`、地图容器高度 `500px`。 |
|
||||||
|
|
@ -832,7 +813,7 @@ import DictionarySelect from "zy-react-library/components/Select/Dictionary";
|
||||||
|
|
||||||
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- |
|
||||||
| `appKey` | `string` | 否 | `DICTIONARY_APP_KEY_ENUM.DEFAULT` | 字典应用 key。 |
|
| `appKey` | `string` | 否 | `"0bb989ecada5470c87635018ece9f327"` | 字典应用 key。 |
|
||||||
| `dictValue` | `string` | 是 | `""` | 字典类型值;为空会输出缺少参数错误。 |
|
| `dictValue` | `string` | 是 | `""` | 字典类型值;为空会输出缺少参数错误。 |
|
||||||
| `nameKey` | `string` | 否 | `"dictLabel"` | 标签字段名。 |
|
| `nameKey` | `string` | 否 | `"dictLabel"` | 标签字段名。 |
|
||||||
| `idKey` | `string` | 否 | `"dictValue"` | 值字段名。 |
|
| `idKey` | `string` | 否 | `"dictValue"` | 值字段名。 |
|
||||||
|
|
@ -970,7 +951,7 @@ import DictionarySelectTree from "zy-react-library/components/SelectTree/Diction
|
||||||
|
|
||||||
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- |
|
||||||
| `appKey` | `string` | 否 | `DICTIONARY_APP_KEY_ENUM.DEFAULT` | 字典应用 key。 |
|
| `appKey` | `string` | 否 | `"0bb989ecada5470c87635018ece9f327"` | 字典应用 key。 |
|
||||||
| `dictValue` | `string` | 是 | - | 字典类型值。 |
|
| `dictValue` | `string` | 是 | - | 字典类型值。 |
|
||||||
| `nameKey` | `string` | 否 | 节点标签字段名。 |
|
| `nameKey` | `string` | 否 | 节点标签字段名。 |
|
||||||
| `idKey` | `string` | 否 | 节点值字段名。 |
|
| `idKey` | `string` | 否 | 节点值字段名。 |
|
||||||
|
|
@ -1118,7 +1099,7 @@ import DictionaryCascader from "zy-react-library/components/Cascader/Dictionary"
|
||||||
|
|
||||||
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- |
|
||||||
| `appKey` | `string` | 否 | `DICTIONARY_APP_KEY_ENUM.DEFAULT` | 字典应用 key。 |
|
| `appKey` | `string` | 否 | `"0bb989ecada5470c87635018ece9f327"` | 字典应用 key。 |
|
||||||
| `dictValue` | `string` | 是 | - | 字典类型值。 |
|
| `dictValue` | `string` | 是 | - | 字典类型值。 |
|
||||||
| `nameKey` | `string` | 否 | 节点标签字段名。 |
|
| `nameKey` | `string` | 否 | 节点标签字段名。 |
|
||||||
| `idKey` | `string` | 否 | 节点值字段名。 |
|
| `idKey` | `string` | 否 | 节点值字段名。 |
|
||||||
|
|
@ -1177,7 +1158,7 @@ import DictionaryLeftTree from "zy-react-library/components/LeftTree/Dictionary"
|
||||||
|
|
||||||
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- |
|
||||||
| `appKey` | `string` | 否 | `DICTIONARY_APP_KEY_ENUM.DEFAULT` | 字典应用 key。 |
|
| `appKey` | `string` | 否 | `"0bb989ecada5470c87635018ece9f327"` | 字典应用 key。 |
|
||||||
| `dictValue` | `string` | 是 | `""` | 字典类型值;为空会输出缺少参数错误。 |
|
| `dictValue` | `string` | 是 | `""` | 字典类型值;为空会输出缺少参数错误。 |
|
||||||
| `nameKey` | `string` | 否 | `"dictLabel"` | 节点标题字段名。 |
|
| `nameKey` | `string` | 否 | `"dictLabel"` | 节点标题字段名。 |
|
||||||
| `idKey` | `string` | 否 | `"dictValue"` | 节点 key 字段名。 |
|
| `idKey` | `string` | 否 | `"dictValue"` | 节点 key 字段名。 |
|
||||||
|
|
@ -1238,7 +1219,7 @@ import DepartmentLeftTree from "zy-react-library/components/LeftTree/Department/
|
||||||
| `useImportFile` | `returnType="object"`;执行导入时 `options.files=[]`、`options.params={}`。 |
|
| `useImportFile` | `returnType="object"`;执行导入时 `options.files=[]`、`options.params={}`。 |
|
||||||
| `useDownloadBlob` | `returnType="object"`;执行下载时 `options.name=""`、`options.type=""`、`options.params={}`,未传 `type` 时使用 `application/vnd.ms-excel`,未传 `name` 时使用当前时间 `YYYY-MM-DD HH:mm:ss`。 |
|
| `useDownloadBlob` | `returnType="object"`;执行下载时 `options.name=""`、`options.type=""`、`options.params={}`,未传 `type` 时使用 `application/vnd.ms-excel`,未传 `name` 时使用当前时间 `YYYY-MM-DD HH:mm:ss`。 |
|
||||||
| `useDownloadFile` | `returnType="object"`;未传 `name` 时从 `url` 中截取文件名。 |
|
| `useDownloadFile` | `returnType="object"`;未传 `name` 时从 `url` 中截取文件名。 |
|
||||||
| `useDictionary` | `returnType="object"`;执行获取时 `appKey=DICTIONARY_APP_KEY_ENUM.DEFAULT`。 |
|
| `useDictionary` | `returnType="object"`;执行获取时 `appKey="0bb989ecada5470c87635018ece9f327"`。 |
|
||||||
| `useGetUserInfo` | `returnType="object"`。 |
|
| `useGetUserInfo` | `returnType="object"`。 |
|
||||||
| `useIdle` | `timeout=10000`、`events=["mousemove","mousedown","resize","keydown","touchstart","wheel"]`。 |
|
| `useIdle` | `timeout=10000`、`events=["mousemove","mousedown","resize","keydown","touchstart","wheel"]`。 |
|
||||||
| `useIsExistenceDuplicateSelection` | `message="存在重复项,请勿重复选择"`。 |
|
| `useIsExistenceDuplicateSelection` | `message="存在重复项,请勿重复选择"`。 |
|
||||||
|
|
@ -1484,7 +1465,7 @@ useDictionary("object"): { loading: boolean; getDictionary: getDictionaryFunctio
|
||||||
|
|
||||||
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- |
|
||||||
| `appKey` | `string` | 否 | `DICTIONARY_APP_KEY_ENUM.DEFAULT` | 字典应用 key。 |
|
| `appKey` | `string` | 否 | `"0bb989ecada5470c87635018ece9f327"` | 字典应用 key。 |
|
||||||
| `dictValue` | `string` | 是 | - | 字典类型值。 |
|
| `dictValue` | `string` | 是 | - | 字典类型值。 |
|
||||||
|
|
||||||
返回 `Promise<DictionaryItem[]>`。
|
返回 `Promise<DictionaryItem[]>`。
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
"css",
|
"css",
|
||||||
"enum",
|
"enum",
|
||||||
"hooks",
|
"hooks",
|
||||||
"json",
|
|
||||||
"regular",
|
"regular",
|
||||||
"utils",
|
"utils",
|
||||||
"README.md"
|
"README.md"
|
||||||
|
|
@ -63,9 +62,10 @@
|
||||||
"eslint-plugin-react-hooks": "^7.0.0",
|
"eslint-plugin-react-hooks": "^7.0.0",
|
||||||
"eslint-plugin-react-refresh": "^0.4.23",
|
"eslint-plugin-react-refresh": "^0.4.23",
|
||||||
"glob": "^13.0.0",
|
"glob": "^13.0.0",
|
||||||
"rollup": "^4.54.0",
|
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"typescript": "^5.9.3"
|
"rollup": "^4.54.0",
|
||||||
|
"typescript": "^5.9.3",
|
||||||
|
"zy-react-data": "^1.0.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@ahooksjs/use-url-state": ">=3.5.1 <4",
|
"@ahooksjs/use-url-state": ">=3.5.1 <4",
|
||||||
|
|
@ -73,6 +73,7 @@
|
||||||
"@ant-design/pro-components": ">=3.1.14-6 <4",
|
"@ant-design/pro-components": ">=3.1.14-6 <4",
|
||||||
"ahooks": ">=3.9.5 <4",
|
"ahooks": ">=3.9.5 <4",
|
||||||
"antd": ">=6.4.4 <7",
|
"antd": ">=6.4.4 <7",
|
||||||
"react": ">=18.3.1 <19"
|
"react": ">=18.3.1 <19",
|
||||||
|
"zy-react-data": ">=1.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import Area from "../../../json/area.json";
|
import Area from "zy-react-data/json/area.json";
|
||||||
import BasicCascader from "../Basic";
|
import BasicCascader from "../Basic";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { DICTIONARY_APP_KEY_ENUM } from "../../../enum/dictionary";
|
import { DICTIONARY_APP_KEY_ENUM } from "zy-react-data/enum/dictionary";
|
||||||
import { executeWithCache } from "../../../utils";
|
import { executeWithCache } from "../../../utils";
|
||||||
import BasicCascader from "../Basic";
|
import BasicCascader from "../Basic";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import Industry from "../../../json/industry.json";
|
import Industry from "zy-react-data/json/industry.json";
|
||||||
import BasicCascader from "../Basic";
|
import BasicCascader from "../Basic";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
||||||
import { Button, Descriptions, Divider, Space, Spin } from "antd";
|
import { Button, Descriptions, Divider, Space, Spin } from "antd";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { HIDDEN_RECTIFICATION_TYPE_ENUM, HIDDEN_SOURCE_ENUM, HIDDEN_STATE_ENUM } from "../../../enum/hidden/gwj";
|
import { HIDDEN_RECTIFICATION_TYPE_ENUM, HIDDEN_SOURCE_ENUM, HIDDEN_STATE_ENUM } from "zy-react-data/enum/hidden/gwj";
|
||||||
import { UPLOAD_FILE_TYPE_ENUM } from "../../../enum/uploadFile";
|
import { UPLOAD_FILE_TYPE_ENUM } from "zy-react-data/enum/uploadFile";
|
||||||
import useDownloadFile from "../../../hooks/useDownloadFile";
|
import useDownloadFile from "../../../hooks/useDownloadFile";
|
||||||
import useGetFile from "../../../hooks/useGetFile";
|
import useGetFile from "../../../hooks/useGetFile";
|
||||||
import useGetUrlQuery from "../../../hooks/useGetUrlQuery";
|
import useGetUrlQuery from "../../../hooks/useGetUrlQuery";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import Area from "../../../json/area.json";
|
import Area from "zy-react-data/json/area.json";
|
||||||
import BasicLeftTree from "../Basic";
|
import BasicLeftTree from "../Basic";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { DICTIONARY_APP_KEY_ENUM } from "../../../enum/dictionary";
|
import { DICTIONARY_APP_KEY_ENUM } from "zy-react-data/enum/dictionary";
|
||||||
import { executeWithCache } from "../../../utils";
|
import { executeWithCache } from "../../../utils";
|
||||||
import BasicLeftTree from "../Basic";
|
import BasicLeftTree from "../Basic";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { DICTIONARY_APP_KEY_ENUM } from "../../../enum/dictionary";
|
import { DICTIONARY_APP_KEY_ENUM } from "zy-react-data/enum/dictionary";
|
||||||
import { executeWithCache } from "../../../utils";
|
import { executeWithCache } from "../../../utils";
|
||||||
import BasicSelect from "../Basic";
|
import BasicSelect from "../Basic";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import Area from "../../../json/area.json";
|
import Area from "zy-react-data/json/area.json";
|
||||||
import BasicSelectTree from "../Basic";
|
import BasicSelectTree from "../Basic";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { DICTIONARY_APP_KEY_ENUM } from "../../../enum/dictionary";
|
import { DICTIONARY_APP_KEY_ENUM } from "zy-react-data/enum/dictionary";
|
||||||
import { executeWithCache } from "../../../utils";
|
import { executeWithCache } from "../../../utils";
|
||||||
import BasicSelectTree from "../Basic";
|
import BasicSelectTree from "../Basic";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { DICTIONARY_APP_KEY_ENUM } from "../../../../enum/dictionary";
|
import { DICTIONARY_APP_KEY_ENUM } from "zy-react-data/enum/dictionary";
|
||||||
import BasicSelectTree from "../../Basic";
|
import BasicSelectTree from "../../Basic";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import Industry from "../../../json/industry.json";
|
import Industry from "zy-react-data/json/industry.json";
|
||||||
import BasicSelectTree from "../Basic";
|
import BasicSelectTree from "../Basic";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* 数据字典 appKey 枚举
|
|
||||||
*/
|
|
||||||
export declare const DICTIONARY_APP_KEY_ENUM: {
|
|
||||||
DEFAULT: "0bb989ecada5470c87635018ece9f327";
|
|
||||||
GWJ: "0bb989ecada5470c87635018ece9f327";
|
|
||||||
};
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* 数据字典 appKey 枚举
|
|
||||||
*/
|
|
||||||
export const DICTIONARY_APP_KEY_ENUM = {
|
|
||||||
DEFAULT: "0bb989ecada5470c87635018ece9f327",
|
|
||||||
GWJ: "0bb989ecada5470c87635018ece9f327",
|
|
||||||
};
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
// 隐患来源
|
|
||||||
export declare const HIDDEN_SOURCE_ENUM: [
|
|
||||||
{ bianma: "1"; name: "隐患快报" },
|
|
||||||
{ bianma: "2"; name: "清单排查" },
|
|
||||||
{ bianma: "4"; name: "安全环保检查(监管端)" },
|
|
||||||
{ bianma: "5"; name: "安全环保检查(企业端)" },
|
|
||||||
{ bianma: "6"; name: "消防检查" },
|
|
||||||
];
|
|
||||||
|
|
||||||
// 隐患状态
|
|
||||||
export declare const HIDDEN_STATE_ENUM: [
|
|
||||||
{ bianma: "100"; name: "待确认" },
|
|
||||||
{ bianma: "97"; name: "已过期" },
|
|
||||||
{ bianma: "200"; name: "未整改" },
|
|
||||||
{ bianma: "300"; name: "已整改" },
|
|
||||||
{ bianma: "301"; name: "已验收" },
|
|
||||||
{ bianma: "101"; name: "已忽略" },
|
|
||||||
{ bianma: "202"; name: "待处理特殊处置" },
|
|
||||||
{ bianma: "400"; name: "已处理特殊处置" },
|
|
||||||
{ bianma: "201"; name: "确认打回" },
|
|
||||||
{ bianma: "302"; name: "验收打回" },
|
|
||||||
{ bianma: "99"; name: "强制关闭(人员变动)" },
|
|
||||||
{ bianma: "98"; name: "安全环保检查/清单排查暂存" },
|
|
||||||
{ bianma: "102"; name: "安全环保检查,隐患待指派" },
|
|
||||||
];
|
|
||||||
|
|
||||||
// 隐患整改类型
|
|
||||||
export declare const HIDDEN_RECTIFICATION_TYPE_ENUM: [
|
|
||||||
{ bianma: 1; name: "立即整改" },
|
|
||||||
{ bianma: 2; name: "限期整改" },
|
|
||||||
];
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
// 隐患来源
|
|
||||||
export const HIDDEN_SOURCE_ENUM = [
|
|
||||||
{ bianma: "1", name: "隐患快报" },
|
|
||||||
{ bianma: "2", name: "清单排查" },
|
|
||||||
{ bianma: "4", name: "安全环保检查(监管端)" },
|
|
||||||
{ bianma: "5", name: "安全环保检查(企业端)" },
|
|
||||||
{ bianma: "6", name: "消防检查" },
|
|
||||||
{ bianma: "7", name: "视频巡屏" },
|
|
||||||
];
|
|
||||||
|
|
||||||
// 隐患状态
|
|
||||||
export const HIDDEN_STATE_ENUM = [
|
|
||||||
{ bianma: "100", name: "待确认" },
|
|
||||||
{ bianma: "97", name: "已过期" },
|
|
||||||
{ bianma: "200", name: "未整改" },
|
|
||||||
{ bianma: "300", name: "已整改" },
|
|
||||||
{ bianma: "301", name: "已验收" },
|
|
||||||
{ bianma: "101", name: "已忽略" },
|
|
||||||
{ bianma: "202", name: "待处理特殊处置" },
|
|
||||||
{ bianma: "400", name: "已处理特殊处置" },
|
|
||||||
{ bianma: "201", name: "确认打回" },
|
|
||||||
{ bianma: "302", name: "验收打回" },
|
|
||||||
{ bianma: "99", name: "强制关闭(人员变动)" },
|
|
||||||
{ bianma: "98", name: "安全环保检查/清单排查暂存" },
|
|
||||||
{ bianma: "102", name: "安全环保检查,隐患待指派" },
|
|
||||||
];
|
|
||||||
|
|
||||||
// 隐患整改类型
|
|
||||||
export const HIDDEN_RECTIFICATION_TYPE_ENUM = [
|
|
||||||
{ bianma: 1, name: "立即整改" },
|
|
||||||
{ bianma: 2, name: "限期整改" },
|
|
||||||
];
|
|
||||||
|
|
@ -1,303 +0,0 @@
|
||||||
/**
|
|
||||||
* 文件上传类型枚举
|
|
||||||
* 1 - 1000 港务局使用
|
|
||||||
* 1000 - 2000 安全岛使用
|
|
||||||
*/
|
|
||||||
export declare const UPLOAD_FILE_TYPE_ENUM: {
|
|
||||||
10: 10; // labor_contract_image - 劳动合同图片
|
|
||||||
11: 11; // commercial_insurance_image - 商业保险图片
|
|
||||||
12: 12; // certificate_information - 证书信息
|
|
||||||
13: 13; // user_avatar - 用户头像
|
|
||||||
14: 14; // id_card_photo - 身份证照片
|
|
||||||
15: 15; // social_security_card_photo - 社保卡照片
|
|
||||||
16: 16; // work_related_injury_insurance_certificate - 工伤保险凭证
|
|
||||||
19: 19; // three_level_safety_education_training - 三级教育培训
|
|
||||||
601: 601; // gate_access_vehicle_license_photo - 门口门禁车辆行驶证照片
|
|
||||||
602: 602; // gate_access_vehicle_photo - 门口门禁车辆车辆照片
|
|
||||||
606: 606; // gate_access_vehicle_applicant_signature - 门口门禁车辆申请人签字
|
|
||||||
611: 611; // gate_access_personnel_applicant_signature - 门口门禁人员申请人签字
|
|
||||||
607: 607; // gate_access_vehicle_violation - 门口门禁车辆违规照片
|
|
||||||
608: 608; // gate_access_face_photo - 门口门禁人脸照片
|
|
||||||
609: 609; // enclosed_area_personnel_applicant_signature - 封闭区域人员申请人签字
|
|
||||||
610: 610; // enclosed_area_vehicle_applicant_signature - 封闭区域车辆申请人签字
|
|
||||||
603: 603; // gate_access_vehicle_attachment - 门口门禁车辆附件
|
|
||||||
604: 604; // emission_standard_certificate - 排放标准证明
|
|
||||||
605: 605; // motor_vehicle_registration_certificate_green_book - 机动车登记证书(绿本)
|
|
||||||
3: 3; // hidden_danger_photo - 隐患照片
|
|
||||||
4: 4; // hidden_danger_rectification_photo - 隐患整改照片
|
|
||||||
5: 5; // hidden_danger_verification_photo - 隐患验证照片
|
|
||||||
6: 6; // certificate_photo - 证书照片
|
|
||||||
7: 7; // confined_space_plan - 受限空间平面图
|
|
||||||
8: 8; // hidden_danger_rectification_plan - 隐患整改方案图
|
|
||||||
9: 9; // confined_space_confirmation_signature - 有限空间确认人签字
|
|
||||||
17: 17; // special_equipment_inspection_photo - 特种设备巡检照片
|
|
||||||
18: 18; // personnel_certificate - 人员证书
|
|
||||||
20: 20; // major_hazard_source_alarm_before_handling_photo - 重大危险源报警处置前照片
|
|
||||||
21: 21; // major_hazard_source_alarm_after_handling_photo - 重大危险源报警处置后照片
|
|
||||||
22: 22; // smart_access_control_external_vehicle_driver_license_photo - 智能门禁外来车辆驾驶证照片
|
|
||||||
23: 23; // smart_access_control_external_vehicle_registration_photo - 智能门禁外来车辆行驶证照片
|
|
||||||
50: 50; // safety_and_environmental_inspection_final_acceptance_image - 安全环保检查终验图片
|
|
||||||
101: 101; // hidden_danger_extension_temporary_measures_attachment - 隐患延期临时措施附件
|
|
||||||
102: 102; // hidden_danger_video - 隐患视频
|
|
||||||
105: 105; // blind_plate_position_map - 盲板位置图
|
|
||||||
106: 106; // temporary_disposal_information - 临时处置信息
|
|
||||||
107: 107; // rectification_suggestions_and_plan - 整改建议及方案
|
|
||||||
108: 108; // major_hidden_danger_investigation_report - 重大隐患上传隐患调查报告
|
|
||||||
109: 109; // major_hidden_danger_safety_committee_or_party_committee_resolution_record - 重大隐患安委会或党委会决议记录
|
|
||||||
110: 110; // significant_hidden_danger_rectification_temporary_disposal_measures - 较大隐患整改-临时处置措施
|
|
||||||
111: 111; // significant_hidden_danger_rectification_hidden_danger_rectification_process_record - 较大隐患整改-隐患整改过程记录
|
|
||||||
112: 112; // supplement_major_hidden_danger_information - 补充重大隐患信息
|
|
||||||
113: 113; // safety_committee_office_meeting_record - 安委会办公室会议记录
|
|
||||||
114: 114; // alarm_photo - 报警图片
|
|
||||||
115: 115; // fire_equipment_type_qualification_photo - 消防器材类型合格表中照片
|
|
||||||
116: 116; // hot_work_personnel_photo - 动火人图片
|
|
||||||
117: 117; // safety_pledge_signature - 安全承诺书签名
|
|
||||||
118: 118; // hot_work_unit_responsible_person_confirmation_signature - 动火单位负责人确认签字
|
|
||||||
119: 119; // on_site_jurisdiction_unit_responsible_person_signature - 现场管辖单位负责人签字
|
|
||||||
120: 120; // hot_work_permit_issuing_unit_signature - 动火许可证签发单位签字
|
|
||||||
121: 121; // hot_work_permit_signature - 动火许可证签字
|
|
||||||
122: 122; // pre_hot_work_jurisdiction_unit_confirmation_signature - 动火前管辖单位确认签字
|
|
||||||
123: 123; // on_site_responsible_person_confirmation_signature - 现场负责人确实签字
|
|
||||||
124: 124; // post_hot_work_site_jurisdiction_unit_confirmation - 动火后现场管辖单位确认
|
|
||||||
125: 125; // delayed_fire_monitoring_pictures - 延迟监火图片
|
|
||||||
126: 126; // safety_and_environmental_inspection_initiation_signature - 安全环保检查发起签字(弃用)
|
|
||||||
127: 127; // inspector_confirmation_signature - 检查人确认签字(弃用)
|
|
||||||
128: 128; // inspected_person_confirmation_signature - 被检查人确认签字(弃用)
|
|
||||||
129: 129; // safety_and_environmental_inspection_appeal_signature - 安全环保检查申辩签字(弃用)
|
|
||||||
130: 130; // hk_safety_committee_office_director_safety_director_issuance - (港股安委办主任)安全总监签发
|
|
||||||
131: 131; // hot_work_contracting_unit_signature - 动火发包单位签字
|
|
||||||
132: 132; // safety_director_approval - 安全总监审批
|
|
||||||
133: 133; // branch_safety_director_approval - 分公司安全总监审批
|
|
||||||
134: 134; // project_authority_review_signature - 项目主管部门负责人审核
|
|
||||||
135: 135; // branch_manager_approval_signature - 分公司主要负责人签批
|
|
||||||
136: 136; // accident_incident - 事故/事件
|
|
||||||
137: 137; // accident_incident - 事故/事件
|
|
||||||
138: 138; // hidden_disposal_plan - 隐患处置方案
|
|
||||||
139: 139; // safety_environmental_inspection_inspection_signature - 安全环保检查-检查签字
|
|
||||||
140: 140; // safety_environmental_inspection_inspection_situation - 安全环保检查-检查情况
|
|
||||||
141: 141; // safety_environmental_inspection_inspector_signature - 安全环保检查-检查人签字
|
|
||||||
142: 142; // safety_environmental_inspection_inspected_signature - 安全环保检查-被检查人签字
|
|
||||||
143: 143; // safety_environmental_inspection_inspected_file - 安全环保检查-被检查文件
|
|
||||||
144: 144; // safety_environmental_inspection_defense_signature - 安全环保检查-申辩签字
|
|
||||||
146: 146; // safety_environmental_inspection_acceptance - 安全环保检查-验收
|
|
||||||
145: 145; // qualified_list_inspection - 清单检查合格
|
|
||||||
147: 147; // hidden_qualified_listInspection_signature - 隐患清单排查签字
|
|
||||||
148: 148; // special_qualification - 相关方-专项资质
|
|
||||||
149: 149; // safety_qualification - 相关方-安全资质(弃用,全部改成使用148)
|
|
||||||
150: 150; // promise_bookmark_photo - 安全承诺签字
|
|
||||||
151: 151; // project_related_materials - 相关方-项目相关资料
|
|
||||||
152: 152; // legal_and_regulatory_database - 法律法规库
|
|
||||||
153: 153; // regulations_resource_library - 安全生产操作规程资源库
|
|
||||||
154: 154; // responsibility_based_resource_library - 安全生产责任制资源库
|
|
||||||
155: 155; // institutional_resource_library - 安全生产管理制度资源库
|
|
||||||
156: 156; // security_management_agreement - 相关方-安全管理协议
|
|
||||||
157: 157; // supervision_personnel_vehicle - 监管人员车辆
|
|
||||||
158: 158; // supervision_personnel_vehicle_license - 监管人员车辆行驶证
|
|
||||||
159: 159; // special_operation_personnel_photo - 特种作业人员证件照片
|
|
||||||
160: 160; // special_equipment_operator_photo - 特种设备操作人员证件照片
|
|
||||||
161: 161; // main_responsible_person_photo - 主要负责人证件照片
|
|
||||||
162: 162; // photos_safety_production_management_personnel - 安全生产管理人员证件照片
|
|
||||||
163: 163; // education_and_training_application - 教培申请承诺书
|
|
||||||
164: 164; // cover_of_education_and_training_courses - 课程封面
|
|
||||||
165: 165; // online_learning_sign_signature - 在线学习签到签字
|
|
||||||
166: 166; // online_learning_exam_signature - 在线学习考试签字
|
|
||||||
167: 167; // course_work_question_content - 课题工作题内容
|
|
||||||
168: 168; // key_homework_safety_management_agreement - 重点作业安全管理协议
|
|
||||||
169: 169; // key_homework_inspection_status_img - 重点作业检查情况图片
|
|
||||||
170: 170; // key_homework_acceptance_pictures - 重点作业验收图片
|
|
||||||
171: 171; // key_homework_attachment_inspected_person - 重点作业被检查人附件
|
|
||||||
172: 172; // key_homework_hazard_pictures - 重点作业隐患图片
|
|
||||||
173: 173; // key_homework_hazard_video - 重点作业隐患视频
|
|
||||||
174: 174; // key_homework_rectification_pictures 重点作业整改图片
|
|
||||||
175: 175; // key_homework_signature_inspector 重点作业检查人签字
|
|
||||||
176: 176; // key_homework_defendant 重点作业申辩人签字
|
|
||||||
177: 177; // key_homework_confirmer 重点作业确认人签字
|
|
||||||
178: 178; // ai_alarm_image 重点作业 AI报警图片
|
|
||||||
179: 179; // major_temporary_disposal_information_confirm 重大隐患-临时处置信息(确认)
|
|
||||||
180: 180; // major_supplement_hazard_information 重大隐患-补充重大/较大隐患信息
|
|
||||||
181: 181; // major_safety_committee_records 重大隐患-安委会办公室会议记录
|
|
||||||
182: 182; // major_rectification_suggestions 重大隐患-整改建议及方案
|
|
||||||
183: 183; // major_hazard_investigation_report 重大隐患-隐患调查报告
|
|
||||||
184: 184; // major_party_committee_resolution_record 重大隐患-安委会或党委会决议记录
|
|
||||||
185: 185; // major_temporary_disposal_information_rectification 重大隐患-临时处置信息(整改)
|
|
||||||
186: 186; // major_hidden_danger_rectification_plan 重大隐患-隐患整改方案
|
|
||||||
187: 187; // major_hidden_rectification_process_record 重大隐患-隐患整改过程记录
|
|
||||||
188: 188; // attachment_to_safety_responsibility 安全责任清单 清单附件
|
|
||||||
189: 189; // feedback_attachment_of_safety_responsibility 安全责任清单 清单反馈附件
|
|
||||||
190: 190; // shugang_push_supervision_push_files 数港推送 督办推送附件
|
|
||||||
191: 191; // shugang_push_security_monthly_calendar_files 数港推送 安全月历附件
|
|
||||||
192: 192; // shugang_push_mutual_learning_files 数港推送 互学互鉴附件
|
|
||||||
193: 193; // shugang_push_accident_reporting_files 数港推送 事故上报附件
|
|
||||||
302: 302; // fire_safety_inspection_passed_images - 消防点检检查合格
|
|
||||||
407: 407; // special_operation_restricted_space_ledger_attachment - 特殊作业-受限空间作业台账附件
|
|
||||||
701: 701; // material_equipment_warehouse_equipment_facilities - 物资装备库-设备设施
|
|
||||||
702: 702; // enterprise_plan - 企业预案
|
|
||||||
703: 703; // emergency_plan - 应急预案
|
|
||||||
704: 704; // emergency_drill - 应急演练
|
|
||||||
705: 705; // emergency_drill_summary_evaluation - 应急演练-总结评估
|
|
||||||
706: 706; // emergency_knowledge_library_case - 应急知识库-案例库
|
|
||||||
707: 707; // emergency_knowledge_library_dangerous_goods - 应急知识库-危险货物库
|
|
||||||
708: 708; // emergency_knowledge_library_hazardous_chemicals - 应急知识库-危化品库
|
|
||||||
709: 709; // emergency_knowledge_library_generation_process - 应急知识库-生成工艺库
|
|
||||||
800: 800; // lot_alarm_handling_image - 物联网报警处置图片
|
|
||||||
801: 801; // lot_alarm_handling_video - 物联网报警处置视频
|
|
||||||
|
|
||||||
1000: 1000; // template_task - 模板任务附件
|
|
||||||
1001: 1001; // task_fill - 任务填写附件
|
|
||||||
1002: 1002; // app_attachment - app附件
|
|
||||||
1003: 1003; // app_banner_image - app banner图片
|
|
||||||
1004: 1004; // cover_safety_circle - 安全圈封面
|
|
||||||
1005: 1005; // ai_upload_file - ai上传文件
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 文件上传类型对应的 path 枚举
|
|
||||||
* 1 - 1000 港务局使用
|
|
||||||
* 1000 - 2000 安全岛使用
|
|
||||||
*/
|
|
||||||
export declare const UPLOAD_FILE_PATH_ENUM: {
|
|
||||||
10: "labor_contract_image";
|
|
||||||
11: "commercial_insurance_image";
|
|
||||||
12: "certificate_information";
|
|
||||||
13: "user_avatar";
|
|
||||||
14: "id_card_photo";
|
|
||||||
15: "social_security_card_photo";
|
|
||||||
16: "work_related_injury_insurance_certificate";
|
|
||||||
19: "three_level_safety_education_training";
|
|
||||||
601: "gate_access_vehicle_license_photo";
|
|
||||||
602: "gate_access_vehicle_photo";
|
|
||||||
606: "gate_access_vehicle_applicant_signature";
|
|
||||||
611: "gate_access_personnel_applicant_signature";
|
|
||||||
607: "gate_access_vehicle_violation";
|
|
||||||
608: "gate_access_face_photo";
|
|
||||||
609: "enclosed_area_personnel_applicant_signature";
|
|
||||||
610: "enclosed_area_vehicle_applicant_signature";
|
|
||||||
603: "gate_access_vehicle_attachment";
|
|
||||||
604: "emission_standard_certificate";
|
|
||||||
605: "motor_vehicle_registration_certificate_green_book";
|
|
||||||
3: "hidden_danger_photo";
|
|
||||||
4: "hidden_danger_rectification_photo";
|
|
||||||
5: "hidden_danger_verification_photo";
|
|
||||||
6: "certificate_photo";
|
|
||||||
7: "confined_space_plan";
|
|
||||||
8: "hidden_danger_rectification_plan";
|
|
||||||
9: "confined_space_confirmation_signature";
|
|
||||||
17: "special_equipment_inspection_photo";
|
|
||||||
18: "personnel_certificate";
|
|
||||||
20: "major_hazard_source_alarm_before_handling_photo";
|
|
||||||
21: "major_hazard_source_alarm_after_handling_photo";
|
|
||||||
22: "smart_access_control_external_vehicle_driver_license_photo";
|
|
||||||
23: "smart_access_control_external_vehicle_registration_photo";
|
|
||||||
50: "safety_and_environmental_inspection_final_acceptance_image";
|
|
||||||
101: "hidden_danger_extension_temporary_measures_attachment";
|
|
||||||
102: "hidden_danger_video";
|
|
||||||
105: "blind_plate_position_map";
|
|
||||||
106: "temporary_disposal_information";
|
|
||||||
107: "rectification_suggestions_and_plan";
|
|
||||||
108: "major_hidden_danger_investigation_report";
|
|
||||||
109: "major_hidden_danger_safety_committee_or_party_committee_resolution_record";
|
|
||||||
110: "significant_hidden_danger_rectification_temporary_disposal_measures";
|
|
||||||
111: "significant_hidden_danger_rectification_hidden_danger_rectification_process_record";
|
|
||||||
112: "supplement_major_hidden_danger_information";
|
|
||||||
113: "safety_committee_office_meeting_record";
|
|
||||||
114: "alarm_photo";
|
|
||||||
115: "fire_equipment_type_qualification_photo";
|
|
||||||
116: "hot_work_personnel_photo";
|
|
||||||
117: "safety_pledge_signature";
|
|
||||||
118: "hot_work_unit_responsible_person_confirmation_signature";
|
|
||||||
119: "on_site_jurisdiction_unit_responsible_person_signature";
|
|
||||||
120: "hot_work_permit_issuing_unit_signature";
|
|
||||||
121: "hot_work_permit_signature";
|
|
||||||
122: "pre_hot_work_jurisdiction_unit_confirmation_signature";
|
|
||||||
123: "on_site_responsible_person_confirmation_signature";
|
|
||||||
124: "post_hot_work_site_jurisdiction_unit_confirmation";
|
|
||||||
125: "delayed_fire_monitoring_pictures";
|
|
||||||
126: "safety_and_environmental_inspection_initiation_signature";
|
|
||||||
127: "inspector_confirmation_signature";
|
|
||||||
128: "inspected_person_confirmation_signature";
|
|
||||||
129: "safety_and_environmental_inspection_appeal_signature";
|
|
||||||
130: "hk_safety_committee_office_director_safety_director_issuance";
|
|
||||||
131: "hot_work_contracting_unit_signature";
|
|
||||||
132: "safety_director_approval";
|
|
||||||
133: "branch_safety_director_approval";
|
|
||||||
134: "project_authority_review_signature";
|
|
||||||
135: "branch_manager_approval_signature";
|
|
||||||
136: "accident_incident";
|
|
||||||
137: "accident_incident";
|
|
||||||
138: "hidden_disposal_plan";
|
|
||||||
139: "safety_environmental_inspection_inspection_signature";
|
|
||||||
140: "safety_environmental_inspection_inspection_situation";
|
|
||||||
141: "safety_environmental_inspection_inspector_signature";
|
|
||||||
142: "safety_environmental_inspection_inspected_signature";
|
|
||||||
143: "safety_environmental_inspection_inspected_file";
|
|
||||||
144: "safety_environmental_inspection_defense_signature";
|
|
||||||
145: "qualified_list_inspection";
|
|
||||||
146: "safety_environmental_inspection_acceptance";
|
|
||||||
147: "hidden_qualified_listInspection_signature";
|
|
||||||
148: "special_qualification";
|
|
||||||
149: "safety_qualification";
|
|
||||||
150: "promise_bookmark_photo";
|
|
||||||
151: "project_related_materials";
|
|
||||||
152: "legal_and_regulatory_database";
|
|
||||||
153: "regulations_resource_library";
|
|
||||||
154: "responsibility_based_resource_library";
|
|
||||||
155: "institutional_resource_library";
|
|
||||||
156: "security_management_agreement";
|
|
||||||
157: "supervision_personnel_vehicle";
|
|
||||||
158: "supervision_personnel_vehicle_license";
|
|
||||||
159: "special_operation_personnel_photo";
|
|
||||||
160: "special_equipment_operator_photo";
|
|
||||||
161: "main_responsible_person_photo";
|
|
||||||
162: "photos_safety_production_management_personnel";
|
|
||||||
163: "education_and_training_application";
|
|
||||||
164: "cover_of_education_and_training_courses";
|
|
||||||
165: "online_learning_sign_signature";
|
|
||||||
166: "online_learning_exam_signature";
|
|
||||||
167: "course_work_question_content";
|
|
||||||
168: "key_homework_safety_management_agreement";
|
|
||||||
169: "key_homework_inspection_status_img";
|
|
||||||
170: "key_homework_acceptance_pictures";
|
|
||||||
171: "key_homework_attachment_inspected_person";
|
|
||||||
172: "key_homework_hazard_pictures";
|
|
||||||
173: "key_homework_hazard_video";
|
|
||||||
174: "key_homework_rectification_pictures";
|
|
||||||
175: "key_homework_signature_inspector";
|
|
||||||
176: "key_homework_defendant";
|
|
||||||
177: "key_homework_confirmer";
|
|
||||||
178: "ai_alarm_image";
|
|
||||||
179: "major_temporary_disposal_information_confirm";
|
|
||||||
180: "major_supplement_hazard_information";
|
|
||||||
181: "major_safety_committee_records";
|
|
||||||
182: "major_rectification_suggestions";
|
|
||||||
183: "major_hazard_investigation_report";
|
|
||||||
184: "major_party_committee_resolution_record";
|
|
||||||
185: "major_temporary_disposal_information_rectification";
|
|
||||||
186: "major_hidden_danger_rectification_plan";
|
|
||||||
187: "major_hidden_rectification_process_record";
|
|
||||||
188: "attachment_to_safety_responsibility";
|
|
||||||
189: "feedback_attachment_of_safety_responsibility";
|
|
||||||
190: "shugang_push_supervision_push_files";
|
|
||||||
191: "shugang_push_security_monthly_calendar_files";
|
|
||||||
192: "shugang_push_mutual_learning_files";
|
|
||||||
193: "shugang_push_accident_reporting_files";
|
|
||||||
302: "fire_safety_inspection_passed_images";
|
|
||||||
407: "special_operation_restricted_space_ledger_attachment";
|
|
||||||
701: "material_equipment_warehouse_equipment_facilities";
|
|
||||||
702: "enterprise_plan";
|
|
||||||
703: "emergency_plan";
|
|
||||||
704: "emergency_drill";
|
|
||||||
705: "emergency_drill_summary_evaluation";
|
|
||||||
706: "emergency_knowledge_library_case";
|
|
||||||
707: "emergency_knowledge_library_dangerous_goods";
|
|
||||||
708: "emergency_knowledge_library_hazardous_chemicals";
|
|
||||||
709: "emergency_knowledge_library_generation_process";
|
|
||||||
800: "lot_alarm_handling_image";
|
|
||||||
801: "lot_alarm_handling_video";
|
|
||||||
|
|
||||||
1000: "template_task";
|
|
||||||
1001: "task_fill";
|
|
||||||
1002: "app_attachment";
|
|
||||||
1003: "app_banner_image";
|
|
||||||
1004: "cover_safety_circle";
|
|
||||||
1005: "ai_upload_file";
|
|
||||||
};
|
|
||||||
|
|
@ -1,303 +0,0 @@
|
||||||
/**
|
|
||||||
* 文件上传类型枚举
|
|
||||||
* 1 - 1000 港务局使用
|
|
||||||
* 1000 - 2000 安全岛使用
|
|
||||||
*/
|
|
||||||
export const UPLOAD_FILE_TYPE_ENUM = {
|
|
||||||
10: 10, // labor_contract_image - 劳动合同图片
|
|
||||||
11: 11, // commercial_insurance_image - 商业保险图片
|
|
||||||
12: 12, // certificate_information - 证书信息
|
|
||||||
13: 13, // user_avatar - 用户头像
|
|
||||||
14: 14, // id_card_photo - 身份证照片
|
|
||||||
15: 15, // social_security_card_photo - 社保卡照片
|
|
||||||
16: 16, // work_related_injury_insurance_certificate - 工伤保险凭证
|
|
||||||
19: 19, // three_level_safety_education_training - 三级教育培训
|
|
||||||
601: 601, // gate_access_vehicle_license_photo - 门口门禁车辆行驶证照片
|
|
||||||
602: 602, // gate_access_vehicle_photo - 门口门禁车辆车辆照片
|
|
||||||
606: 606, // gate_access_vehicle_applicant_signature - 门口门禁车辆申请人签字
|
|
||||||
611: 611, // gate_access_personnel_applicant_signature - 门口门禁人员申请人签字
|
|
||||||
607: 607, // gate_access_vehicle_violation - 门口门禁车辆违规照片
|
|
||||||
608: 608, // gate_access_face_photo - 门口门禁人脸照片
|
|
||||||
609: 609, // enclosed_area_personnel_applicant_signature - 封闭区域人员申请人签字
|
|
||||||
610: 610, // enclosed_area_vehicle_applicant_signature - 封闭区域车辆申请人签字
|
|
||||||
603: 603, // gate_access_vehicle_attachment - 门口门禁车辆附件
|
|
||||||
604: 604, // emission_standard_certificate - 排放标准证明
|
|
||||||
605: 605, // motor_vehicle_registration_certificate_green_book - 机动车登记证书(绿本)
|
|
||||||
3: 3, // hidden_danger_photo - 隐患照片
|
|
||||||
4: 4, // hidden_danger_rectification_photo - 隐患整改照片
|
|
||||||
5: 5, // hidden_danger_verification_photo - 隐患验证照片
|
|
||||||
6: 6, // certificate_photo - 证书照片
|
|
||||||
7: 7, // confined_space_plan - 受限空间平面图
|
|
||||||
8: 8, // hidden_danger_rectification_plan - 隐患整改方案图
|
|
||||||
9: 9, // confined_space_confirmation_signature - 有限空间确认人签字
|
|
||||||
17: 17, // special_equipment_inspection_photo - 特种设备巡检照片
|
|
||||||
18: 18, // personnel_certificate - 人员证书
|
|
||||||
20: 20, // major_hazard_source_alarm_before_handling_photo - 重大危险源报警处置前照片
|
|
||||||
21: 21, // major_hazard_source_alarm_after_handling_photo - 重大危险源报警处置后照片
|
|
||||||
22: 22, // smart_access_control_external_vehicle_driver_license_photo - 智能门禁外来车辆驾驶证照片
|
|
||||||
23: 23, // smart_access_control_external_vehicle_registration_photo - 智能门禁外来车辆行驶证照片
|
|
||||||
50: 50, // safety_and_environmental_inspection_final_acceptance_image - 安全环保检查终验图片
|
|
||||||
101: 101, // hidden_danger_extension_temporary_measures_attachment - 隐患延期临时措施附件
|
|
||||||
102: 102, // hidden_danger_video - 隐患视频
|
|
||||||
105: 105, // blind_plate_position_map - 盲板位置图
|
|
||||||
106: 106, // temporary_disposal_information - 临时处置信息
|
|
||||||
107: 107, // rectification_suggestions_and_plan - 整改建议及方案
|
|
||||||
108: 108, // major_hidden_danger_investigation_report - 重大隐患上传隐患调查报告
|
|
||||||
109: 109, // major_hidden_danger_safety_committee_or_party_committee_resolution_record - 重大隐患安委会或党委会决议记录
|
|
||||||
110: 110, // significant_hidden_danger_rectification_temporary_disposal_measures - 较大隐患整改-临时处置措施
|
|
||||||
111: 111, // significant_hidden_danger_rectification_hidden_danger_rectification_process_record - 较大隐患整改-隐患整改过程记录
|
|
||||||
112: 112, // supplement_major_hidden_danger_information - 补充重大隐患信息
|
|
||||||
113: 113, // safety_committee_office_meeting_record - 安委会办公室会议记录
|
|
||||||
114: 114, // alarm_photo - 报警图片
|
|
||||||
115: 115, // fire_equipment_type_qualification_photo - 消防器材类型合格表中照片
|
|
||||||
116: 116, // hot_work_personnel_photo - 动火人图片
|
|
||||||
117: 117, // safety_pledge_signature - 安全承诺书签名
|
|
||||||
118: 118, // hot_work_unit_responsible_person_confirmation_signature - 动火单位负责人确认签字
|
|
||||||
119: 119, // on_site_jurisdiction_unit_responsible_person_signature - 现场管辖单位负责人签字
|
|
||||||
120: 120, // hot_work_permit_issuing_unit_signature - 动火许可证签发单位签字
|
|
||||||
121: 121, // hot_work_permit_signature - 动火许可证签字
|
|
||||||
122: 122, // pre_hot_work_jurisdiction_unit_confirmation_signature - 动火前管辖单位确认签字
|
|
||||||
123: 123, // on_site_responsible_person_confirmation_signature - 现场负责人确实签字
|
|
||||||
124: 124, // post_hot_work_site_jurisdiction_unit_confirmation - 动火后现场管辖单位确认
|
|
||||||
125: 125, // delayed_fire_monitoring_pictures - 延迟监火图片
|
|
||||||
126: 126, // safety_and_environmental_inspection_initiation_signature - 安全环保检查发起签字(弃用)
|
|
||||||
127: 127, // inspector_confirmation_signature - 检查人确认签字(弃用)
|
|
||||||
128: 128, // inspected_person_confirmation_signature - 被检查人确认签字(弃用)
|
|
||||||
129: 129, // safety_and_environmental_inspection_appeal_signature - 安全环保检查申辩签字(弃用)
|
|
||||||
130: 130, // hk_safety_committee_office_director_safety_director_issuance - (港股安委办主任)安全总监签发
|
|
||||||
131: 131, // hot_work_contracting_unit_signature - 动火发包单位签字
|
|
||||||
132: 132, // safety_director_approval - 安全总监审批
|
|
||||||
133: 133, // branch_safety_director_approval - 分公司安全总监审批
|
|
||||||
134: 134, // project_authority_review_signature - 项目主管部门负责人审核
|
|
||||||
135: 135, // branch_manager_approval_signature - 分公司主要负责人签批
|
|
||||||
136: 136, // accident_incident - 事故/事件
|
|
||||||
137: 137, // accident_incident - 事故/事件
|
|
||||||
138: 138, // hidden_disposal_plan - 隐患处置方案
|
|
||||||
139: 139, // safety_environmental_inspection_inspection_signature - 安全环保检查-检查签字
|
|
||||||
140: 140, // safety_environmental_inspection_inspection_situation - 安全环保检查-检查情况
|
|
||||||
141: 141, // safety_environmental_inspection_inspector_signature - 安全环保检查-检查人签字
|
|
||||||
142: 142, // safety_environmental_inspection_inspected_signature - 安全环保检查-被检查人签字
|
|
||||||
143: 143, // safety_environmental_inspection_inspected_file - 安全环保检查-被检查文件
|
|
||||||
144: 144, // safety_environmental_inspection_defense_signature - 安全环保检查-申辩签字
|
|
||||||
146: 146, // safety_environmental_inspection_acceptance - 安全环保检查-验收
|
|
||||||
145: 145, // qualified_list_inspection - 清单检查合格
|
|
||||||
147: 147, // hidden_qualified_listInspection_signature - 隐患清单排查签字
|
|
||||||
148: 148, // special_qualification - 相关方-专项资质
|
|
||||||
149: 149, // safety_qualification - 相关方-安全资质(弃用,全部改成使用148)
|
|
||||||
150: 150, // promise_bookmark_photo - 安全承诺签字
|
|
||||||
151: 151, // project_related_materials - 相关方-项目相关资料
|
|
||||||
152: 152, // legal_and_regulatory_database - 法律法规库
|
|
||||||
153: 153, // regulations_resource_library - 安全生产操作规程资源库
|
|
||||||
154: 154, // responsibility_based_resource_library - 安全生产责任制资源库
|
|
||||||
155: 155, // institutional_resource_library - 安全生产管理制度资源库
|
|
||||||
156: 156, // security_management_agreement - 相关方-安全管理协议
|
|
||||||
157: 157, // supervision_personnel_vehicle - 监管人员车辆
|
|
||||||
158: 158, // supervision_personnel_vehicle_license - 监管人员车辆行驶证
|
|
||||||
159: 159, // special_operation_personnel_photo - 特种作业人员证件照片
|
|
||||||
160: 160, // special_equipment_operator_photo - 特种设备操作人员证件照片
|
|
||||||
161: 161, // main_responsible_person_photo - 主要负责人证件照片
|
|
||||||
162: 162, // photos_safety_production_management_personnel - 安全生产管理人员证件照片
|
|
||||||
163: 163, // education_and_training_application - 教培申请承诺书
|
|
||||||
164: 164, // cover_of_education_and_training_courses - 课程封面
|
|
||||||
165: 165, // online_learning_sign_signature - 在线学习签到签字
|
|
||||||
166: 166, // online_learning_exam_signature - 在线学习考试签字
|
|
||||||
167: 167, // course_work_question_content - 课题工作题内容
|
|
||||||
168: 168, // key_homework_safety_management_agreement - 重点作业安全管理协议
|
|
||||||
169: 169, // key_homework_inspection_status_img - 重点作业检查情况图片
|
|
||||||
170: 170, // key_homework_acceptance_pictures - 重点作业验收图片
|
|
||||||
171: 171, // key_homework_attachment_inspected_person - 重点作业被检查人附件
|
|
||||||
172: 172, // key_homework_hazard_pictures - 重点作业隐患图片
|
|
||||||
173: 173, // key_homework_hazard_video - 重点作业隐患视频
|
|
||||||
174: 174, // key_homework_rectification_pictures 重点作业整改图片
|
|
||||||
175: 175, // key_homework_signature_inspector 重点作业检查人签字
|
|
||||||
176: 176, // key_homework_defendant 重点作业申辩人签字
|
|
||||||
177: 177, // key_homework_confirmer 重点作业确认人签字
|
|
||||||
178: 178, // ai_alarm_image 重点作业 AI报警图片
|
|
||||||
179: 179, // major_temporary_disposal_information_confirm 重大隐患-临时处置信息(确认)
|
|
||||||
180: 180, // major_supplement_hazard_information 重大隐患-补充重大/较大隐患信息
|
|
||||||
181: 181, // major_safety_committee_records 重大隐患-安委会办公室会议记录
|
|
||||||
182: 182, // major_rectification_suggestions 重大隐患-整改建议及方案
|
|
||||||
183: 183, // major_hazard_investigation_report 重大隐患-隐患调查报告
|
|
||||||
184: 184, // major_party_committee_resolution_record 重大隐患-安委会或党委会决议记录
|
|
||||||
185: 185, // major_temporary_disposal_information_rectification 重大隐患-临时处置信息(整改)
|
|
||||||
186: 186, // major_hidden_danger_rectification_plan 重大隐患-隐患整改方案
|
|
||||||
187: 187, // major_hidden_rectification_process_record 重大隐患-隐患整改过程记录
|
|
||||||
188: 188, // attachment_to_safety_responsibility 安全责任清单 清单附件
|
|
||||||
189: 189, // feedback_attachment_of_safety_responsibility 安全责任清单 清单反馈附件
|
|
||||||
190: 190, // shugang_push_supervision_push_files 数港推送 督办推送附件
|
|
||||||
191: 191, // shugang_push_security_monthly_calendar_files 数港推送 安全月历附件
|
|
||||||
192: 192, // shugang_push_mutual_learning_files 数港推送 互学互鉴附件
|
|
||||||
193: 193, // shugang_push_accident_reporting_files 数港推送 事故上报附件
|
|
||||||
302: 302, // fire_safety_inspection_passed_images - 消防点检检查合格
|
|
||||||
407: 407, // special_operation_restricted_space_ledger_attachment - 特殊作业-受限空间作业台账附件
|
|
||||||
701: 701, // material_equipment_warehouse_equipment_facilities - 物资装备库-设备设施
|
|
||||||
702: 702, // enterprise_plan - 企业预案
|
|
||||||
703: 703, // emergency_plan - 应急预案
|
|
||||||
704: 704, // emergency_drill - 应急演练
|
|
||||||
705: 705, // emergency_drill_summary_evaluation - 应急演练-总结评估
|
|
||||||
706: 706, // emergency_knowledge_library_case - 应急知识库-案例库
|
|
||||||
707: 707, // emergency_knowledge_library_dangerous_goods - 应急知识库-危险货物库
|
|
||||||
708: 708, // emergency_knowledge_library_hazardous_chemicals - 应急知识库-危化品库
|
|
||||||
709: 709, // emergency_knowledge_library_generation_process - 应急知识库-生成工艺库
|
|
||||||
800: 800, // lot_alarm_handling_image - 物联网报警处置图片
|
|
||||||
801: 801, // lot_alarm_handling_video - 物联网报警处置视频
|
|
||||||
|
|
||||||
1000: 1000, // template_task - 模板任务附件
|
|
||||||
1001: 1001, // task_fill - 任务填写附件
|
|
||||||
1002: 1002, // app_attachment - app附件
|
|
||||||
1003: 1003, // app_banner_image - app banner图片
|
|
||||||
1004: 1004, // cover_safety_circle - 安全圈封面
|
|
||||||
1005: 1005, // ai_upload_file - ai上传文件
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 文件上传类型对应的 path 枚举
|
|
||||||
* 1 - 1000 港务局使用
|
|
||||||
* 1000 - 2000 安全岛使用
|
|
||||||
*/
|
|
||||||
export const UPLOAD_FILE_PATH_ENUM = {
|
|
||||||
10: "labor_contract_image",
|
|
||||||
11: "commercial_insurance_image",
|
|
||||||
12: "certificate_information",
|
|
||||||
13: "user_avatar",
|
|
||||||
14: "id_card_photo",
|
|
||||||
15: "social_security_card_photo",
|
|
||||||
16: "work_related_injury_insurance_certificate",
|
|
||||||
19: "three_level_safety_education_training",
|
|
||||||
601: "gate_access_vehicle_license_photo",
|
|
||||||
602: "gate_access_vehicle_photo",
|
|
||||||
606: "gate_access_vehicle_applicant_signature",
|
|
||||||
611: "gate_access_personnel_applicant_signature",
|
|
||||||
607: "gate_access_vehicle_violation",
|
|
||||||
608: "gate_access_face_photo",
|
|
||||||
609: "enclosed_area_personnel_applicant_signature",
|
|
||||||
610: "enclosed_area_vehicle_applicant_signature",
|
|
||||||
603: "gate_access_vehicle_attachment",
|
|
||||||
604: "emission_standard_certificate",
|
|
||||||
605: "motor_vehicle_registration_certificate_green_book",
|
|
||||||
3: "hidden_danger_photo",
|
|
||||||
4: "hidden_danger_rectification_photo",
|
|
||||||
5: "hidden_danger_verification_photo",
|
|
||||||
6: "certificate_photo",
|
|
||||||
7: "confined_space_plan",
|
|
||||||
8: "hidden_danger_rectification_plan",
|
|
||||||
9: "confined_space_confirmation_signature",
|
|
||||||
17: "special_equipment_inspection_photo",
|
|
||||||
18: "personnel_certificate",
|
|
||||||
20: "major_hazard_source_alarm_before_handling_photo",
|
|
||||||
21: "major_hazard_source_alarm_after_handling_photo",
|
|
||||||
22: "smart_access_control_external_vehicle_driver_license_photo",
|
|
||||||
23: "smart_access_control_external_vehicle_registration_photo",
|
|
||||||
50: "safety_and_environmental_inspection_final_acceptance_image",
|
|
||||||
101: "hidden_danger_extension_temporary_measures_attachment",
|
|
||||||
102: "hidden_danger_video",
|
|
||||||
105: "blind_plate_position_map",
|
|
||||||
106: "temporary_disposal_information",
|
|
||||||
107: "rectification_suggestions_and_plan",
|
|
||||||
108: "major_hidden_danger_investigation_report",
|
|
||||||
109: "major_hidden_danger_safety_committee_or_party_committee_resolution_record",
|
|
||||||
110: "significant_hidden_danger_rectification_temporary_disposal_measures",
|
|
||||||
111: "significant_hidden_danger_rectification_hidden_danger_rectification_process_record",
|
|
||||||
112: "supplement_major_hidden_danger_information",
|
|
||||||
113: "safety_committee_office_meeting_record",
|
|
||||||
114: "alarm_photo",
|
|
||||||
115: "fire_equipment_type_qualification_photo",
|
|
||||||
116: "hot_work_personnel_photo",
|
|
||||||
117: "safety_pledge_signature",
|
|
||||||
118: "hot_work_unit_responsible_person_confirmation_signature",
|
|
||||||
119: "on_site_jurisdiction_unit_responsible_person_signature",
|
|
||||||
120: "hot_work_permit_issuing_unit_signature",
|
|
||||||
121: "hot_work_permit_signature",
|
|
||||||
122: "pre_hot_work_jurisdiction_unit_confirmation_signature",
|
|
||||||
123: "on_site_responsible_person_confirmation_signature",
|
|
||||||
124: "post_hot_work_site_jurisdiction_unit_confirmation",
|
|
||||||
125: "delayed_fire_monitoring_pictures",
|
|
||||||
126: "safety_and_environmental_inspection_initiation_signature",
|
|
||||||
127: "inspector_confirmation_signature",
|
|
||||||
128: "inspected_person_confirmation_signature",
|
|
||||||
129: "safety_and_environmental_inspection_appeal_signature",
|
|
||||||
130: "hk_safety_committee_office_director_safety_director_issuance",
|
|
||||||
131: "hot_work_contracting_unit_signature",
|
|
||||||
132: "safety_director_approval",
|
|
||||||
133: "branch_safety_director_approval",
|
|
||||||
134: "project_authority_review_signature",
|
|
||||||
135: "branch_manager_approval_signature",
|
|
||||||
136: "accident_incident",
|
|
||||||
137: "accident_incident",
|
|
||||||
138: "hidden_disposal_plan",
|
|
||||||
139: "safety_environmental_inspection_inspection_signature",
|
|
||||||
140: "safety_environmental_inspection_inspection_situation",
|
|
||||||
141: "safety_environmental_inspection_inspector_signature",
|
|
||||||
142: "safety_environmental_inspection_inspected_signature",
|
|
||||||
143: "safety_environmental_inspection_inspected_file",
|
|
||||||
144: "safety_environmental_inspection_defense_signature",
|
|
||||||
145: "qualified_list_inspection",
|
|
||||||
146: "safety_environmental_inspection_acceptance",
|
|
||||||
147: "hidden_qualified_listInspection_signature",
|
|
||||||
148: "special_qualification",
|
|
||||||
149: "safety_qualification",
|
|
||||||
150: "promise_bookmark_photo",
|
|
||||||
151: "project_related_materials",
|
|
||||||
152: "legal_and_regulatory_database",
|
|
||||||
153: "regulations_resource_library",
|
|
||||||
154: "responsibility_based_resource_library",
|
|
||||||
155: "institutional_resource_library",
|
|
||||||
156: "security_management_agreement",
|
|
||||||
157: "supervision_personnel_vehicle",
|
|
||||||
158: "supervision_personnel_vehicle_license",
|
|
||||||
159: "special_operation_personnel_photo",
|
|
||||||
160: "special_equipment_operator_photo",
|
|
||||||
161: "main_responsible_person_photo",
|
|
||||||
162: "photos_safety_production_management_personnel",
|
|
||||||
163: "education_and_training_application",
|
|
||||||
164: "cover_of_education_and_training_courses",
|
|
||||||
165: "online_learning_sign_signature",
|
|
||||||
166: "online_learning_exam_signature",
|
|
||||||
167: "course_work_question_content",
|
|
||||||
168: "key_homework_safety_management_agreement",
|
|
||||||
169: "key_homework_inspection_status_img",
|
|
||||||
170: "key_homework_acceptance_pictures",
|
|
||||||
171: "key_homework_attachment_inspected_person",
|
|
||||||
172: "key_homework_hazard_pictures",
|
|
||||||
173: "key_homework_hazard_video",
|
|
||||||
174: "key_homework_rectification_pictures",
|
|
||||||
175: "key_homework_signature_inspector",
|
|
||||||
176: "key_homework_defendant",
|
|
||||||
177: "key_homework_confirmer",
|
|
||||||
178: "ai_alarm_image",
|
|
||||||
179: "major_temporary_disposal_information_confirm",
|
|
||||||
180: "major_supplement_hazard_information",
|
|
||||||
181: "major_safety_committee_records",
|
|
||||||
182: "major_rectification_suggestions",
|
|
||||||
183: "major_hazard_investigation_report",
|
|
||||||
184: "major_party_committee_resolution_record",
|
|
||||||
185: "major_temporary_disposal_information_rectification",
|
|
||||||
186: "major_hidden_danger_rectification_plan",
|
|
||||||
187: "major_hidden_rectification_process_record",
|
|
||||||
188: "attachment_to_safety_responsibility",
|
|
||||||
189: "feedback_attachment_of_safety_responsibility",
|
|
||||||
190: "shugang_push_supervision_push_files",
|
|
||||||
191: "shugang_push_security_monthly_calendar_files",
|
|
||||||
192: "shugang_push_mutual_learning_files",
|
|
||||||
193: "shugang_push_accident_reporting_files",
|
|
||||||
302: "fire_safety_inspection_passed_images",
|
|
||||||
407: "special_operation_restricted_space_ledger_attachment",
|
|
||||||
701: "material_equipment_warehouse_equipment_facilities",
|
|
||||||
702: "enterprise_plan",
|
|
||||||
703: "emergency_plan",
|
|
||||||
704: "emergency_drill",
|
|
||||||
705: "emergency_drill_summary_evaluation",
|
|
||||||
706: "emergency_knowledge_library_case",
|
|
||||||
707: "emergency_knowledge_library_dangerous_goods",
|
|
||||||
708: "emergency_knowledge_library_hazardous_chemicals",
|
|
||||||
709: "emergency_knowledge_library_generation_process",
|
|
||||||
800: "lot_alarm_handling_image",
|
|
||||||
801: "lot_alarm_handling_video",
|
|
||||||
|
|
||||||
1000: "template_task",
|
|
||||||
1001: "task_fill",
|
|
||||||
1002: "app_attachment",
|
|
||||||
1003: "app_banner_image",
|
|
||||||
1004: "cover_safety_circle",
|
|
||||||
1005: "ai_upload_file",
|
|
||||||
};
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { DICTIONARY_APP_KEY_ENUM } from "../../enum/dictionary";
|
import { DICTIONARY_APP_KEY_ENUM } from "zy-react-data/enum/dictionary";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取数据字典
|
* 获取数据字典
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { UPLOAD_FILE_TYPE_ENUM } from "../../enum/uploadFile";
|
import { UPLOAD_FILE_TYPE_ENUM } from "zy-react-data/enum/uploadFile";
|
||||||
import { addingPrefixToFile, getBaseGateway } from "../../utils";
|
import { addingPrefixToFile, getBaseGateway } from "../../utils";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
import { request } from "@cqsjjb/jjb-common-lib/http.js";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { UPLOAD_FILE_PATH_ENUM, UPLOAD_FILE_TYPE_ENUM } from "../../enum/uploadFile";
|
import { UPLOAD_FILE_PATH_ENUM, UPLOAD_FILE_TYPE_ENUM } from "zy-react-data/enum/uploadFile";
|
||||||
import { getBaseGateway } from "../../utils";
|
import { getBaseGateway } from "../../utils";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,218 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"name": "汉族",
|
|
||||||
"bianma": "hanzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "满族",
|
|
||||||
"bianma": "manzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "藏族",
|
|
||||||
"bianma": "zangzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "蒙古族",
|
|
||||||
"bianma": "mengguzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "回族",
|
|
||||||
"bianma": "huizu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "维吾尔族",
|
|
||||||
"bianma": "weiwu'erzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "壮族",
|
|
||||||
"bianma": "zhuangzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "苗族",
|
|
||||||
"bianma": "miaozu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "彝族",
|
|
||||||
"bianma": "yizu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "布依族",
|
|
||||||
"bianma": "buyizuu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "侗族",
|
|
||||||
"bianma": "dongzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "瑶族",
|
|
||||||
"bianma": "yaozu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "白族",
|
|
||||||
"bianma": "baizu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "哈尼族",
|
|
||||||
"bianma": "hanizu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "哈萨克族",
|
|
||||||
"bianma": "hasakezu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "黎族",
|
|
||||||
"bianma": "lizu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "傣族",
|
|
||||||
"bianma": "daizu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "畲族",
|
|
||||||
"bianma": "shezu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "傈僳族",
|
|
||||||
"bianma": "lisuzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "仡佬族",
|
|
||||||
"bianma": "gelaozu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "东乡族",
|
|
||||||
"bianma": "dongxiangzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "高山族",
|
|
||||||
"bianma": "gaoshanzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "拉祜族",
|
|
||||||
"bianma": "lahuzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "水族",
|
|
||||||
"bianma": "shuizu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "佤族",
|
|
||||||
"bianma": "wazu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "纳西族",
|
|
||||||
"bianma": "naxizu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "羌族",
|
|
||||||
"bianma": "qiangzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "土族",
|
|
||||||
"bianma": "tuzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "仫佬族",
|
|
||||||
"bianma": "mulaozu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "锡伯族",
|
|
||||||
"bianma": "xibozu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "柯尔克孜族",
|
|
||||||
"bianma": "keerkezizu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "达斡尔族",
|
|
||||||
"bianma": "dawuerzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "景颇族",
|
|
||||||
"bianma": "jingpozu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "毛南族",
|
|
||||||
"bianma": "maonanzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "撒拉族",
|
|
||||||
"bianma": "salaizu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "布朗族",
|
|
||||||
"bianma": "bulangzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "塔吉克族",
|
|
||||||
"bianma": "tajikezu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "阿昌族",
|
|
||||||
"bianma": "achangzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "普米族",
|
|
||||||
"bianma": "pumizu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "鄂温克族",
|
|
||||||
"bianma": "ewenkezu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "怒族",
|
|
||||||
"bianma": "nuzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "京族",
|
|
||||||
"bianma": "jingzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "基诺族",
|
|
||||||
"bianma": "jinuozu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "德昂族",
|
|
||||||
"bianma": "deangzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "保安族",
|
|
||||||
"bianma": "baoanzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "俄罗斯族",
|
|
||||||
"bianma": "eluosizu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "裕固族",
|
|
||||||
"bianma": "yuguzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "乌孜别克族",
|
|
||||||
"bianma": "wuzibiekezu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "门巴族",
|
|
||||||
"bianma": "menbazu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "鄂伦春族",
|
|
||||||
"bianma": "elunchunzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "独龙族",
|
|
||||||
"bianma": "dulongzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "塔塔尔族",
|
|
||||||
"bianma": "tataerzu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "赫哲族",
|
|
||||||
"bianma": "hezhezu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "珞巴族",
|
|
||||||
"bianma": "luobazu"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
Loading…
Reference in New Issue