|
@@ -101,6 +101,11 @@ export default {
|
|
|
/** 人数信息 */
|
|
|
async getUserList() {
|
|
|
const typeUser = await userCountByTag(this.queryParams);
|
|
|
+ // 用户群体按字典排序
|
|
|
+ typeUser.data.sort((a, b) =>
|
|
|
+ (this.dict.type.user_tags.find(tag => tag.label === a.name)?.raw.dictSort ?? Infinity) -
|
|
|
+ (this.dict.type.user_tags.find(tag => tag.label === b.name)?.raw.dictSort ?? Infinity)
|
|
|
+ );
|
|
|
const allUser = await userTotalTimesByTag(this.queryParams);
|
|
|
const allData = [{ name: '总人次', value: allUser.data }];
|
|
|
this.userData = [ ...allData, ...typeUser?.data ];
|