Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

p__Setting__System__index.0d8db61a.async.js 12KB

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[250],{86615:function(ee,Z,e){var E=e(1413),a=e(45987),o=e(22270),F=e(78045),R=e(62435),_=e(28614),v=e(34176),A=e(86074),c=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],u=R.forwardRef(function(s,W){var M=s.fieldProps,n=s.options,U=s.radioType,r=s.layout,t=s.proFieldProps,h=s.valueEnum,m=(0,a.Z)(s,c);return(0,A.jsx)(v.Z,(0,E.Z)((0,E.Z)({valueType:U==="button"?"radioButton":"radio",ref:W,valueEnum:(0,o.h)(h,void 0)},m),{},{fieldProps:(0,E.Z)({options:n,layout:r},M),proFieldProps:t,filedConfig:{customLightMode:!0}}))}),B=R.forwardRef(function(s,W){var M=s.fieldProps,n=s.children;return(0,A.jsx)(F.ZP,(0,E.Z)((0,E.Z)({},M),{},{ref:W,children:n}))}),g=(0,_.G)(B,{valuePropName:"checked",ignoreWidth:!0}),l=g;l.Group=u,l.Button=F.ZP.Button,l.displayName="ProFormComponent",Z.Z=l},90672:function(ee,Z,e){var E=e(1413),a=e(45987),o=e(62435),F=e(34176),R=e(86074),_=["fieldProps","proFieldProps"],v=function(c,u){var B=c.fieldProps,g=c.proFieldProps,l=(0,a.Z)(c,_);return(0,R.jsx)(F.Z,(0,E.Z)({ref:u,valueType:"textarea",fieldProps:B,proFieldProps:g},l))};Z.Z=o.forwardRef(v)},5966:function(ee,Z,e){var E=e(97685),a=e(1413),o=e(45987),F=e(21770),R=e(23323),_=e(55241),v=e(97435),A=e(62435),c=e(34176),u=e(86074),B=["fieldProps","proFieldProps"],g=["fieldProps","proFieldProps"],l="text",s=function(r){var t=r.fieldProps,h=r.proFieldProps,m=(0,o.Z)(r,B);return(0,u.jsx)(c.Z,(0,a.Z)({valueType:l,fieldProps:t,filedConfig:{valueType:l},proFieldProps:h},m))},W=function(r){var t=(0,F.Z)(r.open||!1,{value:r.open,onChange:r.onOpenChange}),h=(0,E.Z)(t,2),m=h[0],$=h[1];return(0,u.jsx)(R.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(X){var L,V=X.getFieldValue(r.name||[]);return(0,u.jsx)(_.Z,(0,a.Z)((0,a.Z)({getPopupContainer:function(P){return P&&P.parentNode?P.parentNode:P},onOpenChange:function(P){return $(P)},content:(0,u.jsxs)("div",{style:{padding:"4px 0"},children:[(L=r.statusRender)===null||L===void 0?void 0:L.call(r,V),r.strengthText?(0,u.jsx)("div",{style:{marginTop:10},children:(0,u.jsx)("span",{children:r.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},r.popoverProps),{},{open:m,children:r.children}))}})},M=function(r){var t=r.fieldProps,h=r.proFieldProps,m=(0,o.Z)(r,g),$=(0,A.useState)(!1),Q=(0,E.Z)($,2),X=Q[0],L=Q[1];return t!=null&&t.statusRender&&m.name?(0,u.jsx)(W,{name:m.name,statusRender:t==null?void 0:t.statusRender,popoverProps:t==null?void 0:t.popoverProps,strengthText:t==null?void 0:t.strengthText,open:X,onOpenChange:L,children:(0,u.jsx)("div",{children:(0,u.jsx)(c.Z,(0,a.Z)({valueType:"password",fieldProps:(0,a.Z)((0,a.Z)({},(0,v.Z)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(j){var P;t==null||(P=t.onBlur)===null||P===void 0||P.call(t,j),L(!1)},onClick:function(j){var P;t==null||(P=t.onClick)===null||P===void 0||P.call(t,j),L(!0)}}),proFieldProps:h,filedConfig:{valueType:l}},m))})}):(0,u.jsx)(c.Z,(0,a.Z)({valueType:"password",fieldProps:t,proFieldProps:h,filedConfig:{valueType:l}},m))},n=s;n.Password=M,n.displayName="ProFormComponent",Z.Z=n},67562:function(ee,Z,e){var E=e(5574),a=e.n(E),o=e(71167),F=e.n(o),R=e(40190),_=e(62435),v=e(86492),A=e.n(v),c=e(86074),u=function(g){var l=g.defaultValue,s=g.placeholder,W=g.onChange,M=(0,_.useState)(l&&A().decode(l)),n=a()(M,2),U=n[0],r=n[1],t=function(m){r(m),W(m)};return(0,_.useEffect)(function(){if(l){var h=l.replace(/<[^>]*>/g,"");t(h?l:"")}},[l]),(0,c.jsx)("div",{children:(0,c.jsx)(F(),{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:U,onChange:t,theme:"snow",placeholder:s})})};Z.Z=u},86336:function(ee,Z,e){e.r(Z),e.d(Z,{default:function(){return he}});var E=e(5574),a=e.n(E),o=e(62435),F=e(59530),R=e(28459),_=e(15009),v=e.n(_),A=e(99289),c=e.n(A),u=e(95338),B=e(42075),g=e(14726),l=e(17788),s=e(68872),W=e(86738),M=e(39680),n=e(86074),U=function(p){var I=p.dispatch,N=p.openModel,G=p.getId,C=(0,o.useRef)(),Y=(0,o.useState)([]),b=a()(Y,2),H=b[0],ne=b[1],k=(0,o.useState)(0),te=a()(k,2),re=te[0],ce=te[1],ae=(0,o.useState)(1),oe=a()(ae,2),w=oe[0],se=oe[1],ue=(0,o.useState)(10),S=a()(ue,2),x=S[0],d=S[1],D=(0,o.useState)([]),q=a()(D,2),le=q[0],O=q[1],de=function(i){G(i)};return(0,o.useEffect)(function(){if(!N.openModal){var T;(T=C.current)===null||T===void 0||T.reload()}},[N.openModal]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(R.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,n.jsx)(u.Z,{size:"small",bordered:!0,scroll:{y:480},actionRef:C,tableAlertRender:function(i){var y=i.selectedRowKeys,J=i.selectedRows,f=i.onCleanSelected;return O(J),(0,n.jsx)(B.Z,{size:24,children:(0,n.jsxs)("span",{children:["\u5DF2\u9009 ",J.length," \u9879",(0,n.jsx)("a",{style:{marginInlineStart:8},onClick:f,children:"\u53D6\u6D88\u9009\u62E9"})]})})},tableAlertOptionRender:function(){return(0,n.jsxs)(B.Z,{children:[(0,n.jsx)(g.ZP,{danger:!0,type:"primary",onClick:function(){l.Z.confirm({title:"\u6279\u91CF\u5220\u9664",content:"\u786E\u5B9A\u8981\u5220\u9664\u6240\u9009\u7684\u6570\u636E\u5417",onOk:function(){var J=le.map(function(f){return(0,M.pcN)({id:f.id})});Promise.all(J).then(function(){var f,z;s.ZP.success("\u6279\u91CF\u5220\u9664\u6210\u529F"),(f=C.current)===null||f===void 0||f.clearSelected(),(z=C.current)===null||z===void 0||z.reload()}).catch(function(f){console.error("\u6279\u91CF\u5220\u9664\u6210\u529F:",f),s.ZP.error("\u6279\u91CF\u5220\u9664\u6210\u529F")})},onCancel:function(){console.log("Cancel")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u6279\u91CF\u5220\u9664"}),","]})},rowSelection:{type:"checkbox"},dataSource:H,columns:[{title:"ID",dataIndex:"id",search:!1},{title:"\u5907\u6CE8",dataIndex:"remark",search:!1},{title:"\u914D\u7F6E\u9879",dataIndex:"name"},{title:"\u914D\u7F6E\u5185\u5BB9",dataIndex:"value",ellipsis:!0,search:!1},{title:"\u64CD\u4F5C",key:"option",valueType:"option",render:function(i,y,J){return[(0,n.jsx)(g.ZP,{type:"link",onClick:function(){de(y.id),I({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,n.jsx)(W.Z,{title:"\u662F\u5426\u5220\u9664",onConfirm:function(z){(0,M.pcN)({id:y.id}).then(function(me){var ie;s.ZP.success("\u5220\u9664\u6210\u529F"),(ie=C.current)===null||ie===void 0||ie.reload()})},okText:"\u5220\u9664",cancelText:"\u53D6\u6D88",children:(0,n.jsx)(g.ZP,{danger:!0,type:"link",children:"\u5220\u9664"})})]}}],rowKey:"id",pagination:{current:w,pageSize:x,showSizeChanger:!0,total:re,pageSizeOptions:[9,18,27,99],onChange:function(i,y){se(i),d(y)},onShowSizeChange:function(i,y){se(i),d(y)}},request:c()(v()().mark(function T(){var i,y=arguments;return v()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return i=y.length>0&&y[0]!==void 0?y[0]:{},f.abrupt("return",(0,M.E8r)({page:w,pagesize:x,sort:"id",sortby:"desc",keyword:i.name}).then(function(z){ne(z.data.sysconfigs),ce(z.data.total)}));case 2:case"end":return f.stop()}},T)})),headerTitle:"\u7CFB\u7EDF\u914D\u7F6E",toolBarRender:function(){return[(0,n.jsx)(g.ZP,{type:"primary",onClick:function(){I({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u914D\u7F6E\u9879"})]}})})})},r=(0,F.connect)(function(K){var p=K.openModel;return{openModel:p}})(U),t=e(97269),h=e(5966),m=e(86615),$=e(97462),Q=e(90672),X=e(19109),L=e(86250),V=e(71230),j=e(15746),P=e(23323),pe=e(67562),ve=function(p){var I=p.dispatch,N=p.dictModel,G=p.openModel,C=p.id,Y=(0,o.useRef)(),b=(0,o.useState)(!1),H=a()(b,2),ne=H[0],k=H[1],te=(0,o.useState)(null),re=a()(te,2),ce=re[0],ae=re[1];(0,o.useEffect)(function(){k(G.openModal)},[G.openModal]);var oe=(0,o.useState)(""),w=a()(oe,2),se=w[0],ue=w[1];return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(R.ZP,{theme:{token:{colorPrimary:"#4FBE70"},components:{Segmented:{itemSelectedBg:"#19be6e",itemSelectedColor:"#ffffff"}}},children:(0,n.jsx)(l.Z,{open:ne,title:C?"\u7F16\u8F91\u914D\u7F6E\u9879":"\u6DFB\u52A0\u914D\u7F6E\u9879",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:800,onCancel:function(){I({type:"openModel/getOpenModal",payload:!1})},children:(0,n.jsx)(t.A,{formRef:Y,request:c()(v()().mark(function S(){var x;return v()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(!C){D.next=8;break}return D.next=3,(0,M.BVT)({id:C});case 3:return x=D.sent,ae(x.data),D.abrupt("return",x.data);case 8:return D.abrupt("return",{name:"",value:"",remark:"",txt_mode:1});case 9:case"end":return D.stop()}},S)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(x,d){return(0,n.jsxs)(L.Z,{justify:"flex-end",children:[" ",(0,n.jsx)(B.Z,{children:d})]})},onReset:function(){ae(null),I({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var S=c()(v()().mark(function x(d){var D,q;return v()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(console.log(d),!C){O.next=10;break}return d.id=C,O.next=5,(0,M.Ssw)(d);case 5:D=O.sent,s.ZP.success("\u63D0\u4EA4\u6210\u529F"),I({type:"openModel/getOpenModal",payload:!1}),O.next=15;break;case 10:return O.next=12,(0,M.WzL)(d);case 12:q=O.sent,s.ZP.success("\u63D0\u4EA4\u6210\u529F"),I({type:"openModel/getOpenModal",payload:!1});case 15:case"end":return O.stop()}},x)}));return function(x){return S.apply(this,arguments)}}(),children:(0,n.jsxs)(V.Z,{gutter:[16,16],children:[(0,n.jsx)(j.Z,{span:16,children:(0,n.jsx)(h.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,n.jsx)(j.Z,{span:8,children:(0,n.jsx)(m.Z.Group,{name:"txt_mode",label:"\u914D\u7F6E\u5185\u5BB9\u683C\u5F0F",request:c()(v()().mark(function S(){return v()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",[{label:"\u666E\u901A\u6587\u672C",value:1},{label:"\u5BCC\u6587\u672C",value:2}]);case 1:case"end":return d.stop()}},S)})),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u914D\u7F6E\u5185\u5BB9\u683C\u5F0F"}]})}),(0,n.jsx)(j.Z,{span:24,children:(0,n.jsx)(h.Z,{label:"\u5907\u6CE8",name:"remark",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5907\u6CE8"}]})}),(0,n.jsx)(j.Z,{span:24,children:(0,n.jsx)($.Z,{name:["txt_mode"],children:function(x){var d=x.txt_mode;return(0,n.jsxs)(n.Fragment,{children:[d==1&&(0,n.jsx)(Q.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"}]}),d==2&&(0,n.jsx)(V.Z,{gutter:[16,16],children:(0,n.jsx)(j.Z,{span:24,children:(0,n.jsx)(P.Z.Item,{name:"value",label:"\u914D\u7F6E\u5185\u5BB9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u914D\u7F6E\u5185\u5BB9"}],children:(0,n.jsx)(X.i$,{children:function(){return(0,n.jsx)($.Z,{name:["value"],children:function(le,O){var de=le.value;return(0,n.jsx)(pe.Z,{placeholder:"\u8BF7\u8F93\u5165\u914D\u7F6E\u5185\u5BB9",defaultValue:de,onChange:function(i){ue(i),O.formRef.current.setFieldsValue({value:i})}})}})}})})})})]})}})})]})})})})})},Pe=(0,F.connect)(function(K){var p=K.dictModel,I=K.openModel;return{dictModel:p,openModel:I}})(ve),fe=function(p){var I=p.dispatch,N=p.openModel,G=(0,o.useState)(0),C=a()(G,2),Y=C[0],b=C[1],H=function(k){b(k)};return(0,o.useEffect)(function(){N.openModal||b(0)},[N.openModal]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(R.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,n.jsx)(r,{getId:H}),(0,n.jsx)(Pe,{id:Y})]})})},he=(0,F.connect)(function(K){var p=K.openModel;return{openModel:p}})(fe)}}]);