| | |
| | | _resolve() |
| | | }) |
| | | } else if (params.length <= 20 && btn.execType !== 'single') { |
| | | if (window.backend && params[0].$backend && (!btn.verify || (btn.verify.printEnable !== 'true' && !btn.output))) { |
| | | params = [{ |
| | | $backend: true, |
| | | data: params.map(item => item.data[0]) |
| | | }] |
| | | } |
| | | |
| | | let deffers = params.map((param, i) => { |
| | | return new Promise(resolve => { |
| | | setTimeout(() => { |
| | |
| | | _resolve() |
| | | } else { |
| | | if (params.length === 0) { |
| | | this.clearBackCache() |
| | | this.execSuccess(res) |
| | | _resolve() |
| | | } else { |
| | |
| | | _resolve() |
| | | } else { |
| | | if (params.length === 0) { |
| | | this.clearBackCache() |
| | | this.execSuccess(res) |
| | | _resolve() |
| | | } else { |
| | |
| | | _resolve() |
| | | } else { |
| | | if (params.length === 0) { |
| | | this.clearBackCache() |
| | | this.execSuccess(re) |
| | | _resolve() |
| | | } else { |
| | |
| | | } |
| | | } |
| | | |
| | | clearBackCache = () => { |
| | | if (!window.GLOB.backend) return |
| | | |
| | | Api.cacheInterface({}).then(res => { |
| | | if (!res.status) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: res.message || '缓存清空失败!', |
| | | duration: 5 |
| | | }) |
| | | } else if (window.GLOB.localSystemApi) { |
| | | Api.cacheInterface({rduri: window.GLOB.localSystemApi.replace('dostars', 'excache')}).then(result => { |
| | | if (!result.status) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: result.message || '缓存清空失败!', |
| | | duration: 5 |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * @description 操作成功后处理 |
| | | * 1、excel导出,成功后取消导出按钮加载中状态 |