| | |
| | | let param = getStructuredParams(params, config, BID) |
| | | |
| | | if (config.$cache && config.$time) { |
| | | Api.getLCacheConfig(params[0].uuid || params[0].id, config.$time, BID).then(res => { |
| | | let uuid = params[0].uuid || '' |
| | | if (params[0].id) { |
| | | uuid = window.GLOB.CacheData.get('first_' + params[0].id) || '' |
| | | } |
| | | Api.getLCacheConfig(uuid, config.$time, BID).then(res => { |
| | | if (!res.valid) { |
| | | this.getMainData(param, params, config.uuid) |
| | | } |
| | |
| | | this.setState({loading: true, loadingview: false}) |
| | | |
| | | if (config.$cache && config.$time) { |
| | | Api.getLCacheConfig(params[0].uuid || params[0].id, config.$time, BID).then(res => { |
| | | let uuid = params[0].uuid || '' |
| | | if (params[0].id) { |
| | | uuid = window.GLOB.CacheData.get('first_' + params[0].id) || '' |
| | | } |
| | | Api.getLCacheConfig(uuid, config.$time, BID).then(res => { |
| | | if (!res.valid) { |
| | | this.getMainData(param, params, config.MenuID) |
| | | } else { |
| | |
| | | const { columns, setting, dataName, format, uuid } = component |
| | | |
| | | if (window.backend && window.GLOB.CacheData.has('sql_' + uuid)) { |
| | | if (first) { |
| | | let item = window.GLOB.CacheData.get('sql_' + uuid) |
| | | window.GLOB.CacheData.set('first_' + item.id, uuid) |
| | | } |
| | | |
| | | return getBackendQueryParam(setting, searchlist, setting.order, 1, 1000, '', BID, '', dataName) |
| | | } |
| | | |
| | |
| | | if (window.backend && params[0].exps) { |
| | | let param = { |
| | | $backend: true, |
| | | $type: 's_Get_TableData', |
| | | $type: 's_Get_structured_data', |
| | | data: params.map(item => { |
| | | let cell = {...item} |
| | | |