zy-react-library 1.3.32 → 1.3.33
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.
- package/components/Cascader/Area/index.js +1 -1
- package/components/Cascader/Basic/index.js +1 -1
- package/components/Cascader/Dictionary/index.js +1 -1
- package/components/Cascader/Industry/index.js +1 -1
- package/components/Editor/index.js +1 -1
- package/components/FormBuilder/FormBuilder.js +1 -1
- package/components/FormBuilder/FormItemsRenderer.js +1 -1
- package/components/HeaderBack/index.js +1 -1
- package/components/HiddenInfo/gwj/index.js +1 -1
- package/components/Icon/AddIcon/index.js +1 -1
- package/components/Icon/BackIcon/index.js +1 -1
- package/components/Icon/DeleteIcon/index.js +1 -1
- package/components/Icon/DownloadIcon/index.js +1 -1
- package/components/Icon/EditIcon/index.js +1 -1
- package/components/Icon/ExportIcon/index.js +1 -1
- package/components/Icon/ImportIcon/index.js +1 -1
- package/components/Icon/LocationIcon/index.js +1 -1
- package/components/Icon/PrintIcon/index.js +1 -1
- package/components/Icon/ResetIcon/index.js +1 -1
- package/components/Icon/SearchIcon/index.js +1 -1
- package/components/Icon/VideoIcon/index.js +1 -1
- package/components/Icon/ViewIcon/index.js +1 -1
- package/components/ImportFile/index.js +1 -1
- package/components/LeftTree/Area/index.js +1 -1
- package/components/LeftTree/Basic/index.js +1 -1
- package/components/LeftTree/Department/Gwj/index.js +1 -1
- package/components/LeftTree/Dictionary/index.js +1 -1
- package/components/Map/CesiumMap.js +1 -1
- package/components/Map/MapSelector.js +1 -1
- package/components/Map/index.js +1 -1
- package/components/Page/index.js +1 -1
- package/components/Pdf/index.js +1 -1
- package/components/PreviewImg/index.js +1 -1
- package/components/PreviewPdf/index.js +1 -1
- package/components/SeamlessScroll/index.js +1 -1
- package/components/Search/index.js +1 -1
- package/components/Select/Basic/index.js +1 -1
- package/components/Select/Dictionary/index.js +1 -1
- package/components/Select/Personnel/Gwj/index.js +1 -1
- package/components/SelectCreate/index.js +1 -1
- package/components/SelectTree/Area/index.js +1 -1
- package/components/SelectTree/Basic/index.js +1 -1
- package/components/SelectTree/Department/Gwj/index.js +1 -1
- package/components/SelectTree/Dictionary/index.js +1 -1
- package/components/SelectTree/HiddenLevel/Gwj/index.js +1 -1
- package/components/SelectTree/HiddenPart/Gwj/index.js +1 -1
- package/components/SelectTree/Industry/index.js +1 -1
- package/components/Signature/index.js +1 -1
- package/components/Table/index.js +1 -1
- package/components/TooltipPreviewImg/index.js +1 -1
- package/components/Upload/index.js +1 -1
- package/components/Video/AliPlayer.js +1 -1
- package/components/Video/index.js +1 -1
- package/hooks/useDeleteFile/index.js +1 -1
- package/hooks/useDictionary/index.js +1 -1
- package/hooks/useDownloadBlob/index.js +1 -1
- package/hooks/useDownloadFile/index.js +1 -1
- package/hooks/useGetFile/index.js +1 -1
- package/hooks/useGetUserInfo/index.js +1 -1
- package/hooks/useIdle/index.js +1 -1
- package/hooks/useImportFile/index.js +1 -1
- package/hooks/useIsExistenceDuplicateSelection/index.js +1 -1
- package/hooks/useTable/index.js +1 -1
- package/hooks/useUploadFile/index.js +1 -1
- package/hooks/useUrlQueryCriteria/index.js +1 -1
- package/package.json +15 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import a from"../../../json/area.json";import
|
|
1
|
+
import a from"../../../src/json/area.json";import r from"../Basic/index.js";import{j as e}from"../../../_virtual/jsx-runtime";function s(s){const{...o}=s;return e.jsx(r,{data:a,nameKey:"label",idKey:"value",...o})}s.displayName="AreaCascader";export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../../_virtual/index";import{processTreeDataByLevel as n}from"../../../utils/index.js";import{j as a}from"../../../_virtual/jsx-runtime";import s from"../../../node_modules/antd/es/cascader/index";function o(o){const{onGetData:l,onChange:t,onGetNodePaths:d,onGetNodePathsIsIncludeOneself:r,getNodePathsIsIncludeOneself:i=!0,placeholder:c="",data:u=[],nameKey:m="name",idKey:f="id",childrenKey:h="children",level:p,...v}=o;void 0!==r&&console.warn("【BasicCascader】 onGetNodePathsIsIncludeOneself 参数已弃用,请使用 getNodePathsIsIncludeOneself 参数");const I=void 0!==r?r:i,N=e.useMemo(()=>p?n({data:u,level:p,childrenKey:h,currentLevel:1}):u,[u,p,h]);return e.useEffect(()=>{l?.(u,N)},[u,N]),a.jsx(s,{options:N,placeholder:`请选择${c}`,onChange:(e,n)=>{if(n&&d){const e=(e=>{let n=e;return!I&&e&&(n=e.slice(0,-1)),n||[]})(n);d?.(e)}t?.(e,n)},onClear:()=>{d?.([])},fieldNames:{label:m,value:f,children:h},...v})}o.displayName="BasicCascader";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{r as a}from"../../../_virtual/index";import{DICTIONARY_APP_KEY_ENUM as i}from"../../../enum/dictionary/index.js";import{executeWithCache as t}from"../../../utils/index.js";import r from"../Basic/index.js";import{j as o}from"../../../_virtual/jsx-runtime";function c(c){const{appKey:s=i.DEFAULT,dictValue:n="",nameKey:d="dictLabel",idKey:u="dictValue",...m}=c,[p,l]=a.useState([]);return a.useEffect(()=>{(async()=>{if(!Object.values(i).includes(s))return void console.error(`【DictionaryCascader】 传入的 appKey 不在 DICTIONARY_APP_KEY_ENUM 中,当前传入的 appKey 是 ${s}`);if(!n)return void console.error("【DictionaryCascader】 缺少 dictValue 参数");const a={appKey:s,dictValue:n};await t(a,async()=>{const{data:a}=await e("/config/dict-trees/list/by/dictValues","get",{appKey:s,dictValue:n});return a},l)})()},[n]),o.jsx(r,{data:p,nameKey:d,idKey:u,...m})}c.displayName="DictionaryCascader";export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"../../../src/json/industry.json";import i from"../Basic/index.js";import{j as t}from"../../../_virtual/jsx-runtime";function e(e){const{...s}=e;return t.jsx(i,{data:r,nameKey:"dict_label",idKey:"dict_value",childrenKey:"childrenList",...s})}e.displayName="IndustryCascader";export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Toolbar as e,Editor as t}from"@wangeditor/editor-for-react";import{
|
|
1
|
+
import{Toolbar as e,Editor as t}from"@wangeditor/editor-for-react";import{r as o}from"../../_virtual/index";import{normalizeEmptyHtml as r}from"../../utils/index.js";import"@wangeditor/editor/dist/css/style.css";import{j as l}from"../../_virtual/jsx-runtime";const s=o.forwardRef(({value:s,onChange:d,disabled:i},a)=>{const[n,m]=o.useState(null),[u,c]=o.useState("");return o.useEffect(()=>{c(s)},[s]),o.useEffect(()=>{n&&(i?n.disable():n.enable())},[i]),o.useEffect(()=>()=>{n&&(n.destroy(),m(null))},[n]),o.useImperativeHandle(a,()=>({getEditorInstance:()=>n,getHtml:()=>n&&n.getHtml(),setHtml:e=>{n&&n.setHtml(e)},getText:()=>n&&n.getText()})),l.jsx(l.Fragment,{children:l.jsxs("div",{style:{border:"1px solid #ccc"},children:[l.jsx(e,{editor:n,defaultConfig:{excludeKeys:["group-image","group-video","insertLink","emotion","todo","fullScreen","insertTable","codeBlock"]},mode:"default",style:{borderBottom:"1px solid #ccc"}}),l.jsx(t,{defaultConfig:{placeholder:"请输入内容..."},value:u,onCreated:e=>{m(e),i&&e.disable()},onChange:e=>{c(e.getHtml()),d?.(r(e.getHtml()))},mode:"default",style:{height:"500px",overflowY:"hidden"}})]})})});s.displayName="Editor";export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../_virtual/index";import{throttle as t}from"throttle-debounce";import o from"./FormItemsRenderer.js";import{j as n}from"../../_virtual/jsx-runtime";import r from"../../node_modules/antd/es/form/index";import s from"../../node_modules/antd/es/spin/index";import i from"../../node_modules/antd/es/grid/col";import d from"../../node_modules/antd/es/grid/row";import l from"../../node_modules/antd/es/space/index";import a from"../../node_modules/antd/es/button/button";import u from"../../node_modules/antd/es/message/index";const m=m=>{const{values:c,options:p,gutter:x=24,span:h=12,labelCol:g={span:4},useAutoGenerateRequired:f=!0,showActionButtons:w=!0,submitButtonText:j="提交",cancelButtonText:b="取消",showSubmitButton:y=!0,showCancelButton:B=!0,customActionButtons:v,extraActionButtons:_,history:A,loading:C=!1,...F}=m,[T,k]=e.useState(window.innerWidth),E=t(50,()=>{const e=document.querySelector("#page-layout");e&&k(e.offsetWidth)});return e.useEffect(()=>{const e=setTimeout(()=>{E()},0);return w&&window.addEventListener("resize",E),()=>{w&&window.removeEventListener("resize",E),clearTimeout(e)}},[w]),n.jsx(s,{spinning:C,children:n.jsxs(r,{labelCol:g,scrollToFirstError:!0,wrapperCol:{span:24-g.span},initialValues:c,onFinishFailed:()=>{u.error("请补全必填项")},style:{width:`calc(100% - ${2*x}px)`,margin:"0 auto"},...F,children:[n.jsx(d,{gutter:x,children:n.jsx(o,{options:p,labelCol:g,span:h,gutter:x,useAutoGenerateRequired:f,initialValues:c})}),w&&n.jsxs("div",{style:{position:"relative",zIndex:"9"},children:[n.jsx("div",{style:{height:"32px"}}),n.jsx(d,{style:{textAlign:"center",backgroundColor:"rgb(241, 241, 242)",padding:"10px 0",position:"fixed",bottom:"0",width:T,margin:"0 -44px"},children:n.jsx(i,{span:24,style:{textAlign:"center"},children:v||n.jsxs(l,{children:[y&&n.jsx(a,{type:"primary",htmlType:"submit",children:j}),_,B&&n.jsx(a,{onClick:()=>{A?.goBack?A.goBack():window.history.back()},children:b})]})})})]})]})})};m.displayName="FormBuilder",m.useForm=r.useForm,m.useWatch=r.useWatch;export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import e from"dayjs";import{FORM_ITEM_RENDER_ENUM as r}from"../../enum/formItemRender/index.js";import{getDataType as n}from"../../utils/index.js";import{j as t}from"../../_virtual/jsx-runtime";import s from"../../node_modules/antd/es/input/index";import o from"../../node_modules/antd/es/date-picker/index";import l from"../../node_modules/antd/es/form/index";import a from"../../node_modules/antd/es/grid/col";import d from"../../node_modules/antd/es/grid/row";import i from"../../node_modules/antd/es/divider/index";import p from"../../node_modules/antd/es/button/button";import u from"../../node_modules/antd/es/checkbox/index";import m from"../../node_modules/antd/es/radio/index";import c from"../../node_modules/antd/es/select/index";import h from"../../node_modules/antd/es/input-number/index";import x from"../../node_modules/antd/es/tooltip/index";import y from"../../node_modules/@ant-design/icons/es/icons/InfoCircleOutlined";const{TextArea:f}=s,{RangePicker:E}=o,T=({options:T,labelCol:j,gutter:I=24,span:b=12,collapse:v=!1,useAutoGenerateRequired:A=!0,initialValues:R})=>{const w=l.useFormInstance(),Y=()=>{const e=w.getFieldsValue();return 0===Object.keys(e).length&&R?R:e},D=e=>"function"==typeof e.componentProps?e.componentProps(Y()):e.componentProps||{},_=n=>{const t="function"==typeof n.formItemProps?n.formItemProps(Y()):n.formItemProps||{};return((n,t)=>{[r.DATE,r.DATE_MONTH,r.DATE_YEAR,r.DATETIME].includes(n.render)&&(t.getValueFromEvent=(e,r)=>r,t.getValueProps=r=>({value:r?e(r):void 0})),[r.DATE_WEEK].includes(n.render)&&(t.getValueFromEvent=(e,r)=>r,t.getValueProps=r=>({value:r?e(r,"YYYY-wo"):void 0})),[r.DATE_RANGE,r.DATETIME_RANGE].includes(n.render)&&(t.getValueFromEvent=(e,r)=>r,t.getValueProps=r=>({value:Array.isArray(r)?r.map(r=>r?e(r):void 0):void 0}))})(n,t),t},C=e=>"function"==typeof e?e(Y()):e??!0,N=e=>{if(e.render===r.DIVIDER)return[];const n=[];switch(e.render||r.INPUT){case r.INPUT:!1!==e.useConstraints&&n.push({max:50,message:"最多输入50字符"});break;case r.TEXTAREA:!1!==e.useConstraints&&n.push({max:500,message:"最多输入500字符"});break;case r.INPUT_NUMBER:case r.NUMBER:!1!==e.useConstraints&&n.push({pattern:/^(\d+)(\.\d{1,2})?$/,message:"请输入正确的数字,最多保留两位小数"}),!1!==e.useConstraints&&n.push({validator:(e,r)=>r&&Math.abs(Number.parseFloat(r))>999999999?Promise.reject("输入数值超出安全范围"):Promise.resolve()});break;case r.INTEGER:!1!==e.useConstraints&&n.push({pattern:/^(\d+)$/,message:"请输入正确的整数"}),!1!==e.useConstraints&&n.push({validator:(e,r)=>r&&Math.abs(Number.parseFloat(r))>999999999?Promise.reject("输入数值超出安全范围"):Promise.resolve()})}if(!A)return e.rules?Array.isArray(e.rules)?[...e.rules,...n]:[e.rules,...n]:n;if(C(e.required)){const t=!e.render||[r.INPUT,r.TEXTAREA,r.INPUT_NUMBER,r.NUMBER,r.INTEGER].includes(e.render);n.push({required:!0,message:`${t?"请输入":"请选择"}${e.label}`})}return e.rules?Array.isArray(e.rules)?[...e.rules,...n]:[e.rules,...n]:n},M=e=>e.key||("Array"===n(e.name)?e.name.join("."):e.name),g=e=>{const n=e.render===r.DIVIDER?24:e.span??b,t=e.labelCol??(24===n?{span:j.span/2}:j);return{span:n,labelCol:t,wrapperCol:e.wrapperCol??{span:24-t.span}}},P=e=>"function"==typeof e.colStyle?e.colStyle(Y()):e.colStyle,U=e=>"function"==typeof e.colTitle?e.colTitle(Y()):e.colTitle,F=(e,r)=>(e.shouldUpdate??e.dependencies)||(r.shouldUpdate??r.dependencies),k=e=>"function"==typeof e?e(Y()):e??!1,B=(e,r)=>({value:e[r.valueKey],label:"function"==typeof r.labelKey?r.labelKey(e):e[r.labelKey],disabled:e.disabled}),S=e=>{const n=D(e),l=(e=>({valueKey:e?.itemsField?.valueKey||"bianma",labelKey:e?.itemsField?.labelKey||"name"}))(e),i=e.render??r.INPUT,p=e.placeholder??`请${[r.INPUT,r.TEXTAREA,r.INPUT_NUMBER,r.NUMBER,r.INTEGER].includes(i)?"输入":"选择"}${e.label}`;switch(i){case r.INPUT:return t.jsx(s,{placeholder:p,maxLength:!1!==e.useConstraints?50:9999,...n});case r.TEXTAREA:return t.jsx(f,{placeholder:p,maxLength:!1!==e.useConstraints?500:9999,showCount:!0,rows:3,...n});case r.INPUT_NUMBER:case r.NUMBER:case r.INTEGER:return t.jsx(h,{placeholder:p,style:{width:"100%"},...n});case r.SELECT:return t.jsx(c,{placeholder:p,optionFilterProp:"label",showSearch:!0,allowClear:!0,options:(e.items||[]).map(e=>B(e,l)),...n});case r.RADIO:return t.jsx(m.Group,{options:(e.items||[]).map(e=>B(e,l)),...n});case r.CHECKBOX:{const r=(e.items||[]).map(e=>B(e,l));return e.checkboxCol?t.jsx(u.Group,{...n,children:t.jsx(d,{children:r.map(({value:r,label:n,disabled:s})=>t.jsx(a,{span:e.checkboxCol,children:t.jsx(u,{value:r,disabled:s,children:n})},r))})}):t.jsx(u.Group,{options:r,...n})}case r.DATE:return t.jsx(o,{placeholder:p,format:"YYYY-MM-DD",style:{width:"100%"},...n});case r.DATE_MONTH:return t.jsx(o,{picker:"month",placeholder:p,format:"YYYY-MM",style:{width:"100%"},...n});case r.DATE_YEAR:return t.jsx(o,{picker:"year",placeholder:p,format:"YYYY",style:{width:"100%"},...n});case r.DATE_WEEK:return t.jsx(o,{picker:"week",placeholder:p,format:"YYYY-wo",style:{width:"100%"},...n});case r.DATE_RANGE:return t.jsx(E,{placeholder:[`请选择开始${e.label}`,`请选择结束${e.label}`],format:"YYYY-MM-DD",style:{width:"100%"},...n});case r.DATETIME:return t.jsx(o,{showTime:!0,placeholder:p,format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"},...n});case r.DATETIME_RANGE:return t.jsx(E,{showTime:!0,placeholder:[`请选择开始${e.label}`,`请选择结束${e.label}`],format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"},...n});case r.DIVIDER:return null;default:return i}},L=e=>e.tip?t.jsxs(t.Fragment,{children:[e.label,t.jsx(x,{title:e.tip,children:t.jsx(y,{style:{marginLeft:4,fontSize:12}})})]}):e.label,V=({option:e,style:r,col:n,index:s,preserve:o})=>{const d=_(e);return delete d.dependencies,delete d.shouldUpdate,k(e.hidden)?null:t.jsxs(a,{span:n.span,style:{...r,...P(e)},children:[U(e),t.jsx(l.Item,{name:e.name,label:L(e),rules:N(e),labelCol:n.labelCol,wrapperCol:n.wrapperCol,preserve:o,required:!!A&&" "!==L(e)&&C(e.required),colon:" "!==L(e),...d,children:S(e)})]},M(e)||s)},G=({option:e,style:n,col:s,index:o,preserve:d})=>{const p=D(e);return k(e.hidden)?null:e.customizeRender?t.jsx(a,{span:s.span,style:n,children:e.render},M(e)||o):e.onlyForLabel?t.jsx(l.Item,{name:e.name,noStyle:!0,preserve:d,children:t.jsx("input",{type:"hidden"})},M(e)||o):e.render===r.DIVIDER?t.jsx(a,{span:s.span,style:n,children:t.jsx(i,{orientation:"left",...p,children:e.label})},M(e)||o):null},$=({option:e,index:n,col:s,style:o})=>{const i=(e=>{const r={showAddButton:!0,showRemoveButton:!0,addButtonText:"添加",removeButtonText:"删除",options:[],addDefaultValue:{},addInsertIndex:void 0};return"function"==typeof e.formListUniqueProps?{...r,...e.formListUniqueProps(Y())}:{...r,...e.formListUniqueProps||{}}})(e),u=D(e);return k(e.hidden)?null:t.jsxs(a,{span:s.span,style:{...o,...P(e)},children:[U(e),t.jsx(l.List,{name:e.name,...u,children:(n,{add:s,remove:u,move:m})=>t.jsx(t.Fragment,{children:n.map((n,c)=>{const h=((e,r,n,t,s,o)=>"function"==typeof e?e(r,n,{field:r,fieldIndex:n,add:t,remove:s,move:o}):e??[])(i.options,n,c,s,u,m),x=((e,r,n)=>"function"==typeof e.rowStyle?e.rowStyle(r,n):e.rowStyle)(e,n,c),y=((e,r,n)=>"function"==typeof e.rowTitle?e.rowTitle(r,n):e.rowTitle)(e,n,c);return t.jsxs(d,{gutter:I,style:x,children:[y,h.map((e,d)=>{const m=g(e),x=_(e),y={option:e,style:o,col:m,index:`${c}_${d}`,preserve:!0};if(F(e,x))return K(y);const f=G(y);return f||(e.render===r.FORM_LIST?$(y):d===(()=>{for(let e=h.length-1;e>=0;e--){const n=h[e];if(!k(n.hidden)&&!n.onlyForLabel&&n.render!==r.FORM_LIST)return e}return-1})()?(delete x.dependencies,delete x.shouldUpdate,t.jsxs(a,{span:m.span,style:{...o,...P(e)},children:[U(e),t.jsx(l.Item,{label:L(e),labelCol:m.labelCol,wrapperCol:m.wrapperCol,preserve:!1,required:!!A&&" "!==L(e)&&C(e.required),colon:" "!==L(e),...x,children:t.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",justifyContent:"space-between"},children:[t.jsx("div",{style:{flex:1,minWidth:0},children:t.jsx(l.Item,{noStyle:!0,rules:N(e),name:e.name,children:S(e)})}),c>=1?i.showRemoveButton&&t.jsx(p,{type:"primary",danger:!0,onClick:()=>u(n.name),children:i.removeButtonText}):i.showAddButton&&t.jsx(p,{type:"primary",onClick:()=>s(i.addDefaultValue,i.addInsertIndex),children:i.addButtonText})]})})]},M(e)||d)):V(y))})]},n.key)})})})]},M(e)||n)},K=({option:e,index:n,style:s,col:o,preserve:a})=>{const d=_(e);return t.jsx(l.Item,{noStyle:!0,preserve:a,shouldUpdate:e.shouldUpdate??d.shouldUpdate,dependencies:e.dependencies??d.dependencies,children:()=>G({option:e,style:s,col:o,index:n,preserve:a})||(e.render===r.FORM_LIST?$({option:e,index:n,col:o,style:s}):V({option:e,style:s,col:o,index:n,preserve:a}))},M(e)||n)};return t.jsx(t.Fragment,{children:T.map((e,n)=>{const t=g(e),s=(e=>v&&e>=3?{display:"none"}:void 0)(n),o=_(e),l={option:e,style:s,col:t,index:n,preserve:!1};if(F(e,o))return K(l);return G(l)||(e.render===r.FORM_LIST?$(l):V(l))})})};T.displayName="FormItemsRenderer";export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import"../../src/components/HeaderBack/index.less";import{j as e}from"../../_virtual/jsx-runtime";import s from"../../node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined";import i from"../../node_modules/antd/es/divider/index";function r(r){const{title:a,history:n,previous:o=!0}=r;return e.jsx("div",{className:"header-back",children:e.jsxs("div",{className:"action",children:[o&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"back",onClick:()=>{n?.goBack?n.goBack():window.history.back()},children:[e.jsx(s,{style:{fontSize:14}}),e.jsx("span",{children:"返回"})]}),e.jsx(i,{type:"vertical",style:{backgroundColor:"#dcdfe6",marginLeft:15,marginRight:15}})]}),e.jsx("div",{className:"title",children:a})]})})}r.displayName="HeaderBack";export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{Spin as i,Divider as d,Descriptions as l,Space as n,Button as t}from"antd";import r from"dayjs";import{useState as a,useEffect as s}from"react";import{HIDDEN_SOURCE_ENUM as c,HIDDEN_STATE_ENUM as h,HIDDEN_RECTIFICATION_TYPE_ENUM as o}from"../../../enum/hidden/gwj/index.js";import{UPLOAD_FILE_TYPE_ENUM as m}from"../../../enum/uploadFile/gwj/index.js";import p from"../../../hooks/useDownloadFile/index.js";import f from"../../../hooks/useGetFile/index.js";import b from"../../../hooks/useGetUrlQuery/index.js";import{getLabelName as C,getFileSuffix as u,getFileName as O}from"../../../utils/index.js";import y from"../../Icon/VideoIcon/index.js";import U from"../../PreviewImg/index.js";import g from"../../PreviewPdf/index.js";import k from"../../Video/index.js";import{jsxs as N,jsx as j,Fragment as T}from"react/jsx-runtime";function F(F){const{id:R="",idKey:S="id",hiddenId:I="",hiddenIdKey:A="hiddenId",history:D=!1,onGetData:L}=F,[w,P]=a({hiddenUserPresetsCO:{},hiddenRectifyUserCO:[],hiddenConfirmUserCO:[],hiddenAcceptUserCO:[],hiddenAcceptQualifiedUserCO:[],hiddenAcceptUnqualifiedUserCO:[],hiddenInspecCO:{},hiddenSpecialList:[],hiddenExtensionList:[]}),[q,x]=a([]),[v,Q]=a([]),[K,Y]=a([]),[M,$]=a([]),[E,G]=a([]),[H,z]=a([]),[B,V]=a(!0),[J,W]=a(!1),{getFile:X}=f(),Z=b(),{loading:_,downloadFile:ee}=p();return s(()=>{(async()=>{e(D?`/hidden/hidden/history/${R||Z[S]}`:`/hidden/hidden/${R||Z[S]}`,"get").then(e=>{if(e.data.hiddenAcceptQualifiedUserCO=[],e.data.hiddenAcceptUnqualifiedUserCO=[],e.data.hiddenAcceptUserCO&&e.data.hiddenAcceptUserCO.length>0)for(let i=0;i<e.data.hiddenAcceptUserCO.length;i++)1===e.data.hiddenAcceptUserCO[i].status?e.data.hiddenAcceptQualifiedUserCO.push(e.data.hiddenAcceptUserCO[i]):e.data.hiddenAcceptUnqualifiedUserCO.push(e.data.hiddenAcceptUserCO[i]);P(e.data),(async e=>{const i=await X({eqType:m[3],eqForeignKey:I||Z[A]});x(i);const d=await X({eqType:m[102],eqForeignKey:I||Z[A]});if(Q(d),e.hiddenRectifyUserCO&&e.hiddenRectifyUserCO.length>0)for(let i=0;i<e.hiddenRectifyUserCO.length;i++){if(e.hiddenRectifyUserCO[i].hiddenUserId){const d=await X({eqType:m[4],eqForeignKey:e.hiddenRectifyUserCO[i].hiddenUserId});Y(e=>[...e,d])}if(1===e.hiddenRectifyUserCO[i].isRectificationScheme&&e.hiddenRectifyUserCO[i].hiddenSchemeCO&&Object.keys(e.hiddenRectifyUserCO[i].hiddenSchemeCO).length>0&&e.hiddenRectifyUserCO[i].hiddenSchemeCO.hiddenSchemeId){const d=await X({eqType:m[8],eqForeignKey:e.hiddenRectifyUserCO[i].hiddenSchemeCO.hiddenSchemeId});$(e=>[...e,d])}}if(e.hiddenAcceptQualifiedUserCO&&e.hiddenAcceptQualifiedUserCO.length>0)for(let i=0;i<e.hiddenAcceptQualifiedUserCO.length;i++)if(e.hiddenAcceptQualifiedUserCO[i].hiddenUserId){const d=await X({eqType:m[5],eqForeignKey:e.hiddenAcceptQualifiedUserCO[i].hiddenUserId});G(e=>[...e,d])}if(e.hiddenInspecCO&&Object.keys(e.hiddenInspecCO).length>0){const e=await X({eqType:m[146],eqForeignKey:I||Z[A]});z(e)}})(e.data),V(!1),L?.(e.data)})})()},[F.id,F.hiddenId]),N("div",{children:[N(i,{spinning:B||_,children:[j(d,{orientation:"left",children:"隐患信息"}),j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"隐患来源",children:C({list:c,status:w.source})},{label:"隐患类型",children:w.hiddenTypeName},{label:"隐患级别",children:w.hiddenLevelName},{label:"隐患状态",children:C({list:h,status:w.state})},{label:"隐患描述",children:w.hiddenDesc},...w.hiddenPartName?[{label:"隐患部位",children:w.hiddenPartName}]:[],...(2===w.source||3===w.source)&&w.hiddenCheckListCO&&Object.keys(w.hiddenCheckListCO).length>0?[{label:"风险点(单元)",children:w.hiddenCheckListCO.listRiskPoints},{label:"辨识部位",children:w.hiddenCheckListCO.identifiedLocations},{label:"存在风险",children:w.hiddenCheckListCO.existingRisks},{label:"风险分级",children:w.hiddenCheckListCO.riskLevel},{label:"隐患清单",children:w.hiddenCheckListCO.listName},{label:"检查内容",children:w.hiddenCheckListCO.inspectionContent}]:[],...w.longitude?[{label:"隐患上报位置(经纬度)",children:[w.longitude&&`经度:${w.longitude}`,w.latitude&&`纬度:${w.latitude}`].filter(Boolean).join(" ")}]:[],...w.positionDesc?[{label:"隐患位置描述",children:w.positionDesc}]:[],{label:"隐患发现人",children:w.creatorName},{label:"隐患发现时间",children:r(w.hiddenFindTime).format("YYYY-MM-DD HH:mm:ss")},{label:"整改类型",children:C({list:o,status:w.rectificationType})},{label:"是否相关方",children:C({list:[{bianma:"1",name:"是"},{bianma:"0",name:"否"}],status:w.isRelated})},...1===w.isRelated?[{label:"相关方项目",children:w.projectName}]:[],{label:"隐患图片",children:j(U,{files:q})},...v.length>0?[{label:"隐患视频",children:j(y,{onClick:()=>{W(!0)}})}]:[]]}),w.hiddenUserPresetsCO&&Object.keys(w.hiddenUserPresetsCO).length>0&&N(T,{children:[j(d,{orientation:"left",children:"整改信息(发现人预填)"}),j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"整改"+(1===w.isRelated?"单位":"部门"),children:w.hiddenUserPresetsCO.rectifyDeptName},{label:"整改人",children:w.hiddenUserPresetsCO.rectifyUserName},...2===w.rectificationType&&w.hiddenUserPresetsCO.rectifyDeadline?[{label:"整改期限",children:w.hiddenUserPresetsCO.rectifyDeadline?r(w.hiddenUserPresetsCO.rectifyDeadline).format("YYYY-MM-DD"):""}]:[],...1===w.rectificationType?[{label:"验收部门",children:w.hiddenUserPresetsCO.checkDeptName},{label:"验收人",children:w.hiddenUserPresetsCO.checkUserName}]:[]]})]}),w.hiddenConfirmUserCO&&w.hiddenConfirmUserCO.length>0&&N(T,{children:[j(d,{orientation:"left",children:"隐患确认"}),w.hiddenConfirmUserCO.map(e=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[...e.hiddenLevelName&&0!==e.status?[{label:"隐患级别",children:e.hiddenLevelName}]:[],...e.userName?[{label:"隐患确认人",children:e.userName}]:[],...e.rectificationTime?[{label:"隐患确认时间",children:e.rectificationTime}]:[],...e.rectifyDeptName&&0!==e.status?[{label:"整改"+(1===w.isRelated?"单位":"部门"),children:e.rectifyDeptName}]:[],...e.rectifyUserName&&0!==e.status?[{label:"整改人",children:e.rectifyUserName}]:[],...e.rectificationDeadline&&0!==e.status?[{label:"整改完成期限",children:e.rectificationDeadline}]:[],...e.checkDeptName&&0!==e.status?[{label:"验收部门",children:e.checkDeptName}]:[],...e.checkUserName&&0!==e.status?[{label:"验收人",children:e.checkUserName}]:[],...0===e.status?[...e.repulseCause?[{label:"打回意见",children:e.repulseCause}]:[],...e.rectificationTime?[{label:"打回时间",children:e.rectificationTime}]:[]]:[]]},e.id))]}),w.hiddenExtensionList&&w.hiddenExtensionList.length>0&&N(T,{children:[j(d,{orientation:"left",children:"延期信息"}),w.hiddenExtensionList.map(e=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[...e.createTime?[{label:"申请延期日期",children:e.createTime}]:[],...e.delayTime?[{label:"延期日期",children:e.delayTime}]:[],...e.updateName?[{label:"审核人",children:e.updateName}]:[],...e.disposalPlan?[{label:"处置方案",children:e.disposalPlan}]:[],...e.disposalFile?[{label:"处置方案附件",children:"pdf"===u(e.disposalFile)?j(g,{name:O(e.disposalFile),url:e.disposalFile}):N(n,{children:[j("span",{children:O(e.disposalFile)}),j(t,{type:"primary",size:"small",onClick:()=>ee({url:e.disposalFile}),children:"下载"})]})}]:[],{label:"延期审核状态",children:N(T,{children:[1===e.state&&j("span",{children:"待审核"}),2===e.state&&j("span",{children:"审批中"}),3===e.state&&j("span",{children:"已通过"}),4===e.state&&j("span",{children:"已拒绝"}),5===e.state&&j("span",{children:"已撤回"})]})},...3===e.state||4===e.state?[{label:"延期审核时间",children:e.updateTime}]:[]]},e.id))]}),w.hiddenSpecialList&&w.hiddenSpecialList.length>0&&N(T,{children:[j(d,{orientation:"left",children:"特殊处置审核信息"}),w.hiddenSpecialList.map(e=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[...3===e.state||4===e.state?[...e.updateName?[{label:"审核人",children:e.updateName}]:[],...e.updateTime?[{label:"审核时间",children:e.updateTime}]:[]]:[],{label:"无法整改原因",children:e.examine},...3===e.state?[...e.disposalPlan?[{label:"处置方案",children:e.disposalPlan}]:[],...e.disposalFile?[{label:"处置方案附件",children:"pdf"===u(e.disposalFile)?j(g,{name:O(e.disposalFile),url:e.disposalFile}):N(n,{children:[j("span",{children:O(e.disposalFile)}),j(t,{type:"primary",size:"small",onClick:()=>ee({url:e.disposalFile}),children:"下载"})]})}]:[]]:[],...4===e.state?[{label:"是否更换整改负责人",children:e.rectifyUserCO&&Object.keys(e.rectifyUserCO).length>0?"是":"否"},...e.rectifyUserCO&&Object.keys(e.rectifyUserCO).length>0?[{label:"整改负责人",children:e.rectifyUserCO.userName}]:[]]:[],{label:"特殊处置审核状态",children:N(T,{children:[1===e.state&&j("span",{children:"待审核"}),2===e.state&&j("span",{children:"审批中"}),3===e.state&&j("span",{children:"已通过"}),4===e.state&&j("span",{children:"已拒绝"}),5===e.state&&j("span",{children:"已撤回"})]})}]},e.id))]}),w.hiddenRectifyUserCO&&w.hiddenRectifyUserCO.length>0&&N(T,{children:[j(d,{orientation:"left",children:"整改信息"}),w.hiddenRectifyUserCO.map((e,i)=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[...e.deptName?[{label:"整改"+(1===w.isRelated?"单位":"部门"),children:e.deptName}]:[],...e.userName?[{label:"整改人",children:e.userName}]:[],...e.rectificationTime?[{label:"整改时间",children:e.rectificationTime}]:[],...e.descr?[{label:"整改描述",children:e.descr}]:[],...e.investmentFunds?[{label:"投入资金",children:`${e.investmentFunds}元`}]:[],...e.remarks?[{label:"临时安全措施",children:e.remarks}]:[],{label:"整改后图片",children:j(U,{files:K[i]})},{label:"整改方案",children:N(T,{children:[0===e.isRectificationScheme&&j("span",{children:"无"}),1===e.isRectificationScheme&&j("span",{children:"有"})]})},...1===e.isRectificationScheme&&e.hiddenSchemeCO&&Object.keys(e.hiddenSchemeCO).length>0?[{label:"治理标准",children:e.hiddenSchemeCO.governStanDards},{label:"治理方法",children:e.hiddenSchemeCO.governMethod},{label:"经费落实",children:e.hiddenSchemeCO.expenditure},{label:"负责人员",children:e.hiddenSchemeCO.principal},{label:"工时安排",children:e.hiddenSchemeCO.programming},{label:"时限要求",children:e.hiddenSchemeCO.timeLimitFor},{label:"工作要求",children:e.hiddenSchemeCO.jobRequireMent},{label:"其他事项",children:e.hiddenSchemeCO.otherBusiness},{label:"方案图片",children:j(U,{files:M[i]})}]:[]]},e.id))]}),w.hiddenAcceptQualifiedUserCO.length>0?N(T,{children:[j(d,{orientation:"left",children:"验收信息"}),w.hiddenAcceptQualifiedUserCO.map((e,i)=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"验收部门",children:e.deptName},{label:"验收人",children:e.userName},{label:"验收时间",children:e.rectificationTime},...e.repulseCause?[{label:"验收打回意见",children:e.repulseCause}]:[],{label:"是否合格",children:e.rectificationTime?"合格":""},...e.descr?[{label:"验收描述",children:e.descr}]:[],...E[i]&&E[i].length>0?[{label:"验收图片",children:j(U,{files:E[i]})}]:[]]},e.id))]}):null,w.hiddenAcceptUnqualifiedUserCO.length>0?N(T,{children:[j(d,{orientation:"left",children:"验收打回信息"}),w.hiddenAcceptUnqualifiedUserCO.map(e=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"验收部门",children:e.deptName},{label:"验收人",children:e.userName},{label:"验收时间",children:e.rectificationTime},{label:"验收打回意见",children:e.repulseCause}]},e.id))]}):null,w.hiddenInspecCO&&Object.keys(w.hiddenInspecCO).length>0?N(T,{children:[j(d,{orientation:"left",children:"安全环保验收信息"}),j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"验收人",children:w.hiddenInspecCO.finalCheckOr},{label:"验收时间",children:w.hiddenInspecCO.finalCheckTime},{label:"是否合格",children:1===w.hiddenInspecCO.finalCheck?"合格":"不合格"},{label:"验收描述",children:w.hiddenInspecCO.finalCheckDesc},{label:"验收图片",children:j(U,{files:H})}]})]}):null]}),J&&j(k,{visible:J,source:v[0].url,onCancel:()=>W(!1),title:"隐患视频"})]})}F.displayName="HiddenInfo";export{F as default};
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import i from"dayjs";import{r as d}from"../../../_virtual/index";import{HIDDEN_SOURCE_ENUM as l,HIDDEN_STATE_ENUM as n,HIDDEN_RECTIFICATION_TYPE_ENUM as s}from"../../../enum/hidden/gwj/index.js";import{UPLOAD_FILE_TYPE_ENUM as t}from"../../../enum/uploadFile/gwj/index.js";import r from"../../../hooks/useDownloadFile/index.js";import a from"../../../hooks/useGetFile/index.js";import c from"../../../hooks/useGetUrlQuery/index.js";import{getLabelName as h,getFileSuffix as o,getFileName as m}from"../../../utils/index.js";import p from"../../Icon/VideoIcon/index.js";import f from"../../PreviewImg/index.js";import b from"../../PreviewPdf/index.js";import u from"../../Video/index.js";import{j as C}from"../../../_virtual/jsx-runtime";import O from"../../../node_modules/antd/es/spin/index";import j from"../../../node_modules/antd/es/divider/index";import x from"../../../node_modules/antd/es/descriptions/index";import y from"../../../node_modules/antd/es/space/index";import U from"../../../node_modules/antd/es/button/button";function g(g){const{id:F="",idKey:k="id",hiddenId:N="",hiddenIdKey:S="hiddenId",history:T=!1,onGetData:R}=g,[I,A]=d.useState({hiddenUserPresetsCO:{},hiddenRectifyUserCO:[],hiddenConfirmUserCO:[],hiddenAcceptUserCO:[],hiddenAcceptQualifiedUserCO:[],hiddenAcceptUnqualifiedUserCO:[],hiddenInspecCO:{},hiddenSpecialList:[],hiddenExtensionList:[]}),[D,L]=d.useState([]),[w,P]=d.useState([]),[q,v]=d.useState([]),[Q,K]=d.useState([]),[Y,_]=d.useState([]),[M,E]=d.useState([]),[$,G]=d.useState(!0),[H,z]=d.useState(!1),{getFile:B}=a(),V=c(),{loading:J,downloadFile:W}=r();return d.useEffect(()=>{(async()=>{e(T?`/hidden/hidden/history/${F||V[k]}`:`/hidden/hidden/${F||V[k]}`,"get").then(e=>{if(e.data.hiddenAcceptQualifiedUserCO=[],e.data.hiddenAcceptUnqualifiedUserCO=[],e.data.hiddenAcceptUserCO&&e.data.hiddenAcceptUserCO.length>0)for(let i=0;i<e.data.hiddenAcceptUserCO.length;i++)1===e.data.hiddenAcceptUserCO[i].status?e.data.hiddenAcceptQualifiedUserCO.push(e.data.hiddenAcceptUserCO[i]):e.data.hiddenAcceptUnqualifiedUserCO.push(e.data.hiddenAcceptUserCO[i]);A(e.data),(async e=>{const i=await B({eqType:t[3],eqForeignKey:N||V[S]});L(i);const d=await B({eqType:t[102],eqForeignKey:N||V[S]});if(P(d),e.hiddenRectifyUserCO&&e.hiddenRectifyUserCO.length>0)for(let i=0;i<e.hiddenRectifyUserCO.length;i++){if(e.hiddenRectifyUserCO[i].hiddenUserId){const d=await B({eqType:t[4],eqForeignKey:e.hiddenRectifyUserCO[i].hiddenUserId});v(e=>[...e,d])}if(1===e.hiddenRectifyUserCO[i].isRectificationScheme&&e.hiddenRectifyUserCO[i].hiddenSchemeCO&&Object.keys(e.hiddenRectifyUserCO[i].hiddenSchemeCO).length>0&&e.hiddenRectifyUserCO[i].hiddenSchemeCO.hiddenSchemeId){const d=await B({eqType:t[8],eqForeignKey:e.hiddenRectifyUserCO[i].hiddenSchemeCO.hiddenSchemeId});K(e=>[...e,d])}}if(e.hiddenAcceptQualifiedUserCO&&e.hiddenAcceptQualifiedUserCO.length>0)for(let i=0;i<e.hiddenAcceptQualifiedUserCO.length;i++)if(e.hiddenAcceptQualifiedUserCO[i].hiddenUserId){const d=await B({eqType:t[5],eqForeignKey:e.hiddenAcceptQualifiedUserCO[i].hiddenUserId});_(e=>[...e,d])}if(e.hiddenInspecCO&&Object.keys(e.hiddenInspecCO).length>0){const e=await B({eqType:t[146],eqForeignKey:N||V[S]});E(e)}})(e.data),G(!1),R?.(e.data)})})()},[g.id,g.hiddenId]),C.jsxs("div",{children:[C.jsxs(O,{spinning:$||J,children:[C.jsx(j,{orientation:"left",children:"隐患信息"}),C.jsx(x,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"隐患来源",children:h({list:l,status:I.source})},{label:"隐患类型",children:I.hiddenTypeName},{label:"隐患级别",children:I.hiddenLevelName},{label:"隐患状态",children:h({list:n,status:I.state})},{label:"隐患描述",children:I.hiddenDesc},...I.hiddenPartName?[{label:"隐患部位",children:I.hiddenPartName}]:[],...(2===I.source||3===I.source)&&I.hiddenCheckListCO&&Object.keys(I.hiddenCheckListCO).length>0?[{label:"风险点(单元)",children:I.hiddenCheckListCO.listRiskPoints},{label:"辨识部位",children:I.hiddenCheckListCO.identifiedLocations},{label:"存在风险",children:I.hiddenCheckListCO.existingRisks},{label:"风险分级",children:I.hiddenCheckListCO.riskLevel},{label:"隐患清单",children:I.hiddenCheckListCO.listName},{label:"检查内容",children:I.hiddenCheckListCO.inspectionContent}]:[],...I.longitude?[{label:"隐患上报位置(经纬度)",children:[I.longitude&&`经度:${I.longitude}`,I.latitude&&`纬度:${I.latitude}`].filter(Boolean).join(" ")}]:[],...I.positionDesc?[{label:"隐患位置描述",children:I.positionDesc}]:[],{label:"隐患发现人",children:I.creatorName},{label:"隐患发现时间",children:i(I.hiddenFindTime).format("YYYY-MM-DD HH:mm:ss")},{label:"整改类型",children:h({list:s,status:I.rectificationType})},{label:"是否相关方",children:h({list:[{bianma:"1",name:"是"},{bianma:"0",name:"否"}],status:I.isRelated})},...1===I.isRelated?[{label:"相关方项目",children:I.projectName}]:[],{label:"隐患图片",children:C.jsx(f,{files:D})},...w.length>0?[{label:"隐患视频",children:C.jsx(p,{onClick:()=>{z(!0)}})}]:[]]}),I.hiddenUserPresetsCO&&Object.keys(I.hiddenUserPresetsCO).length>0&&C.jsxs(C.Fragment,{children:[C.jsx(j,{orientation:"left",children:"整改信息(发现人预填)"}),C.jsx(x,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"整改"+(1===I.isRelated?"单位":"部门"),children:I.hiddenUserPresetsCO.rectifyDeptName},{label:"整改人",children:I.hiddenUserPresetsCO.rectifyUserName},...2===I.rectificationType&&I.hiddenUserPresetsCO.rectifyDeadline?[{label:"整改期限",children:I.hiddenUserPresetsCO.rectifyDeadline?i(I.hiddenUserPresetsCO.rectifyDeadline).format("YYYY-MM-DD"):""}]:[],...1===I.rectificationType?[{label:"验收部门",children:I.hiddenUserPresetsCO.checkDeptName},{label:"验收人",children:I.hiddenUserPresetsCO.checkUserName}]:[]]})]}),I.hiddenConfirmUserCO&&I.hiddenConfirmUserCO.length>0&&C.jsxs(C.Fragment,{children:[C.jsx(j,{orientation:"left",children:"隐患确认"}),I.hiddenConfirmUserCO.map(e=>C.jsx(x,{bordered:!0,column:1,styles:{label:{width:200}},items:[...e.hiddenLevelName&&0!==e.status?[{label:"隐患级别",children:e.hiddenLevelName}]:[],...e.userName?[{label:"隐患确认人",children:e.userName}]:[],...e.rectificationTime?[{label:"隐患确认时间",children:e.rectificationTime}]:[],...e.rectifyDeptName&&0!==e.status?[{label:"整改"+(1===I.isRelated?"单位":"部门"),children:e.rectifyDeptName}]:[],...e.rectifyUserName&&0!==e.status?[{label:"整改人",children:e.rectifyUserName}]:[],...e.rectificationDeadline&&0!==e.status?[{label:"整改完成期限",children:e.rectificationDeadline}]:[],...e.checkDeptName&&0!==e.status?[{label:"验收部门",children:e.checkDeptName}]:[],...e.checkUserName&&0!==e.status?[{label:"验收人",children:e.checkUserName}]:[],...0===e.status?[...e.repulseCause?[{label:"打回意见",children:e.repulseCause}]:[],...e.rectificationTime?[{label:"打回时间",children:e.rectificationTime}]:[]]:[]]},e.id))]}),I.hiddenExtensionList&&I.hiddenExtensionList.length>0&&C.jsxs(C.Fragment,{children:[C.jsx(j,{orientation:"left",children:"延期信息"}),I.hiddenExtensionList.map(e=>C.jsx(x,{bordered:!0,column:1,styles:{label:{width:200}},items:[...e.createTime?[{label:"申请延期日期",children:e.createTime}]:[],...e.delayTime?[{label:"延期日期",children:e.delayTime}]:[],...e.updateName?[{label:"审核人",children:e.updateName}]:[],...e.disposalPlan?[{label:"处置方案",children:e.disposalPlan}]:[],...e.disposalFile?[{label:"处置方案附件",children:"pdf"===o(e.disposalFile)?C.jsx(b,{name:m(e.disposalFile),url:e.disposalFile}):C.jsxs(y,{children:[C.jsx("span",{children:m(e.disposalFile)}),C.jsx(U,{type:"primary",size:"small",onClick:()=>W({url:e.disposalFile}),children:"下载"})]})}]:[],{label:"延期审核状态",children:C.jsxs(C.Fragment,{children:[1===e.state&&C.jsx("span",{children:"待审核"}),2===e.state&&C.jsx("span",{children:"审批中"}),3===e.state&&C.jsx("span",{children:"已通过"}),4===e.state&&C.jsx("span",{children:"已拒绝"}),5===e.state&&C.jsx("span",{children:"已撤回"})]})},...3===e.state||4===e.state?[{label:"延期审核时间",children:e.updateTime}]:[]]},e.id))]}),I.hiddenSpecialList&&I.hiddenSpecialList.length>0&&C.jsxs(C.Fragment,{children:[C.jsx(j,{orientation:"left",children:"特殊处置审核信息"}),I.hiddenSpecialList.map(e=>C.jsx(x,{bordered:!0,column:1,styles:{label:{width:200}},items:[...3===e.state||4===e.state?[...e.updateName?[{label:"审核人",children:e.updateName}]:[],...e.updateTime?[{label:"审核时间",children:e.updateTime}]:[]]:[],{label:"无法整改原因",children:e.examine},...3===e.state?[...e.disposalPlan?[{label:"处置方案",children:e.disposalPlan}]:[],...e.disposalFile?[{label:"处置方案附件",children:"pdf"===o(e.disposalFile)?C.jsx(b,{name:m(e.disposalFile),url:e.disposalFile}):C.jsxs(y,{children:[C.jsx("span",{children:m(e.disposalFile)}),C.jsx(U,{type:"primary",size:"small",onClick:()=>W({url:e.disposalFile}),children:"下载"})]})}]:[]]:[],...4===e.state?[{label:"是否更换整改负责人",children:e.rectifyUserCO&&Object.keys(e.rectifyUserCO).length>0?"是":"否"},...e.rectifyUserCO&&Object.keys(e.rectifyUserCO).length>0?[{label:"整改负责人",children:e.rectifyUserCO.userName}]:[]]:[],{label:"特殊处置审核状态",children:C.jsxs(C.Fragment,{children:[1===e.state&&C.jsx("span",{children:"待审核"}),2===e.state&&C.jsx("span",{children:"审批中"}),3===e.state&&C.jsx("span",{children:"已通过"}),4===e.state&&C.jsx("span",{children:"已拒绝"}),5===e.state&&C.jsx("span",{children:"已撤回"})]})}]},e.id))]}),I.hiddenRectifyUserCO&&I.hiddenRectifyUserCO.length>0&&C.jsxs(C.Fragment,{children:[C.jsx(j,{orientation:"left",children:"整改信息"}),I.hiddenRectifyUserCO.map((e,i)=>C.jsx(x,{bordered:!0,column:1,styles:{label:{width:200}},items:[...e.deptName?[{label:"整改"+(1===I.isRelated?"单位":"部门"),children:e.deptName}]:[],...e.userName?[{label:"整改人",children:e.userName}]:[],...e.rectificationTime?[{label:"整改时间",children:e.rectificationTime}]:[],...e.descr?[{label:"整改描述",children:e.descr}]:[],...e.investmentFunds?[{label:"投入资金",children:`${e.investmentFunds}元`}]:[],...e.remarks?[{label:"临时安全措施",children:e.remarks}]:[],{label:"整改后图片",children:C.jsx(f,{files:q[i]})},{label:"整改方案",children:C.jsxs(C.Fragment,{children:[0===e.isRectificationScheme&&C.jsx("span",{children:"无"}),1===e.isRectificationScheme&&C.jsx("span",{children:"有"})]})},...1===e.isRectificationScheme&&e.hiddenSchemeCO&&Object.keys(e.hiddenSchemeCO).length>0?[{label:"治理标准",children:e.hiddenSchemeCO.governStanDards},{label:"治理方法",children:e.hiddenSchemeCO.governMethod},{label:"经费落实",children:e.hiddenSchemeCO.expenditure},{label:"负责人员",children:e.hiddenSchemeCO.principal},{label:"工时安排",children:e.hiddenSchemeCO.programming},{label:"时限要求",children:e.hiddenSchemeCO.timeLimitFor},{label:"工作要求",children:e.hiddenSchemeCO.jobRequireMent},{label:"其他事项",children:e.hiddenSchemeCO.otherBusiness},{label:"方案图片",children:C.jsx(f,{files:Q[i]})}]:[]]},e.id))]}),I.hiddenAcceptQualifiedUserCO.length>0?C.jsxs(C.Fragment,{children:[C.jsx(j,{orientation:"left",children:"验收信息"}),I.hiddenAcceptQualifiedUserCO.map((e,i)=>C.jsx(x,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"验收部门",children:e.deptName},{label:"验收人",children:e.userName},{label:"验收时间",children:e.rectificationTime},...e.repulseCause?[{label:"验收打回意见",children:e.repulseCause}]:[],{label:"是否合格",children:e.rectificationTime?"合格":""},...e.descr?[{label:"验收描述",children:e.descr}]:[],...Y[i]&&Y[i].length>0?[{label:"验收图片",children:C.jsx(f,{files:Y[i]})}]:[]]},e.id))]}):null,I.hiddenAcceptUnqualifiedUserCO.length>0?C.jsxs(C.Fragment,{children:[C.jsx(j,{orientation:"left",children:"验收打回信息"}),I.hiddenAcceptUnqualifiedUserCO.map(e=>C.jsx(x,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"验收部门",children:e.deptName},{label:"验收人",children:e.userName},{label:"验收时间",children:e.rectificationTime},{label:"验收打回意见",children:e.repulseCause}]},e.id))]}):null,I.hiddenInspecCO&&Object.keys(I.hiddenInspecCO).length>0?C.jsxs(C.Fragment,{children:[C.jsx(j,{orientation:"left",children:"安全环保验收信息"}),C.jsx(x,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"验收人",children:I.hiddenInspecCO.finalCheckOr},{label:"验收时间",children:I.hiddenInspecCO.finalCheckTime},{label:"是否合格",children:1===I.hiddenInspecCO.finalCheck?"合格":"不合格"},{label:"验收描述",children:I.hiddenInspecCO.finalCheckDesc},{label:"验收图片",children:C.jsx(f,{files:M})}]})]}):null]}),H&&C.jsx(u,{visible:H,source:w[0].url,onCancel:()=>z(!1),title:"隐患视频"})]})}g.displayName="HiddenInfo";export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as s}from"../../../_virtual/jsx-runtime";import o from"../../../node_modules/@ant-design/icons/es/icons/PlusOutlined";const e=e=>s.jsx(o,{...e});e.displayName="AddIcon";export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as o}from"../../../_virtual/jsx-runtime";import s from"../../../node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined";const e=e=>o.jsx(s,{...e});e.displayName="BackIcon";export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as e}from"../../../_virtual/jsx-runtime";import o from"../../../node_modules/@ant-design/icons/es/icons/DeleteOutlined";const s=s=>e.jsx(o,{...s});s.displayName="DeleteIcon";export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as o}from"../../../_virtual/jsx-runtime";import n from"../../../node_modules/@ant-design/icons/es/icons/DownloadOutlined";const s=s=>o.jsx(n,{...s});s.displayName="DownloadIcon";export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as i}from"../../../_virtual/jsx-runtime";import o from"../../../node_modules/@ant-design/icons/es/icons/EditOutlined";const s=s=>i.jsx(o,{...s});s.displayName="EditIcon";export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as o}from"../../../_virtual/jsx-runtime";import s from"../../../node_modules/@ant-design/icons/es/icons/ExportOutlined";const t=t=>o.jsx(s,{...t});t.displayName="ExportIcon";export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as o}from"../../../_virtual/jsx-runtime";import s from"../../../node_modules/@ant-design/icons/es/icons/ImportOutlined";const t=t=>o.jsx(s,{...t});t.displayName="ImportIcon";export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as o}from"../../../_virtual/jsx-runtime";import n from"../../../node_modules/@ant-design/icons/es/icons/EnvironmentOutlined";const i=i=>o.jsx(n,{...i});i.displayName="LocationIcon";export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as i}from"../../../_virtual/jsx-runtime";import n from"../../../node_modules/@ant-design/icons/es/icons/PrinterOutlined";const o=o=>i.jsx(n,{...o});o.displayName="PrintIcon";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as e}from"../../../_virtual/jsx-runtime";import o from"../../../node_modules/@ant-design/icons/es/icons/ReloadOutlined";const s=s=>e.jsx(o,{...s});s.displayName="ResetIcon";export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as e}from"../../../_virtual/jsx-runtime";import o from"../../../node_modules/@ant-design/icons/es/icons/SearchOutlined";const s=s=>e.jsx(o,{...s});s.displayName="SearchIcon";export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as o}from"../../../_virtual/jsx-runtime";import e from"../../../node_modules/@ant-design/icons/es/icons/PlayCircleOutlined";const i=i=>o.jsx(e,{...i});i.displayName="VideoIcon";export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as e}from"../../../_virtual/jsx-runtime";import o from"../../../node_modules/@ant-design/icons/es/icons/EyeOutlined";const s=s=>e.jsx(o,{...s});s.displayName="ViewIcon";export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{getFileUrl as e}from"../../utils/index.js";import o from"../Upload/index.js";import{j as t}from"../../_virtual/jsx-runtime";import n from"../../node_modules/antd/es/form/index";import l from"../../node_modules/antd/es/modal/index";import r from"../../node_modules/antd/es/button/button";const i=i=>{const{visible:s,onCancel:m,onConfirm:a,title:d="导入",templateUrl:c,labelCol:p={span:4},children:x,exportTemplateButtonText:u="导出模板",extraButtons:f,...j}=i,[C]=n.useForm(),b=()=>{C.resetFields(),m()};return t.jsx(l,{title:d,open:s,onCancel:b,width:600,maskClosable:!1,footer:[c&&t.jsx(r,{onClick:()=>{l.confirm({title:"提示",content:"确定要下载excel模板吗?",okText:"确定",cancelText:"取消",onOk:()=>{const o=e();window.open(o+c)}})},children:u},"export"),...f||[],t.jsx(r,{onClick:b,children:"取消"},"cancel"),t.jsx(r,{type:"primary",onClick:C.submit,children:"确定"},"submit")],children:t.jsxs(n,{form:C,labelCol:p,wrapperCol:{span:24-p.span},scrollToFirstError:!0,onFinish:e=>{a(e),b()},...j,children:[x&&"function"==typeof x?x({form:C}):x,t.jsx(n.Item,{label:"附件",name:"file",rules:[{required:!0,message:"附件不能为空"}],children:t.jsx(o,{accept:".xls,.xlsx",listType:"text",maxCount:1})})]})})};i.displayName="ImportFile";export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../json/area.json";import r from"../Basic/index.js";import{
|
|
1
|
+
import e from"../../../src/json/area.json";import r from"../Basic/index.js";import{j as a}from"../../../_virtual/jsx-runtime";function t(t){return a.jsx(r,{treeData:e,nameKey:"label",idKey:"value",...t})}t.displayName="AreaLeftTree";export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../../_virtual/index";import{getTreeNodePaths as t}from"../../../utils/index.js";import{j as n}from"../../../_virtual/jsx-runtime";import s from"../../../node_modules/antd/es/input/index";import d from"../../../node_modules/antd/es/tree/index";const{Search:o}=s,r=s=>{const{onGetData:r,onSelect:a,onGetNodePaths:i,onGetNodePathsIsIncludeOneself:l,getNodePathsIsIncludeOneself:c=!0,expandedKeys:u,treeData:f=[],nameKey:h="name",idKey:m="id",childrenKey:p="children",...x}=s;void 0!==l&&console.warn("【BasicLeftTree】 onGetNodePathsIsIncludeOneself 参数已弃用,请使用 getNodePathsIsIncludeOneself 参数");const y=void 0!==l?l:c,[g,I]=e.useState([]),[j,v]=e.useState(""),[K,N]=e.useState(!0);e.useEffect(()=>{I(u)},[u]);const S=(e,t,n=[])=>(e.forEach(e=>{e[p]&&((e[h].includes(t)||e[p].some(e=>e[h].includes(t)))&&n.push(e[m]),S(e[p],t,n))}),n),O=(e,t)=>t?e.reduce((e,n)=>{const s=n[h].includes(t),d=n[p]?O(n[p],t):[];return(s||d.length>0)&&e.push({...n,[p]:d.length>0?d:void 0}),e},[]):e,P=e=>{if(!j)return e;const t=e.indexOf(j);if(-1===t)return e;const s=e.substring(0,t),d=e.substring(t+j.length);return n.jsxs("span",{children:[s,n.jsx("span",{style:{color:"#f50"},children:j}),d]})},E=e=>e.map(e=>({...e,[h]:P(e[h]),[p]:e[p]?E(e[p]):void 0})),G=O(f,j),_=E(G);return e.useEffect(()=>{r?.(f)},[f]),n.jsxs("div",{style:{width:300},children:[n.jsx(o,{style:{marginBottom:8},placeholder:"输入关键字进行过滤",onSearch:async e=>{e!==j&&(e=>{if(v(e),N(!0),!e)return void I([]);const t=S(f,e);I(t)})(e)}}),n.jsx(d,{onExpand:e=>{I(e),N(!1)},onSelect:(e,n)=>{if(e.length>0&&i){const n=e[0],s=t({data:f,targetId:n,idKey:m,childrenKey:p,isIncludeOneself:y});i?.(s)}a?.(e,n)},autoExpandParent:K,expandedKeys:g,treeData:_,fieldNames:{title:h,key:m,children:p},...x})]})};r.displayName="BasicLeftTree";export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{r as t}from"../../../../_virtual/index";import{executeWithCache as r,getBaseGateway as i}from"../../../../utils/index.js";import n from"../../Basic/index.js";import{j as a}from"../../../../_virtual/jsx-runtime";function p(p){const{params:s={},searchType:l="current",...o}=p,[d,m]=t.useState([]);return t.useEffect(()=>{(async()=>{let t="";const n={...s,time:(new Date).getTime()};"current"===l&&(t=`/${i()}/department/listTree`,delete n.inType,delete n.enterpriseType),"all"===l&&(t=`/${i()}/department/listAllTree`,delete n.inType,delete n.enterpriseType,delete n.eqCorpinfoId,delete n.eqParentId),"inType"===l&&(t=`/${i()}/department/listAllTreeByCorpType`,delete n.eqCorpinfoId,delete n.eqParentId,n.enterpriseType&&!Array.isArray(n.enterpriseType)&&(n.enterpriseType=[n.enterpriseType]));const a={searchType:l,params:s};await r(a,async()=>{const{data:r}=await e(t,"post",n);return r},m)})()},[]),a.jsx(n,{treeData:d,childrenKey:"childrenList",...o})}p.displayName="DepartmentLeftTree";export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{r as t}from"../../../_virtual/index";import{DICTIONARY_APP_KEY_ENUM as i}from"../../../enum/dictionary/index.js";import{executeWithCache as r}from"../../../utils/index.js";import a from"../Basic/index.js";import{j as o}from"../../../_virtual/jsx-runtime";function n(n){const{appKey:c=i.DEFAULT,dictValue:s="",nameKey:d="dictLabel",idKey:u="dictValue",...m}=n,[p,l]=t.useState([]);return t.useEffect(()=>{(async()=>{if(!Object.values(i).includes(c))return void console.error(`【DictionaryLeftTree】 传入的 appKey 不在 DICTIONARY_APP_KEY_ENUM 中,当前传入的 appKey 是 ${c}`);if(!s)return void console.error("【DictionaryLeftTree】 缺少 dictValue 参数");const t={appKey:c,dictValue:s};await r(t,async()=>{const{data:t}=await e("/config/dict-trees/list/by/dictValues","get",{appKey:c,dictValue:s});return t},l)})()},[s]),o.jsx(a,{treeData:p,nameKey:d,idKey:u,...m})}n.displayName="DictionaryLeftTree";export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"
|
|
1
|
+
import e from"../../src/components/Map/h.png";class i{viewer;currentMarkPointId;init=()=>{const e="06494bcf2d4b66df7f3c586cc65af0cb",i=["0","1","2","3","4","5","6","7"];return this.viewer=new window.Cesium.Viewer("map_container",{animation:!1,homeButton:!0,geocoder:!0,baseLayerPicker:!1,timeline:!1,fullscreenButton:!0,infoBox:!0,sceneModePicker:!0,navigationInstructionsInitiallyVisible:!1,navigationHelpButton:!1,selectionIndicator:!1,imageryProvider:new window.Cesium.WebMapTileServiceImageryProvider({url:`https://t{s}.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=${e}`,subdomains:i,layer:"tdtImgLayer",style:"default",format:"image/jpeg",tileMatrixSetID:"GoogleMapsCompatible",show:!0})}),this.viewer._cesiumWidget._creditContainer.style.display="none",this.viewer.imageryLayers.addImageryProvider(new window.Cesium.WebMapTileServiceImageryProvider({url:`https://t{s}.tianditu.gov.cn/cia_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=cia&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default.jpg&tk=${e}`,subdomains:i,layer:"tdtCiaLayer",style:"default",format:"image/jpeg",tileMatrixSetID:"GoogleMapsCompatible",show:!0})),this.initObliquePhotography(),{viewer:this.viewer}};initObliquePhotography=()=>{this.viewer.scene.globe.depthTestAgainstTerrain=!0,window.Cesium.ExperimentalFeatures.enableModelExperimental=!0;const e=window.mapObliquePhotography||[];for(let i=0;i<e.length;i++)this.createObliquePhotography(e[i])};createObliquePhotography=e=>{const i=new window.Cesium.Cesium3DTileset({url:e,skipLevelOfDetail:!0,baseScreenSpaceError:1024,maximumScreenSpaceError:128,skipScreenSpaceErrorFactor:16,skipLevels:1,immediatelyLoadDesiredLevelOfDetail:!1,loadSiblings:!0,cullWithChildrenBounds:!0,cullRequestsWhileMoving:!0,cullRequestsWhileMovingMultiplier:10,preloadWhenHidden:!0,preferLeaves:!0,maximumMemoryUsage:128,progressiveResolutionHeightFraction:.5,dynamicScreenSpaceErrorDensity:.5,dynamicScreenSpaceErrorFactor:1,dynamicScreenSpaceError:!0});i.readyPromise.then(e=>{const i=window.Cesium.Cartographic.fromCartesian(e.boundingSphere.center),t=window.Cesium.Math.toDegrees(i.longitude),r=window.Cesium.Math.toDegrees(i.latitude),n=window.Cesium.Cartesian3.fromDegrees(t,r,0),o=window.Cesium.Cartesian3.fromDegrees(t,r,5),a=window.Cesium.Cartesian3.subtract(o,n,new window.Cesium.Cartesian3);e.modelMatrix=window.Cesium.Matrix4.fromTranslation(a)}),this.viewer.scene.primitives.add(i)};flyTo=({longitude:e,latitude:i,height:t})=>{this.viewer.camera.flyTo({destination:this.getPosition(e,i,t),duration:2})};getPosition=(e,i,t=0)=>window.Cesium.Cartesian3.fromDegrees(e,i,t);clearMarkPoint=()=>{this.currentMarkPointId&&(this.viewer.entities.removeById(this.currentMarkPointId),this.currentMarkPointId=null)};getLongitudeAndLatitude=i=>{new window.Cesium.ScreenSpaceEventHandler(this.viewer.scene.canvas).setInputAction(t=>{this.clearMarkPoint();const r=this.viewer.camera.pickEllipsoid(t.position,this.viewer.scene.globe.ellipsoid);if(r){const t=window.Cesium.Cartographic.fromCartesian(r),n=window.Cesium.Math.toDegrees(t.longitude),o=window.Cesium.Math.toDegrees(t.latitude);this.currentMarkPointId=window.Cesium.createGuid(),this.viewer.entities.add(new window.Cesium.Entity({id:this.currentMarkPointId,position:r,billboard:{image:e,width:23,height:25,verticalOrigin:window.Cesium.VerticalOrigin.BOTTOM,horizontalOrigin:window.Cesium.HorizontalOrigin.CENTER,heightReference:window.Cesium.HeightReference.CLAMP_TO_GROUND,disableDepthTestDistance:Number.POSITIVE_INFINITY,clampToGround:!0}})),i&&"function"==typeof i&&i(null,{longitude:n,latitude:o})}else i&&"function"==typeof i&&i(new Error("【Map】 无法获取坐标"),null)},window.Cesium.ScreenSpaceEventType.LEFT_CLICK)};addMarkPoint=({longitude:i,latitude:t})=>{const r=window.Cesium.Cartesian3.fromDegrees(i,t);this.currentMarkPointId=window.Cesium.createGuid(),this.viewer.entities.add(new window.Cesium.Entity({id:this.currentMarkPointId,position:r,billboard:{image:e,width:23,height:25,verticalOrigin:window.Cesium.VerticalOrigin.BOTTOM,horizontalOrigin:window.Cesium.HorizontalOrigin.CENTER,heightReference:window.Cesium.HeightReference.CLAMP_TO_GROUND,disableDepthTestDistance:Number.POSITIVE_INFINITY,clampToGround:!0}}))}}export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../_virtual/index";import{dynamicLoadJs as t,dynamicLoadCss as i}from"../../utils/index.js";import n from"./CesiumMap.js";import"../../src/components/Map/index.less";import{j as a}from"../../_virtual/jsx-runtime";import r from"../../node_modules/antd/es/modal/index";import s from"../../node_modules/antd/es/form/index";import o from"../../node_modules/antd/es/grid/col";import l from"../../node_modules/antd/es/grid/row";import d from"../../node_modules/antd/es/select/index";import u from"../../node_modules/antd/es/input/index";import c from"../../node_modules/antd/es/button/button";import m from"../../node_modules/antd/es/spin/index";const p=p=>{const{visible:w,onClose:h,longitude:x,latitude:g,onConfirm:y,area:j="",showArea:f=!1,disable:b=!1,type:v="baidu"}=p,C=e.useRef(null),L=e.useRef(null),M=e.useRef(null),[B,k]=e.useState(!1),[_,D]=e.useState(x||""),[G,O]=e.useState(g||""),[R,S]=e.useState(""),[I,A]=e.useState("");e.useEffect(()=>{D(x||""),O(g||""),A(j||"")},[x,g,j]);const E=()=>{if(!window?.BMapGL?.Map)return void setTimeout(()=>{E()},50);const e=new window.BMapGL.Map(C.current);if(L.current=e,e.centerAndZoom(new window.BMapGL.Point(x||window.mapLongitude,g||window.mapLatitude),16),e.enableScrollWheelZoom(!0),x&&g){const t=new window.BMapGL.Point(x,g),i=new window.BMapGL.Marker(t);e.addOverlay(i)}b||e.addEventListener("click",t=>{e.clearOverlays();const i=new window.BMapGL.Point(t.latlng.lng,t.latlng.lat),n=new window.BMapGL.Marker(i);e.addOverlay(n),O(t.latlng.lat),D(t.latlng.lng)})},z=()=>{if(k(!0),C.current){if(!L.current){if("baidu"===v)return void E();"cesium"===v&&(()=>{const{init:e,flyTo:t,addMarkPoint:i,getLongitudeAndLatitude:a}=new n,{viewer:r}=e();L.current=r,t({longitude:x||window.mapLongitude,latitude:g||window.mapLatitude,height:9e5}),x&&g&&i({longitude:x,latitude:g}),b||a((e,t)=>{if(e)return;const{longitude:i,latitude:n}=t;O(n),D(i)})})()}k(!1)}},K=()=>{S(""),L.current&&(L.current.destroy(),L.current=null),h&&h()};e.useEffect(()=>{let e;return w&&(e=setTimeout(()=>{(()=>{if(window.mapLongitude||window.mapLatitude)return"baidu"===v?window.mapBaiDuKey?void(async()=>{window.BMapGL?z():window?.base?.loadDynamicResource?(await window.base.loadDynamicResource({url:`https://api.map.baidu.com/api?v=1.0&type=webgl&ak=${window.mapBaiDuKey}&callback=initialize`,type:"script",attr:{type:"text/javascript"}}),z()):(await t(`https://api.map.baidu.com/api?v=1.0&type=webgl&ak=${window.mapBaiDuKey}&callback=initialize`),z())})():void console.error("【Map】 请在window设置变量 mapBaiDuKey,以供地图初始化加载使用"):void("cesium"===v&&(async()=>{window.Cesium?z():window?.base?.loadDynamicResource?(await window.base.loadDynamicResource({url:"https://cesium.com/downloads/cesiumjs/releases/1.91/Build/Cesium/Cesium.js",type:"script",attr:{type:"text/javascript"}}),await window.base.loadDynamicResource({url:"https://cesium.com/downloads/cesiumjs/releases/1.91/Build/Cesium/Widgets/widgets.css",type:"link",attr:{rel:"stylesheet",type:"text/css"}}),z()):(await t("https://cesium.com/downloads/cesiumjs/releases/1.91/Build/Cesium/Cesium.js"),await i("https://cesium.com/downloads/cesiumjs/releases/1.91/Build/Cesium/Widgets/widgets.css"),z())})());console.error("【Map】 请在window设置变量 mapLongitude 和 mapLatitude,以供地图初始化坐标使用")})()},100)),()=>{e&&clearTimeout(e)}},[w]);const P=()=>{if(L.current){try{L.current.clearOverlays(),L.current.destroy(),L.current=null}catch(e){console.warn("Error destroying map on unmount:",e)}L.current=null}};return e.useEffect(()=>()=>{P()},[]),a.jsxs(r,{open:w,title:"坐标",onCancel:K,width:1e3,destroyOnHidden:!1,maskClosable:!1,afterClose:P,footer:[a.jsx(c,{onClick:K,children:"取消"},"back"),!b&&a.jsx(c,{type:"primary",onClick:()=>{y&&y(_,G,{area:I}),K()},children:"确定"},"submit")],children:[a.jsxs(s,{labelAlign:"right",labelCol:{span:6},wrapperCol:{span:18},children:[f&&a.jsx(l,{gutter:24,children:a.jsx(o,{span:12,children:a.jsx(s.Item,{label:"所属区域",children:a.jsxs(d,{value:I,onChange:e=>A(e),allowClear:!0,children:[a.jsx(d.Option,{value:"1",children:"东港区"}),a.jsx(d.Option,{value:"2",children:"西港区"})]})})})}),!b&&"baidu"===v&&a.jsxs(l,{gutter:24,children:[a.jsx(o,{span:12,children:a.jsx(s.Item,{label:"关键字搜索",children:a.jsx(u,{value:R,onChange:e=>S(e.target.value),allowClear:!0})})}),a.jsx(o,{span:12,children:a.jsxs(s.Item,{label:" ",colon:!1,style:{textAlign:"right"},children:[a.jsx(c,{type:"primary",onClick:()=>{R&&L.current&&(M.current=new window.BMapGL.LocalSearch(L.current,{renderOptions:{map:L.current}}),M.current.search(R))},children:"搜索"}),a.jsx(c,{onClick:()=>{S(""),L.current&&M.current.search("")},style:{marginLeft:8},children:"重置"})]})})]}),a.jsxs(l,{gutter:24,children:[a.jsx(o,{span:12,children:a.jsx(s.Item,{label:"经度",children:a.jsx(u,{disabled:!0,value:_})})}),a.jsx(o,{span:12,children:a.jsx(s.Item,{label:"纬度",children:a.jsx(u,{disabled:!0,value:G})})})]})]}),a.jsx("div",{ref:C,id:"map_container",style:{width:"100%",height:"500px",position:"relative"},children:a.jsx(m,{size:"large",tip:"地图正在加载中...",spinning:B,children:a.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:1e3}})})})]})};p.displayName="MapSelector";export{p as default};
|
package/components/Map/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../_virtual/index";import r from"./MapSelector.js";import{j as s}from"../../_virtual/jsx-runtime";import t from"../../node_modules/antd/es/form/index";import d from"../../node_modules/antd/es/grid/col";import i from"../../node_modules/antd/es/grid/row";import o from"../../node_modules/antd/es/input/index";import l from"../../node_modules/antd/es/button/button";const a=a=>{const{longitudeProps:n="longitude",latitudeProps:m="latitude",onConfirm:u,required:p=!0,area:x="",showArea:c=!1,disable:j=!1,type:f="baidu"}=a,g=t.useFormInstance(),[h,b]=e.useState(!1),[y,_]=e.useState(""),[F,S]=e.useState("");return s.jsxs(s.Fragment,{children:[s.jsxs(i,{gutter:24,children:[s.jsx(d,{span:12,children:s.jsx(t.Item,{label:"经度",name:n,rules:[{required:p,message:"请选择经度"}],children:s.jsx(o,{disabled:!0})})}),s.jsx(d,{span:12,children:s.jsx(t.Item,{label:"纬度",required:p,children:s.jsxs("div",{style:{display:"flex",gap:10},children:[s.jsx(t.Item,{name:m,noStyle:!0,rules:[{required:p,message:"请选择纬度"}],children:s.jsx(o,{disabled:!0})}),s.jsx(l,{type:"primary",onClick:()=>{b(!0),_(g.getFieldValue(n)),S(g.getFieldValue(m))},children:"地图定位"})]})})})]}),s.jsx(r,{visible:h,onClose:()=>b(!1),longitude:y,latitude:F,area:x,type:f,showArea:c,disable:j,onConfirm:(e,r,s)=>{_(e),S(r),g.setFieldsValue({[n]:e,[m]:r}),u?.(e,r,s),b(!1)}})]})};a.displayName="Map";export{a as default};
|
package/components/Page/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../_virtual/index";import{throttle as t}from"throttle-debounce";import o from"../HeaderBack/index.js";import{j as i}from"../../_virtual/jsx-runtime";import n from"../../node_modules/antd/es/spin/index";import s from"../../node_modules/antd/es/space/index";import r from"../../node_modules/antd/es/button/button";function d(d){const{headerTitle:a,history:l,isShowHeader:c=!0,headerPrevious:u=!0,isShowFooter:m=!0,isShowAllAction:p=!0,loading:x=!1,backButtonText:h="关闭",contentPadding:f="20px",customActionButtons:g,extraActionButtons:y,children:v}=d,[j,w]=e.useState(window.innerWidth),b=t(50,()=>{const e=document.querySelector("#page-layout");e&&w(e.offsetWidth)});return e.useEffect(()=>{const e=setTimeout(()=>{b()},0);return p&&m&&window.addEventListener("resize",b),()=>{p&&m&&window.removeEventListener("resize",b),clearTimeout(e)}},[p,m]),i.jsx(n,{spinning:x,children:i.jsxs("div",{className:"page-layout",id:"page-layout",children:[p&&c&&i.jsx(o,{title:a,history:l,previous:u}),i.jsxs("div",{style:{padding:f},children:[v&&"function"==typeof v?v():v,p&&m&&i.jsxs("div",{className:"page-layout-footer",style:{position:"relative",zIndex:"9"},children:[i.jsx("div",{style:{height:"52px"}}),i.jsx("div",{style:{textAlign:"center",backgroundColor:"rgb(241, 241, 242)",padding:"10px 0",position:"fixed",bottom:"0",width:j,margin:"0px -20px"},children:g||i.jsxs(s,{children:[y,i.jsx(r,{onClick:()=>{l?.goBack?l.goBack():window.history.back()},children:h})]})})]})]})]})})}d.displayName="Page";export{d as default};
|
package/components/Pdf/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"../../node_modules/ahooks/es/useFullscreen/index";import{r as o}from"../../_virtual/index";import{pdfjs as n,Document as r,Page as i}from"react-pdf";import t from"../../hooks/useDownloadFile/index.js";import{getFileUrl as s}from"../../utils/index.js";import"react-pdf/dist/Page/AnnotationLayer.css";import"react-pdf/dist/Page/TextLayer.css";import"../../src/components/Pdf/index.less";import{j as l}from"../../_virtual/jsx-runtime";import d from"../../node_modules/antd/es/modal/index";import a from"../../node_modules/antd/es/button/button";import m from"../../node_modules/antd/es/spin/index";import c from"../../node_modules/antd/es/message/index";function p(p){const{visible:u=!1,onCancel:x,file:f,name:h,inline:j=!1,title:g="PDF预览",style:v={}}=p,y=s(),[w,k]=o.useState(0),[C,F]=o.useState(600),_=o.useRef(null),[b,{enterFullscreen:P,exitFullscreen:S}]=e(_),{downloadFile:L}=t();n.GlobalWorkerOptions.workerSrc=`//unpkg.com/pdfjs-dist@${n.version}/build/pdf.worker.min.mjs`;const D=({numPages:e})=>{k(e)},A=()=>{c.error("加载 PDF 文件失败"),x&&x()},N=({width:e})=>{F(e)},W=()=>l.jsx(l.Fragment,{children:l.jsx("div",{style:{height:b?"calc(100vh - 40px - 24px - 8px - 32px - 12px)":"72vh",overflowY:"auto",padding:"24px",...v},children:l.jsx(r,{file:f.includes(y)?f:y+f,onLoadSuccess:D,onLoadError:A,loading:l.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"65vh"},children:l.jsx(m,{size:"large"})}),children:Array.from({length:w}).map((e,o)=>l.jsx(i,{pageNumber:o+1,onLoadSuccess:N},`page_${o+1}`))})})});return j?W():l.jsx("div",{ref:_,children:l.jsx(d,{style:{top:b?0:100,maxWidth:b?"100vw":"calc(100vw - 32px)",paddingBottom:b?0:24},open:u,maskClosable:!1,width:b?"100vw":C+100,title:g,onCancel:()=>{b&&S(),x()},getContainer:!1,footer:[l.jsx(a,{onClick:()=>{b&&S(),x()},children:"关闭"},"cancel"),l.jsx(a,{onClick:()=>{b?S():P()},children:b?"退出全屏":"全屏"},"fullScreen"),l.jsx(a,{type:"primary",onClick:()=>{b&&S(),L({url:f,name:h})},children:"下载"},"download")],children:W()})})}p.displayName="Pdf";export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{getFileUrl as e}from"../../utils/index.js";import{j as i}from"../../_virtual/jsx-runtime";import r from"../../node_modules/antd/es/image/index";const t=t=>{const{files:o=[],fileUrlKey:a="filePath"}=t,m=e();return i.jsx(r.PreviewGroup,{children:o.filter(Boolean).map(e=>i.jsx(r,{src:e[a]?m+e[a]:m+e,wrapperStyle:{marginRight:10,marginBottom:10},width:100,height:100,alt:""},e[a]||e))})};t.displayName="PreviewImg";export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../_virtual/index";import{getFileName as i}from"../../utils/index.js";import s from"../Pdf/index.js";import{j as n}from"../../_virtual/jsx-runtime";import l from"../../node_modules/antd/es/space/index";import r from"../../node_modules/antd/es/button/button";const t=t=>{const{files:a=[],nameKey:m="",urlKey:o="",name:d="",url:p=""}=t,[x,c]=e.useState(!1),[f,u]=e.useState(""),[j,h]=e.useState(""),y=(e,i)=>{c(!0),u(e),h(i)},v=()=>{c(!1),u(""),h("")},P=e=>e.name||e.fileName||e[m]||i(e.filePath||e[o]);return 0===a.length&&d&&p?n.jsxs(n.Fragment,{children:[n.jsxs(l,{children:[n.jsx("span",{children:d}),n.jsx(r,{type:"primary",size:"small",onClick:()=>y(p,d),children:"预览"})]}),n.jsx(s,{visible:x,file:f,name:j,onCancel:v})]}):a.length>0&&!d&&!p?n.jsxs(n.Fragment,{children:[a.map(e=>n.jsx("div",{style:{marginTop:5},children:n.jsxs(l,{children:[n.jsx("span",{children:P(e)}),n.jsx(r,{type:"primary",size:"small",onClick:()=>y(e.filePath||e[o],P(e)),children:"预览"})]})},e.filePath||e[o])),n.jsx(s,{visible:x,file:f,name:j,onCancel:v})]}):null};t.displayName="PreviewPdf";export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../_virtual/index";import{throttle as t}from"throttle-debounce";import{j as r}from"../../_virtual/jsx-runtime";const n=e.forwardRef((n,s)=>{const{isAutoScroll:l=!0,list:o=[],step:u=1,limitScrollNum:i=3,hover:c=!0,direction:a="up",singleHeight:f=0,singleWidth:d=0,singleWaitTime:m=1e3,isRemUnit:h=!1,isWatch:p=!0,delay:y=0,ease:g="ease-in",count:x=-1,copyNum:w=1,wheel:v=!1,singleLine:S=!1,children:b,className:$}=n,E=e.useRef(null),j=e.useRef(null),M=e.useRef(null),R=e.useRef(null),T=e.useRef(null),N=e.useRef(!1),[A,W]=e.useState(0),[F,H]=e.useState(0),[k,L]=e.useState(0),[q,z]=e.useState(0),[I,Y]=e.useState(0),_=o.length>=i,C={width:A?`${A}px`:"auto",transform:`translate(${k}px,${q}px)`,transition:`all ${"string"==typeof g?g:`cubic-bezier(${g.x1}, ${g.y1}, ${g.x2}, ${g.y2})`} ${y}ms`,overflow:"hidden",display:S?"flex":"block"},U="left"===a||"right"===a,B=U?{float:"left",overflow:"hidden",display:S?"flex":"block",flexShrink:S?0:1}:{overflow:"hidden"},D=h?Number.parseInt(window.getComputedStyle(document.documentElement,null).fontSize):1,G=d*D,J=f*D;e.useEffect(()=>{J>0&&J%u>0&&console.error("如果设置了单步滚动,step 需是单步大小的约数,否则无法保证单步滚动结束的位置是否准确。~~~~~")},[J,u]);const K=()=>{R.current&&(cancelAnimationFrame(R.current),R.current=null)},O=(e,t,r)=>{R.current=requestAnimationFrame(()=>{const n=F/2,s=A/2;if(("up"===e||"down"===e)&&n<=0)return;if(("left"===e||"right"===e)&&s<=0)return;let l=q,o=k;"up"===e?z(e=>Math.abs(e)>=n?(Y(e=>e+1),l=-t,-t):(l=e-t,e-t)):"down"===e?z(e=>e>=0?(Y(e=>e+1),l=-1*n+t,-1*n+t):(l=e+t,e+t)):"left"===e?L(e=>Math.abs(e)>=s?(Y(e=>e+1),o=-t,-t):(o=e-t,e-t)):"right"===e&&L(e=>e>=0?(Y(e=>e+1),o=-1*s+t,-1*s+t):(o=e+t,e+t)),r||(T.current&&clearTimeout(T.current),J?Math.abs(l)%J<t?T.current=window.setTimeout(()=>{P()},m):P():G&&Math.abs(o)%G<t?T.current=window.setTimeout(()=>{P()},m):P())})},P=()=>{K(),!N.current&&_&&I!==x?O(a,u,!1):Y(0)},Q=()=>{if(o&&"boolean"!=typeof o&&o.length>100&&console.warn(`数据达到了${o.length}条有点多哦~,可能会造成部分老旧浏览器卡顿。`),U){let e=j.current?.offsetWidth||0;e=2*e+1,W(e)}_?requestAnimationFrame(()=>{const e=M.current?.offsetHeight||0;e>0?H(e):setTimeout(()=>{const e=M.current?.offsetHeight||0;e>0&&H(e)},100)}):(K(),L(0),z(0))},V=()=>{N.current=!1,P()},X=()=>{N.current=!0,T.current&&clearTimeout(T.current),K()},Z=c&&l&&_,ee=()=>{K(),Q()},te=t(30,e=>{K();const t=J||15;e.deltaY<0&&O("down",t,!0),e.deltaY>0&&O("up",t,!0)});e.useImperativeHandle(s,()=>({reset:ee})),e.useEffect(()=>{_&&Q()},[_]),e.useEffect(()=>{_&&l&&(F>0||A>0)&&!N.current&&P()},[F,A]),e.useEffect(()=>{l?V():X()},[l]),e.useEffect(()=>{0!==x&&V()},[x]),e.useEffect(()=>{p&&ee()},[o,p]),e.useEffect(()=>()=>{K(),T.current&&clearTimeout(T.current)},[]);const re=()=>r.jsxs(r.Fragment,{children:[r.jsx("div",{ref:j,style:B,children:b&&"function"==typeof b?b():b}),_?Array.from({length:w}).map((e,t)=>r.jsx("div",{style:B,children:b&&"function"==typeof b?b():b},`copy-${t}`)):null]});return r.jsx("div",{ref:E,className:$,children:v&&c?r.jsx("div",{ref:M,style:C,onMouseEnter:()=>{Z&&X()},onMouseLeave:()=>{Z&&V()},onWheel:e=>{Z&&te(e)},children:re()}):r.jsx("div",{ref:M,style:C,onMouseEnter:()=>{Z&&X()},onMouseLeave:()=>{Z&&V()},children:re()})})});n.displayName="SeamlessScroll";export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../_virtual/index";import o from"../FormBuilder/FormItemsRenderer.js";import s from"../Icon/ResetIcon/index.js";import t from"../Icon/SearchIcon/index.js";import{j as n}from"../../_virtual/jsx-runtime";import r from"../../node_modules/antd/es/form/index";import l from"../../node_modules/antd/es/grid/col";import i from"../../node_modules/antd/es/grid/row";import a from"../../node_modules/antd/es/button/button";import c from"../../node_modules/@ant-design/icons/es/icons/DownOutlined";import d from"../../node_modules/@ant-design/icons/es/icons/UpOutlined";const m=m=>{const{labelCol:u={span:6},options:p=[],values:h={},onFinish:x,onSubmit:f,onReset:j,searchText:b="搜索",resetText:g="重置",showSearchButton:y=!0,showResetButton:w=!0,extraButtons:C,form:F,...S}=m,[_,I]=e.useState(!0),[v,R]=e.useState(6),[k,V]=e.useState(!1),B=e.useRef(`search-${Date.now()}`);return e.useEffect(()=>{p&&0!==p.length&&setTimeout(()=>{const e=document.querySelectorAll(`.${B.current}>.${window.process.env.app.antd["ant-prefix"]}-col`).length-(C?2:1);R({0:24,1:18,2:12,3:6}[e%4]||6),V(e>3)},0)},[p,C]),n.jsx("div",{className:"search-layout card-layout",children:n.jsx(r,{form:F,labelCol:u,initialValues:h,...S,children:n.jsxs(i,{className:B.current,children:[n.jsx(o,{options:p,labelCol:u,span:6,collapse:_,useAutoGenerateRequired:!1,initialValues:h}),n.jsx(l,{span:k&&_?6:v,children:n.jsxs(r.Item,{label:" ",labelCol:{span:2},colon:!1,style:{textAlign:"right"},children:[y&&n.jsx(a,{type:"primary",icon:n.jsx(t,{}),onClick:()=>{const e=F.getFieldsValue();x?.(e,"submit"),f?.(e)},children:b}),w&&n.jsx(a,{style:{marginLeft:8},icon:n.jsx(s,{}),onClick:()=>{const e=F.getFieldsValue(),o={};Object.keys(e).forEach(e=>{o[e]=h.hasOwnProperty(e)?h[e]:void 0}),F.setFieldsValue(o),x?.(h,"reset"),j?.(h)},children:g}),k&&n.jsx(a,{type:"link",icon:_?n.jsx(c,{}):n.jsx(d,{}),onClick:()=>{I(!_)},style:{marginLeft:8},children:_?"展开":"收起"})]})}),C&&n.jsx(l,{span:24,children:n.jsx(r.Item,{label:" ",colon:!1,labelCol:{span:0},children:C})})]})})})};m.displayName="Search",m.useForm=r.useForm,m.useWatch=r.useWatch;export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../../_virtual/index";import{getUnmatchedItems as n,getMatchedItems as t}from"../../../utils/index.js";import{j as l}from"../../../_virtual/jsx-runtime";import i from"../../../node_modules/antd/es/select/index";function r(r){const{onGetData:o,onChange:a,onGetLabel:s,onGetOption:d,placeholder:c="",data:u=[],nameKey:f="name",idKey:h="id",labelRender:m,exclude:p=[],include:x=[],...y}=r,g=e.useMemo(()=>{let e=u;return p.length>0&&(e=n({list:e,value:p,idKey:h})),x.length>0&&(e=t({list:e,value:x,idKey:h})),e},[u,p,x,h]);return e.useEffect(()=>{o?.(g)},[g]),l.jsx(i,{placeholder:`请选择${c}`,showSearch:!0,allowClear:!0,optionFilterProp:"children",onChange:(e,n)=>{if(s||d)if(Array.isArray(e))if(e.length>0){const n=[],t=[];e.forEach(e=>{const l=g.find(n=>n[h]===e);l&&(n.push(l),t.push(l[f]))}),s?.(t),d?.(n)}else s?.([]),d?.([]);else if(e){const n=g.find(n=>n[h]===e);s?.(n[f]),d?.(n)}else s?.(""),d?.({});a?.(e,n)},...y,children:g.map(e=>{const n=e[h],t=m?m(e):e[f];return l.jsx(i.Option,{value:n,children:t},n)})})}r.displayName="BasicSelect";export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{r as t}from"../../../_virtual/index";import{DICTIONARY_APP_KEY_ENUM as i}from"../../../enum/dictionary/index.js";import{executeWithCache as a}from"../../../utils/index.js";import r from"../Basic/index.js";import{j as o}from"../../../_virtual/jsx-runtime";function c(c){const{appKey:n=i.DEFAULT,dictValue:s="",nameKey:d="dictLabel",idKey:l="dictValue",...u}=c,[m,p]=t.useState([]);return t.useEffect(()=>{(async()=>{if(!Object.values(i).includes(n))return void console.error(`【DictionarySelect】 传入的 appKey 不在 DICTIONARY_APP_KEY_ENUM 中,当前传入的 appKey 是 ${n}`);if(!s)return void console.error("【DictionarySelect】 缺少 dictValue 参数");const t={appKey:n,dictValue:s};await a(t,async()=>{const{data:t}=await e("/config/dict-trees/list/by/dictValues","get",{appKey:n,dictValue:s});return t},p)})()},[s]),o.jsx(r,{data:m,nameKey:d,idKey:l,...u})}c.displayName="DictionarySelect";export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{r as t}from"../../../../_virtual/index";import{executeWithCache as r,getBaseGateway as i}from"../../../../utils/index.js";import o from"../../Basic/index.js";import{j as s}from"../../../../_virtual/jsx-runtime";function a(a){const{params:n={},placeholder:m="人员",isNeedCorpInfoId:d=!1,isNeedDepartmentId:p=!0,isNeedPostId:f=!1,extraParams:l={},...c}=a,u={noMain:"",eqEmploymentFlag:1},[j,I]=t.useState([]);return t.useEffect(()=>{(async()=>{if(!d&&!p&&!f)return void console.error("【PersonnelSelect】 请至少传入一个参数");if(d&&(!n.corpinfoId||"string"!=typeof n.corpinfoId))return;if(p&&(!n.departmentId||"string"!=typeof n.departmentId))return;if(f&&(!n.postId||"string"!=typeof n.postId))return;const t={...u,...l},o={params:n,extraParams:t};await r(o,async()=>{const{data:r}=await e(`/${i()}/user/listAll`,"get",{...n,...t,time:(new Date).getTime()});return r},I)})()},[JSON.stringify(n),d,p,f,JSON.stringify(l)]),s.jsx(o,{data:j,placeholder:m,...c})}a.displayName="PersonnelSelect";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as e}from"../../_virtual/jsx-runtime";import t from"../../node_modules/antd/es/select/index";import n from"../../node_modules/@ant-design/icons/es/icons/CloseCircleOutlined";function s(s){const{items:i,showDelete:o=!0,label:l="",maxCount:a=1,onDelete:r,...d}=s;return e.jsx(t,{mode:"tags",maxCount:a,placeholder:`请选择${l},无对应选项可直接输入创建选项`,optionRender:t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsx("span",{children:t.label}),o&&e.jsx(n,{style:{marginRight:10},onClick:e=>{e.stopPropagation(),(e=>{r?.(e)})(t)}})]}),...d,children:i.map(n=>e.jsx(t.Option,{value:n.id,children:n.name},n.id))})}s.displayName="SelectCreate";export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../json/area.json";import r from"../Basic/index.js";import{
|
|
1
|
+
import e from"../../../src/json/area.json";import r from"../Basic/index.js";import{j as a}from"../../../_virtual/jsx-runtime";function t(t){const{...o}=t;return a.jsx(r,{treeData:e,nameKey:"label",idKey:"value",...o})}t.displayName="AreaSelectTree";export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../../_virtual/index";import{processTreeDataByLevel as l,processTreeDataForOnlyLastLevel as t,getDataType as a,getTreeNodePaths as n,arrayObjectDeduplication as r}from"../../../utils/index.js";import{j as o}from"../../../_virtual/jsx-runtime";import s from"../../../node_modules/antd/es/tree-select/index";function d(d){const{onGetData:i,onChange:c,onGetLabel:h,onGetNodePaths:u,onGetNodePathsIsIncludeOneself:f,getNodePathsIsIncludeOneself:y=!0,placeholder:m="",treeData:I=[],nameKey:p="name",idKey:v="id",childrenKey:g="children",level:K,onlyLastLevel:S=!1,...C}=d;void 0!==f&&console.warn("【BasicSelectTree】 onGetNodePathsIsIncludeOneself 参数已弃用,请使用 getNodePathsIsIncludeOneself 参数");const L=void 0!==f?f:y,N=e.useMemo(()=>{let e=K?l({data:I,level:K,childrenKey:g,currentLevel:1}):I;return e=t({data:e,childrenKey:g,onlyLastLevel:S}),e},[I,K,g,S]);return e.useEffect(()=>{i?.(I,N)},[I,N]),o.jsx(s,{showSearch:!0,style:{width:"100%"},styles:{popup:{root:{maxHeight:400,overflow:"auto"}}},placeholder:`请选择${m}`,onChange:(e,l,t)=>{if(e){if("Array"===a(e)){if(u){const l=[];for(let t=0;t<e.length;t++){const a=C.labelInValue||C.treeCheckStrictly?e[t].value:e[t],r=n({data:I,targetId:a,idKey:v,childrenKey:g,isIncludeOneself:L});l.push(...r)}const t=r(l,v);u?.(t)}h?.(C.labelInValue||C.treeCheckStrictly?e.map(e=>e.label):l)}else if(u||h){const l=C.labelInValue||C.treeCheckStrictly?e.value:e,t=n({data:I,targetId:l,idKey:v,childrenKey:g,isIncludeOneself:L});u?.(t),h?.(t[t.length-1][p])}}else u?.([]),h?.("");c?.(C.labelInValue||C.treeCheckStrictly?e.map(e=>e.value):e,l,t)},allowClear:!0,treeData:N,fieldNames:{label:p,value:v,children:g},treeNodeFilterProp:p,showCheckedStrategy:s.SHOW_ALL,...C})}d.displayName="BasicSelectTree";export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{r}from"../../../../_virtual/index";import{executeWithCache as t,getBaseGateway as i}from"../../../../utils/index.js";import n from"../../Basic/index.js";import{j as a}from"../../../../_virtual/jsx-runtime";function p(p){const{params:s={},placeholder:d="部门",isNeedCorpInfoId:l=!1,isNeedParentId:o=!1,searchType:m="current",...c}=p,[y,f]=r.useState([]);return r.useEffect(()=>{(async()=>{if("current"===m){if(l&&!s.eqCorpinfoId)return;if(o&&!s.eqParentId)return}let r="";const n={...s,time:(new Date).getTime()};"current"===m&&(r=`/${i()}/department/listTree`,delete n.inType,delete n.enterpriseType),"all"===m&&(r=`/${i()}/department/listAllTree`,delete n.inType,delete n.enterpriseType,delete n.eqCorpinfoId,delete n.eqParentId),"inType"===m&&(r=`/${i()}/department/listAllTreeByCorpType`,delete n.eqCorpinfoId,delete n.eqParentId,n.enterpriseType&&!Array.isArray(n.enterpriseType)&&(n.enterpriseType=[n.enterpriseType]));const a={searchType:m,params:s};await t(a,async()=>{const{data:t}=await e(r,"post",n);return t},f)})()},[JSON.stringify(s),l,o,m]),a.jsx(n,{treeData:y,placeholder:d,childrenKey:"childrenList",...c})}p.displayName="DepartmentSelectTree";export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{r as t}from"../../../_virtual/index";import{DICTIONARY_APP_KEY_ENUM as i}from"../../../enum/dictionary/index.js";import{executeWithCache as r}from"../../../utils/index.js";import a from"../Basic/index.js";import{j as o}from"../../../_virtual/jsx-runtime";function c(c){const{appKey:n=i.DEFAULT,dictValue:s="",nameKey:d="dictLabel",idKey:l="dictValue",...u}=c,[m,p]=t.useState([]);return t.useEffect(()=>{(async()=>{if(!Object.values(i).includes(n))return void console.error(`【DictionarySelectTree】 传入的 appKey 不在 DICTIONARY_APP_KEY_ENUM 中,当前传入的 appKey 是 ${n}`);if(!s)return void console.error("【DictionarySelectTree】 缺少 dictValue 参数");const t={appKey:n,dictValue:s};await r(t,async()=>{const{data:t}=await e("/config/dict-trees/list/by/dictValues","get",{appKey:n,dictValue:s});return t},p)})()},[s]),o.jsx(a,{treeData:m,nameKey:d,idKey:l,...u})}c.displayName="DictionarySelectTree";export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{r as i}from"../../../../_virtual/index";import{DICTIONARY_APP_KEY_ENUM as t}from"../../../../enum/dictionary/index.js";import r from"../../Basic/index.js";import{j as a}from"../../../../_virtual/jsx-runtime";function d(d){const{isShowNeglect:l=!0,isShowLarger:n=!0,isShowMajor:c=!0,...o}=d,[s,m]=i.useState([]);return i.useEffect(()=>{(async()=>{m([]);const{data:i}=await e("/config/dict-trees/list/by/dictValues","get",{appKey:t.GWJ,dictValue:"hiddenLevel"}),r=(e=>{const i=e=>e&&Array.isArray(e)?e.filter(e=>"hiddenLevel1001"===e.dictValue?l:"jdyh001"===e.dictValue?n:"hiddenLevel0002"===e.dictValue?c:(e.children&&e.children.length>0&&(e.children=i(e.children)),!0)):[];return i(e)})(i);m(r)})()},[]),a.jsx(r,{treeData:s,placeholder:"隐患级别",onlyLastLevel:!0,nameKey:"dictLabel",idKey:"dictValue",...o})}d.displayName="HiddenLevelSelectTree";export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{r as i}from"../../../../_virtual/index";import r from"../../Basic/index.js";import{j as t}from"../../../../_virtual/jsx-runtime";function n(n){const{params:o={},isNeedCorpInfoId:a=!1,...d}=n,[s,m]=i.useState([]);return i.useEffect(()=>{(async()=>{if(m([]),a&&!o.eqCorpinfoId)return;const{data:i}=await e("/hidden/hiddenRegion/listByTree","post",o);m(i)})()},[JSON.stringify(o),a]),t.jsx(r,{treeData:s,placeholder:"隐患部位",nameKey:"hiddenregion",idKey:"hiddenregionId",...d})}n.displayName="HiddenPartSelectTree";export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../../json/industry.json";import
|
|
1
|
+
import e from"../../../src/json/industry.json";import r from"../Basic/index.js";import{j as t}from"../../../_virtual/jsx-runtime";function i(i){const{...s}=i;return t.jsx(r,{treeData:e,nameKey:"dict_label",idKey:"dict_value",childrenKey:"childrenList",...s})}i.displayName="IndustrySelectTree";export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"dayjs";import{r}from"../../_virtual/index";import t from"react-signature-canvas";import{base642File as i}from"../../utils/index.js";import{j as n}from"../../_virtual/jsx-runtime";import o from"../../node_modules/antd/es/button/button";import d from"../../node_modules/antd/es/image/index";import s from"../../node_modules/antd/es/modal/index";import a from"../../node_modules/antd/es/message/index";function l(l){const{onConfirm:m,width:c=752,height:u=300,url:h="",...p}=l,[f,x]=r.useState(!1),j=r.useRef(null),[g,b]=r.useState("");return r.useEffect(()=>{b(h)},[h]),n.jsxs(n.Fragment,{children:[n.jsx("div",{children:n.jsx(o,{type:"primary",onClick:()=>{x(!0)},children:g?"重新签字":"手写签字"})}),g&&n.jsx("div",{style:{border:"1px dashed #d9d9d9",width:"100%",height:u,marginTop:16},children:n.jsx(d,{src:g,style:{width:"100%",height:u,objectFit:"contain"}})}),n.jsx(s,{title:"签字",width:800,open:f,maskClosable:!1,onCancel:()=>x(!1),footer:[n.jsx(o,{onClick:()=>j.current.clear(),children:"重签"},"clear"),n.jsx(o,{onClick:()=>{x(!1),j.current.clear()},children:"取消"},"cancel"),n.jsx(o,{type:"primary",onClick:()=>{if(j.current.isEmpty())return void a.warning("请签名");const r=j.current.toDataURL();b(r),m({time:e().format("YYYY-MM-DD HH:mm:ss"),base64:r,file:i(r)}),j.current.clear(),x(!1)},children:"确定"},"ok")],children:n.jsx("div",{style:{border:"1px dashed #d9d9d9"},children:n.jsx(t,{ref:j,penColor:"black",canvasProps:{width:c,height:u},backgroundColor:"rgb(255,255,255)",...p})})})]})}l.displayName="Signature";export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"dayjs";import{r as e}from"../../_virtual/index";import{throttle as t}from"throttle-debounce";import{useAntdResizableHeader as o}from"use-antd-resizable-header";import{getDataType as n,getIndexColumn as s}from"../../utils/index.js";import"use-antd-resizable-header/dist/style.css";import"../../src/components/Table/index.less";import{j as r}from"../../_virtual/jsx-runtime";import i from"../../node_modules/@ant-design/pro-table/es/Table";function a(e){const t=process.env?.app?.basename,o=decodeURIComponent(window.location.pathname),s="Undefined"===n(e)?"":`#{${e}}`;return{size:`${t}#${o}${s}#size`,resizable:`${t}#${o}${s}#resizable`,columnState:`${t}#${o}${s}#columnState`}}function c(n){const{columns:c=[],showIndexColumn:l=!0,ellipsis:d=!0,align:u="center",indexColumnFixed:m="left",rowKey:p="id",storeIndex:b,disabledResizer:f=!1,height:h,...g}=n,y=process.env.app.antd["ant-prefix"],S=`.${y||"ant"}-table`,w=`${S}-wrapper`,x=`${S}-body`,[z,$]=e.useState((v=b,window.sessionStorage.getItem(a(v).size)||"default"));var v;const[C,_]=e.useState(0),j=a(b),I=!f,{components:R,resizableColumns:T,tableWidth:E,resetColumns:K}=o({columns:c,columnsState:{persistenceKey:j.resizable,persistenceType:"sessionStorage"}}),N=t(50,()=>{try{const e=document.querySelector(w),t=document.querySelector(x),o=document.querySelector(".page-layout-footer"),n=o?o.offsetHeight:0;if(t&&e){const o=e.getBoundingClientRect(),s=t.getBoundingClientRect(),r=o.bottom-s.bottom;_(innerHeight-s.top-r-(window.__IN_BASE__?38:22)-n)}}catch(e){window.console.error(e)}});e.useEffect(()=>{let e,t;return I&&(e=new MutationObserver(e=>e.forEach(()=>N())),t=new ResizeObserver(e=>e.forEach(()=>N())),setTimeout(()=>N(),500),t.observe(document.body),e.observe(document.body,{subtree:!0,childList:!0})),()=>{e&&t&&I&&(t.unobserve(document.body),e.disconnect(document.body))}},[]),e.useEffect(()=>{!function(e,t){window.sessionStorage.setItem(a(t).size,e)}(z,b)},[z]);const q=e.useMemo(()=>(()=>{const e=[...T];l&&e.unshift({...s(n.pagination),fixed:m});const t=e=>({align:u,ellipsis:d,...e,...e.children?{children:e.children.map(t)}:{}});return e.map(t)})(),[T,l,u,d,m,n.pagination]);return r.jsx("div",{className:"table-layout card-layout",children:r.jsx(i,{ghost:!0,search:!1,scroll:{x:E,y:h||(I?C:void 0)},options:{reload:!1,fullScreen:!0,setting:{checkedReset:!0,extra:r.jsx("a",{className:`${y}-pro-table-column-setting-action-rest-button`,onClick:K,children:"重置列宽"})}},components:R,columnsState:{persistenceKey:j.columnState,persistenceType:"sessionStorage"},onSizeChange:$,columns:q,bordered:!0,size:"small",rowKey:p,...g})})}c.displayName="Table";export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"../PreviewImg/index.js";import{j as i}from"../../_virtual/jsx-runtime";import t from"../../node_modules/antd/es/tooltip/index";import l from"../../node_modules/antd/es/tag/index";const o=o=>{const{files:r=[],fileUrlKey:s="filePath"}=o;return i.jsx(t,{placement:"top",title:r.length>0?i.jsx(e,{files:r,fileUrlKey:s}):i.jsx("span",{children:"暂无图片"}),children:i.jsx(l,{children:"预览"})})};o.displayName="TooltipPreviewImg";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../_virtual/index";import{j as n}from"../../_virtual/jsx-runtime";import t from"../../node_modules/antd/es/upload/index";import i from"../../node_modules/antd/es/modal/index";import o from"../../node_modules/@ant-design/icons/es/icons/PlusOutlined";import s from"../../node_modules/antd/es/button/button";import r from"../../node_modules/@ant-design/icons/es/icons/VideoCameraAddOutlined";import d from"../../node_modules/@ant-design/icons/es/icons/UploadOutlined";import l from"../../node_modules/antd/es/message/index";const a=a=>{const{value:u=[],onChange:m,onPreview:c,onRemove:p,onGetRemoveFile:f,beforeUpload:g,maxCount:h,listType:x,accept:j,ratio:v="",showTip:w=!0,multiple:y=!0,size:$,tipContent:b,uploadButtonText:F,fileType:_,...C}=a,[O,R]=e.useState(!1),[T,U]=e.useState(""),P=e.useRef(new Set),S=".jpg,.jpeg,.png",z=".pdf,.doc,.docx",L=".mp4",A=_||(()=>{if(j){if("*"===j)return"document";const e=j.split(",");return e.some(e=>L.split(",").includes(e))?"video":e.some(e=>z.split(",").includes(e))?"document":e.some(e=>S.split(",").includes(e))?"image":"document"}return"image"})(),B="image"===A,I="video"===A,M="document"===A,D=x||("*"===j?"text":"image"===A?"picture-card":"text"),G=j?"*"===j?"":j:B?S:I?L:M?z:S,N=h||(I?1:B||M?4:1),V=$||(I?100:10),W=F||(I?"上传视频":"上传附件"),k=G.replace(/\./g,"").split(",").join("、"),q=()=>b||`${[`最多上传${N}个文件`,G?`并且只能上传${k}格式的文件`:"可以上传任意格式的文件",V?`文件大小不能超过${V}M`:"",v?`只能上传${v}分辨率的图片`:""].filter(Boolean).join(",")}。`,E=B?n.jsx("div",{children:n.jsx(o,{style:{fontSize:32}})}):n.jsx(s,{type:"primary",icon:I?n.jsx(r,{}):n.jsx(d,{}),children:W});return n.jsxs(n.Fragment,{children:[n.jsx(t,{fileList:u,multiple:y,maxCount:N,listType:D,accept:G,onChange:({fileList:e})=>{const n=G?G.split(","):[],t=v?v.split("*"):[],i=1024*V*1024,o=new Set(u.map(e=>e.uid)),s=e.filter(e=>!o.has(e.uid));if(0===s.length)return void m?.(e);const r=e=>{const t=e.name?.substring(e.name.lastIndexOf("."),e.name.length)||"";return!(n.length>0&&!n.includes(t)&&(P.current.has(e.uid)||(P.current.add(e.uid),l.warning(`${e.name}:只能上传${k}格式的文件`)),1))},d=e=>!(i&&e.size>i&&(P.current.has(e.uid)||(P.current.add(e.uid),l.warning(`${e.name}:文件大小不能超过${V}M`)),1)),a=e=>new Promise(n=>{if(2!==t.length||!e.type?.startsWith("image/"))return void n(!0);const i=n=>new Promise(i=>{const o=new Image;o.onload=()=>{const n=o.width===+t[0]&&o.height===+t[1];n||P.current.has(e.uid)||(P.current.add(e.uid),l.warning(`${e.name}:只能上传${v}分辨率的图片`)),i(n)},o.onerror=()=>i(!1),o.src=n});if(e.url)i(e.url).then(n);else{const t=new FileReader;t.onload=e=>{i(e.target.result).then(n)},t.onerror=()=>n(!1),t.readAsDataURL(e.originFileObj)}});(async e=>{const n=[],t=[];for(const i of e)r(i)&&d(i)&&await a(i)?n.push(i):t.push(i);return{validFiles:n,invalidFiles:t}})(s).then(({validFiles:e})=>{const n=[...u,...e];m?.(n)})},onPreview:e=>{B&&(U(e.url||e.thumbUrl),R(!0)),c?.(e)},onRemove:e=>(P.current.delete(e.uid),e.originFileObj||f?.(e),p?.(e)),beforeUpload:(e,n)=>!!g&&g(e,n),...C,children:u.length>=N?null:E}),w?q()&&n.jsx("div",{style:{marginTop:10,color:"#ff4d4f"},children:q()}):null,n.jsx(i,{open:O,title:"查看图片",footer:null,onCancel:()=>{R(!1)},children:n.jsx("img",{alt:"preview",style:{width:"100%",objectFit:"scale-down"},src:T})})]})};a.displayName="Upload";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"../../node_modules/ahooks/es/useDocumentVisibility/index";import{uniqueId as a}from"lodash-es";import{r as i}from"../../_virtual/index";import{dynamicLoadJs as t,dynamicLoadCss as r}from"../../utils/index.js";import{j as n}from"../../_virtual/jsx-runtime";const l=i.forwardRef(({source:l="",vid:s="",playAuth:o="",cover:u="",width:p="100%",height:m="600px",autoplay:y=!0,showProgress:c=!0,isLive:d=!1,playTime:g=0,onEnded:h,onTimeupdate:b,onGetPlayerInstance:w,aliPlayerProps:f},x)=>{const v=i.useRef(null),P=i.useRef(null),j=e(),D=i.useRef(a("_")).current;i.useImperativeHandle(x,()=>({play:()=>{v.current&&v.current.play()},pause:()=>{v.current&&v.current.pause()},getPlayerInstance:()=>v.current}));const R=()=>{v.current&&(v.current.dispose(),v.current=null)};return i.useEffect(()=>((l||s&&o)&&(async()=>{if(!P.current)return;window.Aliplayer||(window?.base?.loadDynamicResource?(await window.base.loadDynamicResource({url:"https://g.alicdn.com/apsara-media-box/imp-web-player/2.27.0/aliplayer-min.js",type:"script",attr:{type:"text/javascript"}}),await window.base.loadDynamicResource({url:"https://g.alicdn.com/apsara-media-box/imp-web-player/2.27.0/skins/default/aliplayer-min.css",type:"link",attr:{rel:"stylesheet",type:"text/css"}})):(await t("https://g.alicdn.com/apsara-media-box/imp-web-player/2.27.0/aliplayer-min.js"),await r("https://g.alicdn.com/apsara-media-box/imp-web-player/2.27.0/skins/default/aliplayer-min.css"))),R();const e=[{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}]}];c&&e[e.length-1].children.unshift({name:"progress",align:"blabs",x:0,y:44}),v.current=new window.Aliplayer({id:D,...l?{source:l}:{vid:s,playauth:o,qualitySort:"asc",format:"m3u8",encryptType:1,mediaType:"video",isLive:!0,rePlay:!1,playsinline:!0,controlBarVisibility:"hover"},cover:u,width:p,height:m,autoplay:y,isLive:d,useH5Prism:!0,skinLayout:e,...f},e=>{w&&w(e),y&&e.play(),e.on("ended",()=>{h&&h()}),e.on("timeupdate",()=>{b&&b(e.getCurrentTime())}),g>0&&e.seek(g)})})(),()=>{R()}),[l,s,o]),i.useEffect(()=>{"hidden"===j?v.current&&v.current.pause():v.current&&v.current.play()},[j]),n.jsx("div",{ref:P,id:D,style:{width:p,height:m}})});l.displayName="AliPlayer";export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../_virtual/index";import{getFileUrl as t}from"../../utils/index.js";import r from"./AliPlayer.js";import{j as n}from"../../_virtual/jsx-runtime";import o from"../../node_modules/antd/es/modal/index";import a from"../../node_modules/antd/es/button/button";const s=e.forwardRef(({source:s="",vid:i="",playAuth:l="",cover:u="",autoplay:c=!0,showProgress:d=!0,playTime:p=0,inline:m=!1,isLive:y=!1,width:f="100%",height:h="600px",title:P="视频",visible:v=!1,onCancel:x,onEnded:j,onTimeupdate:g,onGetPlayerInstance:w,aliPlayerProps:I={}},b)=>{const[C,T]=e.useState(!1),_=e.useRef(null);e.useImperativeHandle(b,()=>({play:()=>{_.current&&_.current.play()},pause:()=>{_.current&&_.current.pause()},getPlayerInstance:()=>_.current&&_.current.getPlayerInstance()}));const A=x?v:C,E=x||T;e.useEffect(()=>{m||(A?_.current&&_.current.play():_.current&&_.current.pause())},[A,m]);const k=n.jsx(r,{ref:_,source:(()=>{if(s)return s.includes("http")||s.includes("https")?s:t()+s})(),vid:i,playAuth:l,cover:u,autoplay:c,showProgress:d,playTime:p,isLive:y,width:f,height:h,aliPlayerProps:I,onEnded:j,onTimeupdate:g,onGetPlayerInstance:w});return m?k:n.jsx(o,{open:A,width:800,title:P,footer:[n.jsx(a,{onClick:()=>E(!1),children:"关闭"},"cancel")],maskClosable:!1,onCancel:()=>E(!1),children:k})});s.displayName="Video";export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{r as i}from"../../_virtual/index";import{getBaseGateway as t}from"../../utils/index.js";function l(l="object"){const[r,o]=i.useState(!1);let s=0;const n=i=>{if(i)return s++,s>0&&o(!0),new Promise((l,r)=>{const{files:n=[],single:f=!0}=i;if(n)if(Array.isArray(n)){if(0===n.length)return s--,s<=0&&o(!1),void l();if(f){if(!n[0].filePath)return s--,s<=0&&o(!1),void l()}else if(0===n.filter(e=>e.id).length)return s--,s<=0&&o(!1),void l();e(f?`/${t()}/imgFiles/delete?filePath=${n[0].filePath}`:`/${t()}/imgFiles/ids?ids=${n.filter(e=>e.id).map(e=>e.id)}`,"delete").then(e=>{l(e.data)}).catch(e=>{r(e)}).finally(()=>{s--,s<=0&&o(!1)})}else console.error("【deleteFile】 的 files 需要是一个数组");else console.error("【deleteFile】 缺少 files 参数")});console.error("【deleteFile】 缺少 options 参数")};return"array"===l?[r,n]:{loading:r,deleteFile:n}}export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as t}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as t}from"@cqsjjb/jjb-common-lib/http.js";import{r as o}from"../../_virtual/index";import{DICTIONARY_APP_KEY_ENUM as e}from"../../enum/dictionary/index.js";function i(i="object"){const[r,n]=o.useState(!1);let a=0;const c=o=>{if(o)return a++,a>0&&n(!0),new Promise((i,r)=>{const{appKey:c=e.DEFAULT,dictValue:s}=o;Object.values(e).includes(c)?s?t("/config/dict-trees/list/by/dictValues","get",{appKey:c,dictValue:s}).then(t=>{i(t.data)}).catch(t=>{r(t)}).finally(()=>{a--,a<=0&&n(!1)}):console.error("【getDictionary】 缺少 options.dictValue 参数"):console.error(`【getDictionary】 传入的 options.appKey 不在 DICTIONARY_APP_KEY_ENUM 中,当前传入的 options.appKey 是 ${c}`)});console.error("【getDictionary】 缺少 options 参数")};return"array"===i?[r,c]:{loading:r,getDictionary:c}}export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"dayjs";import{r as o}from"../../_virtual/index";import n from"../../node_modules/antd/es/message/index";function t(t="object"){const[r,a]=o.useState(!1);let d=0;const s=(o,t)=>{if(d++,d>0&&a(!0),o)return new Promise((r,s)=>{const{name:c="",type:l="",params:i={}}=t,m=new URL((process.env.app.API_HOST||window.__JJB_ENVIRONMENT__.API_HOST)+o);Object.entries(i).forEach(([e,o])=>{m.searchParams.append(e,o)}),fetch(m,{method:"GET",mode:"cors",headers:{"Content-Type":"application/json",token:window.sessionStorage.token}}).then(e=>{if(e.ok)return e.blob();console.error("【downloadBlob】 网络响应异常")}).then(o=>{const n=new Blob([o],{type:l||"application/vnd.ms-excel"}),t=document.createElement("a"),a=window.URL.createObjectURL(n);t.style.display="none",t.href=a,t.download=c||e().format("YYYY-MM-DD HH:mm:ss"),document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(a),r({data:n})}).catch(e=>{n.error("导出失败"),s(e)}).finally(()=>{d--,d<=0&&a(!1)})});console.error("【downloadBlob】 缺少 url 参数")};return"array"===t?[r,s]:{loading:r,downloadBlob:s}}export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../_virtual/index";import{getFileUrl as o,getFileSuffix as n,getFileName as t}from"../../utils/index.js";import d from"../../node_modules/antd/es/modal/index";import l from"../../node_modules/antd/es/message/index";function r(r="object"){const[c,a]=e.useState(!1);let i=0;const s=e=>{i++,i>0&&a(!0);const{url:r,name:c}=e;r?d.confirm({title:"提示",content:"确定要下载此文件吗?",onOk:()=>{const e=o();let d=c;d?!n(d)&&n(r)&&(d=`${d}.${n(r)}`):d=t(r),fetch(r.includes(e)?r:e+r).then(e=>e.blob()).then(e=>{const o=document.createElement("a");document.body.appendChild(o),o.style.display="none";const n=window.URL.createObjectURL(e);o.href=n,o.download=`${d}`,o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(n)}).catch(()=>{l.error("下载失败")}).finally(()=>{i--,i<=0&&a(!1)})},onCancel:()=>{i--,i<=0&&a(!1)}}):console.error("【downloadFile】 缺少 url 参数")};return"array"===r?[c,s]:{loading:c,downloadFile:s}}export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{r as o}from"../../_virtual/index";import{UPLOAD_FILE_TYPE_ENUM as r}from"../../enum/uploadFile/gwj/index.js";import{getBaseGateway as i,addingPrefixToFile as t}from"../../utils/index.js";function n(n="object"){const[l,s]=o.useState(!1);let a=0;const p=o=>{if(o)return a++,a>0&&s(!0),new Promise((n,l)=>{const{eqType:p,eqForeignKey:c,single:g=!0,foreignKey:u,dataSource:f}=o;if(!p)return void console.error("【getFile】 缺少 options.eqType 参数");if(!Object.values(r).includes(p))return void console.error(`【getFile】 传入的 eqType 不在 UPLOAD_FILE_TYPE_ENUM 中,当前传入的 eqType 是 ${p}`);if(g){if(null==c||""===c)return void console.error("【getFile】 缺少 options.eqForeignKey 参数")}else{if(null==u||""===u)return void console.error("【getFile】 缺少 options.foreignKey 参数");if(null==f||""===f)return void console.error("【getFile】 缺少 options.dataSource 参数");if(0===f.length)return s(!1),void n(f)}const d=g?{eqType:p,eqForeignKey:c}:{eqType:p,inForeignKey:f.map(e=>e[u]).join(",")};e(`/${i()}/imgFiles/listAll`,"get",d).then(e=>{if(g)n(t(e.data).map(e=>({...e,type:void 0})));else{const o=new Map;e.data.forEach(e=>{o.has(e.foreignKey)||o.set(e.foreignKey,[]),o.get(e.foreignKey).push({...e,type:void 0})});const r=f.map(e=>{const r=e[u],i=o.has(r)?t(o.get(r)):[];return{...e,files:i}});n(r)}}).catch(e=>{l(e)}).finally(()=>{a--,a<=0&&s(!1)})});console.error("【getFile】 缺少 options 参数")};return"array"===n?[l,p]:{loading:l,getFile:p}}export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as t}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as t}from"@cqsjjb/jjb-common-lib/http.js";import{r as e}from"../../_virtual/index";import{getBaseGateway as o}from"../../utils/index.js";function r(r="object"){const[n,a]=e.useState(!1);let i=0;const s=()=>(i++,i>0&&a(!0),new Promise((e,r)=>{t(`/${o()}/user/getInfo`,"get",{}).then(t=>{e(t.data)}).catch(t=>{r(t)}).finally(()=>{i--,i<=0&&a(!1)})}));return"array"===r?[n,s]:{loading:n,getUserInfo:s}}export{r as default};
|
package/hooks/useIdle/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as e}from"../../_virtual/index";function t(t={}){const{timeout:o=1e4,events:r=["mousemove","mousedown","resize","keydown","touchstart","wheel"]}=t,[n,s]=e.useState(!1);return e.useEffect(()=>{let e;const t=()=>{s(!0)},i=()=>{clearTimeout(e),e=setTimeout(t,o)};n||i();const u=()=>{n?s(!1):i()};return r.forEach(e=>{window.addEventListener(e,u,{passive:!0})}),()=>{clearTimeout(e),r.forEach(e=>{window.removeEventListener(e,u)})}},[o,r,n]),n}export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as
|
|
1
|
+
import{request as t}from"@cqsjjb/jjb-common-lib/http.js";import{r}from"../../_virtual/index";function e(e="object"){const[o,i]=r.useState(!1);let a=0;const n=(r,e)=>{if(a++,a>0&&i(!0),r)return new Promise((o,n)=>{const{files:l=[],params:p={}}=e,s=new FormData;l.forEach(t=>{t.originFileObj&&s.append("file",t.originFileObj)}),Object.keys(p).forEach(t=>{s.append(t,p[t])}),t(r,"post",s,{"Content-Type":"multipart/form-data"}).then(t=>{o(t)}).catch(t=>{n(t)}).finally(()=>{a--,a<=0&&i(!1)})});console.error("【importFile】 缺少 url 参数")};return"array"===e?[o,n]:{loading:o,importFile:n}}export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{uniqBy as e}from"lodash-es";import t from"../../node_modules/antd/es/message/index";function n(){return{isExistenceDuplicateSelection:n=>{const{data:o,key:r,message:s="存在重复项,请勿重复选择"}=n;return new Promise(n=>{e(o,r).length!==o.length?t.error(s):n()})}}}export{n as default};
|
package/hooks/useTable/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"../../node_modules/ahooks/es/useAntdTable/index";import a from"../useUrlQueryCriteria/index.js";function t(t,n){if(!t)return void console.error("【useTable】 缺少 service 参数");const{params:r,transform:o,...s}=n||{},{useStorageQueryCriteria:i=!0,usePagination:u=!0,usePermission:c=!0,defaultType:l="advance",defaultCurrent:p=1,defaultPageSize:g=20,defaultPagination:d={current:p,pageSize:g},...f}=s,{setUrlCriteriaQuery:b,getUrlCriteriaQuery:m}=a(),y=i?m("searchFormKeys","searchFormValues"):{},S=i&&u?m("paginationKeys","paginationValues"):{},h=Object.keys(y).length>0?y:{},P=u?Object.keys(S).length>0?S:d:{},k=e(function(e,a={},t,n){const r=("function"==typeof a?a():a)||{};return async({current:a,pageSize:o},s={})=>{let i=s;if("function"==typeof t){const e=t(s);e&&"object"==typeof e&&(i={...s,...e})}const u={pageIndex:a,pageSize:o,...i,...r};n&&(u.menuPath=window.location.pathname);const c=await e(u);return{list:c.data||[],total:c.totalCount||0,...c}}}(t,r,o,c),{...f,defaultParams:[P,h],defaultType:l,onSuccess:(e,a)=>{s.onSuccess&&s.onSuccess(e,a),i&&b(a[1]??{},u?{current:k.tableProps.pagination.current,pageSize:k.tableProps.pagination.pageSize}:{})}});return void 0!==s.callback&&console.warn("【useTable】 callback 参数已弃用,请使用 onSuccess 参数"),s.callback&&s.callback(k?.data?.list||[],k?.data||{}),{...k,tableProps:{...k.tableProps,pagination:!!u&&{...k.tableProps.pagination,showQuickJumper:!0,showSizeChanger:!0}},getData:k.search.submit}}export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{
|
|
1
|
+
import{request as e}from"@cqsjjb/jjb-common-lib/http.js";import{r as o}from"../../_virtual/index";import{UPLOAD_FILE_TYPE_ENUM as i,UPLOAD_FILE_PATH_ENUM as r}from"../../enum/uploadFile/gwj/index.js";import{getBaseGateway as t}from"../../utils/index.js";function l(l="object"){const[n,a]=o.useState(!1);let s=0;const p=o=>{if(o)return s++,s>0&&a(!0),new Promise((l,n)=>{const{files:p=[],single:f=!0,params:d}=o;if(!p)return void console.error("【uploadFile】 缺少 files 参数");if(!Array.isArray(p))return void console.error("【uploadFile】 的 files 需要是一个数组");if(!d)return void console.error("【uploadFile】 缺少 options.params 参数");if(!d.type)return void console.error("【uploadFile】 缺少 options.params.type 参数");if(!Object.values(i).includes(d.type))return void console.error(`【uploadFile】 传入的 type 不在 UPLOAD_FILE_TYPE_ENUM 中,当前传入的 type 是 ${d.type}`);const u=r[d.type];if(!u)return void console.error(`【uploadFile】未找到 type ${d.type} 对应的 path `);if(!f){if(!d.hasOwnProperty("foreignKey"))return void console.error("【uploadFile】 的 single 是 false,缺少 options.params.foreignKey 参数");void 0!==d.foreignKey&&null!==d.foreignKey||(d.foreignKey="")}if(0===p.length)return s--,s<=0&&a(!1),void l(f?{filePath:""}:{id:d.foreignKey});const c=new FormData;if(p.forEach(e=>{e.originFileObj&&c.append("files",e.originFileObj)}),Object.keys(d).forEach(e=>{c.append(e,d[e])}),c.append("path",u),0===c.getAll("files").length)return s--,s<=0&&a(!1),void l(f?{filePath:p[0].filePath}:{id:d.foreignKey});e(f?`/${t()}/imgFiles/save`:`/${t()}/imgFiles/batchSave`,"post",c,{"Content-Type":"multipart/form-data"}).then(e=>{l(f?{filePath:e.data.filePath}:{id:e.data.foreignKey})}).catch(e=>{n(e)}).finally(()=>{s--,s<=0&&a(!1)})});console.error("【uploadFile】 缺少 options 参数")};return"array"===l?[n,p]:{loading:n,uploadFile:p}}export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"../../node_modules/@ahooksjs/use-url-state/es/index";function s(){const[s,r]=e({searchFormKeys:"",searchFormValues:"",paginationKeys:"",paginationValues:""},{navigateMode:"replace"});return{setUrlCriteriaQuery:function(e,s){const t=e=>{const s=[],r=[];return Object.entries(e).forEach(([e,t])=>{t&&(s.push(e),Array.isArray(t)?r.push(`[${t.join("|")}]`):r.push(t))}),{keys:s.join(","),values:r.join(",")}},i=t(e),a=t(s);r({searchFormKeys:i.keys||void 0,searchFormValues:i.values||void 0,paginationKeys:a.keys||void 0,paginationValues:a.values||void 0})},getUrlCriteriaQuery:function(e,r){const t=s[e]?s[e].split(","):[],i=s[r]?s[r].split(","):[],a={};return t.forEach((e,s)=>{if(i[s])if(i[s].startsWith("[")&&i[s].endsWith("]")){const r=i[s].substring(1,i[s].length-1);a[e]=r?r.split("|"):[]}else a[e]=i[s]}),a}}}export{s as default};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zy-react-library",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.33",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "",
|
|
7
7
|
"author": "LiuJiaNan",
|
|
@@ -22,30 +22,26 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "rollup -c",
|
|
24
24
|
"build:watch": "rollup -c -w",
|
|
25
|
-
"prepublishOnly": "npm run build",
|
|
26
25
|
"patch": "npm version patch",
|
|
27
26
|
"minor": "npm version minor",
|
|
28
27
|
"publish": "npm publish",
|
|
29
28
|
"postinstall": "echo 'Thanks for using our component library!'"
|
|
30
29
|
},
|
|
31
30
|
"dependencies": {
|
|
32
|
-
"@ahooksjs/use-url-state": "^3.5.1",
|
|
33
|
-
"@ant-design/icons": "^5.6.1",
|
|
34
|
-
"@ant-design/pro-components": "^2.8.10",
|
|
35
31
|
"@cqsjjb/jjb-common-lib": "latest",
|
|
36
32
|
"@wangeditor/editor": "^5.1.23",
|
|
37
33
|
"@wangeditor/editor-for-react": "^1.0.6",
|
|
38
|
-
"ahooks": "^3.9.5",
|
|
39
|
-
"antd": "^5.27.6",
|
|
40
34
|
"dayjs": "^1.11.18",
|
|
41
35
|
"lodash-es": "^4.17.21",
|
|
42
|
-
"react": "^18.3.1",
|
|
43
36
|
"react-pdf": "^10.2.0",
|
|
44
37
|
"react-signature-canvas": "^1.1.0-alpha.2",
|
|
45
38
|
"throttle-debounce": "^5.0.2",
|
|
46
39
|
"use-antd-resizable-header": "^3.2.2"
|
|
47
40
|
},
|
|
48
41
|
"devDependencies": {
|
|
42
|
+
"@ahooksjs/use-url-state": "^3.5.1",
|
|
43
|
+
"@ant-design/icons": "^5.6.1",
|
|
44
|
+
"@ant-design/pro-components": "^2.8.10",
|
|
49
45
|
"@antfu/eslint-config": "^5.4.1",
|
|
50
46
|
"@babel/core": "^7.28.5",
|
|
51
47
|
"@babel/preset-react": "^7.28.5",
|
|
@@ -56,12 +52,23 @@
|
|
|
56
52
|
"@rollup/plugin-json": "^6.1.0",
|
|
57
53
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
58
54
|
"@rollup/plugin-terser": "^0.4.4",
|
|
55
|
+
"ahooks": "^3.9.5",
|
|
56
|
+
"antd": "^5.27.6",
|
|
59
57
|
"eslint": "^9.37.0",
|
|
60
58
|
"eslint-plugin-format": "^1.0.2",
|
|
61
59
|
"eslint-plugin-react-hooks": "^7.0.0",
|
|
62
60
|
"eslint-plugin-react-refresh": "^0.4.23",
|
|
63
61
|
"glob": "^13.0.0",
|
|
64
62
|
"rollup": "^4.54.0",
|
|
63
|
+
"react": "^18.3.1",
|
|
65
64
|
"typescript": "^5.9.3"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"@ahooksjs/use-url-state": ">=3.5.1 <4",
|
|
68
|
+
"@ant-design/icons": ">=5.6.1 <6",
|
|
69
|
+
"@ant-design/pro-components": ">=2.8.10 <3",
|
|
70
|
+
"ahooks": ">=3.9.5 <4",
|
|
71
|
+
"antd": ">=5.27.6 <6",
|
|
72
|
+
"react": ">=18.3.1 <19"
|
|
66
73
|
}
|
|
67
74
|
}
|