Browse Source

noIds添加判断

zhangxc 6 years ago
parent
commit
f0d48657fb

+ 1 - 1
src/api/config.js

@@ -121,6 +121,6 @@ export default {
     {controlType:[1,2,6,7],tagType:[1,2],notTagType:[8]},  //症状详细(症状尾巴)
     {controlType:[1,2],tagType:[1,2,3,4,10],notTagType:[8]}, //组合项标签(既往史)
     {controlType:[1,6],tagType:[],notTagType:[8]},    //化验组合
-    {controlType:[1,2],tagType:[],notTagType:[8]},   //症状推送类型(添加症状)
+    {controlType:[1,2,99],tagType:[],notTagType:[8]},   //症状推送类型(添加症状)
   ]
 }

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

@@ -241,8 +241,8 @@ export default {
         searchTagList() {
             let notIds = []
             for (let i = 0; i < this.rightTagsList.length; i++) {
-                if(this.rightTagsList[i].id) {
-                    notIds.push(this.rightTagsList[i].id)
+                 if(typeof this.rightTagsList2[i].id === 'number') {
+                    notIds.push(this.rightTagsList2[i].id)
                 }
                 
             }

+ 2 - 1
src/components/icss/SymptomTagGroup.vue

@@ -259,8 +259,9 @@ export default {
         },
         searchTagList() {
             let notIds = []
+            console.log('this.rightTagsList2',this.rightTagsList2)
             for (let i = 0; i < this.rightTagsList2.length; i++) {
-                if(this.rightTagsList2[i].id) {
+                if(typeof this.rightTagsList2[i].id === 'number') {
                     notIds.push(this.rightTagsList2[i].id)
                 }