浏览代码

血压修改问题

zhangxc 6 年之前
父节点
当前提交
cb868f04f6
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/components/icss/BloodPressTagGroup.vue

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

@@ -238,12 +238,13 @@ export default {
         },
         searchTagList() {
             let notIds = []
-            for (let i = 0; i < this.rightTagsList.length; i++) {
+            for (let i = 0; i < this.rightTagsList2.length; i++) {
                  if(typeof this.rightTagsList2[i].id === 'number') {
                     notIds.push(this.rightTagsList2[i].id)
                 }
                 
             }
+            
             let param1 = api.getGroupParams(3);            
             let param2 = {
                 "tagName": this.searchVal,
@@ -251,7 +252,7 @@ export default {
                 "notIds": notIds,
                 "sexType": this.sexType,
             }
-            let param = Object.assign(param1,param2)
+            let param = Object.assign({},param1,param2)
             api.searchTagList(param).then((res) => {
                 if (res.data.code === '0') {
                     this.leftTagsList = res.data.data