"use strict";(self.webpackChunkhero_heart=self.webpackChunkhero_heart||[]).push([[7980],{97980:function(n,e,t){t.r(e),t.d(e,{default:function(){return j}});var s,a=t(1413),i=t(29439),o=t(72791),r=t(30168),c=t(15751).ZP.div(s||(s=(0,r.Z)(["\n  height: 100%;\n  padding: 10px;\n  .addbtn {\n      height: 40px;\n      margin-bottom: 10px;\n      text-align: right;\n      .add_btn {\n        margin-right: 20px;\n        height: 40px;\n        font-size: 18px;\n        border-radius: 10px;\n      }\n    }\n    .bottomList {\n      font-size: 16px;\n      height: calc(100% - 50px);\n      overflow: auto;\n      .noData {\n        height: 36px;\n        line-height: 36px;\n        font-size: 20px;\n        text-align: center;\n      }\n      li {\n        margin-bottom: 20px;\n        border-radius: 15px;\n        border: 1px solid ",";\n        .topc {\n          height: 36px;\n          padding: 0 20px;\n          line-height: 36px;\n          font-size: 18px;\n          border-top-left-radius: 15px;\n          border-top-right-radius: 15px;\n          background-color: ",";\n          display: flex;\n          justify-content: space-between;\n          span {\n\n          }\n\n        }\n        .botc {\n          min-height: 40px;\n          padding: 10px 10px 10px 20px;\n          white-space: pre-wrap;\n        }\n      }\n    }\n"])),(function(n){return n.commonTheme.borderColor}),(function(n){return n.commonTheme.navBgColor})),l=t(12978),d=t(39599),h=t(68678),p=t(9180),u=t(23695),m=t(87309),x=t(31549),g=t(82698),f=t(80184),b=h.Z.TextArea,j=(0,o.memo)((function(){var n=p.Z.useForm(),e=(0,i.Z)(n,1)[0],t=(0,o.useState)([]),s=(0,i.Z)(t,2),r=s[0],j=s[1],v=(0,o.useState)(!1),Z=(0,i.Z)(v,2),_=Z[0],N=Z[1],C=(0,l.v9)((function(n){return{organizationList:n.getIn(["systemSetupData","orgunitsList"]),themeColors:n.getIn(["homeData","themeColors"])}}),l.wU).themeColors;(0,o.useEffect)((function(){(0,d._7)({pageIndex:1,pageSize:9999}).then((function(n){200===n.code&&j(n.data.items)}))}),[]);return(0,f.jsxs)(c,{commonTheme:C,children:[(0,f.jsx)("div",{className:"addbtn",children:(0,f.jsxs)(m.Z,{className:"add_btn ysh_antd_btn",onClick:function(n){N(!0)},children:[(0,f.jsx)(x.Z,{}),"\u6dfb\u52a0"]})}),(0,f.jsx)("ul",{className:"bottomList",children:r.length>0?r.map((function(n){return(0,f.jsxs)("li",{children:[(0,f.jsxs)("div",{className:"topc",children:[(0,f.jsx)("span",{}),(0,f.jsx)("span",{children:n.version}),(0,f.jsx)("span",{children:n.contenter})]}),(0,f.jsx)("div",{className:"botc",children:n.content})]},n.id)})):(0,f.jsx)("div",{className:"noData",children:"\u6682\u65e0\u6570\u636e"})}),(0,f.jsx)(g.Z,{className:"ysh_antd_modal",text:(0,f.jsxs)("span",{style:{fontSize:"24px"},children:[(0,f.jsx)(x.Z,{})," \xa0 \u6dfb \u52a0"]}),width:618,visible:_,onOk:function(){e.submit()},onCancel:function(){N(!1)},afterClose:function(){e.resetFields()},okButtonProps:{className:"ysh_antd_btn"},cancelButtonProps:{className:"ysh_antd_btn"},children:(0,f.jsxs)(p.Z,{className:"modalForm",form:e,labelAlign:"right",labelCol:{span:4},onFinish:function(n){var e=(0,a.Z)({},n);(0,d.wc)(e).then((function(n){console.log(n),200===n.code&&(u.ZP.success(n.msg,4),(0,d._7)({pageIndex:1,pageSize:9999}).then((function(n){200===n.code&&j(n.data.items)})),N(!1))}))},initialValues:{id:"",version:"",contenter:"",content:""},children:[(0,f.jsx)(p.Z.Item,{label:"\u63d0\u4ea4\u4eba : ",name:"contenter",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u63d0\u4ea4\u4eba"}],children:(0,f.jsx)(h.Z,{className:"ysh_antd_input",placeholder:"\u63d0\u4ea4\u4eba"})}),(0,f.jsx)(p.Z.Item,{label:"\u7248 \u672c : ",name:"version",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7248\u672c"}],children:(0,f.jsx)(h.Z,{className:"ysh_antd_input",placeholder:"\u7248\u672c"})}),(0,f.jsx)(p.Z.Item,{label:"\u5185 \u5bb9 : ",name:"content",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5185\u5bb9"}],children:(0,f.jsx)(b,{className:"ysh_antd_input",placeholder:"\u5185\u5bb9"})})]})})]})}))},31549:function(n,e,t){t.d(e,{Z:function(){return c}});var s=t(1413),a=t(72791),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},o=t(54291),r=function(n,e){return a.createElement(o.Z,(0,s.Z)((0,s.Z)({},n),{},{ref:e,icon:i}))};r.displayName="PlusCircleOutlined";var c=a.forwardRef(r)}}]);
//# sourceMappingURL=7980.156947cf.chunk.js.map