init
commit
f21d7b99ab
|
|
@ -0,0 +1,13 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.md]
|
||||
insert_final_newline = false
|
||||
trim_trailing_whitespace = false
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# 源文件测试目录
|
||||
/src/test/
|
||||
/target/
|
||||
|
||||
# 构建输出(根目录的构建产物)
|
||||
/enum/
|
||||
/json/
|
||||
_virtual
|
||||
|
||||
# IDE
|
||||
.idea
|
||||
.claude
|
||||
|
||||
# 依赖
|
||||
/node_modules
|
||||
*.local
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
# 源文件目录(不要发布)
|
||||
src/
|
||||
rollup.config.js
|
||||
|
||||
# 开发相关文件
|
||||
.eslintrc.cjs
|
||||
.eslintignore
|
||||
.prettierrc.cjs
|
||||
.gitignore
|
||||
vite.config.js
|
||||
vitest.config.js
|
||||
tsconfig.json
|
||||
jsconfig.json
|
||||
|
||||
# 构建和缓存目录
|
||||
node_modules/
|
||||
dist/
|
||||
.vite/
|
||||
.cache/
|
||||
|
||||
# 开发工具配置
|
||||
.vscode/
|
||||
.idea/
|
||||
.editorconfig
|
||||
|
||||
# 日志文件
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# 测试相关
|
||||
coverage/
|
||||
.nyc_output/
|
||||
test/
|
||||
tests/
|
||||
__tests__/
|
||||
*.test.js
|
||||
*.test.ts
|
||||
*.spec.js
|
||||
*.spec.ts
|
||||
|
||||
# 其他
|
||||
.DS_Store
|
||||
.env*
|
||||
!.env.example
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
# zy-react-data 数据包文档
|
||||
|
||||
## 快速开始
|
||||
|
||||
### 安装
|
||||
|
||||
```bash
|
||||
yarn add zy-react-data
|
||||
```
|
||||
|
||||
## 📄 更新日志
|
||||
|
||||
### v1.0.0 (2026-08-25)
|
||||
|
||||
- 🎉 初始版本发布
|
||||
|
||||
### 使用方式
|
||||
|
||||
JSON、枚举均按目录引入:
|
||||
|
||||
```tsx
|
||||
import Area from "zy-react-data/json/area.json";
|
||||
import { DICTIONARY_APP_KEY_ENUM } from "zy-react-data/enum/dictionary";
|
||||
```
|
||||
|
||||
## 说明
|
||||
|
||||
- 枚举的类型说明根据包内 `.d.ts` 类型声明整理。
|
||||
- 业务项目可以独立升级本包,不需要同步升级 `zy-react-library`。
|
||||
|
||||
## 静态 JSON
|
||||
|
||||
| 文件 | 引入路径 | 简要说明 |
|
||||
| --- | --- | --- |
|
||||
| `area.json` | `zy-react-data/json/area.json` | 行政区域树形数据,供地区级联、地区树选择使用。 |
|
||||
| `industry.json` | `zy-react-data/json/industry.json` | 行业分类树形数据,供行业级联、行业树选择使用。 |
|
||||
| `nation.json` | `zy-react-data/json/nation.json` | 民族数据列表。 |
|
||||
|
||||
## 枚举
|
||||
|
||||
| 枚举 | 引入路径 | 简要说明 |
|
||||
| --- | --- | --- |
|
||||
| `DICTIONARY_APP_KEY_ENUM` | `zy-react-data/enum/dictionary` | 字典接口使用的 `appKey` 常量,包含 `DEFAULT`、`GWJ`。 |
|
||||
| `HIDDEN_SOURCE_ENUM` | `zy-react-data/enum/hidden/gwj` | 隐患来源选项列表。 |
|
||||
| `HIDDEN_STATE_ENUM` | `zy-react-data/enum/hidden/gwj` | 隐患状态选项列表。 |
|
||||
| `HIDDEN_RECTIFICATION_TYPE_ENUM` | `zy-react-data/enum/hidden/gwj` | 隐患整改类型选项列表。 |
|
||||
| `UPLOAD_FILE_TYPE_ENUM` | `zy-react-data/enum/uploadFile` | 文件上传类型编码枚举。 |
|
||||
| `UPLOAD_FILE_PATH_ENUM` | `zy-react-data/enum/uploadFile` | 文件上传类型编码到服务端路径标识的映射。 |
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
import antfu from "@antfu/eslint-config";
|
||||
|
||||
export default antfu({
|
||||
formatters: {
|
||||
html: false,
|
||||
css: true,
|
||||
},
|
||||
test: false,
|
||||
typescript: true,
|
||||
react: false,
|
||||
vue: false,
|
||||
markdown: false,
|
||||
stylistic: {
|
||||
semi: true,
|
||||
quotes: "double",
|
||||
},
|
||||
overrides: {
|
||||
javascript: {
|
||||
"no-console": ["warn", { allow: ["warn", "error"] }],
|
||||
"no-debugger": "error",
|
||||
"no-alert": "error",
|
||||
"no-restricted-syntax": [
|
||||
"error",
|
||||
{
|
||||
selector: "VariableDeclarator[id.name='pd']",
|
||||
message: "不允许使用 pd,请改用有语义化的变量名",
|
||||
},
|
||||
{
|
||||
selector: "ObjectExpression > Property[key.name='pd']",
|
||||
message: "不允许使用 pd,请改用有语义化的变量名",
|
||||
},
|
||||
],
|
||||
"no-unused-vars": "error",
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"antfu/top-level-function": "off",
|
||||
"node/prefer-global/process": "off",
|
||||
"dot-notation": "off",
|
||||
"linebreak-style": ["off", "windows"],
|
||||
},
|
||||
});
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# npm地址
|
||||
https://www.npmjs.com/package/zy-react-data
|
||||
|
||||
# npm账号
|
||||
liujianan15703339975
|
||||
Ljn15703339975.
|
||||
|
||||
npm config set //registry.npmjs.org/:_authToken=你的令牌内容
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"name": "zy-react-data",
|
||||
"private": false,
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"description": "",
|
||||
"author": "LiuJiaNan",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"enum",
|
||||
"json",
|
||||
"README.md"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"build:watch": "rollup -c -w",
|
||||
"prepublishOnly": "npm run build",
|
||||
"patch": "npm version patch",
|
||||
"minor": "npm version minor",
|
||||
"release": "npm publish",
|
||||
"postinstall": "echo 'Thanks for using our data library!'"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^5.4.1",
|
||||
"eslint": "^9.37.0",
|
||||
"eslint-plugin-format": "^1.0.2",
|
||||
"glob": "^13.0.0",
|
||||
"rollup": "^4.54.0",
|
||||
"typescript": "^5.9.3"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,139 @@
|
|||
import { readFileSync, existsSync } from 'fs';
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { glob } from 'glob';
|
||||
|
||||
// 获取当前文件所在目录的绝对路径
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
/**
|
||||
* 收集所有的入口文件
|
||||
*
|
||||
* 遍历 enum 目录,查找所有 .js 文件作为打包入口
|
||||
* 注意:json 目录被排除,因为 JSON 文件直接复制,不作为入口处理
|
||||
*
|
||||
* @returns {Object} 入口文件对象,格式:{ 'enum/dictionary/index.js': '/absolute/path/enum/dictionary/index.js' }
|
||||
*/
|
||||
function getEntryFiles() {
|
||||
const entries = {};
|
||||
const baseDir = __dirname;
|
||||
const srcDir = path.join(baseDir, 'src');
|
||||
|
||||
// 只处理枚举目录,JSON 文件直接复制不转换
|
||||
const dirs = ['enum'];
|
||||
|
||||
dirs.forEach(dir => {
|
||||
const dirPath = path.join(srcDir, dir);
|
||||
|
||||
if (existsSync(dirPath)) {
|
||||
// 递归查找当前目录下所有 .js 文件
|
||||
const files = glob.sync('**/*.js', {
|
||||
cwd: dirPath,
|
||||
absolute: false
|
||||
});
|
||||
|
||||
// 为每个文件创建入口映射,并保留源文件目录结构
|
||||
files.forEach(file => {
|
||||
const key = path.join(dir, file);
|
||||
entries[key] = path.join(srcDir, dir, file);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
return entries;
|
||||
}
|
||||
|
||||
/**
|
||||
* 自定义插件:复制类型声明文件和 JSON 文件
|
||||
*
|
||||
* 功能:
|
||||
* 1. 复制 enum 目录下的 .d.ts 类型声明文件
|
||||
* 2. 复制 json 目录下的 .json 数据文件,保持原始格式
|
||||
*
|
||||
* 注意:所有源文件都在 src/ 目录,构建输出到根目录
|
||||
*/
|
||||
const copyTypesPlugin = () => ({
|
||||
name: 'copy-types',
|
||||
|
||||
// 在生成 bundle 时执行
|
||||
generateBundle() {
|
||||
const srcDir = path.join(__dirname, 'src');
|
||||
const enumDir = path.join(srcDir, 'enum');
|
||||
const this$1 = this;
|
||||
|
||||
// ===== 1. 复制枚举类型声明文件 (.d.ts) =====
|
||||
if (existsSync(enumDir)) {
|
||||
const dtsFiles = glob.sync('**/*.d.ts', {
|
||||
cwd: enumDir,
|
||||
absolute: true
|
||||
});
|
||||
|
||||
dtsFiles.forEach(file => {
|
||||
const relativePath = path.relative(enumDir, file);
|
||||
const content = readFileSync(file, 'utf-8');
|
||||
|
||||
this$1.emitFile({
|
||||
type: 'asset',
|
||||
fileName: path.join('enum', relativePath),
|
||||
source: content
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// ===== 2. 复制 json 文件夹(保持原始格式,不转换) =====
|
||||
const jsonDir = path.join(srcDir, 'json');
|
||||
if (existsSync(jsonDir)) {
|
||||
const jsonFiles = glob.sync('**/*.json', {
|
||||
cwd: jsonDir,
|
||||
absolute: true
|
||||
});
|
||||
|
||||
jsonFiles.forEach(file => {
|
||||
const relativePath = path.relative(jsonDir, file);
|
||||
const content = readFileSync(file, 'utf-8');
|
||||
|
||||
this$1.emitFile({
|
||||
type: 'asset',
|
||||
fileName: path.join('json', relativePath),
|
||||
source: content
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* 创建 Rollup 配置的辅助函数
|
||||
*
|
||||
* @param {string} outputDir - 输出目录
|
||||
* @param {string} format - 输出格式('esm' 或 'cjs')
|
||||
* @param {Array} plugins - 插件列表
|
||||
* @returns {Object} Rollup 配置对象
|
||||
*/
|
||||
function createConfig(outputDir, format, plugins) {
|
||||
return {
|
||||
// 入口文件对象
|
||||
input: getEntryFiles(),
|
||||
|
||||
// 输出配置
|
||||
output: {
|
||||
dir: outputDir,
|
||||
format: format,
|
||||
preserveModules: true,
|
||||
preserveModulesRoot: './',
|
||||
entryFileNames: '[name]',
|
||||
exports: 'named'
|
||||
},
|
||||
|
||||
// 插件列表
|
||||
plugins
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出配置
|
||||
*
|
||||
* 只输出 ESM 格式到根目录(enum/、json/)
|
||||
*/
|
||||
export default createConfig('.', 'esm', [copyTypesPlugin()]);
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* 数据字典 appKey 枚举
|
||||
*/
|
||||
export declare const DICTIONARY_APP_KEY_ENUM: {
|
||||
DEFAULT: "0bb989ecada5470c87635018ece9f327";
|
||||
GWJ: "0bb989ecada5470c87635018ece9f327";
|
||||
};
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* 数据字典 appKey 枚举
|
||||
*/
|
||||
export const DICTIONARY_APP_KEY_ENUM = {
|
||||
DEFAULT: "0bb989ecada5470c87635018ece9f327",
|
||||
GWJ: "0bb989ecada5470c87635018ece9f327",
|
||||
};
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
// 隐患来源
|
||||
export declare const HIDDEN_SOURCE_ENUM: [
|
||||
{ bianma: "1"; name: "隐患快报" },
|
||||
{ bianma: "2"; name: "清单排查" },
|
||||
{ bianma: "4"; name: "安全环保检查(监管端)" },
|
||||
{ bianma: "5"; name: "安全环保检查(企业端)" },
|
||||
{ bianma: "6"; name: "消防检查" },
|
||||
{ bianma: "7", 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: "限期整改" },
|
||||
];
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
// 隐患来源
|
||||
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: "限期整改" },
|
||||
];
|
||||
|
|
@ -0,0 +1,303 @@
|
|||
/**
|
||||
* 文件上传类型枚举
|
||||
* 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";
|
||||
};
|
||||
|
|
@ -0,0 +1,303 @@
|
|||
/**
|
||||
* 文件上传类型枚举
|
||||
* 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",
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,218 @@
|
|||
[
|
||||
{
|
||||
"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