filesbox/web/dist/22485.359bcd9c.async.js

2 lines
9.9 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[22485],{96278:function(z){z.exports={root:"root___7VXfh",colorWeak:"colorWeak___2fQ5G","ant-layout":"ant-layout___2lk2i",globalSpin:"globalSpin___3wjkL","ant-table":"ant-table___3MoMQ","ant-table-thead":"ant-table-thead___2F4eD","ant-table-tbody":"ant-table-tbody___1iFAX",formBox:"formBox___1MR6m",hrefModal:"hrefModal___GOUPi",shop:"shop___3KrmS"}},44943:function(){},22485:function(z,j,e){"use strict";e.r(j),e.d(j,{default:function(){return d}});var R=e(71194),C=e(50146),$=e(88983),m=e(47933),G=e(47673),V=e(4107),s=e(67294),A=e(28216),B=e(96278),H=e.n(B),Q=e(41273),c=e(85893),E,U,S=V.Z.TextArea,P=m.ZP.Group,d=(E=(0,A.$j)(l=>{var r=l.commondesign;return{commondesign:r}}),E(U=class extends s.PureComponent{constructor(){super(...arguments);this.state={visible:!1,timeStyle:"dayweek"},this.updataDomCallBack=r=>{var i=this,x=this.props.commondesign,_=x.Time,f=_.element,T=_.callback,v=_.callClose,h=f.find(".box");h.html(r.timeString),f.attr("data-time",JSON.stringify(r))},this.show=r=>{r?(r=JSON.parse(r),this.setState({timeStyle:r.timeStyle})):this.setState({visible:!0,timeStyle:"dayweek"})},this.cancelEvent=()=>{var r=this,i=this.props.dispatch;i({type:"commondesign/setState",payload:{Time:{visible:!1,callback:()=>{},callClose:()=>{}}}})}}componentDidMount(){var r=this.props.commondesign,i=r.Time,x=i.visible,_=i.element,f=i.callback,T=i.callClose;this.setState({visible:x});var v=_.attr("data-time");this.show(v)}getWeek(r,i){switch(r){case 0:return i?"\u661F\u671F\u5929":"sunday";case 1:return i?"\u661F\u671F\u4E00":"monday";case 2:return i?"\u661F\u671F\u4E8C":"Tuesday";case 3:return i?"\u661F\u671F\u4E09":"Wednesday";case 4:return i?"\u661F\u671F\u56DB":"Thursday";case 5:return i?"\u661F\u671F\u4E94":"Friday";case 6:return i?"\u661F\u671F\u516D":"saturday"}}render(){var r=this,i=this.props.commondesign,x=i.Time.callback,_=this.state,f=_.visible,T=_.timeStyle,v=new Date,h=v.getFullYear(),b=v.getMonth()+1,g=v.getDate(),M=v.getDay(),k=v.getHours()<10?"0"+v.getHours():v.getHours(),t=v.getMinutes()<10?"0"+v.getMinutes():v.getMinutes(),a={};a.dayweek="".concat(h,"\u5E74").concat(b,"\u6708").concat(g,"\u65E5 ").concat(this.getWeek(M,!0)),a.dayhm="".concat(h,"\u5E74").concat(b,"\u6708").concat(g,"\u65E5 ").concat(k,": ").concat(t),a.dayweekhm="".concat(h,"\u5E74").concat(b,"\u6708").concat(g,"\u65E5 ").concat(this.getWeek(M,!0)," ").concat(k,": ").concat(t),a.day="".concat(h,"-").concat(b,"-").concat(g),a.ndayhm="".concat(h,"-").concat(b,"-").concat(g," ").concat(k,": ").concat(t),a.endayweek="".concat(g,"/").concat(b,"/").concat(h," ").concat(this.getWeek(M,!1)),a.endayhm="".concat(g,"/").concat(b,"/").concat(h," ").concat(k,": ").concat(t),a.endayweekhm="".concat(g,"/").concat(b,"/").concat(h," ").concat(this.getWeek(M,!1)," ").concat(k,": ").concat(t),a.handleCancel=D=>{r.cancelEvent()};var u=D=>{var O={timeStyle:T,timeString:a[T]};r.updataDomCallBack(O),x&&x(O),r.cancelEvent()},n=()=>{r.cancelEvent()},o=D=>{this.setState({timeStyle:D.target.value})};return(0,c.jsx)(C.Z,{title:"\u5F53\u524D\u65F6\u95F4",visible:f,onOk:u,width:520,onCancel:n,maskClosable:!1,className:H().hrefModal,children:(0,c.jsxs)("div",{className:"divRow",children:[(0,c.jsx)("div",{className:"label",children:"\u65F6\u95F4\u6837\u5F0F\uFF1A"}),(0,c.jsx)("div",{className:"content timeContent",children:(0,c.jsxs)(P,{onChange:o,value:T,style:{float:"left",width:560},children:[(0,c.jsx)(m.ZP,{value:"dayweek",children:a.dayweek}),(0,c.jsx)("br",{}),(0,c.jsx)(m.ZP,{value:"dayhm",children:a.dayhm}),(0,c.jsx)("br",{}),(0,c.jsx)(m.ZP,{value:"dayweekhm",children:a.dayweekhm}),(0,c.jsx)("br",{}),(0,c.jsx)(m.ZP,{value:"day",children:a.day}),(0,c.jsx)("br",{}),(0,c.jsx)(m.ZP,{value:"ndayhm",children:a.ndayhm}),(0,c.jsx)("br",{}),(0,c.jsx)(m.ZP,{value:"endayweek",children:a.endayweek}),(0,c.jsx)("br",{}),(0,c.jsx)(m.ZP,{value:"endayhm",children:a.endayhm}),(0,c.jsx)("br",{}),(0,c.jsx)(m.ZP,{value:"endayweekhm",children:a.endayweekhm}),(0,c.jsx)("br",{})]})})]})})}})||U)},47933:function(z,j,e){"use s