Pārlūkot izejas kodu

搜索入参前后去空格

zhouna 5 gadi atpakaļ
vecāks
revīzija
42feeab244

+ 1 - 1
src/components/diagBase/DiagBase.vue

@@ -245,7 +245,7 @@ export default {
             const param = {
             const param = {
                 current: this.currentPage,
                 current: this.currentPage,
                 size: this.pageSize,
                 size: this.pageSize,
-                disName: this.filter.disName,
+                disName: this.filter.disName.trim(),
                 modifier: this.filter.modifier, //操作人
                 modifier: this.filter.modifier, //操作人
                 hasQuestion: this.filter.hasQuestion, //有无问题词
                 hasQuestion: this.filter.hasQuestion, //有无问题词
             };
             };

+ 2 - 2
src/components/diagBase/QuestionWords.vue

@@ -186,8 +186,8 @@ export default {
             const param = {
             const param = {
                 current: this.currentPage,
                 current: this.currentPage,
                 size: this.pageSize,
                 size: this.pageSize,
-                disName: this.filter.disName,
-                questionCode: this.filter.questionName,
+                disName: this.filter.disName.trim(),
+                questionCode: this.filter.questionName.trim(),
                 type: this.filter.type
                 type: this.filter.type
             };
             };
             return param;
             return param;

+ 4 - 4
src/components/icss/AddChemicalAndCommonMapping.vue

@@ -168,10 +168,10 @@
           relationPosition: 3
           relationPosition: 3
         }
         }
         if (type == 1) {
         if (type == 1) {
-          param.name = this.mealText
+          param.name = this.mealText.trim();
           param.typeId = 12
           param.typeId = 12
         } else if (type == 2) {
         } else if (type == 2) {
-          param.name = this.itemText
+          param.name = this.itemText.trim();
           param.typeId = 13
           param.typeId = 13
         }
         }
         if(!param.name) {
         if(!param.name) {
@@ -180,11 +180,11 @@
         api.getConceptInfoAssay(param).then((res) => {
         api.getConceptInfoAssay(param).then((res) => {
           if (res.data.code === '0') {
           if (res.data.code === '0') {
             if (type == 1) {
             if (type == 1) {
-              this.mealNameList = res.data.data
+              this.mealNameList = res.data.data;
               this.showSearchList('showMealNameList')
               this.showSearchList('showMealNameList')
             } else if (type == 2) {
             } else if (type == 2) {
 
 
-              this.itemNameList = res.data.data
+              this.itemNameList = res.data.data;
               this.showSearchList('showItemNameList')
               this.showSearchList('showItemNameList')
             }
             }
           }
           }

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

@@ -197,7 +197,7 @@ export default {
           const notIds = this.selectedTags();
           const notIds = this.selectedTags();
           //2019-8-15 需求修改:搜索结果与类型关联bug2045
           //2019-8-15 需求修改:搜索结果与类型关联bug2045
           let param = {
           let param = {
-              "name": this.searchTagVal,
+              "name": this.searchTagVal.trim(),
               "relationId": 17,
               "relationId": 17,
               "relationPosition": 2,
               "relationPosition": 2,
               // "typeId": this.type, //选中类型的id
               // "typeId": this.type, //选中类型的id

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

@@ -182,7 +182,7 @@
         getTagList() {
         getTagList() {
             const notIds = this.selectedTags()
             const notIds = this.selectedTags()
             const param = {
             const param = {
-                "tagName": this.searchTagVal,
+                "tagName": this.searchTagVal.trim(),
                 "type": '21',
                 "type": '21',
                 "notIds": notIds,
                 "notIds": notIds,
                 "sexType": this.sexType,
                 "sexType": this.sexType,

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

@@ -149,7 +149,7 @@
         getTagList() {
         getTagList() {
                 const notIds = this.getRightTagListIds()
                 const notIds = this.getRightTagListIds()
                 let param = {
                 let param = {
-                "tagName": this.searchVal,
+                "tagName": this.searchVal.trim(),
                 "type": 4,
                 "type": 4,
                 "notIds": notIds,
                 "notIds": notIds,
                 "notTagType": [8],
                 "notTagType": [8],

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

@@ -171,7 +171,7 @@
             const param = {
             const param = {
                 current: this.currentPage,
                 current: this.currentPage,
                 size: this.pageSize,
                 size: this.pageSize,
-                name:this.filter.conceptName
+                name:this.filter.conceptName.trim()
             };
             };
             return param;
             return param;
         },
         },

+ 3 - 3
src/components/icss/ChemicalAndCommonMapping.vue

@@ -189,9 +189,9 @@ export default {
             const param = {
             const param = {
                 current: this.currentPage,
                 current: this.currentPage,
                 size: this.pageSize,
                 size: this.pageSize,
-                mealName:this.filter.mealName,
-                itemName:this.filter.itemName,
-                uniqueName:this.filter.uniqueName
+                mealName:this.filter.mealName.trim(),
+                itemName:this.filter.itemName.trim(),
+                uniqueName:this.filter.uniqueName.trim()
             };
             };
             return param;
             return param;
         },
         },

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

@@ -178,7 +178,7 @@
             const param = {
             const param = {
                 current: this.currentPage,
                 current: this.currentPage,
                 size: this.pageSize,
                 size: this.pageSize,
-                diseaseName:this.filter.diseaseName,
+                diseaseName:this.filter.diseaseName.trim(),
             };
             };
             return param;
             return param;
         },
         },

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

@@ -200,7 +200,7 @@
         const param = {
         const param = {
           current: this.currentPage,
           current: this.currentPage,
           size: this.pageSize,
           size: this.pageSize,
-          name: this.filter.tagSysName,
+          name: this.filter.tagSysName.trim(),
           status:this.filter.isState
           status:this.filter.isState
         };
         };
         return param;
         return param;

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

@@ -197,7 +197,7 @@ export default {
             const param = {
             const param = {
                 current: this.currentPage,
                 current: this.currentPage,
                 size: this.pageSize,
                 size: this.pageSize,
-                name:this.filter.conceptName,
+                name:this.filter.conceptName.trim(),
                 relationId:17,
                 relationId:17,
                 relationModelTypeCode:this.filter.type
                 relationModelTypeCode:this.filter.type
             };
             };

+ 2 - 3
src/components/icss/DiagnosisList.vue

@@ -143,8 +143,7 @@ export default {
         getDataList() {
         getDataList() {
             const param = this.getFilterItems();
             const param = this.getFilterItems();
             api.getTagList(param).then((res) => {
             api.getTagList(param).then((res) => {
-                const list = res.data.data.records
-                console.log(res,1111111111)
+                const list = res.data.data.records;
                 for (var i = 0; i < list.length; i++) {
                 for (var i = 0; i < list.length; i++) {
                     for (var j =  0; j < this.tagTypes.length; j++) {
                     for (var j =  0; j < this.tagTypes.length; j++) {
                         if(list[i].tagType == this.tagTypes[j].val) {
                         if(list[i].tagType == this.tagTypes[j].val) {
@@ -200,7 +199,7 @@ export default {
                 size: this.pageSize,
                 size: this.pageSize,
                 type: '7',
                 type: '7',
                 disType:this.filter.tagAdscription,
                 disType:this.filter.tagAdscription,
-                tagName: this.filter.tagSysName,
+                tagName: this.filter.tagSysName.trim(),
             };
             };
             return param;
             return param;
         },
         },

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

@@ -161,7 +161,7 @@
           this.filter.title='';
           this.filter.title='';
         };
         };
         const param = {
         const param = {
-          title: this.filter.title,
+          title: this.filter.title.trim(),
           current: this.currentPage,
           current: this.currentPage,
           size: this.pageSize
           size: this.pageSize
         };
         };

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

@@ -253,7 +253,7 @@
           current: this.currentPage,
           current: this.currentPage,
           size: this.pageSize,
           size: this.pageSize,
           type: this.filter.tagAdscription,
           type: this.filter.tagAdscription,
-          tagName: this.filter.tagSysName,
+          tagName: this.filter.tagSysName.trim(),
           controlTypeList: this.filter.controlType[0] ? this.filter.controlType: []
           controlTypeList: this.filter.controlType[0] ? this.filter.controlType: []
         };
         };
         return param;
         return param;

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

@@ -253,7 +253,7 @@ export default {
                 current: this.currentPage,
                 current: this.currentPage,
                 size: this.pageSize,
                 size: this.pageSize,
                 type: this.filter.tagAdscription,
                 type: this.filter.tagAdscription,
-                tagName: this.filter.tagSysName,
+                tagName: this.filter.tagSysName.trim(),
                 notTypeList: [7]
                 notTypeList: [7]
             };
             };
             return param;
             return param;

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

@@ -188,7 +188,7 @@
           this.clearFilter();
           this.clearFilter();
         };
         };
         const param = {
         const param = {
-          name: this.filter.term,
+          name: this.filter.term.trim(),
           current: this.currentPage,
           current: this.currentPage,
           size: this.pageSize,
           size: this.pageSize,
           type: this.filter.type,
           type: this.filter.type,

+ 2 - 2
src/components/icss/MedicalName.vue

@@ -232,11 +232,11 @@
           this.clearFilter();
           this.clearFilter();
         };
         };
         const param = {
         const param = {
-          name: this.filter.term,
+          name: this.filter.term.trim(),
           current: this.currentPage,
           current: this.currentPage,
           size: this.pageSize,
           size: this.pageSize,
           type:this.filter.type,
           type:this.filter.type,
-          libName:this.filter.libName,
+          libName:this.filter.libName.trim(),
           isDeleted:this.filter.isState
           isDeleted:this.filter.isState
         };
         };
         return param;
         return param;

+ 2 - 2
src/components/icss/MedicalRelation.vue

@@ -229,8 +229,8 @@
           current: this.currentPage,
           current: this.currentPage,
           size: this.pageSize,
           size: this.pageSize,
           relationId: this.filter.type,
           relationId: this.filter.type,
-          startName: this.filter.startName,
-          endName: this.filter.endName,
+          startName: this.filter.startName.trim(),
+          endName: this.filter.endName.trim(),
           isDeleted:this.filter.isState
           isDeleted:this.filter.isState
         };
         };
         return param;
         return param;

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

@@ -202,7 +202,7 @@
           this.clearFilter();
           this.clearFilter();
         };
         };
         const param = {
         const param = {
-          conceptName:this.filter.term,
+          conceptName:this.filter.term.trim(),
           title:this.filter.title,
           title:this.filter.title,
           current: this.currentPage,
           current: this.currentPage,
           size: this.pageSize,
           size: this.pageSize,

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

@@ -194,7 +194,7 @@
           this.filter.type = null;
           this.filter.type = null;
         };
         };
         const param = {
         const param = {
-          name: this.filter.name,
+          name: this.filter.name.trim(),
           current: this.currentPage,
           current: this.currentPage,
           size: this.pageSize,
           size: this.pageSize,
           productType:this.filter.type?this.filter.type:0
           productType:this.filter.type?this.filter.type:0

+ 2 - 2
src/components/preTreat/CombinQuestion.vue

@@ -211,8 +211,8 @@
           callType:2,
           callType:2,
           size: this.pageSize,
           size: this.pageSize,
           type: this.filter.tagAdscription,
           type: this.filter.tagAdscription,
-          tagName: this.filter.tagSysName,
-          name:this.filter.name,          //界面名称
+          tagName: this.filter.tagSysName.trim(),
+          name:this.filter.name.trim(),          //界面名称
         };
         };
         return param;
         return param;
       },
       },

+ 1 - 1
src/components/preTreat/QuestionModules.vue

@@ -231,7 +231,7 @@
           }
           }
         };
         };
         const param = {
         const param = {
-          name: this.filter.name,
+          name: this.filter.name.trim(),
           type:this.filter.type,
           type:this.filter.type,
           moduleType: this.filter.moduleType,
           moduleType: this.filter.moduleType,
           relationId: this.filter.moduleType==1?this.filter.relationId:'',
           relationId: this.filter.moduleType==1?this.filter.relationId:'',

+ 3 - 3
src/components/preTreat/SimpleQuestion.vue

@@ -253,9 +253,9 @@
           current: this.currentPage,
           current: this.currentPage,
           size: this.pageSize,
           size: this.pageSize,
           type: this.filter.tagAdscription,
           type: this.filter.tagAdscription,
-          tagName: this.filter.tagSysName,
-          combinationName:this.filter.combinationName,
-          name:this.filter.name,
+          tagName: this.filter.tagSysName.trim(),
+          combinationName:this.filter.combinationName.trim(),
+          name:this.filter.name.trim(),
           controlTypeList: this.filter.controlType[0] ? this.filter.controlType: []
           controlTypeList: this.filter.controlType[0] ? this.filter.controlType: []
         };
         };
         return param;
         return param;