bhq@iemsoft.cn
2019-06-04 ab1efaefcf68c645fb24b3500f4cfab2a4b9a1f3
档案调整申请 有未上传文件 提示并组织申请
3 files modified
26 ■■■■ changed files
frontdesk/proxy.conf.json 9 ●●●●● patch | view | raw | blame | history
frontdesk/src/app/routes/filearchives/arrangement/arrangement.component.ts 5 ●●●●● patch | view | raw | blame | history
frontdesk/src/app/shared/components/uploadfile/uploadfile.component.ts 12 ●●●●● patch | view | raw | blame | history
frontdesk/proxy.conf.json
@@ -1,14 +1,11 @@
{
    
    "/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
    }
}
frontdesk/src/app/routes/filearchives/arrangement/arrangement.component.ts
@@ -189,6 +189,11 @@
    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');
frontdesk/src/app/shared/components/uploadfile/uploadfile.component.ts
@@ -330,6 +330,18 @@
      }
  }
  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';