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

p__Setting__System__index.7e76e015.async.js 10KB

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