Bläddra i källkod

修改标签类型和归属显示名称

zhangxc 6 år sedan
förälder
incheckning
a4724d1339
1 ändrade filer med 4 tillägg och 8 borttagningar
  1. 4 8
      src/components/icss/LabelGroup.vue

+ 4 - 8
src/components/icss/LabelGroup.vue

@@ -84,8 +84,8 @@ export default {
         return {
         return {
             list: [],
             list: [],
             tagTypes: [],
             tagTypes: [],
-            Adscriptions: [],
-            tagTypesList: [],
+            Adscriptions: [],   //标签归属列表
+            tagTypesList: [],   //标签类型列表
             filter: {
             filter: {
                 tagType: [], //标签类型
                 tagType: [], //标签类型
                 tagAdscription: '', //标签归属
                 tagAdscription: '', //标签归属
@@ -120,19 +120,17 @@ export default {
             })
             })
         },
         },
         getDataList() {
         getDataList() {
-           console.log('data', this.tagTypesList)
             const param = this.getFilterItems();
             const param = this.getFilterItems();
-            console.log('param', param)
             api.getTagList(param).then((res) => {
             api.getTagList(param).then((res) => {
                 const list = res.data.data.records
                 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) {
                             list[i].tagTypeCn = this.tagTypes[j].name
                             list[i].tagTypeCn = this.tagTypes[j].name
                         }
                         }
                     }
                     }
                     for (var z =  0; z < this.Adscriptions.length; z++) {
                     for (var z =  0; z < this.Adscriptions.length; z++) {
-                        if(list[i].type === this.Adscriptions[z].val) {
+                        if(list[i].type == this.Adscriptions[z].val) {
                             list[i].typeCn = this.Adscriptions[z].name
                             list[i].typeCn = this.Adscriptions[z].name
                         }
                         }
                     }
                     }
@@ -140,7 +138,6 @@ export default {
                 }
                 }
                 this.list = list;
                 this.list = list;
                 this.total = res.data.data.total;
                 this.total = res.data.data.total;
-                console.log('tagGroup',res)
             })
             })
         },
         },
         filterDatas() {
         filterDatas() {
@@ -149,7 +146,6 @@ export default {
         },
         },
         addTagGroup() {
         addTagGroup() {
             this.$router.push({path:'LT-YXSJWH-TJBQZ'})
             this.$router.push({path:'LT-YXSJWH-TJBQZ'})
-            console.log('添加产品线');
         },
         },
         modifyTagGroup() {
         modifyTagGroup() {
             console.log('修改产品线');
             console.log('修改产品线');