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