king
2020-08-17 ed818fbca1a913065a6a3c2c767714efe5b18685
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}