|
@@ -47,11 +47,16 @@
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="4" v-for="(item, index) in userData" :key="index"><div style="margin-top: 8px;">{{ item.name }}: {{ item.value }}人</div></el-col>
|
|
|
</el-row>
|
|
|
- <div class="el-table el-table--enable-row-hover el-table--medium">
|
|
|
- <div ref="usedmemory" style="height: 440px" />
|
|
|
- </div>
|
|
|
</el-card>
|
|
|
</el-col>
|
|
|
+ <el-col :span="16" class="card-box">
|
|
|
+ <el-card>
|
|
|
+ <div slot="header">
|
|
|
+ <span>人次统计</span>
|
|
|
+ </div>
|
|
|
+ <div ref="usedmemory" style="height: 350px" />
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -107,8 +112,8 @@ export default {
|
|
|
(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 }];
|
|
|
+ const allUser = await userTotalCountByTag(this.queryParams);
|
|
|
+ const allData = [{ name: '总人数', value: allUser.data }];
|
|
|
this.userData = [ ...allData, ...typeUser?.data ];
|
|
|
this.$modal.closeLoading();
|
|
|
},
|