filesbox/web/dist/11016.2134a435.async.js

2 lines
7.8 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[11016],{73171:function(y,B,s){"use strict";s.d(B,{Z:function(){return g}});var P=s(28991),v=s(67294),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},I=E,f=s(27029),C=function(x,R){return v.createElement(f.Z,(0,P.Z)((0,P.Z)({},x),{},{ref:R,icon:I}))};C.displayName="DeleteOutlined";var g=v.forwardRef(C)},89762:function(y){y.exports={root:"root___DeDDU",colorWeak:"colorWeak___3xgHK","ant-layout":"ant-layout___1UM8l",globalSpin:"globalSpin___2_3uL","ant-table":"ant-table___2LUmT","ant-table-thead":"ant-table-thead___lMCHK","ant-table-tbody":"ant-table-tbody___JDLLz",formBox:"formBox___2WDcf",AssemblyBox:"AssemblyBox___3RPnf",groupBox:"groupBox___3zqpw"}},11016:function(y,B,s){"use strict";s.r(B);var P=s(13254),v=s(14277),E=s(11849),I=s(34792),f=s(48086),C=s(77883),g=s(85986),U=s(47673),x=s(4107),R=s(71194),A=s(50146),Q=s(9715),j=s(55843),k=s(18106),K=s(95562),b=s(67294),Z=s(28216),N=s(24616),z=s(99165),H=s(73171),S=s(19755),G=s.n(S),J=s(89762),p=s.n(J),D=s(37226),w=s(56173),$=s(41273),e=s(85893),W,F,q=K.Z.TabPane,m=j.Z.Item,V=A.Z.confirm,X=(W=(0,Z.$j)(O=>{var l=O.globaldesign,n=O.page,i=O.commondesign;return{globaldesign:l,page:n,commondesign:i}}),W(F=class extends b.Component{constructor(){super(...arguments);this.state={editModel:!1},this.formRef=b.createRef()}componentDidMount(){this.getGroupList()}shouldComponentUpdate(){return!window.startMouseMove}getGroupList(){var l=this.props.dispatch;l({type:"page/getAssemblyList",payload:{clientType:1,designType:1,type:2}})}getConver(l){for(var n=0,i=l.length;n<i;n++){var d=l[n];d.content=d.detail}return l}renderSettingModel(){var l=this.state.editModel,n=this.props.dispatch,i=()=>{var u=self.formRef.current;u.validateFields().then(o=>{u.resetFields();var c=o.pageName,_=o.pageWidth,h=o.pageHeight;n({type:"page/editDesignAssembly",payload:{assemblyId:this.item.assemblyId,title:c,size:_+"|"+h},callback:M=>{M.success&&(this.setState({editModel:!1}),this.getGroupList())}})})},d=()=>{this.setState({editModel:!1})};return(0,e.jsx)(A.Z,{visible:l,onOk:i,onCancel:d,className:p().pageModel,title:"\u7F16\u8F91\u7EC4\u5408",children:(0,e.jsxs)(j.Z,{ref:this.formRef,hideRequiredMark:!0,className:p().formBox,children:[(0,e.jsx)(m,{label:"\u540D\u79F0",name:"pageName",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7EC4\u5408\u540D\u79F0"},{max:6,message:"\u7EC4\u5408\u540D\u79F0\u4E0D\u5F97\u8D85\u8FC76\u4E2A\u5B57"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u7EC4\u5408\u540D\u79F0"}],children:(0,e.jsx)(x.Z,{placeholder:"\u8BF7\u8F93\u5165\u7EC4\u5408\u540D\u79F0"})}),(0,e.jsxs)("div",{className:"rowBox",children:[(0,e.jsx)("div",{className:"colBox",children:(0,e.jsx)(m,{label:"\u5C3A\u5BF8",name:"pageWidth",rules:[{required:!0,message:"\u8BF7\u8BBE\u7F6E\u5BBD\u5EA6"}],children:(0,e.jsx)(g.Z,{min:100,max:1440,style:{width:"100%"},disabled:!0,placeholder:"\u8BF7\u8BBE\u7F6E\u5BBD\u5EA6"})})}),(0,e.jsx)("div",{className:"colBox",style:{marginLeft:"4%"},children:(0,e.jsx)(m,{name:"pageHeight",rules:[{required:!0,message:"\u8BF7\u8BBE\u7F6E\u9AD8\u5EA6"}],children:(0,e.jsx)(g.Z,{min:100,style:{width:"100%"},disabled:!0,placeholder:"\u8BF7\u8BBE\u7F6E\u9AD8\u5EA6"})})})]})]})})}renderCopyModel(){var l=this.state.copyModel,n=this.props.dispatch,i=()=>{var u=self.formRef.current;u.validateFields().then(o=>{u.resetFields();var c=o.pageName,_=o.pageWidth,h=o.pageHeight;n({type:"page/addDesignAssembly",payload:{clientType:1,designType:1,type:2,title:c,size:_+"|"+h,detail:this.item.detail},callback:M=>{M.success&&(this.setState({copyModel:!1}),this.getGroupList())}})})},d=()=>{this.setState({copyModel:!