Browse Source

首页群组相关屏蔽/样式更新

master
La123123 1 month ago
parent
commit
f065d423d4
  1. 2
      im-admin-ui/src/api/im/group/index.ts
  2. 14
      im-admin-ui/src/views/index.vue

2
im-admin-ui/src/api/im/group/index.ts

@ -51,7 +51,7 @@ export const unban = (data: GroupUnbanDTO) => {
});
};
export const findGroupByName = (name?: String): AxiosPromise<GroupVO[]> => {
export const findGroupByName = (name?: string): AxiosPromise<GroupVO[]> => {
return request({
url: '/im/group/findByName?name=' + name,
method: 'get'

14
im-admin-ui/src/views/index.vue

@ -17,7 +17,7 @@
</div>
</el-card>
</el-col>
<el-col :span="6">
<!-- <el-col :span="6">
<el-card class="statistics-card">
<div class="statistics-item">
<div class="statistics-icon" style="background-color: #67c23a">
@ -31,7 +31,7 @@
</div>
</div>
</el-card>
</el-col>
</el-col> -->
<el-col :span="6">
<el-card class="statistics-card">
<div class="statistics-item">
@ -71,7 +71,7 @@
<el-card>
<template #header>
<span>用户注册</span>
<el-select v-model="registrationSelectedDays" @change="loadRegistrationChartData" style="width: 100px; float: right" size="small">
<el-select v-model="registrationSelectedDays" style="width: 100px; float: right" size="small" @change="loadRegistrationChartData">
<el-option label="7天" :value="7"></el-option>
<el-option label="15天" :value="15"></el-option>
<el-option label="30天" :value="30"></el-option>
@ -140,8 +140,8 @@ const loadTotalUserCount = async () => {
//
const loadTotalGroupCount = async () => {
try {
const response = await getTotalGroupCount();
totalGroupCount.value = response.data;
//const response = await getTotalGroupCount();
//totalGroupCount.value = response.data;
} catch (error) {
console.error('加载总群组数量失败:', error);
totalGroupCount.value = 0;
@ -521,11 +521,11 @@ const initRegistrationChart = async () => {
//
.chart-section {
margin-top: 24px;
display: flex; //
justify-content: center; //
.el-card {
border-radius: 8px;
border: 1px solid #f0f2f5;
:deep(.el-card__body) {
padding: 16px;
}

Loading…
Cancel
Save