1 |
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[924],{31199:function(ee,R,e){var E=e(1413),p=e(45987),d=e(62435),A=e(16764),C=e(86074),W=["fieldProps","min","proFieldProps","max"],f=function(u,y){var M=u.fieldProps,t=u.min,$=u.proFieldProps,U=u.max,K=(0,p.Z)(u,W);return(0,C.jsx)(A.Z,(0,E.Z)({valueType:"digit",fieldProps:(0,E.Z)({min:t,max:U},M),ref:y,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:$},K))},b=d.forwardRef(f);R.Z=b},21134:function(ee,R,e){var E=e(1413),p=e(45987),d=e(62435),A=e(16764),C=e(86074),W=["fieldProps","request","params","proFieldProps"],f=function(u,y){var M=u.fieldProps,t=u.request,$=u.params,U=u.proFieldProps,K=(0,p.Z)(u,W);return(0,C.jsx)(A.Z,(0,E.Z)({valueType:"segmented",fieldProps:M,ref:y,request:t,params:$,filedConfig:{customLightMode:!0},proFieldProps:U},K))},b=d.forwardRef(f);R.Z=b},5966:function(ee,R,e){var E=e(97685),p=e(1413),d=e(45987),A=e(21770),C=e(23323),W=e(55241),f=e(97435),b=e(62435),g=e(16764),u=e(86074),y=["fieldProps","proFieldProps"],M=["fieldProps","proFieldProps"],t="text",$=function(i){var o=i.fieldProps,T=i.proFieldProps,j=(0,d.Z)(i,y);return(0,u.jsx)(g.Z,(0,p.Z)({valueType:t,fieldProps:o,filedConfig:{valueType:t},proFieldProps:T},j))},U=function(i){var o=(0,A.Z)(i.open||!1,{value:i.open,onChange:i.onOpenChange}),T=(0,E.Z)(o,2),j=T[0],J=T[1];return(0,u.jsx)(C.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(v){var B,n=v.getFieldValue(i.name||[]);return(0,u.jsx)(W.Z,(0,p.Z)((0,p.Z)({getPopupContainer:function(r){return r&&r.parentNode?r.parentNode:r},onOpenChange:function(r){return J(r)},content:(0,u.jsxs)("div",{style:{padding:"4px 0"},children:[(B=i.statusRender)===null||B===void 0?void 0:B.call(i,n),i.strengthText?(0,u.jsx)("div",{style:{marginTop:10},children:(0,u.jsx)("span",{children:i.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},i.popoverProps),{},{open:j,children:i.children}))}})},K=function(i){var o=i.fieldProps,T=i.proFieldProps,j=(0,d.Z)(i,M),J=(0,b.useState)(!1),H=(0,E.Z)(J,2),v=H[0],B=H[1];return o!=null&&o.statusRender&&j.name?(0,u.jsx)(U,{name:j.name,statusRender:o==null?void 0:o.statusRender,popoverProps:o==null?void 0:o.popoverProps,strengthText:o==null?void 0:o.strengthText,open:v,onOpenChange:B,children:(0,u.jsx)("div",{children:(0,u.jsx)(g.Z,(0,p.Z)({valueType:"password",fieldProps:(0,p.Z)((0,p.Z)({},(0,f.Z)(o,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(s){var r;o==null||(r=o.onBlur)===null||r===void 0||r.call(o,s),B(!1)},onClick:function(s){var r;o==null||(r=o.onClick)===null||r===void 0||r.call(o,s),B(!0)}}),proFieldProps:T,filedConfig:{valueType:t}},j))})}):(0,u.jsx)(g.Z,(0,p.Z)({valueType:"password",fieldProps:o,proFieldProps:T,filedConfig:{valueType:t}},j))},V=$;V.Password=K,V.displayName="ProFormComponent",R.Z=V},50384:function(ee,R,e){e.r(R),e.d(R,{default:function(){return r}});var E=e(5574),p=e.n(E),d=e(62435),A=e(59530),C=e(28459),W=e(15009),f=e.n(W),b=e(99289),g=e.n(b),u=e(67211),y=e(14726),M=e(39680),t=e(86074),$=function(l){var O=l.dispatch,w=l.openModel,D=l.getId,x=(0,d.useRef)(),G=(0,d.useState)([]),z=p()(G,2),X=z[0],h=z[1],Q=(0,d.useState)(0),Y=p()(Q,2),I=Y[0],te=Y[1],k=(0,d.useState)(1),F=p()(k,2),P=F[0],c=F[1],m=(0,d.useState)(10),ne=p()(m,2),re=ne[0],S=ne[1],se=function(L){D(L)};return(0,d.useEffect)(function(){w.openModal||x.current.reload()},[w.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(C.ZP,{theme:{token:{colorPrimary:"#4FBE70",colorLink:"#4FBE70"}},children:(0,t.jsx)(u.Z,{size:"small",bordered:!0,scroll:{x:1300},actionRef:x,dataSource:X,columns:[{title:"ID",dataIndex:"id",width:100,search:!1},{title:"\u5E7F\u544A\u4F4D\u7F6E",dataIndex:"name",width:240},{title:"\u5E7F\u544A\u4F4D\u7F6E\u4EE3\u7801",dataIndex:"code",search:!1},{title:"\u9650\u5236\u663E\u793A\u5E7F\u544A\u6570",dataIndex:"ad_num",search:!1},{title:"\u663E\u793A\u5217\u6570",dataIndex:"cols",search:!1},{title:"\u5E7F\u544A\u663E\u793A\u5BBD\u5EA6",dataIndex:"width",search:!1},{title:"\u5E7F\u544A\u663E\u793A\u9AD8\u5EA6",dataIndex:"height",search:!1},{title:"\u5217\u95F4\u8DDD",dataIndex:"col_padding",search:!1},{title:"\u884C\u95F4\u8DDD",dataIndex:"row_padding",search:!1},{title:"\u64CD\u4F5C",width:300,key:"option",valueType:"option",fixed:"right",render:function(L,N,le){return[(0,t.jsx)(y.ZP,{type:"link",onClick:function(){se(N.id),O({type:"openModel/getOpenModal",payload:!0})},children:"\u7F16\u8F91"},"1"),(0,t.jsx)(y.ZP,{type:"link",onClick:function(){},children:"\u5220\u9664"},"2")]}}],rowKey:"id",pagination:{current:P,pageSize:re,showSizeChanger:!0,total:I,pageSizeOptions:[9,18,27,99],onChange:function(L,N){c(L),S(N)},onShowSizeChange:function(L,N){c(L),S(N)}},request:g()(f()().mark(function _(){var L,N=arguments;return f()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return L=N.length>0&&N[0]!==void 0?N[0]:{},q.abrupt("return",(0,M.sXE)({page:P,pagesize:re,sort:"id",sortby:"desc",keyword:L.name}).then(function(ae){h(ae.data.advertareas),te(ae.data.total)}));case 2:case"end":return q.stop()}},_)})),headerTitle:"\u5E7F\u544A\u4F4D\u7F6E\u5217\u8868",toolBarRender:function(){return[(0,t.jsx)(y.ZP,{type:"primary",onClick:function(){O({type:"openModel/getOpenModal",payload:!0})},children:"\u6DFB\u52A0\u5E7F\u544A\u4F4D\u7F6E"})]}})})})},U=(0,A.connect)(function(a){var l=a.openModel;return{openModel:l}})($),K=e(97269),V=e(5966),Z=e(31199),i=e(21134),o=e(17788),T=e(86250),j=e(42075),J=e(68872),H=e(71230),v=e(15746),B=function(l){var O=l.dispatch,w=l.dictModel,D=l.openModel,x=l.id,G=(0,d.useRef)(),z=(0,d.useState)(!1),X=p()(z,2),h=X[0],Q=X[1],Y=(0,d.useState)(null),I=p()(Y,2),te=I[0],k=I[1];return(0,d.useEffect)(function(){Q(D.openModal)},[D.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(C.ZP,{theme:{token:{colorPrimary:"#4FBE70"},components:{Segmented:{itemSelectedBg:"#19be6e",itemSelectedColor:"#ffffff"}}},children:(0,t.jsx)(o.Z,{open:h,title:x?"\u7F16\u8F91\u5E7F\u544A\u4F4D\u7F6E":"\u6DFB\u52A0\u5E7F\u544A\u4F4D\u7F6E",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:1e3,onCancel:function(){O({type:"openModel/getOpenModal",payload:!1})},children:(0,t.jsx)(K.A,{formRef:G,request:g()(f()().mark(function F(){var P;return f()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!x){m.next=8;break}return m.next=3,(0,M.pFh)({id:x});case 3:return P=m.sent,k(P.data),m.abrupt("return",P.data);case 8:return m.abrupt("return",{title:"",cover_img:"",doc_url:"",section_id:null,content:"",stick_top:0,hot:0,author:""});case 9:case"end":return m.stop()}},F)})),submitter:{searchConfig:{resetText:"\u53D6\u6D88",submitText:"\u4FDD\u5B58"},render:function(P,c){return(0,t.jsxs)(T.Z,{justify:"flex-end",children:[" ",(0,t.jsx)(j.Z,{children:c})]})},onReset:function(){k(null),O({type:"openModel/getOpenModal",payload:!1})}},onFinish:function(){var F=g()(f()().mark(function P(c){var m,ne;return f()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(console.log(c),!x){S.next=10;break}return c.id=x,S.next=5,(0,M.fAF)(c);case 5:m=S.sent,J.ZP.success("\u63D0\u4EA4\u6210\u529F"),O({type:"openModel/getOpenModal",payload:!1}),S.next=15;break;case 10:return S.next=12,(0,M.Gy5)(c);case 12:ne=S.sent,J.ZP.success("\u63D0\u4EA4\u6210\u529F"),O({type:"openModel/getOpenModal",payload:!1});case 15:case"end":return S.stop()}},P)}));return function(P){return F.apply(this,arguments)}}(),children:(0,t.jsxs)(H.Z,{gutter:[16,16],children:[(0,t.jsx)(v.Z,{span:24,children:(0,t.jsx)(V.Z,{label:"\u5E7F\u544A\u4F4D\u7F6E\uFF0C\u6309\u7167\u8BE5\u683C\u5F0F\uFF1A\u6765\u6E90\u9875\u9762\u5E7F\u544A\u4F4D\u540D",name:"name",placeholder:"\u8BF7\u8F93\u5165\u5E7F\u544A\u4F4D\u7F6E,\u5982\uFF1A\u5C0F\u7A0B\u5E8F\u9996\u9875\u8F6E\u64AD\u56FE\uFF1B\u5C0F\u7A0B\u5E8F\u9996\u9875\u4F01\u4E1ALOGO\u56FE",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E7F\u544A\u4F4D\u7F6E,\u5982\uFF1A\u5C0F\u7A0B\u5E8F\u9996\u9875\u8F6E\u64AD\u56FE\uFF1B\u5C0F\u7A0B\u5E8F\u9996\u9875\u4F01\u4E1ALOGO\u56FE"}]})}),(0,t.jsx)(v.Z,{span:24,children:(0,t.jsx)(V.Z,{label:"\u5E7F\u544A\u4F4D\u7F6E\u4EE3\u7801\uFF0C\u4F7F\u7528\u62FC\u97F3\u7F29\u5199\uFF0C\u4E0D\u8981\u8D85\u8FC7\u5341\u4E2A\u5B57\u6BCD\uFF0C\u6309\u7167\u8BE5\u683C\u5F0F\uFF1Axcx(\u5C0F\u7A0B\u5E8F)/gw\uFF08\u5B98\u7F51\uFF09-ym\uFF08\u9875\u9762\uFF09-ggwm\uFF08\u5E7F\u544A\u4F4D\u540D\uFF09, \u5982\uFF1Aminisylbt\uFF08\u5C0F\u7A0B\u5E8F\u9996\u9875\u8F6E\u64AD\u56FE\uFF09",name:"code",placeholder:"\u8BF7\u8F93\u5165\u5E7F\u544A\u4F4D\u7F6E\u4EE3\u7801,\u5982\uFF1A\u5982\uFF1Aminisylbt\uFF08\u5C0F\u7A0B\u5E8F\u9996\u9875\u8F6E\u64AD\u56FE\uFF09",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E7F\u544A\u4F4D\u7F6E\u4EE3\u7801,\u5982\uFF1A\u5982\uFF1Aminisylbt\uFF08\u5C0F\u7A0B\u5E8F\u9996\u9875\u8F6E\u64AD\u56FE\uFF09"}]})}),(0,t.jsx)(v.Z,{span:12,children:(0,t.jsx)(Z.Z,{label:"\u9650\u5236\u663E\u793A\u5E7F\u544A\u6570",name:"ad_num",min:1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9650\u5236\u663E\u793A\u5E7F\u544A\u6570"}]})}),(0,t.jsx)(v.Z,{span:12,children:(0,t.jsx)(Z.Z,{label:"\u663E\u793A\u5217\u6570",name:"cols",min:1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u663E\u793A\u5217\u6570"}]})}),(0,t.jsx)(v.Z,{span:12,children:(0,t.jsx)(Z.Z,{label:"\u5E7F\u544A\u5BBD\u5EA6",name:"width",min:1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E7F\u544A\u5BBD\u5EA6"}]})}),(0,t.jsx)(v.Z,{span:12,children:(0,t.jsx)(Z.Z,{label:"\u5E7F\u544A\u9AD8\u5EA6",name:"height",min:1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E7F\u544A\u9AD8\u5EA6"}]})}),(0,t.jsx)(v.Z,{span:12,children:(0,t.jsx)(Z.Z,{label:"\u5217\u95F4\u8DDD",name:"col_padding",min:1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u95F4\u8DDD"}]})}),(0,t.jsx)(v.Z,{span:12,children:(0,t.jsx)(Z.Z,{label:"\u884C\u95F4\u8DDD",name:"row_padding",min:1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u95F4\u8DDD"}]})}),(0,t.jsx)(v.Z,{span:12,children:(0,t.jsx)(i.Z,{name:"random_show",label:"\u968F\u673A\u663E\u793A",request:g()(f()().mark(function F(){return f()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",[{label:"\u968F\u673A",value:1},{label:"\u4E0D\u968F\u673A",value:2}]);case 1:case"end":return c.stop()}},F)})),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u968F\u673A\u663E\u793A"}]})}),(0,t.jsx)(v.Z,{span:12,children:(0,t.jsx)(i.Z,{name:"disabled_status",label:"\u7981\u7528\u72B6\u6001",request:g()(f()().mark(function F(){return f()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",[{label:"\u6B63\u5E38",value:1},{label:"\u7981\u7528",value:2}]);case 1:case"end":return c.stop()}},F)})),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7981\u7528\u72B6\u6001"}]})})]})})})})})},n=(0,A.connect)(function(a){var l=a.dictModel,O=a.openModel;return{dictModel:l,openModel:O}})(B),s=function(l){var O=l.dispatch,w=l.openModel,D=(0,d.useState)(0),x=p()(D,2),G=x[0],z=x[1],X=function(Q){z(Q)};return(0,d.useEffect)(function(){w.openModal||z(0)},[w.openModal]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(C.ZP,{theme:{token:{colorPrimary:"#4FBE70"}},children:[(0,t.jsx)(U,{getId:X}),(0,t.jsx)(n,{id:G})]})})},r=(0,A.connect)(function(a){var l=a.openModel;return{openModel:l}})(s)},86250:function(ee,R,e){e.d(R,{Z:function(){return B}});var E=e(62435),p=e(93967),d=e.n(p),A=e(98423),C=e(98065),W=e(53124),f=e(92030),b=e(45503);const g=["wrap","nowrap","wrap-reverse"],u=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],y=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],M=(n,s)=>{const r=s.wrap===!0?"wrap":s.wrap;return{[`${n}-wrap-${r}`]:r&&g.includes(r)}},t=(n,s)=>{const r={};return y.forEach(a=>{r[`${n}-align-${a}`]=s.align===a}),r[`${n}-align-stretch`]=!s.align&&!!s.vertical,r},$=(n,s)=>{const r={};return u.forEach(a=>{r[`${n}-justify-${a}`]=s.justify===a}),r};function U(n,s){return d()(Object.assign(Object.assign(Object.assign({},M(n,s)),t(n,s)),$(n,s)))}var K=U;const V=n=>{const{componentCls:s}=n;return{[s]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Z=n=>{const{componentCls:s}=n;return{[s]:{"&-gap-small":{gap:n.flexGapSM},"&-gap-middle":{gap:n.flexGap},"&-gap-large":{gap:n.flexGapLG}}}},i=n=>{const{componentCls:s}=n,r={};return g.forEach(a=>{r[`${s}-wrap-${a}`]={flexWrap:a}}),r},o=n=>{const{componentCls:s}=n,r={};return y.forEach(a=>{r[`${s}-align-${a}`]={alignItems:a}}),r},T=n=>{const{componentCls:s}=n,r={};return u.forEach(a=>{r[`${s}-justify-${a}`]={justifyContent:a}}),r},j=()=>({});var J=(0,f.I$)("Flex",n=>{const{paddingXS:s,padding:r,paddingLG:a}=n,l=(0,b.TS)(n,{flexGapSM:s,flexGap:r,flexGapLG:a});return[V(l),Z(l),i(l),o(l),T(l)]},j,{resetStyle:!1}),H=function(n,s){var r={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&s.indexOf(a)<0&&(r[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(n);l<a.length;l++)s.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(n,a[l])&&(r[a[l]]=n[a[l]]);return r},B=E.forwardRef((n,s)=>{const{prefixCls:r,rootClassName:a,className:l,style:O,flex:w,gap:D,children:x,vertical:G=!1,component:z="div"}=n,X=H(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:h,direction:Q,getPrefixCls:Y}=E.useContext(W.E_),I=Y("flex",r),[te,k,F]=J(I),P=G!=null?G:h==null?void 0:h.vertical,c=d()(l,a,h==null?void 0:h.className,I,k,F,K(I,n),{[`${I}-rtl`]:Q==="rtl",[`${I}-gap-${D}`]:(0,C.n)(D),[`${I}-vertical`]:P}),m=Object.assign(Object.assign({},h==null?void 0:h.style),O);return w&&(m.flex=w),D&&!(0,C.n)(D)&&(m.gap=D),te(E.createElement(z,Object.assign({ref:s,className:c,style:m},(0,A.Z)(X,["justify","wrap","align"])),x))})}}]);
|