添加badge小红点和修复企业画像的检索列表
This commit is contained in:
@ -132,13 +132,19 @@ export default {
|
||||
getLabelSetting({ companyId: data.companyId }).then(({ data }) => {
|
||||
if (data.length) {
|
||||
console.log(data);
|
||||
this.portraitList = data.map(item =>
|
||||
item.labelList
|
||||
? item.labelList.filter(v => v.isHas)[0]
|
||||
? item.labelList.filter(v => v.isHas)[0]
|
||||
: ''
|
||||
: undefined
|
||||
// this.portraitList = data.map(item =>
|
||||
// item.labelList
|
||||
// ? item.labelList.filter(v => v.isHas)[0]
|
||||
// ? item.labelList.filter(v => v.isHas)[0]
|
||||
// : ''
|
||||
// : undefined
|
||||
// );
|
||||
const arrs = data.map(item =>
|
||||
item.labelList ? item.labelList.filter(v => v.isHas) : undefined
|
||||
);
|
||||
arrs.map(item => {
|
||||
this.portraitList = [...this.portraitList, ...item];
|
||||
});
|
||||
this.queryParams.labelId = this.portraitList[0].id;
|
||||
this.getPortraitList();
|
||||
}
|
||||
|
Reference in New Issue
Block a user