| | |
| | | statFields: [], // 合计字段 |
| | | statFValue: [], // 合计值 |
| | | absFields: [], // 绝对值字段 |
| | | loadCustomApi: true // 加载外部资源 |
| | | loadCustomApi: true, // 加载外部资源 |
| | | hasReqFields: false |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | 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, |
| | |
| | | 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() |
| | |
| | | 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: '未设置正式系统地址!', |