Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

p__Setting__System__index.79feac7d.async.js 10KB

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