|
@@ -121,25 +121,23 @@
|
|
|
},
|
|
|
getDataList() {
|
|
|
const param = this.getFilterItems();
|
|
|
- console.log('param', param)
|
|
|
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 j = 0; j < this.tagTypes.length; j++) {
|
|
|
- if(list[i].tagType === this.tagTypes[j].val) {
|
|
|
- list[i].tagTypeCn = this.tagTypes[j].name;
|
|
|
+ /*for (var j = 0; j < this.tagTypes.length; j++) {
|
|
|
+ if(list[i].tagType == this.tagTypes[j].val) {
|
|
|
+ list[i].tagTypeCn = this.tagTypes[j].name;console.log(tagTypes[j].name)
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ //后台数据typeCn转换为筛选中对应的字段名称
|
|
|
for (var z = 0; z < this.Adscriptions.length; z++) {
|
|
|
- if(list[i].type === this.Adscriptions[z].val) {
|
|
|
- list[i].typeCn = this.Adscriptions[z].name
|
|
|
+ if(list[i].type == this.Adscriptions[z].val) {
|
|
|
+ list[i].typeCn = this.Adscriptions[z].name;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
this.list = list;
|
|
|
this.total = res.data.data.total;
|
|
|
- console.log('tagGroup',res)
|
|
|
})
|
|
|
},
|
|
|
filterDatas() {
|