king
2021-01-25 5849fe8dd015b076c303f89233d59561a69571fa
src/tabviews/commontable/index.jsx
@@ -65,7 +65,8 @@
    statFields: [],       // 合计字段
    statFValue: [],       // 合计值
    absFields: [],        // 绝对值字段
    loadCustomApi: true   // 加载外部资源
    loadCustomApi: true,  // 加载外部资源
    hasReqFields: false
  }
  /**
@@ -341,14 +342,20 @@
      }
      let valid = true // 搜索条件必填验证, 初始搜索条件, 如通过上级透视,写入搜索条件
      let hasReqFields = false
      let initSearch = config.search.map(item => {
        let _item = fromJS(item).toJS()
        if (_item.required === 'true' && !_item.initval) {
          valid = false
        }
        if (_item.required === 'true') {
          hasReqFields = true
        }
        return _item
      })
      initSearch = Utils.initMainSearch(initSearch)
      this.setState({
        loadingview: false,
@@ -363,7 +370,8 @@
        columns: _columns,
        arr_field: _arrField.join(','),
        BID: param && param.BID ? param.BID : '',
        search: Utils.initMainSearch(initSearch) // 搜索条件初始化(含有时间格式,需要转化)
        search: Utils.initMainSearch(initSearch), // 搜索条件初始化(含有时间格式,需要转化)
        hasReqFields
      }, () => {
        if (config.setting.onload !== 'false' && valid) { // 初始化可加载
          this.loadData()
@@ -447,7 +455,7 @@
        duration: 3
      })
      return
    } else if (window.GLOB.systemType === 'production' && !setting.proInterface) {
    } else if (window.GLOB.systemType === 'production' && setting.interType === 'custom' && !setting.proInterface) {
      notification.warning({
        top: 92,
        message: '未设置正式系统地址!',