Kaynağa Gözat

术语过长文案提示

wyq 3 yıl önce
ebeveyn
işleme
3383abad4a

+ 1 - 1
src/components/basicKnow/BasicTermsMaintenance.vue

@@ -239,7 +239,7 @@ export default {
               const code = JSON.parse(this.result);
               if (code.code === "00000001") {
                 that
-                  .$alert(`数据存在异常,导入失败,请修改后再试`, "提示", {
+                  .$alert(`医院术语字符数超出最大数量,请修改后再试`, "提示", {
                     confirmButtonText: "确定",
                     type: "warning"
                   })

+ 2 - 2
src/components/cdssManage/dept/DeptManage.vue

@@ -508,8 +508,8 @@ export default {
     },
     importDeptRecord(formData, header) {
       api.importDeptRecord(formData, header).then(res => {
-        if (res.data.code === '00000001') {
-          this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
+        if ((res.data.code === '00020007')) {
+          this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
             confirmButtonText: '确定',
             type: 'warning'
           })

+ 2 - 2
src/components/cdssManage/disease/Disease.vue

@@ -491,8 +491,8 @@ export default {
     },
     importDiseaseRecord(formData, header) {
       api.importDiseaseRecord(formData, header).then(res => {
-        if (res.data.code === '00000001') {
-          this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
+        if ((res.data.code === '00020007')) {
+          this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',
             // cancelButtonClass: 'cancelSure',

+ 2 - 2
src/components/cdssManage/drug/DrugManage.vue

@@ -508,8 +508,8 @@ export default {
     importDrugRecord(formData, header) {
       api.importDrugRecord(formData, header).then(res => {
         // console.log(res, '======================res导入结果');
-        if (res.data.code === '00000001') {
-          this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
+        if ((res.data.code === '00020007')) {
+          this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',
             // cancelButtonClass: 'cancelSure',

+ 2 - 2
src/components/cdssManage/fusion/Fusion.vue

@@ -497,8 +497,8 @@ export default {
     },
     importFusionRecord(formData,header){
       api.importFusionRecord(formData, header).then(res => {
-        if (res.data.code === '00000001') {
-          this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
+        if ((res.data.code === '00020007')) {
+          this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',
             // cancelButtonClass: 'cancelSure',

+ 2 - 2
src/components/cdssManage/lis/Lis.vue

@@ -512,8 +512,8 @@ export default {
     },
     importLisRecord(formData, header) {
       api.importLisRecord(formData, header).then(res => {
-        if (res.data.code === '00000001') {
-          this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
+        if ((res.data.code === '00020007')) {
+          this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',
             // cancelButtonClass: 'cancelSure',

+ 2 - 2
src/components/cdssManage/nursing/nursing.vue

@@ -504,8 +504,8 @@ export default {
     },
     importNurseRecord(formData, header) {
       api.importNurseRecord(formData, header).then(res => {
-        if (res.data.code === '00000001') {
-          this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
+        if ((res.data.code === '00020007')) {
+          this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',
             // cancelButtonClass: 'cancelSure',

+ 2 - 2
src/components/cdssManage/operation/Operation.vue

@@ -512,8 +512,8 @@ export default {
     },
     importOperationRecord(formData, header) {
       api.importOperationRecord(formData, header).then(res => {
-        if (res.data.code === '00000001') {
-          this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
+        if ((res.data.code === '00020007')) {
+          this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',
             // cancelButtonClass: 'cancelSure',

+ 3 - 3
src/components/cdssManage/pacs/Pacs.vue

@@ -504,9 +504,9 @@ export default {
     },
     importPacsRecord(formData, header) {
       api.importPacsRecord(formData, header).then(res => {
-        // code === '00000001'  导入失败统一提示 数据存在异常,导入失败,请修改后再试
-        if (res.data.code === '00000001') {
-          this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
+        // code === '00000001'  导入失败统一提示 医院术语字符数超出最大数量,请修改后再试
+        if ((res.data.code === '00020007')) {
+          this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
             confirmButtonText: '确定',
             // // cancelButtonText: '取消',
             // cancelButtonClass: 'cancelSure',

+ 2 - 2
src/components/cdssManage/scale/ScaleManage.vue

@@ -488,8 +488,8 @@ export default {
     importScaleRecord(formData, header) {
       api.importScaleRecord(formData, header).then(res => {
         // console.log(res, '======================res导入结果');
-        if (res.data.code === '00000001') {
-          this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
+        if ((res.data.code === '00020007')) {
+          this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',
             // cancelButtonClass: 'cancelSure',

+ 2 - 2
src/components/cdssManage/tcmdisease/tcmdisease.vue

@@ -511,8 +511,8 @@ export default {
     },
     importTcmRecord(formData, header) {
       api.importTcmRecord(formData, header).then(res => {
-        if (res.data.code === '00000001') {
-          this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
+        if ((res.data.code === '00020007')) {
+          this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',
             // cancelButtonClass: 'cancelSure',

+ 2 - 2
src/components/cdssManage/tcmdrome/tcmdrome.vue

@@ -512,8 +512,8 @@ export default {
     },
     importTcmdromeRecord(formData, header) {
       api.importTcmdromeRecord(formData, header).then(res => {
-        if (res.data.code === '00000001') {
-          this.$alert(`数据存在异常,导入失败,请修改后再试`, '提示', {
+        if ((res.data.code === '00020007')) {
+          this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
             confirmButtonText: '确定',
             // cancelButtonText: '取消',
             // cancelButtonClass: 'cancelSure',

+ 1 - 1
src/components/testManager/staticKnowledgeMap/StaticKnowledgeMapTest.vue

@@ -258,7 +258,7 @@ export default {
         },
       };
       api.staticKnowledgeTest(formData, header).then((res) => {
-        if (res.data.code === '00000001') {
+        if ((res.data.code === '00020007')) {
           this.$message.error(res.data.msg || '数据存在异常');
           this.getDataList(this.hospitalId); // 重新获取列表
         } else if (res.data.code === '0' && res.data.data) {