| | |
| | | }) |
| | | } |
| | | |
| | | |
| | | handleviewconfig = (e) => { |
| | | e.stopPropagation() |
| | | |
| | |
| | | |
| | | 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) |
| | | }) |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | 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}> |
| | |
| | | destroyOnClose |
| | | > |
| | | {config.tab ? <SubTabTable |
| | | BID={triggerTime} |
| | | Tab={config.tab} |
| | | SupMenuID={this.props.MenuID} |
| | | MenuID={config.tab.linkTab} |
| | | refreshSupView={this.loadmaindata} |