zy-react-library 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/components/Cascader/Area/index.js +1 -20
  2. package/components/Cascader/Basic/index.js +1 -57
  3. package/components/Cascader/Dictionary/index.js +1 -42
  4. package/components/Cascader/Industry/index.js +1 -21
  5. package/components/Editor/index.js +1 -82
  6. package/components/FormBuilder/FormBuilder.js +1 -97
  7. package/components/FormBuilder/FormItemsRenderer.js +1 -589
  8. package/components/FormBuilder/index.js +1 -5
  9. package/components/HeaderBack/index.js +1 -44
  10. package/components/HiddenInfo/gwj/index.js +1 -586
  11. package/components/Icon/AddIcon/index.js +1 -9
  12. package/components/Icon/BackIcon/index.js +1 -9
  13. package/components/Icon/DeleteIcon/index.js +1 -9
  14. package/components/Icon/DownloadIcon/index.js +1 -9
  15. package/components/Icon/EditIcon/index.js +1 -9
  16. package/components/Icon/ExportIcon/index.js +1 -9
  17. package/components/Icon/ImportIcon/index.js +1 -9
  18. package/components/Icon/LocationIcon/index.js +1 -9
  19. package/components/Icon/PrintIcon/index.js +1 -9
  20. package/components/Icon/ResetIcon/index.js +1 -9
  21. package/components/Icon/SearchIcon/index.js +1 -9
  22. package/components/Icon/VideoIcon/index.js +1 -9
  23. package/components/Icon/ViewIcon/index.js +1 -9
  24. package/components/ImportFile/index.js +1 -94
  25. package/components/LeftTree/Area/index.js +1 -15
  26. package/components/LeftTree/Basic/index.js +1 -160
  27. package/components/LeftTree/Department/Gwj/index.js +1 -29
  28. package/components/LeftTree/Dictionary/index.js +1 -42
  29. package/components/Map/MapSelector.js +1 -280
  30. package/components/Map/index.js +1 -90
  31. package/components/Page/index.js +1 -59
  32. package/components/Pdf/index.js +1 -136
  33. package/components/PreviewImg/index.js +1 -26
  34. package/components/PreviewPdf/index.js +1 -78
  35. package/components/Search/index.js +1 -147
  36. package/components/Select/Basic/index.js +1 -70
  37. package/components/Select/Dictionary/index.js +1 -42
  38. package/components/Select/Personnel/Gwj/index.js +1 -45
  39. package/components/SelectCreate/index.js +1 -48
  40. package/components/SelectTree/Area/index.js +1 -20
  41. package/components/SelectTree/Basic/index.js +1 -105
  42. package/components/SelectTree/Department/Gwj/index.js +1 -40
  43. package/components/SelectTree/Dictionary/index.js +1 -42
  44. package/components/SelectTree/HiddenLevel/Gwj/index.js +1 -70
  45. package/components/SelectTree/HiddenPart/Gwj/index.js +1 -36
  46. package/components/SelectTree/Industry/index.js +1 -21
  47. package/components/Signature/index.js +1 -100
  48. package/components/Table/index.js +1 -77
  49. package/components/TooltipPreviewImg/index.js +1 -28
  50. package/components/Upload/index.js +1 -229
  51. package/components/Video/AliPlayer.js +1 -182
  52. package/components/Video/index.js +1 -71
  53. package/enum/dictionary/index.js +1 -9
  54. package/enum/formItemRender/index.js +1 -39
  55. package/enum/hidden/gwj/index.js +1 -70
  56. package/enum/uploadFile/gwj/index.js +1 -258
  57. package/hooks/useDeleteFile/index.js +1 -95
  58. package/hooks/useDictionary/index.js +1 -64
  59. package/hooks/useDownloadBlob/index.js +1 -80
  60. package/hooks/useDownloadFile/index.js +1 -78
  61. package/hooks/useGetFile/index.js +1 -74
  62. package/hooks/useGetUrlQuery/index.js +1 -15
  63. package/hooks/useGetUserInfo/index.js +1 -42
  64. package/hooks/useIdle/index.js +1 -65
  65. package/hooks/useImportFile/index.js +1 -61
  66. package/hooks/useIsExistenceDuplicateSelection/index.js +1 -27
  67. package/hooks/useTable/index.js +1 -124
  68. package/hooks/useUploadFile/index.js +1 -144
  69. package/hooks/useUrlQueryCriteria/index.js +1 -84
  70. package/package.json +5 -1
  71. package/regular/index.js +1 -56
  72. package/utils/index.js +1 -591
