mirror of
https://github.com/continew-org/continew-admin.git
synced 2026-01-01 08:57:12 +08:00
新增:新增系统管理/部门管理/查询列表功能,并将所有描述字段名从 notes 调整为 description,将部分前端方法名前缀从 query 调整为 get,以及去除部分冗余代码
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed, ref, reactive } from 'vue';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import { queryLoginLogList, LoginLogRecord, LoginLogParams } from '@/api/monitor/log';
|
||||
import { getLoginLogList, LoginLogRecord, LoginLogParams } from '@/api/monitor/log';
|
||||
import { Pagination } from '@/types/global';
|
||||
import { PaginationProps } from '@arco-design/web-vue';
|
||||
import type { SelectOptionData } from '@arco-design/web-vue/es/select/interface';
|
||||
@@ -171,7 +171,7 @@
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const { data } = await queryLoginLogList(params);
|
||||
const { data } = await getLoginLogList(params);
|
||||
renderData.value = data.list;
|
||||
pagination.current = params.page;
|
||||
pagination.total = data.total;
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed, ref, reactive } from 'vue';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import { queryOperationLogList, OperationLogRecord, OperationLogParams } from '@/api/monitor/log';
|
||||
import { getOperationLogList, OperationLogRecord, OperationLogParams } from '@/api/monitor/log';
|
||||
import { Pagination } from '@/types/global';
|
||||
import { PaginationProps } from '@arco-design/web-vue';
|
||||
import type { SelectOptionData } from '@arco-design/web-vue/es/select/interface';
|
||||
@@ -181,7 +181,7 @@
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const { data } = await queryOperationLogList(params);
|
||||
const { data } = await getOperationLogList(params);
|
||||
renderData.value = data.list;
|
||||
pagination.current = params.page;
|
||||
pagination.total = data.total;
|
||||
|
||||
@@ -227,9 +227,9 @@
|
||||
import { computed, ref, reactive } from 'vue';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import {
|
||||
querySystemLogDetail,
|
||||
getSystemLogDetail,
|
||||
SystemLogDetailRecord,
|
||||
querySystemLogList,
|
||||
getSystemLogList,
|
||||
SystemLogRecord,
|
||||
SystemLogParams,
|
||||
} from '@/api/monitor/log';
|
||||
@@ -352,7 +352,7 @@
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const { data } = await querySystemLogList(params);
|
||||
const { data } = await getSystemLogList(params);
|
||||
renderData.value = data.list;
|
||||
pagination.current = params.page;
|
||||
pagination.total = data.total;
|
||||
@@ -373,7 +373,7 @@
|
||||
visible.value = true;
|
||||
detailLoading.value = true;
|
||||
try {
|
||||
const { data } = await querySystemLogDetail(logId);
|
||||
const { data } = await getSystemLogDetail(logId);
|
||||
renderDetailData.value = data;
|
||||
} finally {
|
||||
detailLoading.value = false;
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
import { computed, ref, reactive } from 'vue';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import { Message } from '@arco-design/web-vue';
|
||||
import { queryOnlineUserList, OnlineUserRecord, OnlineUserParams, kickout } from '@/api/monitor/online';
|
||||
import { getOnlineUserList, OnlineUserRecord, OnlineUserParams, kickout } from '@/api/monitor/online';
|
||||
import { Pagination } from '@/types/global';
|
||||
import { PaginationProps } from '@arco-design/web-vue';
|
||||
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
|
||||
@@ -83,7 +83,6 @@
|
||||
const queryFormRef = ref<FormInstance>();
|
||||
const queryFormData = ref({
|
||||
nickname: '',
|
||||
status: undefined,
|
||||
loginTime: [],
|
||||
});
|
||||
|
||||
@@ -159,7 +158,7 @@
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const { data } = await queryOnlineUserList(params);
|
||||
const { data } = await getOnlineUserList(params);
|
||||
renderData.value = data.list;
|
||||
pagination.current = params.page;
|
||||
pagination.total = data.total;
|
||||
|
||||
Reference in New Issue
Block a user