From 87c445887fe8d724ea124535234df974d3e1d58e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 19 六月 2021 13:17:48 +0800
Subject: [PATCH] 2021-06-19

---
 src/tabviews/custom/components/chart/antv-bar-line/index.jsx |   64 --------------------------------
 1 files changed, 0 insertions(+), 64 deletions(-)

diff --git a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx
index cd01883..12c5a83 100644
--- a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx
+++ b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx
@@ -2,7 +2,6 @@
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
 import { Chart } from '@antv/g2'
-// import { connect } from 'react-redux'
 import DataSet from '@antv/data-set'
 import { Spin, Empty, notification } from 'antd'
 import moment from 'moment'
@@ -12,7 +11,6 @@
 import Api from '@/api'
 import Utils from '@/utils/utils.js'
 import UtilsDM from '@/utils/utils-datamanage.js'
-// import { modifyTabview } from '@/store/action'
 import MKEmitter from '@/utils/events.js'
 import './index.scss'
 
@@ -1618,54 +1616,6 @@
       MKEmitter.emit('resetSelectLine', config.uuid, (data ? data.$$uuid : ''), null)
     })
 
-    // if (plot.linkmenu && plot.linkmenu.length > 0) {
-    //   let menu_id = plot.linkmenu.slice(-1)[0]
-    //   let menu = this.props.permMenus.filter(m => m.MenuID === menu_id)[0] || ''
-
-    //   chart.on('element:dblclick', (ev) => {
-    //     if (!menu) {
-    //       notification.warning({
-    //         top: 92,
-    //         message: '鑿滃崟宸插垹闄ゆ垨娌℃湁璁块棶鏉冮檺锛�',
-    //         duration: 5
-    //       })
-    //       return
-    //     }
-
-    //     try {
-    //       let data = ev.data.data
-    //       let primaryId = ''
-    //       if (this.state.config.setting.primaryKey && data) {
-    //         primaryId = data[this.state.config.setting.primaryKey] || ''
-    //       }
-
-    //       let newtab = {
-    //         ...menu,
-    //         selected: true,
-    //         param: {
-    //           $BID: primaryId
-    //         }
-    //       }
-  
-    //       let tabs = this.props.tabviews.filter(tab => {
-    //         tab.selected = false
-    //         return tab.MenuID !== newtab.MenuID
-    //       })
-  
-    //       if (this.props.tabviews.length > tabs.length) {
-    //         this.props.modifyTabview(fromJS(tabs).toJS())
-    //       }
-  
-    //       this.setState({}, () => {
-    //         tabs.push(newtab)
-    //         this.props.modifyTabview(tabs)
-    //       })
-    //     } catch {
-    //       console.warn('鑿滃崟鎵撳紑澶辫触锛�')
-    //     }
-    //   })
-    // }
-
     if (plot.interaction && plot.interaction.length) {
       plot.interaction.forEach(t => {
         chart.interaction(t)
@@ -1727,18 +1677,4 @@
   }
 }
 
-// const mapStateToProps = (state) => {
-//   return {
-//     tabviews: state.tabviews,
-//     permMenus: state.permMenus,
-//   }
-// }
-
-// const mapDispatchToProps = (dispatch) => {
-//   return {
-//     modifyTabview: (tabviews) => dispatch(modifyTabview(tabviews))
-//   }
-// }
-
-// export default connect(mapStateToProps, mapDispatchToProps)(LineChart)
 export default LineChart
\ No newline at end of file

--
Gitblit v1.8.0