Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

p__Setting__Other__index.b4c43b67.async.js 6.5KB

1
  1. "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[580],{90672:function(Q,F,a){var P=a(1413),g=a(45987),i=a(62435),j=a(49994),x=a(86074),A=["fieldProps","proFieldProps"],f=function(p,I){var T=p.fieldProps,S=p.proFieldProps,l=(0,g.Z)(p,A);return(0,x.jsx)(j.Z,(0,P.Z)({ref:I,valueType:"textarea",fieldProps:T,proFieldProps:S},l))};F.Z=i.forwardRef(f)},79127:function(Q,F,a){a.r(F),a.d(F,{default:function(){return H}});var P=a(5574),g=a.n(P),i=a(62435),j=a(59530),x=a(28459),A=a(15009),f=a.n(A),Z=a(99289),p=a.n(Z),I=a(95338),T=a(14726),S=a(39680),l=a(86074),N=function(t){var n=t.dispatch,r=t.getId,o=t.openModel,v=(0,i.useRef)(),y=(0,i.useState)([]),c=g()(y,2),M=c[0],C=c[1],B=function(s){r(s)};return(0,i.useEffect)(function(){o.openModal||v.current.reload()},[o.openModal]),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(x.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,l.jsx)(I.Z,{actionRef:v,dataSource:M,search:!1,columns:[{title:"\u5206\u8BCD\u5185\u5BB9",dataIndex:"text"},{title:"\u64CD\u4F5C",key:"option",valueType:"option",fixed:"right",render:function(s,E,$){return[(0,l.jsx)(T.ZP,{type:"link",onClick:function(){n({type:"openModel/getOpenModal",payload:!0})},children:"\u66F4\u65B0\u5206\u8BCD\u5668"},"1")]}}],rowKey:"id",request:p()(f()().mark(function O(){var s,E=arguments;return f()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return s=E.length>0&&E[0]!==void 0?E[0]:{},d.abrupt("return",(0,S.Ekb)().then(function(D){C([{text:D.data.text}])}));case 2:case"end":return d.stop()}},O)})),headerTitle:"\u5206\u8BCD\u5668"})})})},L=(0,j.connect)(function(e){var t=e.dictModel,n=e.openModel;return{dictModel:t,openModel:n}})(N),W=a(97269),b=a(90672),U=a(17788),V=a(86250),w=a(42075),K=a(68872),Y={label:"name",value:"id"},z=function(t){var n=t.dispatch,r=t.dictModel,o=t.openModel,v=t.id,y=(0,i.useRef)(),c=(0,i.useState)(!1),M=g()(c,2),C=M[0],B=M[1],O=(0,i.useState)(null),s=g()(O,2),E=s[0],$=s[1];(0,i.useEffect)(function(){B(o.openModal)},[o.openModal]);var d=(0,i.useState)(""),D=g()(d,2),q=D[0],X=D[1],_=function(u){X(u)};return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(x.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:(0,l.jsx)(U.Z,{open:C,title:"\u66F4\u65B0\u5206\u8BCD\u5668",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){n({type:"openModel/getOpenModal",payload:!1})},children:(0,l.jsx)(W.A,{formRef:y,request:p()(f()().mark(function h(){var u;return f()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!v){m.next=8;break}return m.next=3,(0,S.Ekb)({id:v});case 3:return u=m.sent,$(u.data),m.abrupt("return",u.data);case 8:return m.abrupt("return",{text:""});case 9:case"end":return m.stop()}},h)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(u,G){return(0,l.jsxs)(V.Z,{justify:"flex-end",children:[" ",(0,l.jsx)(w.Z,{children:G})]})},onReset:function(){$(null),n({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var h=p()(f()().mark(function u(G){var m;return f()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,(0,S.iwN)(G);case 2:m=R.sent,K.ZP.success("\u63D0\u4EA4\u6210\u529F"),n({type:"openModel/getOpenModal",payload:!1});case 5:case"end":return R.stop()}},u)}));return function(u){return h.apply(this,arguments)}}(),children:(0,l.jsx)(b.Z,{name:"text",label:"\u5206\u8BCD\u5185\u5BB9",placeholder:"\u8BF7\u8F93\u5165\u5206\u8BCD\u5185\u5BB9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8BCD\u5185\u5BB9"}]})})})})})},J=(0,j.connect)(function(e){var t=e.dictModel,n=e.openModel;return{dictModel:t,openModel:n}})(z),k=function(t){var n=t.dispatch,r=t.openModel,o=(0,i.useState)(0),v=g()(o,2),y=v[0],c=v[1],M=function(B){c(B)};return(0,i.useEffect)(function(){r.openModal||c(0)},[r.openModal]),(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(x.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,l.jsx)(L,{getId:M}),(0,l.jsx)(J,{id:y})]})})},H=(0,j.connect)(function(e){var t=e.openModel;return{openModel:t}})(k)},86250:function(Q,F,a){a.d(F,{Z:function(){return H}});var P=a(62435),g=a(93967),i=a.n(g),j=a(98423),x=a(98065),A=a(53124),f=a(92030),Z=a(45503);const p=["wrap","nowrap","wrap-reverse"],I=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],T=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],S=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&p.includes(n)}},l=(e,t)=>{const n={};return T.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},N=(e,t)=>{const n={};return I.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function L(e,t){return i()(Object.assign(Object.assign(Object.assign({},S(e,t)),l(e,t)),N(e,t)))}var W=L;const b=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},U=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},V=e=>{const{componentCls:t}=e,n={};return p.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},w=e=>{const{componentCls:t}=e,n={};return T.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},K=e=>{const{componentCls:t}=e,n={};return I.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},Y=()=>({});var z=(0,f.I$)("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=(0,Z.TS)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[b(o),U(o),V(o),w(o),K(o)]},Y,{resetStyle:!1}),J=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},H=P.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:v,flex:y,gap:c,children:M,vertical:C=!1,component:B="div"}=e,O=J(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:s,direction:E,getPrefixCls:$}=P.useContext(A.E_),d=$("flex",n),[D,q,X]=z(d),_=C!=null?C:s==null?void 0:s.vertical,h=i()(o,r,s==null?void 0:s.className,d,q,X,W(d,e),{[`${d}-rtl`]:E==="rtl",[`${d}-gap-${c}`]:(0,x.n)(c),[`${d}-vertical`]:_}),u=Object.assign(Object.assign({},s==null?void 0:s.style),v);return y&&(u.flex=y),c&&!(0,x.n)(c)&&(u.gap=c),D(P.createElement(B,Object.assign({ref:t,className:h,style:u},(0,j.Z)(O,["justify","wrap","align"])),M))})}}]);