| | |
| | | } |
| | | } |
| | | |
| | | if (param.$type) { |
| | | url += '/' + param.$type |
| | | } |
| | | |
| | | delete param.$type |
| | | |
| | | param = this.encryptParam(param) |
| | | |
| | | return new Promise((resolve) => { |
| | |
| | | res.ErrCode = '-2' |
| | | MKEmitter.emit('reloadTabs') |
| | | } |
| | | if (res.status) { |
| | | if (res.status && id) { |
| | | window.GLOB.CacheMap.set(id, res) |
| | | } |
| | | resolve(res) |
| | |
| | | } |
| | | } |
| | | |
| | | if (param.$type) { |
| | | url += '/' + param.$type |
| | | } |
| | | |
| | | delete param.$type |
| | | |
| | | param.username = sessionStorage.getItem('User_Name') || '' |
| | | param.fullname = sessionStorage.getItem('Full_Name') || '' |
| | | param.s_debug = window.GLOB.debugger ? 'Y' : '' |
| | |
| | | } |
| | | |
| | | /** |
| | | * @description 清空后端缓存 |
| | | */ |
| | | cacheInterface (param) { |
| | | param.appkey = window.GLOB.appkey || '' |
| | | |
| | | let url = '/webapi/excache' |
| | | if (param.rduri && !window.GLOB.transfer) { |
| | | url = param.rduri |
| | | delete param.rduri |
| | | } |
| | | |
| | | param = this.encryptParam(param) |
| | | |
| | | return axios({ |
| | | url: url, |
| | | method: 'post', |
| | | data: JSON.stringify(param), |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * @description 上传base64 |
| | | * @param {String} base64 base64图片编码 |
| | | */ |