2 lines
853 KiB
JavaScript
2 lines
853 KiB
JavaScript
|
/*! For license information please see 6.569e26e6.chunk.js.LICENSE.txt */
|
||
|
(this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[]).push([[6],{102:function(e,t,i){},136:function(e,t,i){},137:function(e,t,i){},190:function(e,t,i){},191:function(e,t,i){},194:function(e,t,i){},195:function(e,t,i){},215:function(e,t,i){},217:function(e,t,i){},218:function(e,t,i){},219:function(e,t,i){},220:function(e,t,i){},221:function(e,t,i){},222:function(e,t,i){},223:function(e,t,i){},224:function(e,t,i){},225:function(e,t,i){},226:function(e,t,i){},232:function(e,t,i){},233:function(e,t,i){},234:function(e,t,i){},236:function(e,t,i){},237:function(e,t,i){},238:function(e,t,i){},239:function(e,t,i){},244:function(e,t,i){},245:function(e,t,i){},246:function(e,t,i){},247:function(e,t,i){},248:function(e,t,i){},249:function(e,t,i){},250:function(e,t,i){},251:function(e,t,i){},252:function(e,t,i){},253:function(e,t,i){},254:function(e,t,i){},255:function(e,t,i){},257:function(e,t,i){},258:function(e,t,i){},259:function(e,t,i){},260:function(e,t,i){},261:function(e,t,i){},262:function(e,t,i){},263:function(e,t,i){},264:function(e,t,i){},265:function(e,t,i){},266:function(e,t,i){},267:function(e,t,i){},268:function(e,t,i){},269:function(e,t,i){},270:function(e,t,i){},271:function(e,t,i){},272:function(e,t,i){},273:function(e,t,i){},274:function(e,t,i){},275:function(e,t,i){},276:function(e,t,i){"use strict";i.d(t,"a",(function(){return dn})),i.d(t,"b",(function(){return cn})),i.d(t,"c",(function(){return un}));var a=i(59),s=i(62),l=i(63),n=i(61),o=i(490),r=i(1),m=i.n(r),c=i(390),d=i(453),u=i(177),h=i(10),b="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\callbackMessage\\index.jsx";var p=i(24),N=i.n(p),j=(i(190),i(196)),v=i(454),f=i(167),g=i(512),x=i(510),_=i(419),y=(i(191),i(511)),O=i(501),D=i(423),E="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\components\\pagination\\main.js";class V extends m.a.Component{constructor(e){super(e),this.state={count:10,page:1|e.page,visible:!1,jump_page:"",page_num:"",dataCount:this.props.data}}getPageArr(e,t,i){var a,s=[].concat(e),l=s.length,n="\u2026";if(t=Math.max(1,Math.min(t,l)),l<=i)return s[t-1]=""+s[t-1],s;for(s=[""+t],a=(i=Math.max(5,i||7))-1;;){var o=+s[0],r=+s[s.length-1];if(o>1&&(s.unshift(o-1),!--a))break;if(r<l&&(s.push(r+1),!--a))break}switch(!0){case 1===+s[0]:s.splice(s.length-2,2,n,l);break;case+s[s.length-1]===l:s.splice(0,2,1,n);break;default:s.splice(0,2,1,n),s.splice(s.length-2,2,n,l)}return s}onPrevClick(){let e=this.state.page-1;this.setState({page:e}),this.props.onPrevClick(e)}onNextClick(){let e=this.state.page+1;this.setState({page:e}),this.props.onNextClick(e)}onPageClick(e){"\u2026"!=e&&(this.setState({page:e}),this.props.pageFn(e),this.props.onJumpPage(e))}onInputChange(e,t){let i=e.target.value>t?t:e.target.value;this.setState({jump_page:i})}onJumpPage(e){""!=e&&(this.setState({page:e}),this.props.onJumpPage(e),this.setState({jump_page:""}))}onMenuClick(e,t){switch(this.onJumpPage(1),t){case"1":this.setState({count:10}),this.props.onCountChange(10);break;case"2":this.setState({count:20}),this.props.onCountChange(20);break;case"3":this.setState({count:50}),this.props.onCountChange(50);break;case"4":this.setState({count:100}),this.props.onCountChange(100);break;case"5":this.setState({count:200}),this.props.onCountChange(200)}this.setState({visible:!1})}componentWillMount(){}componentWillReceiveProps(e){e.page&&this.setState({page:e.page})}render(){const{data:e}=this.props;let t=Math.ceil(e.count/this.state.count),i=[];for(let s=1;s<t+1;s++)i.push(s);let a=this.getPageArr(i,this.state.page,8);return Object(h.jsxDEV)("div",{className:"pagination",children:Object(h.jsxDEV)("div",{className:"pagination-context",children:[Object(h.jsxDEV)("span",{children:[" \u5171 ",e.count," \u6761\u8bb0\u5f55,\u6bcf\u9875\u663e\u793a "]},void 0,!0,{fileName:E,lineNumber:170,columnNumber:11},this),Object(h.jsxDEV)("span",{children:Object(h.jsxDEV)(y.a,{position:y.d.AutoTopCenter,visible:this.state.visible,onVisibleChange:e=>this.setState({visible:e}),children:[Object(h.jsxDEV)(y.b,{children:Object(h.jsxDEV)("div",{className:"show-count"
|