From 191d6d48a282479c02ea212ca33789ad34137361 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 11 一月 2021 16:21:17 +0800 Subject: [PATCH] 2021-01-11 --- src/tabviews/custom/index.jsx | 36 +++++------------------------------- 1 files changed, 5 insertions(+), 31 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index 7fad292..9c63e10 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -2,7 +2,7 @@ import PropTypes from 'prop-types' import { connect } from 'react-redux' import { is, fromJS } from 'immutable' -import { notification, Spin, Row, Col, Button, message } from 'antd' +import { notification, Spin, Row, Col } from 'antd' import moment from 'moment' import md5 from 'md5' @@ -26,6 +26,7 @@ const MainSearch = asyncComponent(() => import('@/tabviews/zshare/topSearch')) const NormalTable = asyncComponent(() => import('./components/table/normal-table')) const NormalGroup = asyncComponent(() => import('./components/group/normal-group')) +const PagemsgComponent = asyncComponent(() => import('@/tabviews/zshare/pageMessage')) class CustomPage extends Component { static propTpyes = { @@ -50,7 +51,6 @@ loading: false, // 鍒楄〃鏁版嵁鍔犺浇涓� visible: false, // 鏍囩椤垫帶鍒� treevisible: false, // 鑿滃崟缁撴瀯鏍戝脊妗嗘樉绀洪殣钘忔帶鍒� - debug: sessionStorage.getItem('debug') === 'true' } /** @@ -612,27 +612,6 @@ }) } - handleviewconfig = (e) => { - e.stopPropagation() - - const { MenuNo } = this.props - const { config } = this.state - - if (config && config.funcs && config.funcs.length > 0) { - this.setState({ - treevisible: true - }) - } else { - let oInput = document.createElement('input') - oInput.value = MenuNo || '' - document.body.appendChild(oInput) - oInput.select() - document.execCommand('Copy') - document.body.removeChild(oInput) - message.success(this.state.dict['main.copy.success']) - } - } - reloadMenuView = (menuId) => { const { MenuID } = this.props @@ -755,19 +734,14 @@ } render() { - const { menuType, MenuNo } = this.props - const { debug, loadingview, viewlost, config, loading } = this.state + const { menuType } = this.props + const { loadingview, viewlost, config, loading } = this.state return ( <div className={'custom-page-wrap ' + (loadingview || loading ? 'loading' : '')} id={this.state.ContainerId} style={config ? config.style : null}> {(loadingview || loading) ? <Spin className="view-spin" size="large" /> : null} <Row>{this.getComponents()}</Row> - {debug && MenuNo && options.sysType !== 'cloud' && menuType !== 'HS' ? <Button - icon="copy" - shape="circle" - className="common-table-copy" - onClick={this.handleviewconfig} - /> : null} + {menuType !== 'HS' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null} {viewlost ? <NotFount msg={this.state.lostmsg} /> : null} </div> ) -- Gitblit v1.8.0