瀏覽代碼

导入成功判断条件修改

wyq 3 年之前
父節點
當前提交
5cb9e32817

+ 1 - 1
src/components/icss/dept/DeptManage.vue

@@ -441,7 +441,7 @@ export default {
           setTimeout(() => {
             this.uploadInfo = '导入';
           }, 300);
-        } else if (res.data === '' && res.status === 200) {
+        } else if (res.data.data === true && res.status === 200) {
           this.$confirm(`导入成功`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',

+ 1 - 1
src/components/icss/disease/ChemicalAndCommonMapping.vue

@@ -436,7 +436,7 @@ export default {
           setTimeout(() => {
             this.uploadInfo = '导入';
           }, 300);
-        } else if (res.data === '' && res.status === 200) {
+        } else if (res.data.data === true && res.status === 200) {
           this.$confirm(`导入成功`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',

+ 1 - 1
src/components/icss/drug/DrugManage.vue

@@ -432,7 +432,7 @@ export default {
           setTimeout(() => {
             this.uploadInfo = '导入';
           }, 300);
-        } else if (res.data === '' && res.status === 200) {
+        } else if (res.data.data === true && res.status === 200) {
           this.$confirm(`导入成功`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',

+ 1 - 1
src/components/icss/fusion/Fusion.vue

@@ -431,7 +431,7 @@ export default {
           setTimeout(() => {
             this.uploadInfo = '导入';
           }, 300);
-        } else if (res.data === '' && res.status === 200) {
+        } else if (res.data.data === true && res.status === 200) {
           this.$confirm(`导入成功`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',

+ 1 - 1
src/components/icss/lis/Lis.vue

@@ -439,7 +439,7 @@ export default {
           setTimeout(() => {
             this.uploadInfo = '导入';
           }, 300);
-        } else if (res.data === '' && res.status === 200) {
+        } else if (res.data.data === true && res.status === 200) {
           this.$confirm(`导入成功`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',

+ 1 - 1
src/components/icss/nursing/nursing.vue

@@ -441,7 +441,7 @@ export default {
           setTimeout(() => {
             this.uploadInfo = '导入';
           }, 300);
-        } else if (res.data === '' && res.status === 200) {
+        } else if (res.data.data === true && res.status === 200) {
           this.$confirm(`导入成功`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',

+ 1 - 1
src/components/icss/operation/Operation.vue

@@ -438,7 +438,7 @@ export default {
           setTimeout(() => {
             this.uploadInfo = '导入';
           }, 300);
-        } else if (res.data === '' && res.status === 200) {
+        } else if (res.data.data === true && res.status === 200) {
           this.$confirm(`导入成功`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',

+ 1 - 1
src/components/icss/pacs/Pacs.vue

@@ -438,7 +438,7 @@ export default {
           setTimeout(() => {
             this.uploadInfo = '导入';
           }, 300);
-        } else if (res.data === '' && res.status === 200) {
+        } else if (res.data.data === true && res.status === 200) {
           this.$confirm(`导入成功`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',

+ 1 - 1
src/components/icss/scale/ScaleManage.vue

@@ -434,7 +434,7 @@ export default {
           setTimeout(() => {
             this.uploadInfo = '导入';
           }, 300);
-        } else if (res.data === '' && res.status === 200) {
+        } else if (res.data.data === true && res.status === 200) {
           this.$confirm(`导入成功`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',

+ 1 - 1
src/components/icss/tcmdisease/tcmdisease.vue

@@ -443,7 +443,7 @@ export default {
           setTimeout(() => {
             this.uploadInfo = '导入';
           }, 300);
-        } else if (res.data === '' && res.status === 200) {
+        } else if (res.data.data === true && res.status === 200) {
           this.$confirm(`导入成功`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',

+ 1 - 1
src/components/icss/tcmdrome/tcmdrome.vue

@@ -443,7 +443,7 @@ export default {
           setTimeout(() => {
             this.uploadInfo = '导入';
           }, 300);
-        } else if (res.data === '' && res.status === 200) {
+        } else if (res.data.data === true && res.status === 200) {
           this.$confirm(`导入成功`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',