king
2019-11-30 95f2f60ba9eb343c2605e1ae68c221443d75f704
src/tabviews/commontable/index.jsx
@@ -63,7 +63,7 @@
        })
        notification.warning({
          top: 92,
          message: result.message || '页面配置错误',
          message: this.state.dict['main.page.settingerror'],
          duration: 10
        })
      }
@@ -83,7 +83,7 @@
      })
      notification.warning({
        top: 92,
        message: result.message || '页面配置错误',
        message: result.message,
        duration: 10
      })
    }
@@ -101,7 +101,7 @@
        item.options.unshift({
          key: Utils.getuuid(),
          Value: '',
          Text: '全部'
          Text: this.state.dict['main.all']
        })
      }
@@ -122,7 +122,7 @@
      } else if (item.resourceType === '1' && !item.dataSource) {
        notification.warning({
          top: 92,
          message: item.label + '数据源配置错误',
          message: item.label + ': ' + this.state.dict['main.datasource.settingerror'],
          duration: 10
        })
      }
@@ -214,13 +214,15 @@
    // })
  }
  refreshbyaction = () => {
  refreshbyaction = (btn, type) => {
    // 按钮操作后刷新表格,重置页码及选择项
    this.refs.mainTable.resetTable()
    this.loadmaindata(1, this.state.param.pageSize, this.state.param.orderColumn, this.state.param.orderType, this.state.param.search)
    this.setState({
      loading: true
    })
    console.log(btn)
    console.log(type)
    // this.refs.mainTable.resetTable()
    // this.loadmaindata(1, this.state.param.pageSize, this.state.param.orderColumn, this.state.param.orderType, this.state.param.search)
    // this.setState({
    //   loading: true
    // })
  }
  gettableselected = () => {
@@ -275,7 +277,7 @@
        {actions &&
          <MainAction
            MenuID={this.props.MenuID}
            fixed={setting && setting.actionfixed}
            setting={setting}
            refreshdata={this.refreshbyaction}
            gettableselected={this.gettableselected}
            actions={actions}