From ed818fbca1a913065a6a3c2c767714efe5b18685 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 17 八月 2020 11:21:22 +0800 Subject: [PATCH] 2020-08-17 --- src/tabviews/calendar/index.jsx | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/tabviews/calendar/index.jsx b/src/tabviews/calendar/index.jsx index c059ce8..4052a90 100644 --- a/src/tabviews/calendar/index.jsx +++ b/src/tabviews/calendar/index.jsx @@ -432,7 +432,6 @@ }) } - handleviewconfig = (e) => { e.stopPropagation() @@ -537,19 +536,12 @@ triggerDate = (item) => { const { config } = this.state - let time = '' if (!config.tab) return - - if (item.time.length === 6) { - time = item.time.substr(0, 4) + '-' + item.time.substr(4, 2) - } else { - time = item.time.substr(0, 4) + '-' + item.time.substr(4, 2) + '-' + item.time.substr(6, 2) - } this.setState({ visible: true, - triggerTime: time + triggerTime: item.time.substr(0, 4) + '-' + item.time.substr(4, 2) + '-' + item.time.substr(6, 2) }) } @@ -561,7 +553,7 @@ } render() { - const { BID, searchlist, loadingview, viewlost, config, loading, data } = this.state + const { BID, searchlist, loadingview, viewlost, config, loading, data, triggerTime } = this.state return ( <div className="calendar-page" id={this.state.ContainerId}> @@ -615,6 +607,8 @@ destroyOnClose > {config.tab ? <SubTabTable + BID={triggerTime} + Tab={config.tab} SupMenuID={this.props.MenuID} MenuID={config.tab.linkTab} refreshSupView={this.loadmaindata} -- Gitblit v1.8.0