@@ -1,182 +1 @@
1
- import { useDocumentVisibility } from 'ahooks';
2
- import { uniqueId } from 'lodash-es';
3
- import { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';
4
- import { dynamicLoadJs, dynamicLoadCss } from '../../utils/index.js';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- const AliPlayer = /*#__PURE__*/forwardRef(({
8
- source = "",
9
- vid = "",
10
- playAuth = "",
11
- cover = "",
12
- width = "100%",
13
- height = "600px",
14
- autoplay = true,
15
- showProgress = true,
16
- isLive = false,
17
- playTime = 0,
18
- onEnded,
19
- onTimeupdate
20
- }, ref) => {
21
- const playerRef = useRef(null);
22
- const containerRef = useRef(null);
23
- const visibility = useDocumentVisibility();
24
- const className = useRef(uniqueId("_")).current;
25
- useImperativeHandle(ref, () => ({
26
- play: () => {
27
- playerRef.current && playerRef.current.play();
28
- },
29
- pause: () => {
30
- playerRef.current && playerRef.current.pause();
31
- }
32
- }));
33
- const onDisposeAliPlayer = () => {
34
- if (!playerRef.current) return;
35
- playerRef.current.dispose();
36
- playerRef.current = null;
37
- };
38
- const onCreateAliPlayer = async () => {
39
- if (!containerRef.current) return;
40
- if (!window.Aliplayer) {
41
- if (window?.base?.loadDynamicResource) {
42
- await window.base.loadDynamicResource({
43
- url: "https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/aliplayer-min.js",
44
- type: "script"
45
- });
46
- await window.base.loadDynamicResource({
47
- url: "https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/skins/default/aliplayer-min.css",
48
- type: "link"
49
- });
50
- } else {
51
- await dynamicLoadJs("https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/aliplayer-min.js");
52
- await dynamicLoadCss("https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/skins/default/aliplayer-min.css");
53
- }
54
- }
55
- onDisposeAliPlayer();
56
- const skinLayout = [{
57
- name: "bigPlayButton",
58
- align: "blabs",
59
- x: 30,
60
- y: 80
61
- }, {
62
- name: "H5Loading",
63
- align: "cc"
64
- }, {
65
- name: "errorDisplay",
66
- align: "tlabs",
67
- x: 0,
68
- y: 0
69
- }, {
70
- name: "infoDisplay"
71
- }, {
72
- name: "tooltip",
73
- align: "blabs",
74
- x: 0,
75
- y: 56
76
- }, {
77
- name: "thumbnail"
78
- }, {
79
- name: "controlBar",
80
- align: "blabs",
81
- x: 0,
82
- y: 0,
83
- children: [{
84
- name: "playButton",
85
- align: "tl",
86
- x: 15,
87
- y: 12
88
- }, {
89
- name: "timeDisplay",
90
- align: "tl",
91
- x: 10,
92
- y: 7
93
- }, {
94
- name: "fullScreenButton",
95
- align: "tr",
96
- x: 10,
97
- y: 12
98
- }, {
99
- name: "setting",
100
- align: "tr",
101
- x: 15,
102
- y: 12
103
- }, {
104
- name: "volume",
105
- align: "tr",
106
- x: 5,
107
- y: 10
108
- }]
109
- }];
110
- if (showProgress) {
111
- skinLayout[skinLayout.length - 1].children.unshift({
112
- name: "progress",
113
- align: "blabs",
114
- x: 0,
115
- y: 44
116
- });
117
- }
118
- playerRef.current = new window.Aliplayer({
119
- id: className,
120
- ...(source ? {
121
- source
122
- } : {
123
- vid,
124
- playauth: playAuth,
125
- qualitySort: "asc",
126
- format: "m3u8",
127
- encryptType: 1,
128
- mediaType: "video",
129
- isLive: true,
130
- rePlay: false,
131
- playsinline: true,
132
- controlBarVisibility: "hover"
133
- }),
134
- cover,
135
- width,
136
- height,
137
- autoplay,
138
- isLive,
139
- useH5Prism: true,
140
- skinLayout
141
- }, player => {
142
- if (autoplay) {
143
- player.play();
144
- }
145
- player.on("ended", () => {
146
- onEnded && onEnded();
147
- });
148
- player.on("timeupdate", () => {
149
- onTimeupdate && onTimeupdate(player.getCurrentTime());
150
- });
151
- if (playTime > 0) {
152
- player.seek(playTime);
153
- }
154
- });
155
- };
156
- useEffect(() => {
157
- if (source || vid && playAuth) {
158
- onCreateAliPlayer();
159
- }
160
- return () => {
161
- onDisposeAliPlayer();
162
- };
163
- }, [source, vid, playAuth]);
164
- useEffect(() => {
165
- if (visibility === "hidden") {
166
- playerRef.current && playerRef.current.pause();
167
- } else {
168
- playerRef.current && playerRef.current.play();
169
- }
170
- }, [visibility]);
171
- return /*#__PURE__*/jsx("div", {
172
- ref: containerRef,
173
- id: className,
174
- style: {
175
- width,
176
- height
177
- }
178
- });
179
- });
180
- AliPlayer.displayName = "AliPlayer";
181
-
182
- export { AliPlayer as default };
1
+ import{useDocumentVisibility as a}from"ahooks";import{uniqueId as e}from"lodash-es";import{forwardRef as i,useRef as r,useImperativeHandle as n,useEffect as t}from"react";import{dynamicLoadJs as l,dynamicLoadCss as s}from"../../utils/index.js";import{jsx as o}from"react/jsx-runtime";const p=i(({source:i="",vid:p="",playAuth:m="",cover:u="",width:c="100%",height:y="600px",autoplay:d=!0,showProgress:g=!0,isLive:h=!1,playTime:b=0,onEnded:w,onTimeupdate:x},f)=>{const v=r(null),k=r(null),D=a(),B=r(e("_")).current;n(f,()=>({play:()=>{v.current&&v.current.play()},pause:()=>{v.current&&v.current.pause()}}));const L=()=>{v.current&&(v.current.dispose(),v.current=null)};return t(()=>((i||p&&m)&&(async()=>{if(!k.current)return;window.Aliplayer||(window?.base?.loadDynamicResource?(await window.base.loadDynamicResource({url:"https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/aliplayer-min.js",type:"script"}),await window.base.loadDynamicResource({url:"https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/skins/default/aliplayer-min.css",type:"link"})):(await l("https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/aliplayer-min.js"),await s("https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/skins/default/aliplayer-min.css"))),L();const a=[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"H5Loading",align:"cc"},{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"tooltip",align:"blabs",x:0,y:56},{name:"thumbnail"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:7},{name:"fullScreenButton",align:"tr",x:10,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:5,y:10}]}];g&&a[a.length-1].children.unshift({name:"progress",align:"blabs",x:0,y:44}),v.current=new window.Aliplayer({id:B,...i?{source:i}:{vid:p,playauth:m,qualitySort:"asc",format:"m3u8",encryptType:1,mediaType:"video",isLive:!0,rePlay:!1,playsinline:!0,controlBarVisibility:"hover"},cover:u,width:c,height:y,autoplay:d,isLive:h,useH5Prism:!0,skinLayout:a},a=>{d&&a.play(),a.on("ended",()=>{w&&w()}),a.on("timeupdate",()=>{x&&x(a.getCurrentTime())}),b>0&&a.seek(b)})})(),()=>{L()}),[i,p,m]),t(()=>{"hidden"===D?v.current&&v.current.pause():v.current&&v.current.play()},[D]),o("div",{ref:k,id:B,style:{width:c,height:y}})});p.displayName="AliPlayer";export{p as default};
@@ -1,71 +1 @@
1
- import { Modal, Button } from 'antd';
2
- import { useState, useRef, useEffect } from 'react';
3
- import { getFileUrl } from '../../utils/index.js';
4
- import AliPlayer from './AliPlayer.js';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- const Video = ({
8
- source = "",
9
- vid = "",
10
- playAuth = "",
11
- cover = "",
12
- autoplay = true,
13
- showProgress = true,
14
- playTime = 0,
15
- inline = false,
16
- isLive = false,
17
- width = "100%",
18
- height = "600px",
19
- title = "视频",
20
- visible: externalVisible = false,
21
- onCancel
22
- }) => {
23
- const [internalVisible, setInternalVisible] = useState(false);
24
- const playerRef = useRef(null);
25
- const visible = onCancel ? externalVisible : internalVisible;
26
- const setVisible = onCancel || setInternalVisible;
27
- const getSource = () => {
28
- if (!source) return;
29
- if (source.includes("http") || source.includes("https")) return source;else return getFileUrl() + source;
30
- };
31
- useEffect(() => {
32
- if (!inline) {
33
- if (visible) {
34
- playerRef.current && playerRef.current.play();
35
- } else {
36
- playerRef.current && playerRef.current.pause();
37
- }
38
- }
39
- }, [visible, inline]);
40
- const playerElement = /*#__PURE__*/jsx(AliPlayer, {
41
- ref: playerRef,
42
- source: getSource(),
43
- vid: vid,
44
- playAuth: playAuth,
45
- cover: cover,
46
- autoplay: autoplay,
47
- showProgress: showProgress,
48
- playTime: playTime,
49
- isLive: isLive,
50
- width: width,
51
- height: height
52
- });
53
- if (!inline) {
54
- return /*#__PURE__*/jsx(Modal, {
55
- open: visible,
56
- width: 800,
57
- title: title,
58
- footer: [/*#__PURE__*/jsx(Button, {
59
- onClick: () => setVisible(false),
60
- children: "\u53D6\u6D88"
61
- }, "cancel")],
62
- maskClosable: false,
63
- onCancel: () => setVisible(false),
64
- children: playerElement
65
- });
66
- }
67
- return playerElement;
68
- };
69
- Video.displayName = "Video";
70
-
71
- export { Video as default };
1
+ import{Modal as e,Button as r}from"antd";import{useState as t,useRef as i,useEffect as o}from"react";import{getFileUrl as l}from"../../utils/index.js";import n from"./AliPlayer.js";import{jsx as s}from"react/jsx-runtime";const a=({source:a="",vid:c="",playAuth:p="",cover:u="",autoplay:h=!0,showProgress:m=!0,playTime:d=0,inline:f=!1,isLive:y=!1,width:v="100%",height:w="600px",title:g="视频",visible:x=!1,onCancel:C})=>{const[j,A]=t(!1),P=i(null),b=C?x:j,k=C||A;o(()=>{f||(b?P.current&&P.current.play():P.current&&P.current.pause())},[b,f]);const L=s(n,{ref:P,source:(()=>{if(a)return a.includes("http")||a.includes("https")?a:l()+a})(),vid:c,playAuth:p,cover:u,autoplay:h,showProgress:m,playTime:d,isLive:y,width:v,height:w});return f?L:s(e,{open:b,width:800,title:g,footer:[s(r,{onClick:()=>k(!1),children:"取消"},"cancel")],maskClosable:!1,onCancel:()=>k(!1),children:L})};a.displayName="Video";export{a as default};
@@ -1,9 +1 @@
1
- /**
2
- * 数据字典 appKey 枚举
3
- */
4
- const DICTIONARY_APP_KEY_ENUM = {
5
- DEFAULT: "0bb989ecada5470c87635018ece9f327",
6
- GWJ: "0bb989ecada5470c87635018ece9f327"
7
- };
8
-
9
- export { DICTIONARY_APP_KEY_ENUM };
1
+ const c={DEFAULT:"0bb989ecada5470c87635018ece9f327",GWJ:"0bb989ecada5470c87635018ece9f327"};export{c as DICTIONARY_APP_KEY_ENUM};
@@ -1,39 +1 @@
1
- /**
2
- * 表单项类型枚举
3
- */
4
- const FORM_ITEM_RENDER_ENUM = {
5
- /** 映射为 antd Input */
6
- INPUT: "input",
7
- /** 映射为 antd Input.TextArea */
8
- TEXTAREA: "textarea",
9
- /** 映射为 antd InputNumber */
10
- INPUT_NUMBER: "inputNumber",
11
- /** 映射为 antd InputNumber */
12
- NUMBER: "number",
13
- /** 映射为 antd Select */
14
- SELECT: "select",
15
- /** 映射为 antd Radio.Group */
16
- RADIO: "radio",
17
- /** 映射为 antd Checkbox.Group */
18
- CHECKBOX: "checkbox",
19
- /** 映射为 antd DatePicker,日期格式为YYYY-MM-DD */
20
- DATE: "date",
21
- /** 映射为 antd DatePicker.MonthPicker,日期格式为YYYY-MM */
22
- DATE_MONTH: "dateMonth",
23
- /** 映射为 antd DatePicker.YearPicker,日期格式为YYYY */
24
- DATE_YEAR: "dateYear",
25
- /** 映射为 antd DatePicker.WeekPicker,日期格式为YYYY-wo */
26
- DATE_WEEK: "dateWeek",
27
- /** 映射为 antd DatePicker.RangePicker,日期格式为YYYY-MM-DD */
28
- DATE_RANGE: "dateRange",
29
- /** 映射为 antd DatePicker,日期格式为YYYY-MM-DD HH:mm:ss */
30
- DATETIME: "datetime",
31
- /** 映射为 antd DatePicker.RangePicker,日期格式为YYYY-MM-DD HH:mm:ss */
32
- DATETIME_RANGE: "datetimeRange",
33
- /** 映射为 antd Divider */
34
- DIVIDER: "divider",
35
- /** 映射为 antd FormList */
36
- FORM_LIST: "formList"
37
- };
38
-
39
- export { FORM_ITEM_RENDER_ENUM };
1
+ const e={INPUT:"input",TEXTAREA:"textarea",INPUT_NUMBER:"inputNumber",NUMBER:"number",SELECT:"select",RADIO:"radio",CHECKBOX:"checkbox",DATE:"date",DATE_MONTH:"dateMonth",DATE_YEAR:"dateYear",DATE_WEEK:"dateWeek",DATE_RANGE:"dateRange",DATETIME:"datetime",DATETIME_RANGE:"datetimeRange",DIVIDER:"divider",FORM_LIST:"formList"};export{e as FORM_ITEM_RENDER_ENUM};
@@ -1,70 +1 @@
1
- // 隐患来源
2
- const HIDDEN_SOURCE_ENUM = [{
3
- bianma: "1",
4
- name: "隐患快报"
5
- }, {
6
- bianma: "2",
7
- name: "清单排查"
8
- }, {
9
- bianma: "4",
10
- name: "安全环保检查(监管端)"
11
- }, {
12
- bianma: "5",
13
- name: "安全环保检查(企业端)"
14
- }, {
15
- bianma: "6",
16
- name: "消防检查"
17
- }];
18
-
19
- // 隐患状态
20
- const HIDDEN_STATE_ENUM = [{
21
- bianma: "100",
22
- name: "待确认"
23
- }, {
24
- bianma: "200",
25
- name: "待整改"
26
- }, {
27
- bianma: "201",
28
- name: "确认打回"
29
- }, {
30
- bianma: "202",
31
- name: "特殊处置"
32
- }, {
33
- bianma: "300",
34
- name: "待验收"
35
- }, {
36
- bianma: "301",
37
- name: "已验收"
38
- }, {
39
- bianma: "302",
40
- name: "验收打回"
41
- }, {
42
- bianma: "400",
43
- name: "归档"
44
- }, {
45
- bianma: "99",
46
- name: "关闭"
47
- }, {
48
- bianma: "98",
49
- name: "安全环保检查/清单排查暂存"
50
- }, {
51
- bianma: "102",
52
- name: "安全环保检查,隐患带指派"
53
- }, {
54
- bianma: "97",
55
- name: "已过期"
56
- }, {
57
- bianma: "101",
58
- name: "忽略隐患"
59
- }];
60
-
61
- // 隐患整改类型
62
- const HIDDEN_RECTIFICATION_TYPE_ENUM = [{
63
- bianma: 1,
64
- name: "立即整改"
65
- }, {
66
- bianma: 2,
67
- name: "限期整改"
68
- }];
69
-
70
- export { HIDDEN_RECTIFICATION_TYPE_ENUM, HIDDEN_SOURCE_ENUM, HIDDEN_STATE_ENUM };
1
+ const a=[{bianma:"1",name:"隐患快报"},{bianma:"2",name:"清单排查"},{bianma:"4",name:"安全环保检查(监管端)"},{bianma:"5",name:"安全环保检查(企业端)"},{bianma:"6",name:"消防检查"}],n=[{bianma:"100",name:"待确认"},{bianma:"200",name:"待整改"},{bianma:"201",name:"确认打回"},{bianma:"202",name:"特殊处置"},{bianma:"300",name:"已整改"},{bianma:"301",name:"已验收"},{bianma:"302",name:"验收打回"},{bianma:"400",name:"归档"},{bianma:"99",name:"关闭"},{bianma:"98",name:"安全环保检查/清单排查暂存"},{bianma:"102",name:"安全环保检查,隐患带指派"},{bianma:"97",name:"已过期"},{bianma:"101",name:"忽略隐患"}],m=[{bianma:1,name:"立即整改"},{bianma:2,name:"限期整改"}];export{m as HIDDEN_RECTIFICATION_TYPE_ENUM,a as HIDDEN_SOURCE_ENUM,n as HIDDEN_STATE_ENUM};
@@ -1,258 +1 @@
1
- /**
2
- * 文件上传类型枚举
3
- */
4
- /**
5
- * 文件上传类型枚举
6
- */
7
- const UPLOAD_FILE_TYPE_ENUM = {
8
- 10: 10,
9
- // labor_contract_image - 劳动合同图片
10
- 11: 11,
11
- // commercial_insurance_image - 商业保险图片
12
- 12: 12,
13
- // certificate_information - 证书信息
14
- 13: 13,
15
- // user_avatar - 用户头像
16
- 14: 14,
17
- // id_card_photo - 身份证照片
18
- 15: 15,
19
- // social_security_card_photo - 社保卡照片
20
- 16: 16,
21
- // work_related_injury_insurance_certificate - 工伤保险凭证
22
- 19: 19,
23
- // three_level_safety_education_training - 三级教育培训
24
- 601: 601,
25
- // gate_access_vehicle_license_photo - 门口门禁车辆行驶证照片
26
- 602: 602,
27
- // gate_access_vehicle_photo - 门口门禁车辆车辆照片
28
- 603: 603,
29
- // gate_access_vehicle_attachment - 门口门禁车辆附件
30
- 604: 604,
31
- // emission_standard_certificate - 排放标准证明
32
- 605: 605,
33
- // motor_vehicle_registration_certificate_green_book - 机动车登记证书(绿本)
34
- 3: 3,
35
- // hidden_danger_photo - 隐患照片
36
- 4: 4,
37
- // hidden_danger_rectification_photo - 隐患整改照片
38
- 5: 5,
39
- // hidden_danger_verification_photo - 隐患验证照片
40
- 6: 6,
41
- // certificate_photo - 证书照片
42
- 7: 7,
43
- // confined_space_plan - 受限空间平面图
44
- 8: 8,
45
- // hidden_danger_rectification_plan - 隐患整改方案图
46
- 9: 9,
47
- // confined_space_confirmation_signature - 有限空间确认人签字
48
- 17: 17,
49
- // special_equipment_inspection_photo - 特种设备巡检照片
50
- 18: 18,
51
- // personnel_certificate - 人员证书
52
- 20: 20,
53
- // major_hazard_source_alarm_before_handling_photo - 重大危险源报警处置前照片
54
- 21: 21,
55
- // major_hazard_source_alarm_after_handling_photo - 重大危险源报警处置后照片
56
- 22: 22,
57
- // smart_access_control_external_vehicle_driver_license_photo - 智能门禁外来车辆驾驶证照片
58
- 23: 23,
59
- // smart_access_control_external_vehicle_registration_photo - 智能门禁外来车辆行驶证照片
60
- 50: 50,
61
- // safety_and_environmental_inspection_final_acceptance_image - 安全环保检查终验图片
62
- 101: 101,
63
- // hidden_danger_extension_temporary_measures_attachment - 隐患延期临时措施附件
64
- 102: 102,
65
- // hidden_danger_video - 隐患视频
66
- 105: 105,
67
- // blind_plate_position_map - 盲板位置图
68
- 106: 106,
69
- // temporary_disposal_information - 临时处置信息
70
- 107: 107,
71
- // rectification_suggestions_and_plan - 整改建议及方案
72
- 108: 108,
73
- // major_hidden_danger_investigation_report - 重大隐患上传隐患调查报告
74
- 109: 109,
75
- // major_hidden_danger_safety_committee_or_party_committee_resolution_record - 重大隐患安委会或党委会决议记录
76
- 110: 110,
77
- // significant_hidden_danger_rectification_temporary_disposal_measures - 较大隐患整改-临时处置措施
78
- 111: 111,
79
- // significant_hidden_danger_rectification_hidden_danger_rectification_process_record - 较大隐患整改-隐患整改过程记录
80
- 112: 112,
81
- // supplement_major_hidden_danger_information - 补充重大隐患信息
82
- 113: 113,
83
- // safety_committee_office_meeting_record - 安委会办公室会议记录
84
- 114: 114,
85
- // alarm_photo - 报警图片
86
- 115: 115,
87
- // fire_equipment_type_qualification_photo - 消防器材类型合格表中照片
88
- 116: 116,
89
- // hot_work_personnel_photo - 动火人图片
90
- 117: 117,
91
- // safety_pledge_signature - 安全承诺书签名
92
- 118: 118,
93
- // hot_work_unit_responsible_person_confirmation_signature - 动火单位负责人确认签字
94
- 119: 119,
95
- // on_site_jurisdiction_unit_responsible_person_signature - 现场管辖单位负责人签字
96
- 120: 120,
97
- // hot_work_permit_issuing_unit_signature - 动火许可证签发单位签字
98
- 121: 121,
99
- // hot_work_permit_signature - 动火许可证签字
100
- 122: 122,
101
- // pre_hot_work_jurisdiction_unit_confirmation_signature - 动火前管辖单位确认签字
102
- 123: 123,
103
- // on_site_responsible_person_confirmation_signature - 现场负责人确实签字
104
- 124: 124,
105
- // post_hot_work_site_jurisdiction_unit_confirmation - 动火后现场管辖单位确认
106
- 125: 125,
107
- // delayed_fire_monitoring_pictures - 延迟监火图片
108
- 126: 126,
109
- // safety_and_environmental_inspection_initiation_signature - 安全环保检查发起签字(弃用)
110
- 127: 127,
111
- // inspector_confirmation_signature - 检查人确认签字(弃用)
112
- 128: 128,
113
- // inspected_person_confirmation_signature - 被检查人确认签字(弃用)
114
- 129: 129,
115
- // safety_and_environmental_inspection_appeal_signature - 安全环保检查申辩签字(弃用)
116
- 130: 130,
117
- // hk_safety_committee_office_director_safety_director_issuance - (港股安委办主任)安全总监签发
118
- 131: 131,
119
- // hot_work_contracting_unit_signature - 动火发包单位签字
120
- 132: 132,
121
- // safety_director_approval - 安全总监审批
122
- 133: 133,
123
- // branch_safety_director_approval - 分公司安全总监审批
124
- 134: 134,
125
- // project_authority_review_signature - 项目主管部门负责人审核
126
- 135: 135,
127
- // branch_manager_approval_signature - 分公司主要负责人签批
128
- 136: 136,
129
- // accident_incident - 事故/事件
130
- 137: 137,
131
- // accident_incident - 事故/事件
132
- 138: 138,
133
- // hidden_disposal_plan - 隐患处置方案
134
- 139: 139,
135
- // safety_environmental_inspection_inspection_signature - 安全环保检查-检查签字
136
- 140: 140,
137
- // safety_environmental_inspection_inspection_situation - 安全环保检查-检查情况
138
- 141: 141,
139
- // safety_environmental_inspection_inspector_signature - 安全环保检查-检查人签字
140
- 142: 142,
141
- // safety_environmental_inspection_inspected_signature - 安全环保检查-被检查人签字
142
- 143: 143,
143
- // safety_environmental_inspection_inspected_file - 安全环保检查-被检查文件
144
- 144: 144,
145
- // safety_environmental_inspection_defense_signature - 安全环保检查-申辩签字
146
- 146: 146,
147
- // safety_environmental_inspection_acceptance - 安全环保检查-验收
148
- 145: 145,
149
- // qualified_list_inspection - 清单检查合格
150
- 147: 147,
151
- // hidden_qualified_listInspection_signature - 隐患清单排查签字
152
- 148: 148,
153
- // special_qualification - 相关方-专项资质
154
- 149: 149,
155
- // safety_qualification - 相关方-安全资质(弃用,全部改成使用148)
156
- 150: 150,
157
- // promise_bookmark_photo - 安全承诺签字
158
- 151: 151,
159
- // project_related_materials - 相关方-项目相关资料
160
- 152: 152,
161
- // legal_and_regulatory_database - 法律法规库
162
- 153: 153,
163
- // regulations_resource_library - 安全生产操作规程资源库
164
- 154: 154,
165
- // responsibility_based_resource_library - 安全生产责任制资源库
166
- 155: 155,
167
- // institutional_resource_library - 安全生产管理制度资源库
168
- 156: 156 // security_management_agreement - 相关方-安全管理协议
169
- };
170
-
171
- /**
172
- * 文件上传类型对应的 path 枚举
173
- */
174
- const UPLOAD_FILE_PATH_ENUM = {
175
- 10: "labor_contract_image",
176
- 11: "commercial_insurance_image",
177
- 12: "certificate_information",
178
- 13: "user_avatar",
179
- 14: "id_card_photo",
180
- 15: "social_security_card_photo",
181
- 16: "work_related_injury_insurance_certificate",
182
- 19: "three_level_safety_education_training",
183
- 601: "gate_access_vehicle_license_photo",
184
- 602: "gate_access_vehicle_photo",
185
- 603: "gate_access_vehicle_attachment",
186
- 604: "emission_standard_certificate",
187
- 605: "motor_vehicle_registration_certificate_green_book",
188
- 3: "hidden_danger_photo",
189
- 4: "hidden_danger_rectification_photo",
190
- 5: "hidden_danger_verification_photo",
191
- 6: "certificate_photo",
192
- 7: "confined_space_plan",
193
- 8: "hidden_danger_rectification_plan",
194
- 9: "confined_space_confirmation_signature",
195
- 17: "special_equipment_inspection_photo",
196
- 18: "personnel_certificate",
197
- 20: "major_hazard_source_alarm_before_handling_photo",
198
- 21: "major_hazard_source_alarm_after_handling_photo",
199
- 22: "smart_access_control_external_vehicle_driver_license_photo",
200
- 23: "smart_access_control_external_vehicle_registration_photo",
201
- 50: "safety_and_environmental_inspection_final_acceptance_image",
202
- 101: "hidden_danger_extension_temporary_measures_attachment",
203
- 102: "hidden_danger_video",
204
- 105: "blind_plate_position_map",
205
- 106: "temporary_disposal_information",
206
- 107: "rectification_suggestions_and_plan",
207
- 108: "major_hidden_danger_investigation_report",
208
- 109: "major_hidden_danger_safety_committee_or_party_committee_resolution_record",
209
- 110: "significant_hidden_danger_rectification_temporary_disposal_measures",
210
- 111: "significant_hidden_danger_rectification_hidden_danger_rectification_process_record",
211
- 112: "supplement_major_hidden_danger_information",
212
- 113: "safety_committee_office_meeting_record",
213
- 114: "alarm_photo",
214
- 115: "fire_equipment_type_qualification_photo",
215
- 116: "hot_work_personnel_photo",
216
- 117: "safety_pledge_signature",
217
- 118: "hot_work_unit_responsible_person_confirmation_signature",
218
- 119: "on_site_jurisdiction_unit_responsible_person_signature",
219
- 120: "hot_work_permit_issuing_unit_signature",
220
- 121: "hot_work_permit_signature",
221
- 122: "pre_hot_work_jurisdiction_unit_confirmation_signature",
222
- 123: "on_site_responsible_person_confirmation_signature",
223
- 124: "post_hot_work_site_jurisdiction_unit_confirmation",
224
- 125: "delayed_fire_monitoring_pictures",
225
- 126: "safety_and_environmental_inspection_initiation_signature",
226
- 127: "inspector_confirmation_signature",
227
- 128: "inspected_person_confirmation_signature",
228
- 129: "safety_and_environmental_inspection_appeal_signature",
229
- 130: "hk_safety_committee_office_director_safety_director_issuance",
230
- 131: "hot_work_contracting_unit_signature",
231
- 132: "safety_director_approval",
232
- 133: "branch_safety_director_approval",
233
- 134: "project_authority_review_signature",
234
- 135: "branch_manager_approval_signature",
235
- 136: "accident_incident",
236
- 137: "accident_incident",
237
- 138: "hidden_disposal_plan",
238
- 139: "safety_environmental_inspection_inspection_signature",
239
- 140: "safety_environmental_inspection_inspection_situation",
240
- 141: "safety_environmental_inspection_inspector_signature",
241
- 142: "safety_environmental_inspection_inspected_signature",
242
- 143: "safety_environmental_inspection_inspected_file",
243
- 144: "safety_environmental_inspection_defense_signature",
244
- 145: "qualified_list_inspection",
245
- 146: "safety_environmental_inspection_acceptance",
246
- 147: "hidden_qualified_listInspection_signature",
247
- 148: "special_qualification",
248
- 149: "safety_qualification",
249
- 150: "promise_bookmark_photo",
250
- 151: "project_related_materials",
251
- 152: "legal_and_regulatory_database",
252
- 153: "regulations_resource_library",
253
- 154: "responsibility_based_resource_library",
254
- 155: "institutional_resource_library",
255
- 156: "security_management_agreement"
256
- };
257
-
258
- export { UPLOAD_FILE_PATH_ENUM, UPLOAD_FILE_TYPE_ENUM };
1
+ const e={10:10,11:11,12:12,13:13,14:14,15:15,16:16,19:19,601:601,602:602,603:603,604:604,605:605,3:3,4:4,5:5,6:6,7:7,8:8,9:9,17:17,18:18,20:20,21:21,22:22,23:23,50:50,101:101,102:102,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:126,127:127,128:128,129:129,130:130,131:131,132:132,133:133,134:134,135:135,136:136,137:137,138:138,139:139,140:140,141:141,142:142,143:143,144:144,146:146,145:145,147:147,148:148,149:149,150:150,151:151,152:152,153:153,154:154,155:155,156:156},_={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",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"};export{_ as UPLOAD_FILE_PATH_ENUM,e as UPLOAD_FILE_TYPE_ENUM};