From d441fa1e1cc80f4ea462a750a42a2b25c1f2b202 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 04 十二月 2020 15:17:51 +0800 Subject: [PATCH] 2020-12-04 --- src/tabviews/zshare/normalTable/index.jsx | 23 +++-------------------- 1 files changed, 3 insertions(+), 20 deletions(-) diff --git a/src/tabviews/zshare/normalTable/index.jsx b/src/tabviews/zshare/normalTable/index.jsx index e606eb0..640c6ff 100644 --- a/src/tabviews/zshare/normalTable/index.jsx +++ b/src/tabviews/zshare/normalTable/index.jsx @@ -1,9 +1,9 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' import md5 from 'md5' +import { connect } from 'react-redux' import { is, fromJS } from 'immutable' -import {connect} from 'react-redux' -import { Table, message, Affix, Typography, Modal, Icon } from 'antd' +import { Table, Affix, Typography, Modal, Icon } from 'antd' import Utils from '@/utils/utils.js' import { modifyTabview } from '@/store/action' @@ -20,10 +20,6 @@ const NewPageButton = asyncComponent(() => import('@/tabviews/zshare/actionList/newpagebutton')) class NormalTable extends Component { - static defaultProps = { - total: 0 - } - static propTpyes = { tableId: PropTypes.string, // 鍒楄〃Id statFValue: PropTypes.any, // 鍚堣瀛楁鏁版嵁 @@ -863,19 +859,6 @@ } } - copycontent = (e, content) => { - // 琛ㄦ牸涓唴瀹瑰鍒� - e.stopPropagation() - let oInput = document.createElement('input') - oInput.value = content - document.body.appendChild(oInput) - oInput.select() - document.execCommand('Copy') - oInput.className = 'oInput' - oInput.style.display='none' - message.success(this.props.dict['main.copy.success']) - } - /** * */ @@ -1050,7 +1033,7 @@ pageSize: this.state.pageSize, pageSizeOptions: ['10', '25', '50', '100', '500', '1000'], showSizeChanger: true, - total: this.props.total, + total: this.props.total || 0, showTotal: (total, range) => `${range[0]}-${range[1]} ${this.props.dict['main.pagination.of']} ${total} ${this.props.dict['main.pagination.items']}` } } -- Gitblit v1.8.0