king
2020-01-17 a0a285c90987eb9b1591f90333f3aeb15659ded2
src/tabviews/commontable/index.jsx
@@ -187,7 +187,7 @@
      }, () => {
        this.improveSearch()
        if (config.setting.onload !== 'false') {
        if (config.setting.onload !== 'false') { // 初始化可加载
          this.loadmaindata()
        }
      })
@@ -318,6 +318,10 @@
    this.handleTableId('mainTable', '')
    if (!param) { // 未获取参数时,不发请求
      return
    }
    let result = await Api.genericInterface(param)
    if (result.status) {
      this.setState({
@@ -378,6 +382,15 @@
  getDefaultParam = () => {
    const { arr_field, pageIndex, pageSize, orderColumn, orderType, search, setting } = this.state
    if (!arr_field) {
      notification.warning({
        top: 92,
        message: '未设置显示列!',
        duration: 10
      })
      return null
    }
    let _search = Utils.joinMainSearchkey(search)
    _search = _search ? 'where ' + _search : ''