wyq 3 年之前
父節點
當前提交
87ab9bc211

+ 14 - 12
src/components/icss/dept/DeptManage.vue

@@ -508,10 +508,11 @@ export default {
             this.downloadUrl(res);
             this.getDataList();
           } else {
+            if (that.result != undefined) {
             let r = new FileReader();
             r.onload = function() {
-              const code = JSON.parse(this.result);
-              if (code.code === '00020004') {
+              const code = JSON.parse(that.result);
+              if (code.code === '00020007') {
                 that
                   .$alert(`${code.msg}`, '提示', {
                     confirmButtonText: '确定',
@@ -523,19 +524,20 @@ export default {
                   })
                   .then(() => {})
                   .catch(() => {});
-              } else {
-                that.$alert(`导入成功`, '提示', {
-                  confirmButtonText: '确定',
-                  // cancelButtonText: '取消',
-                  // cancelButtonClass: 'cancelSure',
-                  // confirmButtonClass: 'sure',
-                  // customClass: 'exportConfirm',
-                  type: 'success'
-                });
-                that.getDataList();
               }
             };
             r.readAsText(res.data);
+          } else {
+            that.$alert(`导入成功`, '提示', {
+              confirmButtonText: '确定',
+              // cancelButtonText: '取消',
+              // cancelButtonClass: 'cancelSure',
+              // confirmButtonClass: 'sure',
+              // customClass: 'exportConfirm',
+              type: 'success'
+            });
+            that.getDataList();
+          }
           }
         // if (res.data.code === '00000001') {
         //   this.$confirm(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 14 - 12
src/components/icss/disease/ChemicalAndCommonMapping.vue

@@ -512,10 +512,11 @@ export default {
             this.downloadUrl(res);
             this.getDataList();
           } else {
+            if (that.result != undefined) {
             let r = new FileReader();
             r.onload = function() {
-              const code = JSON.parse(this.result);
-              if (code.code === '00020004') {
+              const code = JSON.parse(that.result);
+              if (code.code === '00020007') {
                 that
                   .$alert(`${code.msg}`, '提示', {
                     confirmButtonText: '确定',
@@ -527,19 +528,20 @@ export default {
                   })
                   .then(() => {})
                   .catch(() => {});
-              } else {
-                that.$alert(`导入成功`, '提示', {
-                  confirmButtonText: '确定',
-                  // cancelButtonText: '取消',
-                  // cancelButtonClass: 'cancelSure',
-                  // confirmButtonClass: 'sure',
-                  // customClass: 'exportConfirm',
-                  type: 'success'
-                });
-                that.getDataList();
               }
             };
             r.readAsText(res.data);
+          } else {
+            that.$alert(`导入成功`, '提示', {
+              confirmButtonText: '确定',
+              // cancelButtonText: '取消',
+              // cancelButtonClass: 'cancelSure',
+              // confirmButtonClass: 'sure',
+              // customClass: 'exportConfirm',
+              type: 'success'
+            });
+            that.getDataList();
+          }
           }
         // if (res.data.code === '00000001') {
         // this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 14 - 12
src/components/icss/drug/DrugManage.vue

@@ -527,10 +527,11 @@ export default {
             this.downloadUrl(res);
             this.getDataList();
           } else {
+            if (that.result != undefined) {
             let r = new FileReader();
             r.onload = function() {
-              const code = JSON.parse(this.result);
-              if (code.code === '00020004') {
+              const code = JSON.parse(that.result);
+              if (code.code === '00020007') {
                 that
                   .$alert(`${code.msg}`, '提示', {
                     confirmButtonText: '确定',
@@ -542,19 +543,20 @@ export default {
                   })
                   .then(() => {})
                   .catch(() => {});
-              } else {
-                that.$alert(`导入成功`, '提示', {
-                  confirmButtonText: '确定',
-                  // cancelButtonText: '取消',
-                  // cancelButtonClass: 'cancelSure',
-                  // confirmButtonClass: 'sure',
-                  // customClass: 'exportConfirm',
-                  type: 'success'
-                });
-                that.getDataList();
               }
             };
             r.readAsText(res.data);
+          } else {
+            that.$alert(`导入成功`, '提示', {
+              confirmButtonText: '确定',
+              // cancelButtonText: '取消',
+              // cancelButtonClass: 'cancelSure',
+              // confirmButtonClass: 'sure',
+              // customClass: 'exportConfirm',
+              type: 'success'
+            });
+            that.getDataList();
+          }
           }
         // if (res.data.code === '00000001') {
         //   this.$confirm(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 14 - 12
src/components/icss/fusion/Fusion.vue

@@ -500,10 +500,11 @@ export default {
             this.downloadUrl(res);
             this.getDataList();
           } else {
+            if (that.result != undefined) {
             let r = new FileReader();
             r.onload = function() {
-              const code = JSON.parse(this.result);
-              if (code.code === '00020004') {
+              const code = JSON.parse(that.result);
+              if (code.code === '00020007') {
                 that
                   .$alert(`${code.msg}`, '提示', {
                     confirmButtonText: '确定',
@@ -515,19 +516,20 @@ export default {
                   })
                   .then(() => {})
                   .catch(() => {});
-              } else {
-                that.$alert(`导入成功`, '提示', {
-                  confirmButtonText: '确定',
-                  // cancelButtonText: '取消',
-                  // cancelButtonClass: 'cancelSure',
-                  // confirmButtonClass: 'sure',
-                  // customClass: 'exportConfirm',
-                  type: 'success'
-                });
-                that.getDataList();
               }
             };
             r.readAsText(res.data);
+          } else {
+            that.$alert(`导入成功`, '提示', {
+              confirmButtonText: '确定',
+              // cancelButtonText: '取消',
+              // cancelButtonClass: 'cancelSure',
+              // confirmButtonClass: 'sure',
+              // customClass: 'exportConfirm',
+              type: 'success'
+            });
+            that.getDataList();
+          }
           }
         // if (res.data.code === '00000001') {
         //   this.$confirm(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 14 - 12
src/components/icss/lis/Lis.vue

@@ -515,10 +515,11 @@ export default {
             this.downloadUrl(res);
             this.getDataList();
           } else {
+            if (that.result != undefined) {
             let r = new FileReader();
             r.onload = function() {
-              const code = JSON.parse(this.result);
-              if (code.code === '00020004') {
+              const code = JSON.parse(that.result);
+              if (code.code === '00020007') {
                 that
                   .$alert(`${code.msg}`, '提示', {
                     confirmButtonText: '确定',
@@ -530,19 +531,20 @@ export default {
                   })
                   .then(() => {})
                   .catch(() => {});
-              } else {
-                that.$alert(`导入成功`, '提示', {
-                  confirmButtonText: '确定',
-                  // cancelButtonText: '取消',
-                  // cancelButtonClass: 'cancelSure',
-                  // confirmButtonClass: 'sure',
-                  // customClass: 'exportConfirm',
-                  type: 'success'
-                });
-                that.getDataList();
               }
             };
             r.readAsText(res.data);
+          } else {
+            that.$alert(`导入成功`, '提示', {
+              confirmButtonText: '确定',
+              // cancelButtonText: '取消',
+              // cancelButtonClass: 'cancelSure',
+              // confirmButtonClass: 'sure',
+              // customClass: 'exportConfirm',
+              type: 'success'
+            });
+            that.getDataList();
+          }
           }
 
           // if (res.data.code === '00000001') {

+ 14 - 12
src/components/icss/nursing/nursing.vue

@@ -509,10 +509,11 @@ export default {
             this.downloadUrl(res);
             this.getDataList();
           } else {
+            if (that.result != undefined) {
             let r = new FileReader();
             r.onload = function() {
-              const code = JSON.parse(this.result);
-              if (code.code === '00020004') {
+              const code = JSON.parse(that.result);
+              if (code.code === '00020007') {
                 that
                   .$alert(`${code.msg}`, '提示', {
                     confirmButtonText: '确定',
@@ -524,19 +525,20 @@ export default {
                   })
                   .then(() => {})
                   .catch(() => {});
-              } else {
-                that.$alert(`导入成功`, '提示', {
-                  confirmButtonText: '确定',
-                  // cancelButtonText: '取消',
-                  // cancelButtonClass: 'cancelSure',
-                  // confirmButtonClass: 'sure',
-                  // customClass: 'exportConfirm',
-                  type: 'success'
-                });
-                that.getDataList();
               }
             };
             r.readAsText(res.data);
+          } else {
+            that.$alert(`导入成功`, '提示', {
+              confirmButtonText: '确定',
+              // cancelButtonText: '取消',
+              // cancelButtonClass: 'cancelSure',
+              // confirmButtonClass: 'sure',
+              // customClass: 'exportConfirm',
+              type: 'success'
+            });
+            that.getDataList();
+          }
           }
         // if (res.data.code === '00000001') {
         //   this.$confirm(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 14 - 12
src/components/icss/operation/Operation.vue

@@ -510,10 +510,11 @@ export default {
             this.downloadUrl(res);
             this.getDataList();
           } else {
+            if (that.result != undefined) {
             let r = new FileReader();
             r.onload = function() {
-              const code = JSON.parse(this.result);
-              if (code.code === '00020004') {
+              const code = JSON.parse(that.result);
+              if (code.code === '00020007') {
                 that
                   .$alert(`${code.msg}`, '提示', {
                     confirmButtonText: '确定',
@@ -525,19 +526,20 @@ export default {
                   })
                   .then(() => {})
                   .catch(() => {});
-              } else {
-                that.$alert(`导入成功`, '提示', {
-                  confirmButtonText: '确定',
-                  // cancelButtonText: '取消',
-                  // cancelButtonClass: 'cancelSure',
-                  // confirmButtonClass: 'sure',
-                  // customClass: 'exportConfirm',
-                  type: 'success'
-                });
-                that.getDataList();
               }
             };
             r.readAsText(res.data);
+          } else {
+            that.$alert(`导入成功`, '提示', {
+              confirmButtonText: '确定',
+              // cancelButtonText: '取消',
+              // cancelButtonClass: 'cancelSure',
+              // confirmButtonClass: 'sure',
+              // customClass: 'exportConfirm',
+              type: 'success'
+            });
+            that.getDataList();
+          }
           }
         // if (res.data.code === '00000001') {
         //   this.$confirm(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 14 - 12
src/components/icss/pacs/Pacs.vue

@@ -506,10 +506,11 @@ export default {
             this.downloadUrl(res);
             this.getDataList();
           } else {
+            if (that.result != undefined) {
             let r = new FileReader();
             r.onload = function() {
-              const code = JSON.parse(this.result);
-              if (code.code === '00020004') {
+              const code = JSON.parse(that.result);
+              if (code.code === '00020007') {
                 that
                   .$alert(`${code.msg}`, '提示', {
                     confirmButtonText: '确定',
@@ -521,19 +522,20 @@ export default {
                   })
                   .then(() => {})
                   .catch(() => {});
-              } else {
-                that.$alert(`导入成功`, '提示', {
-                  confirmButtonText: '确定',
-                  // cancelButtonText: '取消',
-                  // cancelButtonClass: 'cancelSure',
-                  // confirmButtonClass: 'sure',
-                  // customClass: 'exportConfirm',
-                  type: 'success'
-                });
-                that.getDataList();
               }
             };
             r.readAsText(res.data);
+          } else {
+            that.$alert(`导入成功`, '提示', {
+              confirmButtonText: '确定',
+              // cancelButtonText: '取消',
+              // cancelButtonClass: 'cancelSure',
+              // confirmButtonClass: 'sure',
+              // customClass: 'exportConfirm',
+              type: 'success'
+            });
+            that.getDataList();
+          }
           }
         // if (res.data.code === '00000001') {
         //   this.$confirm(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 14 - 12
src/components/icss/scale/ScaleManage.vue

@@ -507,10 +507,11 @@ export default {
             this.downloadUrl(res);
             this.getDataList();
           } else {
+            if (that.result != undefined) {
             let r = new FileReader();
             r.onload = function() {
-              const code = JSON.parse(this.result);
-              if (code.code === '00020004') {
+              const code = JSON.parse(that.result);
+              if (code.code === '00020007') {
                 that
                   .$alert(`${code.msg}`, '提示', {
                     confirmButtonText: '确定',
@@ -522,19 +523,20 @@ export default {
                   })
                   .then(() => {})
                   .catch(() => {});
-              } else {
-                that.$alert(`导入成功`, '提示', {
-                  confirmButtonText: '确定',
-                  // cancelButtonText: '取消',
-                  // cancelButtonClass: 'cancelSure',
-                  // confirmButtonClass: 'sure',
-                  // customClass: 'exportConfirm',
-                  type: 'success'
-                });
-                that.getDataList();
               }
             };
             r.readAsText(res.data);
+          } else {
+            that.$alert(`导入成功`, '提示', {
+              confirmButtonText: '确定',
+              // cancelButtonText: '取消',
+              // cancelButtonClass: 'cancelSure',
+              // confirmButtonClass: 'sure',
+              // customClass: 'exportConfirm',
+              type: 'success'
+            });
+            that.getDataList();
+          }
           }
         // if (res.data.code === '00000001') {
         //   this.$confirm(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 14 - 12
src/components/icss/tcmdisease/tcmdisease.vue

@@ -515,10 +515,11 @@ export default {
             this.downloadUrl(res);
             this.getDataList();
           } else {
+            if (that.result != undefined) {
             let r = new FileReader();
             r.onload = function() {
-              const code = JSON.parse(this.result);
-              if (code.code === '00020004') {
+              const code = JSON.parse(that.result);
+              if (code.code === '00020007') {
                 that
                   .$alert(`${code.msg}`, '提示', {
                     confirmButtonText: '确定',
@@ -530,19 +531,20 @@ export default {
                   })
                   .then(() => {})
                   .catch(() => {});
-              } else {
-                that.$alert(`导入成功`, '提示', {
-                  confirmButtonText: '确定',
-                  // cancelButtonText: '取消',
-                  // cancelButtonClass: 'cancelSure',
-                  // confirmButtonClass: 'sure',
-                  // customClass: 'exportConfirm',
-                  type: 'success'
-                });
-                that.getDataList();
               }
             };
             r.readAsText(res.data);
+          } else {
+            that.$alert(`导入成功`, '提示', {
+              confirmButtonText: '确定',
+              // cancelButtonText: '取消',
+              // cancelButtonClass: 'cancelSure',
+              // confirmButtonClass: 'sure',
+              // customClass: 'exportConfirm',
+              type: 'success'
+            });
+            that.getDataList();
+          }
           }
         // if (res.data.code === '00000001') {
         //   this.$confirm(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 14 - 12
src/components/icss/tcmdrome/tcmdrome.vue

@@ -515,10 +515,11 @@ export default {
             this.downloadUrl(res);
             this.getDataList();
           } else {
+            if (that.result != undefined) {
             let r = new FileReader();
             r.onload = function() {
-              const code = JSON.parse(this.result);
-              if (code.code === '00020004') {
+              const code = JSON.parse(that.result);
+              if (code.code === '00020007') {
                 that
                   .$alert(`${code.msg}`, '提示', {
                     confirmButtonText: '确定',
@@ -530,19 +531,20 @@ export default {
                   })
                   .then(() => {})
                   .catch(() => {});
-              } else {
-                that.$alert(`导入成功`, '提示', {
-                  confirmButtonText: '确定',
-                  // cancelButtonText: '取消',
-                  // cancelButtonClass: 'cancelSure',
-                  // confirmButtonClass: 'sure',
-                  // customClass: 'exportConfirm',
-                  type: 'success'
-                });
-                that.getDataList();
               }
             };
             r.readAsText(res.data);
+          } else {
+            that.$alert(`导入成功`, '提示', {
+              confirmButtonText: '确定',
+              // cancelButtonText: '取消',
+              // cancelButtonClass: 'cancelSure',
+              // confirmButtonClass: 'sure',
+              // customClass: 'exportConfirm',
+              type: 'success'
+            });
+            that.getDataList();
+          }
           }
         // if (res.data.code === '00000001') {
         //   this.$confirm(`医院术语字符数超出最大数量,请修改后再试`, '提示', {