您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

p__Setting__Dictionary__index.3e2b3296.async.js 11KB

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[194],{21134:function(ee,I,a){var j=a(1413),p=a(45987),c=a(62435),Z=a(92767),B=a(86074),K=["fieldProps","request","params","proFieldProps"],h=function(u,M){var D=u.fieldProps,l=u.request,N=u.params,z=u.proFieldProps,w=(0,p.Z)(u,K);return(0,B.jsx)(Z.Z,(0,j.Z)({valueType:"segmented",fieldProps:D,ref:M,request:l,params:N,filedConfig:{customLightMode:!0},proFieldProps:z},w))},G=c.forwardRef(h);I.Z=G},5966:function(ee,I,a){var j=a(97685),p=a(1413),c=a(45987),Z=a(21770),B=a(23323),K=a(55241),h=a(97435),G=a(62435),E=a(92767),u=a(86074),M=["fieldProps","proFieldProps"],D=["fieldProps","proFieldProps"],l="text",N=function(s){var o=s.fieldProps,F=s.proFieldProps,C=(0,c.Z)(s,M);return(0,u.jsx)(E.Z,(0,p.Z)({valueType:l,fieldProps:o,filedConfig:{valueType:l},proFieldProps:F},C))},z=function(s){var o=(0,Z.Z)(s.open||!1,{value:s.open,onChange:s.onOpenChange}),F=(0,j.Z)(o,2),C=F[0],V=F[1];return(0,u.jsx)(B.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(Q){var O,n=Q.getFieldValue(s.name||[]);return(0,u.jsx)(K.Z,(0,p.Z)((0,p.Z)({getPopupContainer:function(t){return t&&t.parentNode?t.parentNode:t},onOpenChange:function(t){return V(t)},content:(0,u.jsxs)("div",{style:{padding:"4px 0"},children:[(O=s.statusRender)===null||O===void 0?void 0:O.call(s,n),s.strengthText?(0,u.jsx)("div",{style:{marginTop:10},children:(0,u.jsx)("span",{children:s.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},s.popoverProps),{},{open:C,children:s.children}))}})},w=function(s){var o=s.fieldProps,F=s.proFieldProps,C=(0,c.Z)(s,D),V=(0,G.useState)(!1),H=(0,j.Z)(V,2),Q=H[0],O=H[1];return o!=null&&o.statusRender&&C.name?(0,u.jsx)(z,{name:C.name,statusRender:o==null?void 0:o.statusRender,popoverProps:o==null?void 0:o.popoverProps,strengthText:o==null?void 0:o.strengthText,open:Q,onOpenChange:O,children:(0,u.jsx)("div",{children:(0,u.jsx)(E.Z,(0,p.Z)({valueType:"password",fieldProps:(0,p.Z)((0,p.Z)({},(0,h.Z)(o,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(e){var t;o==null||(t=o.onBlur)===null||t===void 0||t.call(o,e),O(!1)},onClick:function(e){var t;o==null||(t=o.onClick)===null||t===void 0||t.call(o,e),O(!0)}}),proFieldProps:F,filedConfig:{valueType:l}},C))})}):(0,u.jsx)(E.Z,(0,p.Z)({valueType:"password",fieldProps:o,proFieldProps:F,filedConfig:{valueType:l}},C))},A=N;A.Password=w,A.displayName="ProFormComponent",I.Z=A},84618:function(ee,I,a){a.r(I),a.d(I,{default:function(){return O}});var j=a(5574),p=a.n(j),c=a(62435),Z=a(59530),B=a(28459),K=a(15009),h=a.n(K),G=a(99289),E=a.n(G),u=a(67211),M=a(14726),D=a(39680),l=a(86074),N=function(e){var t=e.dispatch,r=e.openModel,i=e.getId,g=(0,c.useRef)(),R=(0,c.useState)([]),y=p()(R,2),W=y[0],$=y[1],L=(0,c.useState)(0),Y=p()(L,2),P=Y[0],b=Y[1],U=(0,c.useState)(1),f=p()(U,2),x=f[0],d=f[1],v=(0,c.useState)(10),k=p()(v,2),_=k[0],m=k[1],te=function(T){i(T)};return(0,c.useEffect)(function(){r.openModal||g.current.reload()},[r.openModal]),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(B.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,l.jsx)(u.Z,{size:"small",search:!1,bordered:!0,scroll:{x:1300},actionRef:g,dataSource:W,columns:[{title:"ID",dataIndex:"id"},{title:"\u5B57\u5178\u540D",dataIndex:"name"},{title:"\u5B57\u5178\u6807\u8BC6\u540D",dataIndex:"code"},{title:"\u5B57\u5178\u4EE3\u7801\u503C",dataIndex:"value"},{title:"\u64CD\u4F5C",width:300,key:"option",valueType:"option",fixed:"right",render:function(T,S,ae){return[(0,l.jsx)(M.ZP,{type:"link",onClick:function(){te(S),t({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,l.jsx)(M.ZP,{type:"link",onClick:function(){S.nextlevel=S.id,te(S),t({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u4E0B\u7EA7\u5B57\u5178"},"1"),(0,l.jsx)(M.ZP,{type:"link",onClick:function(){},children:"\u5220\u9664"},"2")]}}],rowKey:"id",pagination:{current:x,pageSize:_,showSizeChanger:!0,total:P,pageSizeOptions:[9,18,27,99],onChange:function(T,S){d(T),m(S)},onShowSizeChange:function(T,S){d(T),m(S)}},request:E()(h()().mark(function q(){var T,S=arguments;return h()().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return T=S.length>0&&S[0]!==void 0?S[0]:{},J.abrupt("return",(0,D.ONw)({page:x,pagesize:_,sort:"id",sortby:"desc",keyword:T.name,parent_id:-1,show_childs:!0}).then(function(ne){$(ne.data.dicts),b(ne.data.total)}));case 2:case"end":return J.stop()}},q)})),headerTitle:"\u5B57\u5178\u5217\u8868",toolBarRender:function(){return[(0,l.jsx)(M.ZP,{type:"primary",onClick:function(){t({type:"openModel/getOpenModal",payload:!0})},children:"\u5B57\u5178\u5217\u8868"})]},expandable:{childrenColumnName:"children"}})})})},z=(0,Z.connect)(function(n){var e=n.openModel;return{openModel:e}})(N),w=a(97269),A=a(5966),X=a(21134),s=a(17788),o=a(86250),F=a(42075),C=a(68872),V=function(e){var t=e.dispatch,r=e.dictModel,i=e.openModel,g=e.id,R=(0,c.useRef)(),y=(0,c.useState)(!1),W=p()(y,2),$=W[0],L=W[1],Y=(0,c.useState)(null),P=p()(Y,2),b=P[0],U=P[1];return(0,c.useEffect)(function(){L(i.openModal)},[i.openModal]),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(B.ZP,{theme:{token:{colorPrimary:"#4FBE70"},components:{Segmented:{itemSelectedBg:"#19be6e",itemSelectedColor:"#ffffff"}}},children:(0,l.jsx)(s.Z,{open:$,title:g?"\u7F16\u8F91\u5B57\u5178":"\u6DFB\u52A0\u5B57\u5178",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){t({type:"openModel/getOpenModal",payload:!1})},children:(0,l.jsxs)(w.A,{formRef:R,request:E()(h()().mark(function f(){var x;return h()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(!g){v.next=13;break}if(!g.nextlevel){v.next=6;break}return U(null),v.abrupt("return",{code:"",parent_id:g.nextlevel,name:"",value:"",display:"",childs:null});case 6:return v.next=8,(0,D.dBj)({id:g.id});case 8:return x=v.sent,U(x.data),v.abrupt("return",x.data);case 11:v.next=15;break;case 13:return U(null),v.abrupt("return",{code:"",parent_id:-1,name:"",value:"",display:"",childs:null});case 15:case"end":return v.stop()}},f)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(x,d){return(0,l.jsxs)(o.Z,{justify:"flex-end",children:[" ",(0,l.jsx)(F.Z,{children:d})]})},onReset:function(){U(null),L(!1)}},onFinish:function(){var f=E()(h()().mark(function x(d){var v,k;return h()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(g.nextlevel?d.parent_id=g.nextlevel:b&&b.id?d.parent_id=b.parent_id:d.parent_id=-1,d.childs=null,console.log(d),!b){m.next=12;break}return d.id=g.id,m.next=7,(0,D.GFC)(d);case 7:v=m.sent,C.ZP.success("\u63D0\u4EA4\u6210\u529F"),t({type:"openModel/getOpenModal",payload:!1}),m.next=17;break;case 12:return m.next=14,(0,D.K4V)(d);case 14:k=m.sent,C.ZP.success("\u63D0\u4EA4\u6210\u529F"),t({type:"openModel/getOpenModal",payload:!1});case 17:case"end":return m.stop()}},x)}));return function(x){return f.apply(this,arguments)}}(),children:[(0,l.jsx)(A.Z,{label:"\u5B57\u5178\u540D",name:"name",placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B57\u5178\u540D"}]}),(0,l.jsx)(A.Z,{label:"\u5B57\u5178\u6807\u8BC6\u540D,\u5B57\u5178\u6807\u8BC6\u540D\u4E3A\u6570\u5B57\uFF0C\u5E26\u4E0A\u4E0A\u7EA7\u7684\u6807\u8BC6\u540D\uFF0C\u4E00\u822C\u9876\u7EA7\u4E3A\u56DB\u4F4D\u6570\u5B57\uFF0C\u4F8B\u5982\uFF1A2009\uFF0C\u4E00\u7EA7\u4E3A\u516B\u4F4D\uFF0C\u4F8B\u5982\uFF1A20090001\uFF0C20090002\uFF0C\u4EE5\u6B64\u7C7B\u63A8",name:"code",placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u6807\u8BC6\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B57\u5178\u6807\u8BC6\u540D"}]}),(0,l.jsx)(A.Z,{label:"\u5B57\u5178\u4EE3\u7801\u503C",name:"value",placeholder:"\u8BF7\u8F93\u5165\u5B57\u5178\u4EE3\u7801\u503C"}),(0,l.jsx)(X.Z,{name:"display",label:"\u662F\u5426\u663E\u793A",request:E()(h()().mark(function f(){return h()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",[{label:"\u662F",value:"S"},{label:"\u5426",value:"H"}]);case 1:case"end":return d.stop()}},f)})),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u663E\u793A"}]})]})})})})},H=(0,Z.connect)(function(n){var e=n.dictModel,t=n.openModel;return{dictModel:e,openModel:t}})(V),Q=function(e){var t=e.dispatch,r=e.openModel,i=(0,c.useState)(0),g=p()(i,2),R=g[0],y=g[1],W=function(L){y(L)};return(0,c.useEffect)(function(){r.openModal||y(0)},[r.openModal]),(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(B.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,l.jsx)(z,{getId:W}),(0,l.jsx)(H,{id:R})]})})},O=(0,Z.connect)(function(n){var e=n.openModel;return{openModel:e}})(Q)},86250:function(ee,I,a){a.d(I,{Z:function(){return O}});var j=a(62435),p=a(93967),c=a.n(p),Z=a(98423),B=a(98065),K=a(53124),h=a(92030),G=a(45503);const E=["wrap","nowrap","wrap-reverse"],u=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],M=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],D=(n,e)=>{const t=e.wrap===!0?"wrap":e.wrap;return{[`${n}-wrap-${t}`]:t&&E.includes(t)}},l=(n,e)=>{const t={};return M.forEach(r=>{t[`${n}-align-${r}`]=e.align===r}),t[`${n}-align-stretch`]=!e.align&&!!e.vertical,t},N=(n,e)=>{const t={};return u.forEach(r=>{t[`${n}-justify-${r}`]=e.justify===r}),t};function z(n,e){return c()(Object.assign(Object.assign(Object.assign({},D(n,e)),l(n,e)),N(n,e)))}var w=z;const A=n=>{const{componentCls:e}=n;return{[e]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},X=n=>{const{componentCls:e}=n;return{[e]:{"&-gap-small":{gap:n.flexGapSM},"&-gap-middle":{gap:n.flexGap},"&-gap-large":{gap:n.flexGapLG}}}},s=n=>{const{componentCls:e}=n,t={};return E.forEach(r=>{t[`${e}-wrap-${r}`]={flexWrap:r}}),t},o=n=>{const{componentCls:e}=n,t={};return M.forEach(r=>{t[`${e}-align-${r}`]={alignItems:r}}),t},F=n=>{const{componentCls:e}=n,t={};return u.forEach(r=>{t[`${e}-justify-${r}`]={justifyContent:r}}),t},C=()=>({});var V=(0,h.I$)("Flex",n=>{const{paddingXS:e,padding:t,paddingLG:r}=n,i=(0,G.TS)(n,{flexGapSM:e,flexGap:t,flexGapLG:r});return[A(i),X(i),s(i),o(i),F(i)]},C,{resetStyle:!1}),H=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t},O=j.forwardRef((n,e)=>{const{prefixCls:t,rootClassName:r,className:i,style:g,flex:R,gap:y,children:W,vertical:$=!1,component:L="div"}=n,Y=H(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:P,direction:b,getPrefixCls:U}=j.useContext(K.E_),f=U("flex",t),[x,d,v]=V(f),k=$!=null?$:P==null?void 0:P.vertical,_=c()(i,r,P==null?void 0:P.className,f,d,v,w(f,n),{[`${f}-rtl`]:b==="rtl",[`${f}-gap-${y}`]:(0,B.n)(y),[`${f}-vertical`]:k}),m=Object.assign(Object.assign({},P==null?void 0:P.style),g);return R&&(m.flex=R),y&&!(0,B.n)(y)&&(m.gap=y),x(j.createElement(L,Object.assign({ref:e,className:_,style:m},(0,Z.Z)(Y,["justify","wrap","align"])),W))})}}]);