| | |
| | | if (setting.$hasSyncModule) { |
| | | MKEmitter.emit('syncBalconyData', config.uuid, [], false) |
| | | } |
| | | |
| | | this.requestId = '' |
| | | return |
| | | } |
| | | |
| | |
| | | let _orderBy = orderBy || setting.order |
| | | let param = UtilsDM.getQueryDataParams(setting, searches, _orderBy, pageIndex, pageSize, BID) |
| | | |
| | | if (param.func === 'sPC_Get_TableData') { |
| | | this.requestId = param.timestamp |
| | | } |
| | | |
| | | let result = await Api.genericInterface(param, setting.js_script) |
| | | if (result.status) { |
| | | if (result.timestamp_back && this.requestId !== result.timestamp_back) return |
| | | |
| | | if (repage === 'false' && result.data && result.data.length === 0 && result.total > 0 && pageIndex > 1) { |
| | | let _pageIndex = Math.ceil(result.total / pageSize) |
| | | |