| | |
| | | { |
| | | |
| | | "/archive-web": { |
| | | |
| | | "target": "http://202.98.157.47:8083/", |
| | | |
| | | "target": "http://192.168.1.168:8090/", |
| | | "secure": false |
| | | }, |
| | | "/MVNFHM": { |
| | | "target": "http://202.98.157.47:8080/", |
| | | |
| | | "/group1/M00": { |
| | | "target": "http://192.168.1.166/", |
| | | "secure": false |
| | | } |
| | | } |
| | |
| | | obj.reasonFileList = this.uploadFileComponent.data.addFileList; |
| | | console.log(obj); |
| | | this.swalUtil.loading(); |
| | | |
| | | if (this.uploadFileComponent.checkFileUpload() > 0) { |
| | | swal('有文件未处理!', '', 'info'); |
| | | } |
| | | |
| | | this.httpService.post('arrangement/insert/ver2/swapArchives', obj, res => { |
| | | if (res.data === -1) { |
| | | swal('该档案已离库', '', 'info'); |
| | |
| | | } |
| | | } |
| | | |
| | | checkFileUpload() { |
| | | let count = 0; |
| | | if (this.uploader.files.length > 0) { |
| | | for (let file of this.uploader.files) { |
| | | if (file['_prevProgress'] == 0) { |
| | | count ++; |
| | | } |
| | | } |
| | | } |
| | | return count; |
| | | } |
| | | |
| | | number_to_human_size(number) { |
| | | if (number < 1024) { |
| | | return number + ' Bytes'; |