Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

p__Setting__System__index.5609f0cd.async.js 12KB

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[250],{21134:function(te,R,e){var C=e(1413),i=e(45987),s=e(62435),S=e(49994),O=e(86074),Z=["fieldProps","request","params","proFieldProps"],m=function(d,j){var h=d.fieldProps,t=d.request,_=d.params,U=d.proFieldProps,K=(0,i.Z)(d,Z);return(0,O.jsx)(S.Z,(0,C.Z)({valueType:"segmented",fieldProps:h,ref:j,request:t,params:_,filedConfig:{customLightMode:!0},proFieldProps:U},K))},L=s.forwardRef(m);R.Z=L},90672:function(te,R,e){var C=e(1413),i=e(45987),s=e(62435),S=e(49994),O=e(86074),Z=["fieldProps","proFieldProps"],m=function(f,d){var j=f.fieldProps,h=f.proFieldProps,t=(0,i.Z)(f,Z);return(0,O.jsx)(S.Z,(0,C.Z)({ref:d,valueType:"textarea",fieldProps:j,proFieldProps:h},t))};R.Z=s.forwardRef(m)},5966:function(te,R,e){var C=e(97685),i=e(1413),s=e(45987),S=e(21770),O=e(23323),Z=e(55241),m=e(97435),L=e(62435),f=e(49994),d=e(86074),j=["fieldProps","proFieldProps"],h=["fieldProps","proFieldProps"],t="text",_=function(u){var l=u.fieldProps,M=u.proFieldProps,E=(0,s.Z)(u,j);return(0,d.jsx)(f.Z,(0,i.Z)({valueType:t,fieldProps:l,filedConfig:{valueType:t},proFieldProps:M},E))},U=function(u){var l=(0,S.Z)(u.open||!1,{value:u.open,onChange:u.onOpenChange}),M=(0,C.Z)(l,2),E=M[0],J=M[1];return(0,d.jsx)(O.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(X){var W,n=X.getFieldValue(u.name||[]);return(0,d.jsx)(Z.Z,(0,i.Z)((0,i.Z)({getPopupContainer:function(a){return a&&a.parentNode?a.parentNode:a},onOpenChange:function(a){return J(a)},content:(0,d.jsxs)("div",{style:{padding:"4px 0"},children:[(W=u.statusRender)===null||W===void 0?void 0:W.call(u,n),u.strengthText?(0,d.jsx)("div",{style:{marginTop:10},children:(0,d.jsx)("span",{children:u.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},u.popoverProps),{},{open:E,children:u.children}))}})},K=function(u){var l=u.fieldProps,M=u.proFieldProps,E=(0,s.Z)(u,h),J=(0,L.useState)(!1),H=(0,C.Z)(J,2),X=H[0],W=H[1];return l!=null&&l.statusRender&&E.name?(0,d.jsx)(U,{name:E.name,statusRender:l==null?void 0:l.statusRender,popoverProps:l==null?void 0:l.popoverProps,strengthText:l==null?void 0:l.strengthText,open:X,onOpenChange:W,children:(0,d.jsx)("div",{children:(0,d.jsx)(f.Z,(0,i.Z)({valueType:"password",fieldProps:(0,i.Z)((0,i.Z)({},(0,m.Z)(l,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(r){var a;l==null||(a=l.onBlur)===null||a===void 0||a.call(l,r),W(!1)},onClick:function(r){var a;l==null||(a=l.onClick)===null||a===void 0||a.call(l,r),W(!0)}}),proFieldProps:M,filedConfig:{valueType:t}},E))})}):(0,d.jsx)(f.Z,(0,i.Z)({valueType:"password",fieldProps:l,proFieldProps:M,filedConfig:{valueType:t}},E))},A=_;A.Password=K,A.displayName="ProFormComponent",R.Z=A},67562:function(te,R,e){var C=e(5574),i=e.n(C),s=e(71167),S=e.n(s),O=e(40190),Z=e(62435),m=e(86492),L=e.n(m),f=e(86074),d=function(h){var t=h.defaultValue,_=h.placeholder,U=h.onChange,K=(0,Z.useState)(t&&L().decode(t)),A=i()(K,2),V=A[0],u=A[1],l=function(E){u(E),U(E)};return(0,Z.useEffect)(function(){if(t){var M=t.replace(/<[^>]*>/g,"");l(M?t:"")}},[t]),(0,f.jsx)("div",{children:(0,f.jsx)(S(),{bounds:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image","video"]]},value:V,onChange:l,theme:"snow",placeholder:_})})};R.Z=d},86336:function(te,R,e){e.r(R),e.d(R,{default:function(){return re}});var C=e(5574),i=e.n(C),s=e(62435),S=e(59530),O=e(28459),Z=e(15009),m=e.n(Z),L=e(99289),f=e.n(L),d=e(67211),j=e(14726),h=e(39680),t=e(86074),_=function(v){var y=v.dispatch,z=v.openModel,G=v.getId,c=(0,s.useRef)(),Q=(0,s.useState)([]),$=i()(Q,2),D=$[0],k=$[1],Y=(0,s.useState)(0),q=i()(Y,2),ee=q[0],le=q[1],N=(0,s.useState)(1),oe=i()(N,2),ne=oe[0],de=oe[1],ue=(0,s.useState)(10),I=i()(ue,2),F=I[0],g=I[1],T=function(B){G(B)};return(0,s.useEffect)(function(){z.openModal||c.current.reload()},[z.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(O.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,t.jsx)(d.Z,{size:"small",bordered:!0,scroll:{x:1300},actionRef:c,dataSource:D,columns:[{title:"ID",dataIndex:"id",width:100,search:!1},{title:"\u5907\u6CE8",dataIndex:"remark",width:200,search:!1},{title:"\u914D\u7F6E\u9879",dataIndex:"name",width:200},{title:"\u914D\u7F6E\u5185\u5BB9",dataIndex:"value",ellipsis:!0,search:!1},{title:"\u64CD\u4F5C",width:200,key:"option",valueType:"option",render:function(B,p,ie){return[(0,t.jsx)(j.ZP,{type:"link",onClick:function(){T(p.id),y({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,t.jsx)(j.ZP,{type:"link",onClick:function(){},children:"\u5220\u9664"},"2")]}}],rowKey:"id",pagination:{current:ne,pageSize:F,showSizeChanger:!0,total:ee,pageSizeOptions:[9,18,27,99],onChange:function(B,p){de(B),g(p)},onShowSizeChange:function(B,p){de(B),g(p)}},request:f()(m()().mark(function b(){var B,p=arguments;return m()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return B=p.length>0&&p[0]!==void 0?p[0]:{},w.abrupt("return",(0,h.E8r)({page:ne,pagesize:F,sort:"id",sortby:"desc",keyword:B.name}).then(function(ae){k(ae.data.sysconfigs),le(ae.data.total)}));case 2:case"end":return w.stop()}},b)})),headerTitle:"\u7CFB\u7EDF\u914D\u7F6E",toolBarRender:function(){return[(0,t.jsx)(j.ZP,{type:"primary",onClick:function(){y({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u914D\u7F6E\u9879"})]}})})})},U=(0,S.connect)(function(x){var v=x.openModel;return{openModel:v}})(_),K=e(97269),A=e(5966),V=e(21134),u=e(97462),l=e(90672),M=e(19109),E=e(17788),J=e(86250),H=e(42075),X=e(68872),W=e(71230),n=e(15746),r=e(23323),a=e(67562),o=function(v){var y=v.dispatch,z=v.dictModel,G=v.openModel,c=v.id,Q=(0,s.useRef)(),$=(0,s.useState)(!1),D=i()($,2),k=D[0],Y=D[1],q=(0,s.useState)(null),ee=i()(q,2),le=ee[0],N=ee[1];(0,s.useEffect)(function(){Y(G.openModal)},[G.openModal]);var oe=(0,s.useState)(""),ne=i()(oe,2),de=ne[0],ue=ne[1];return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(O.ZP,{theme:{token:{colorPrimary:"#4FBE70"},components:{Segmented:{itemSelectedBg:"#19be6e",itemSelectedColor:"#ffffff"}}},children:(0,t.jsx)(E.Z,{open:k,title:c?"\u7F16\u8F91\u914D\u7F6E\u9879":"\u6DFB\u52A0\u914D\u7F6E\u9879",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){y({type:"openModel/getOpenModal",payload:!1})},children:(0,t.jsxs)(K.A,{formRef:Q,request:f()(m()().mark(function I(){var F;return m()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(!c){T.next=8;break}return T.next=3,(0,h.BVT)({id:c});case 3:return F=T.sent,N(F.data),T.abrupt("return",F.data);case 8:return T.abrupt("return",{name:"",value:"",remark:"",txt_mode:1});case 9:case"end":return T.stop()}},I)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(F,g){return(0,t.jsxs)(J.Z,{justify:"flex-end",children:[" ",(0,t.jsx)(H.Z,{children:g})]})},onReset:function(){N(null),y({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var I=f()(m()().mark(function F(g){var T,b;return m()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(console.log(g),!c){p.next=10;break}return g.id=c,p.next=5,(0,h.Ssw)(g);case 5:T=p.sent,X.ZP.success("\u63D0\u4EA4\u6210\u529F"),y({type:"openModel/getOpenModal",payload:!1}),p.next=15;break;case 10:return p.next=12,(0,h.WzL)(g);case 12:b=p.sent,X.ZP.success("\u63D0\u4EA4\u6210\u529F"),y({type:"openModel/getOpenModal",payload:!1});case 15:case"end":return p.stop()}},F)}));return function(F){return I.apply(this,arguments)}}(),children:[(0,t.jsx)(A.Z,{label:"\u914D\u7F6E\u9879\u540D\u79F0",name:"name",placeholder:"\u8BF7\u8F93\u5165\u914D\u7F6E\u9879\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u914D\u7F6E\u9879\u540D\u79F0"}]}),(0,t.jsx)(V.Z,{name:"txt_mode",label:"\u914D\u7F6E\u5185\u5BB9\u683C\u5F0F",request:f()(m()().mark(function I(){return m()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",[{label:"\u666E\u901A\u6587\u672C",value:1},{label:"\u5BCC\u6587\u672C",value:2}]);case 1:case"end":return g.stop()}},I)})),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u914D\u7F6E\u5185\u5BB9\u683C\u5F0F"}]}),(0,t.jsx)(u.Z,{name:["txt_mode"],children:function(F){var g=F.txt_mode;return(0,t.jsxs)(t.Fragment,{children:[g==1&&(0,t.jsx)(l.Z,{name:"value",label:"\u914D\u7F6E\u5185\u5BB9",placeholder:"\u8BF7\u8F93\u5165\u914D\u7F6E\u5185\u5BB9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u914D\u7F6E\u5185\u5BB9"}]}),g==2&&(0,t.jsx)(W.Z,{gutter:[16,16],children:(0,t.jsx)(n.Z,{span:24,children:(0,t.jsx)(r.Z.Item,{name:"value",label:"\u914D\u7F6E\u5185\u5BB9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u914D\u7F6E\u5185\u5BB9"}],children:(0,t.jsx)(M.i$,{children:function(){return(0,t.jsx)(u.Z,{name:["value"],children:function(B,p){var ie=B.value;return(0,t.jsx)(a.Z,{placeholder:"\u8BF7\u8F93\u5165\u914D\u7F6E\u5185\u5BB9",defaultValue:ie,onChange:function(ae){ue(ae),p.formRef.current.setFieldsValue({value:ae})}})}})}})})})})]})}}),(0,t.jsx)(A.Z,{label:"\u5907\u6CE8",name:"remark",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5907\u6CE8"}]})]})})})})},P=(0,S.connect)(function(x){var v=x.dictModel,y=x.openModel;return{dictModel:v,openModel:y}})(o),se=function(v){var y=v.dispatch,z=v.openModel,G=(0,s.useState)(0),c=i()(G,2),Q=c[0],$=c[1],D=function(Y){$(Y)};return(0,s.useEffect)(function(){z.openModal||$(0)},[z.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(O.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,t.jsx)(U,{getId:D}),(0,t.jsx)(P,{id:Q})]})})},re=(0,S.connect)(function(x){var v=x.openModel;return{openModel:v}})(se)},86250:function(te,R,e){e.d(R,{Z:function(){return W}});var C=e(62435),i=e(93967),s=e.n(i),S=e(98423),O=e(98065),Z=e(53124),m=e(92030),L=e(45503);const f=["wrap","nowrap","wrap-reverse"],d=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],j=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],h=(n,r)=>{const a=r.wrap===!0?"wrap":r.wrap;return{[`${n}-wrap-${a}`]:a&&f.includes(a)}},t=(n,r)=>{const a={};return j.forEach(o=>{a[`${n}-align-${o}`]=r.align===o}),a[`${n}-align-stretch`]=!r.align&&!!r.vertical,a},_=(n,r)=>{const a={};return d.forEach(o=>{a[`${n}-justify-${o}`]=r.justify===o}),a};function U(n,r){return s()(Object.assign(Object.assign(Object.assign({},h(n,r)),t(n,r)),_(n,r)))}var K=U;const A=n=>{const{componentCls:r}=n;return{[r]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},V=n=>{const{componentCls:r}=n;return{[r]:{"&-gap-small":{gap:n.flexGapSM},"&-gap-middle":{gap:n.flexGap},"&-gap-large":{gap:n.flexGapLG}}}},u=n=>{const{componentCls:r}=n,a={};return f.forEach(o=>{a[`${r}-wrap-${o}`]={flexWrap:o}}),a},l=n=>{const{componentCls:r}=n,a={};return j.forEach(o=>{a[`${r}-align-${o}`]={alignItems:o}}),a},M=n=>{const{componentCls:r}=n,a={};return d.forEach(o=>{a[`${r}-justify-${o}`]={justifyContent:o}}),a},E=()=>({});var J=(0,m.I$)("Flex",n=>{const{paddingXS:r,padding:a,paddingLG:o}=n,P=(0,L.TS)(n,{flexGapSM:r,flexGap:a,flexGapLG:o});return[A(P),V(P),u(P),l(P),M(P)]},E,{resetStyle:!1}),H=function(n,r){var a={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&r.indexOf(o)<0&&(a[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,o=Object.getOwnPropertySymbols(n);P<o.length;P++)r.indexOf(o[P])<0&&Object.prototype.propertyIsEnumerable.call(n,o[P])&&(a[o[P]]=n[o[P]]);return a},W=C.forwardRef((n,r)=>{const{prefixCls:a,rootClassName:o,className:P,style:se,flex:re,gap:x,children:v,vertical:y=!1,component:z="div"}=n,G=H(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:c,direction:Q,getPrefixCls:$}=C.useContext(Z.E_),D=$("flex",a),[k,Y,q]=J(D),ee=y!=null?y:c==null?void 0:c.vertical,le=s()(P,o,c==null?void 0:c.className,D,Y,q,K(D,n),{[`${D}-rtl`]:Q==="rtl",[`${D}-gap-${x}`]:(0,O.n)(x),[`${D}-vertical`]:ee}),N=Object.assign(Object.assign({},c==null?void 0:c.style),se);return re&&(N.flex=re),x&&!(0,O.n)(x)&&(N.gap=x),k(C.createElement(z,Object.assign({ref:r,className:le,style:N},(0,S.Z)(G,["justify","wrap","align"])),v))})}}]);