You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
11 KiB
1 lines
11 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[794],{37703:function(N,g,e){var n=e(93264),i=e(98787),d=e(82481),c=e(79685),Z=e(77204),m=e(81468),x=e(63342),j=["fieldProps","proFieldProps"],E="dateRange",M=c.forwardRef(function(C,D){var f=C.fieldProps,s=C.proFieldProps,B=(0,i.Z)(C,j),p=(0,c.useContext)(Z.Z);return(0,x.jsx)(m.Z,(0,n.Z)({ref:D,fieldProps:(0,n.Z)({getPopupContainer:p.getPopupContainer},f),valueType:E,proFieldProps:s,filedConfig:{valueType:E,customLightMode:!0,lightFilterLabelFormatter:function(v){return(0,d.c)(v,(f==null?void 0:f.format)||"YYYY-MM-DD")}}},B))});g.Z=M},92769:function(N,g,e){var n=e(93264),i=e(98787),d=e(92879),c=e(48829),Z=e(79685),m=e(46821),x=e(81468),j=e(63342),E=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],M=Z.forwardRef(function(s,B){var p=s.fieldProps,O=s.options,v=s.radioType,P=s.layout,t=s.proFieldProps,A=s.valueEnum,r=(0,i.Z)(s,E);return(0,j.jsx)(x.Z,(0,n.Z)((0,n.Z)({valueType:v==="button"?"radioButton":"radio",ref:B,valueEnum:(0,d.h)(A,void 0)},r),{},{fieldProps:(0,n.Z)({options:O,layout:P},p),proFieldProps:t,filedConfig:{customLightMode:!0}}))}),C=Z.forwardRef(function(s,B){var p=s.fieldProps,O=s.children;return(0,j.jsx)(c.ZP,(0,n.Z)((0,n.Z)({},p),{},{ref:B,children:O}))}),D=(0,m.G)(C,{valuePropName:"checked",ignoreWidth:!0}),f=D;f.Group=M,f.Button=c.ZP.Button,f.displayName="ProFormComponent",g.Z=f},43602:function(N,g,e){var n=e(93264),i=e(98787),d=e(79685),c=e(81468),Z=e(63342),m=["fieldProps","proFieldProps"],x=function(E,M){var C=E.fieldProps,D=E.proFieldProps,f=(0,i.Z)(E,m);return(0,Z.jsx)(c.Z,(0,n.Z)({ref:M,valueType:"textarea",fieldProps:C,proFieldProps:D},f))};g.Z=d.forwardRef(x)},66197:function(N,g,e){e.d(g,{A:function(){return y}});var n=e(93264),i=e(73952),d=e(79685),c=e(29927),Z=e(43901),m=e(6346),x=e(89342),j=e(60190),E=e(46501),M=e(89869),C=e(89543),D=e(27097),f=e(68591),s=e.n(f),B=e(77204),p=e(25393),O=e(33298),v=function(a){var u;return(0,m.Z)({},a.componentCls,{"&-title":{marginBlockEnd:a.marginXL,fontWeight:"bold"},"&-container":(0,m.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(a.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(u={display:"block",width:"100%"},(0,m.Z)(u,"".concat(a.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,m.Z)(u,"".concat(a.componentCls,"-container"),{paddingInlineStart:16}),(0,m.Z)(u,"".concat(a.antCls,"-space-item,").concat(a.antCls,"-form-item"),{width:"100%"}),(0,m.Z)(u,"".concat(a.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),u)})};function P(o){return(0,O.Xj)("ProFormGroup",function(a){var u=(0,n.Z)((0,n.Z)({},a),{},{componentCls:".".concat(o)});return[v(u)]})}var t=e(63342),A=d.forwardRef(function(o,a){var u=d.useContext(B.Z),h=u.groupProps,l=(0,n.Z)((0,n.Z)({},h),o),L=l.children,R=l.collapsible,F=l.defaultCollapsed,I=l.style,J=l.labelLayout,U=l.title,z=U===void 0?o.label:U,Q=l.tooltip,w=l.align,k=w===void 0?"start":w,q=l.direction,_=l.size,ee=_===void 0?32:_,ce=l.titleStyle,te=l.titleRender,S=l.spaceProps,V=l.extra,Y=l.autoFocus,pe=(0,E.Z)(function(){return F||!1},{value:o.collapsed,onChange:o.onCollapse}),ne=(0,x.Z)(pe,2),X=ne[0],ve=ne[1],me=(0,d.useContext)(C.ZP.ConfigContext),fe=me.getPrefixCls,re=(0,p.zx)(o),Pe=re.ColWrapper,oe=re.RowWrapper,K=fe("pro-form-group"),ae=P(K),he=ae.wrapSSR,$=ae.hashId,le=R&&(0,t.jsx)(j.Z,{style:{marginInlineEnd:8},rotate:X?void 0:90}),se=(0,t.jsx)(M.G,{label:le?(0,t.jsxs)("div",{children:[le,z]}):z,tooltip:Q}),ue=(0,d.useCallback)(function(W){var G=W.children;return(0,t.jsx)(D.Z,(0,n.Z)((0,n.Z)({},S),{},{className:s()("".concat(K,"-container ").concat($),S==null?void 0:S.className),size:ee,align:k,direction:q,style:(0,n.Z)({rowGap:0},S==null?void 0:S.style),children:G}))},[k,K,q,$,ee,S]),ie=te?te(se,o):se,Fe=(0,d.useMemo)(function(){var W=[],G=d.Children.toArray(L).map(function(T,Ce){var H;return d.isValidElement(T)&&T!==null&&T!==void 0&&(H=T.props)!==null&&H!==void 0&&H.hidden?(W.push(T),null):Ce===0&&d.isValidElement(T)&&Y?d.cloneElement(T,(0,n.Z)((0,n.Z)({},T.props),{},{autoFocus:Y})):T});return[(0,t.jsx)(oe,{Wrapper:ue,children:G},"children"),W.length>0?(0,t.jsx)("div",{style:{display:"none"},children:W}):null]},[L,oe,ue,Y]),de=(0,x.Z)(Fe,2),Ee=de[0],xe=de[1];return he((0,t.jsx)(Pe,{children:(0,t.jsxs)("div",{className:s()(K,$,(0,m.Z)({},"".concat(K,"-twoLine"),J==="twoLine")),style:I,ref:a,children:[xe,(z||Q||V)&&(0,t.jsx)("div",{className:"".concat(K,"-title ").concat($).trim(),style:ce,onClick:function(){ve(!X)},children:V?(0,t.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[ie,(0,t.jsx)("span",{onClick:function(G){return G.stopPropagation()},children:V})]}):ie}),(0,t.jsx)("div",{style:{display:R&&X?"none":void 0},children:Ee})]})}))});A.displayName="ProForm-Group";var r=A,b=e(30825);function y(o){return(0,t.jsx)(c.I,(0,n.Z)({layout:"vertical",submitter:{render:function(u,h){return h.reverse()}},contentRender:function(u,h){return(0,t.jsxs)(t.Fragment,{children:[u,h]})}},o))}y.Group=r,y.useForm=i.Z.useForm,y.Item=b.Z,y.useWatch=i.Z.useWatch,y.ErrorList=i.Z.ErrorList,y.Provider=i.Z.Provider,y.useFormInstance=i.Z.useFormInstance,y.EditOrReadOnlyContext=Z.A},89869:function(N,g,e){e.d(g,{G:function(){return O}});var n=e(93264),i=e(6346),d=e(21137),c=e(79685),Z=e(92933),m=e(83317),x=function(P,t){return c.createElement(m.Z,(0,d.Z)({},P,{ref:t,icon:Z.Z}))},j=c.forwardRef(x),E=e(89543),M=e(58898),C=e(68591),D=e.n(C),f=e(33298),s=function(P){return(0,i.Z)({},P.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:P.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:P.colorTextSecondary,fontWeight:"normal",fontSize:P.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function B(v){return(0,f.Xj)("LabelIconTip",function(P){var t=(0,n.Z)((0,n.Z)({},P),{},{componentCls:".".concat(v)});return[s(t)]})}var p=e(63342),O=c.memo(function(v){var P=v.label,t=v.tooltip,A=v.ellipsis,r=v.subTitle,b=(0,c.useContext)(E.ZP.ConfigContext),y=b.getPrefixCls,o=y("pro-core-label-tip"),a=B(o),u=a.wrapSSR,h=a.hashId;if(!t&&!r)return(0,p.jsx)(p.Fragment,{children:P});var l=typeof t=="string"||c.isValidElement(t)?{title:t}:t,L=(l==null?void 0:l.icon)||(0,p.jsx)(j,{});return u((0,p.jsxs)("div",{className:D()(o,h),onMouseDown:function(F){return F.stopPropagation()},onMouseLeave:function(F){return F.stopPropagation()},onMouseMove:function(F){return F.stopPropagation()},children:[(0,p.jsx)("div",{className:D()("".concat(o,"-title"),h,(0,i.Z)({},"".concat(o,"-title-ellipsis"),A)),children:P}),r&&(0,p.jsx)("div",{className:"".concat(o,"-subtitle ").concat(h).trim(),children:r}),t&&(0,p.jsx)(M.Z,(0,n.Z)((0,n.Z)({},l),{},{children:(0,p.jsx)("span",{className:"".concat(o,"-icon ").concat(h).trim(),children:L})}))]}))})},43467:function(N,g,e){e.r(g),e.d(g,{default:function(){return y}});var n=e(29195),i=e.n(n),d=e(56717),c=e.n(d),Z=e(89336),m=e(66197),x=e(30869),j=e(37703),E=e(43602),M=e(37123),C=e(92769),D=e(67823),f=e(5754),s=e(8025),B=e(68852),p=e(18283);function O(o){return v.apply(this,arguments)}function v(){return v=c()(i()().mark(function o(a){return i()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,s.request)("/api/basicForm",{method:"POST",data:a}));case 1:case"end":return h.stop()}},o)})),v.apply(this,arguments)}var P=e(24507),t=(0,P.kc)(function(o){var a=o.token;return{optional:{color:a.colorTextSecondary,fontStyle:"normal"}}}),A=t,r=e(63342),b=function(){var a=A(),u=a.styles,h=(0,s.useRequest)(O,{manual:!0,onSuccess:function(){B.ZP.success("\u63D0\u4EA4\u6210\u529F")}}),l=h.run,L=function(){var R=c()(i()().mark(function F(I){return i()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:l(I);case 1:case"end":return U.stop()}},F)}));return function(I){return R.apply(this,arguments)}}();return(0,r.jsx)(Z._z,{content:"\u8868\u5355\u9875\u7528\u4E8E\u5411\u7528\u6237\u6536\u96C6\u6216\u9A8C\u8BC1\u4FE1\u606F\uFF0C\u57FA\u7840\u8868\u5355\u5E38\u89C1\u4E8E\u6570\u636E\u9879\u8F83\u5C11\u7684\u8868\u5355\u573A\u666F\u3002",children:(0,r.jsx)(p.Z,{bordered:!1,children:(0,r.jsxs)(m.A,{hideRequiredMark:!0,style:{margin:"auto",marginTop:8,maxWidth:600},name:"basic",layout:"vertical",initialValues:{public:"1"},onFinish:L,children:[(0,r.jsx)(x.Z,{width:"md",label:"\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}],placeholder:"\u7ED9\u76EE\u6807\u8D77\u4E2A\u540D\u5B57"}),(0,r.jsx)(j.Z,{label:"\u8D77\u6B62\u65E5\u671F",width:"md",name:"date",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8D77\u6B62\u65E5\u671F"}],placeholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"]}),(0,r.jsx)(E.Z,{label:"\u76EE\u6807\u63CF\u8FF0",width:"xl",name:"goal",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u6807\u63CF\u8FF0"}],placeholder:"\u8BF7\u8F93\u5165\u4F60\u7684\u9636\u6BB5\u6027\u5DE5\u4F5C\u76EE\u6807"}),(0,r.jsx)(E.Z,{label:"\u8861\u91CF\u6807\u51C6",name:"standard",width:"xl",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8861\u91CF\u6807\u51C6"}],placeholder:"\u8BF7\u8F93\u5165\u8861\u91CF\u6807\u51C6"}),(0,r.jsx)(x.Z,{width:"md",label:(0,r.jsxs)("span",{children:["\u5BA2\u6237",(0,r.jsx)("em",{className:u.optional,children:"\uFF08\u9009\u586B\uFF09"})]}),tooltip:"\u76EE\u6807\u7684\u670D\u52A1\u5BF9\u8C61",name:"client",placeholder:"\u8BF7\u63CF\u8FF0\u4F60\u670D\u52A1\u7684\u5BA2\u6237\uFF0C\u5185\u90E8\u5BA2\u6237\u76F4\u63A5 @\u59D3\u540D\uFF0F\u5DE5\u53F7"}),(0,r.jsx)(x.Z,{width:"md",label:(0,r.jsxs)("span",{children:["\u9080\u8BC4\u4EBA",(0,r.jsx)("em",{className:u.optional,children:"\uFF08\u9009\u586B\uFF09"})]}),name:"invites",placeholder:"\u8BF7\u76F4\u63A5 @\u59D3\u540D\uFF0F\u5DE5\u53F7\uFF0C\u6700\u591A\u53EF\u9080\u8BF7 5 \u4EBA"}),(0,r.jsx)(M.Z,{label:(0,r.jsxs)("span",{children:["\u6743\u91CD",(0,r.jsx)("em",{className:u.optional,children:"\uFF08\u9009\u586B\uFF09"})]}),name:"weight",placeholder:"\u8BF7\u8F93\u5165",min:0,max:100,width:"xs",fieldProps:{formatter:function(F){return"".concat(F||0,"%")},parser:function(F){return Number(F?F.replace("%",""):"0")}}}),(0,r.jsx)(C.Z.Group,{options:[{value:"1",label:"\u516C\u5F00"},{value:"2",label:"\u90E8\u5206\u516C\u5F00"},{value:"3",label:"\u4E0D\u516C\u5F00"}],label:"\u76EE\u6807\u516C\u5F00",help:"\u5BA2\u6237\u3001\u9080\u8BC4\u4EBA\u9ED8\u8BA4\u88AB\u5206\u4EAB",name:"publicType"}),(0,r.jsx)(D.Z,{name:["publicType"],children:function(F){var I=F.publicType;return(0,r.jsx)(f.Z,{width:"md",name:"publicUsers",fieldProps:{style:{margin:"8px 0",display:I&&I==="2"?"block":"none"}},options:[{value:"1",label:"\u540C\u4E8B\u7532"},{value:"2",label:"\u540C\u4E8B\u4E59"},{value:"3",label:"\u540C\u4E8B\u4E19"}]})}})]})})})},y=b}}]);
|
|
|