text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[29],{ir23:function(e,a,t){"use strict";t.r(a);t("IzEo");var l=t("bx4M"),r=(t("+L6B"),t("2/Rp")),n=(t("7Kak"),t("9yH6")),m=(t("giR+"),t("fyUT")),c=(t("5Dmo"),t("3S7+")),o=t("0Owb"),i=t("tJVT"),s=(t("5NDa"),t("5rEg")),p=(t("iQDF"),t("+eQT")),u=(t("OaEy"),t("2fM7")),d=(t("y8nQ"),t("Vl3Y")),E=t("+YFz"),b=t("9kvl"),_=t("q1tI"),g=t.n(_),h=t("Hx5s"),f=t("xZ1R"),y=t.n(f),v=d["a"].Item,F=u["a"].Option,O=p["a"].RangePicker,x=s["a"].TextArea,w=function(e){var a=e.submitting,t=d["a"].useForm(),p=Object(i["a"])(t,1),b=p[0],_=g.a.useState(!1),f=Object(i["a"])(_,2),w=f[0],j=f[1],R={labelCol:{xs:{span:24},sm:{span:7}},wrapperCol:{xs:{span:24},sm:{span:12},md:{span:10}}},T={wrapperCol:{xs:{span:24,offset:0},sm:{span:10,offset:7}}},k=function(a){var t=e.dispatch;t({type:"formAndbasicForm/submitRegularForm",payload:a})},q=function(e){console.log("Failed:",e)},I=function(e){var a=e.publicType;a&&j("2"===a)};return g.a.createElement(h["c"],{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"},g.a.createElement(l["a"],{bordered:!1},g.a.createElement(d["a"],{hideRequiredMark:!0,style:{marginTop:8},form:b,name:"basic",initialValues:{public:"1"},onFinish:k,onFinishFailed:q,onValuesChange:I},g.a.createElement(v,Object(o["a"])({},R,{label:"\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6807\u9898"}]}),g.a.createElement(s["a"],{placeholder:"\u7ed9\u76ee\u6807\u8d77\u4e2a\u540d\u5b57"})),g.a.createElement(v,Object(o["a"])({},R,{label:"\u8d77\u6b62\u65e5\u671f",name:"date",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8d77\u6b62\u65e5\u671f"}]}),g.a.createElement(O,{style:{width:"100%"},placeholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"]})),g.a.createElement(v,Object(o["a"])({},R,{label:"\u76ee\u6807\u63cf\u8ff0",name:"goal",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u76ee\u6807\u63cf\u8ff0"}]}),g.a.createElement(x,{style:{minHeight:32},placeholder:"\u8bf7\u8f93\u5165\u4f60\u7684\u9636\u6bb5\u6027\u5de5\u4f5c\u76ee\u6807",rows:4})),g.a.createElement(v,Object(o["a"])({},R,{label:"\u8861\u91cf\u6807\u51c6",name:"standard",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8861\u91cf\u6807\u51c6"}]}),g.a.createElement(x,{style:{minHeight:32},placeholder:"\u8bf7\u8f93\u5165\u8861\u91cf\u6807\u51c6",rows:4})),g.a.createElement(v,Object(o["a"])({},R,{label:g.a.createElement("span",null,"\u5ba2\u6237",g.a.createElement("em",{className:y.a.optional},"\uff08\u9009\u586b\uff09",g.a.createElement(c["a"],{title:"\u76ee\u6807\u7684\u670d\u52a1\u5bf9\u8c61"},g.a.createElement(E["a"],{style:{marginRight:4}})))),name:"client"}),g.a.createElement(s["a"],{placeholder:"\u8bf7\u63cf\u8ff0\u4f60\u670d\u52a1\u7684\u5ba2\u6237\uff0c\u5185\u90e8\u5ba2\u6237\u76f4\u63a5 @\u59d3\u540d\uff0f\u5de5\u53f7"})),g.a.createElement(v,Object(o["a"])({},R,{label:g.a.createElement("span",null,"\u9080\u8bc4\u4eba",g.a.createElement("em",{className:y.a.optional},"\uff08\u9009\u586b\uff09")),name:"invites"}),g.a.createElement(s["a"],{placeholder:"\u8bf7\u76f4\u63a5 @\u59d3\u540d\uff0f\u5de5\u53f7\uff0c\u6700\u591a\u53ef\u9080\u8bf7 5 \u4eba"})),g.a.createElement(v,Object(o["a"])({},R,{label:g.a.createElement("span",null,"\u6743\u91cd",g.a.createElement("em",{className:y.a.optional},"\uff08\u9009\u586b\uff09")),name:"weight"}),g.a.createElement(m["a"],{placeholder:"\u8bf7\u8f93\u5165",min:0,max:100}),g.a.createElement("span",{className:"ant-form-text"},"%")),g.a.createElement(v,Object(o["a"])({},R,{label:"\u76ee\u6807\u516c\u5f00",help:"\u5ba2\u6237\u3001\u9080\u8bc4\u4eba\u9ed8\u8ba4\u88ab\u5206\u4eab",name:"publicType"}),g.a.createElement("div",null,g.a.createElement(n["a"].Group,null,g.a.createElement(n["a"],{value:"1"},"\u516c\u5f00"),g.a.createElement(n["a"],{value:"2"},"\u90e8\u5206\u516c\u5f00"),g.a.createElement(n["a"],{value:"3"},"\u4e0d\u516c\u5f00")),g.a.createElement(v,{style:{marginBottom:0},name:"publicUsers"},g.a.createElement(u["a"],{mode:"multiple",placeholder:"\u516c\u5f00\u7ed9",style:{margin:"8px 0",display:w?"block":"none"}},g.a.createElement(F,{value:"1"},"\u540c\u4e8b\u7532"),g.a.createElement(F,{value:"2"},"\u540c\u4e8b\u4e59"),g.a.createElement(F,{value:"3"},"\u540c\u4e8b\u4e19"))))),g.a.createElement(v,Object(o["a"])({},T,{style:{marginTop:32}}),g.a.createElement(r["a"],{type:"primary",htmlType:"submit",loading:a},"\u63d0\u4ea4"),g.a.createElement(r["a"],{style:{marginLeft:8}},"\u4fdd\u5b58")))))};a["default"]=Object(b["a"])((function(e){var a=e.loading;return{submitting:a.effects["formAndbasicForm/submitRegularForm"]}}))(w)},xZ1R:function(e,a,t){e.exports={card:"card___UzXKS",heading:"heading___1q6z7",steps:"steps___E8ka8",errorIcon:"errorIcon___2xcyf",anticon:"anticon___2xeeX",errorPopover:"errorPopover___3CZuo",errorListItem:"errorListItem___11W5q",errorField:"errorField___pK0D0",editable:"editable___1v4uM",advancedForm:"advancedForm___3IPeK",optional:"optional___2NpJz"}}}]);