feat: 完成ruoyi、pure菜单兼容
This commit is contained in:
@@ -19,12 +19,11 @@ import LoginQrCode from "./components/LoginQrCode.vue";
|
||||
import { useUserStoreHook } from "@/store/modules/user";
|
||||
import { initRouter, getTopMenu } from "@/router/utils";
|
||||
import { bg, avatar, illustration } from "./utils/static";
|
||||
import { ReImageVerify } from "@/components/ReImageVerify";
|
||||
import { ref, toRaw, reactive, watch, computed } from "vue";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
import { useTranslationLang } from "@/layout/hooks/useTranslationLang";
|
||||
import { useDataThemeChange } from "@/layout/hooks/useDataThemeChange";
|
||||
import { getCodeImg } from "@/api/user";
|
||||
import { getCodeImg } from "@/api/account";
|
||||
|
||||
import dayIcon from "@/assets/svg/day.svg?component";
|
||||
import darkIcon from "@/assets/svg/dark.svg?component";
|
||||
|
||||
@@ -42,12 +42,12 @@ const dataList = ref([
|
||||
{
|
||||
title: "响应体",
|
||||
name: "requestResult",
|
||||
data: (props.data[0] as any).requestResult
|
||||
data: (props.data[0] as any)?.requestResult
|
||||
},
|
||||
{
|
||||
title: "请求体",
|
||||
name: "requestParam",
|
||||
data: (props.data[0] as any).requestParam
|
||||
data: (props.data[0] as any)?.requestParam
|
||||
}
|
||||
]);
|
||||
</script>
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
import dayjs from "dayjs";
|
||||
import Detail from "../detail.vue";
|
||||
import { message } from "@/utils/message";
|
||||
import { addDialog } from "@/components/ReDialog";
|
||||
import type { PaginationProps } from "@pureadmin/table";
|
||||
import { type Ref, reactive, ref, onMounted, toRaw } from "vue";
|
||||
import { type Ref, reactive, ref, onMounted } from "vue";
|
||||
import { getKeyList, useCopyToClipboard } from "@pureadmin/utils";
|
||||
import { getSystemLogsList, getSystemLogsDetail } from "@/api/system";
|
||||
import Info from "@iconify-icons/ri/question-line";
|
||||
|
||||
export function useRole(tableRef: Ref) {
|
||||
@@ -189,28 +186,29 @@ export function useRole(tableRef: Ref) {
|
||||
}
|
||||
|
||||
function onDetail(row) {
|
||||
getSystemLogsDetail({ id: row.id }).then(res => {
|
||||
addDialog({
|
||||
title: "系统日志详情",
|
||||
fullscreen: true,
|
||||
hideFooter: true,
|
||||
contentRenderer: () => Detail,
|
||||
props: {
|
||||
data: [res]
|
||||
}
|
||||
});
|
||||
});
|
||||
console.log(row);
|
||||
// getSystemLogsDetail({ id: row.id }).then(res => {
|
||||
// addDialog({
|
||||
// title: "系统日志详情",
|
||||
// fullscreen: true,
|
||||
// hideFooter: true,
|
||||
// contentRenderer: () => Detail,
|
||||
// props: {
|
||||
// data: [res]
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
}
|
||||
|
||||
async function onSearch() {
|
||||
loading.value = true;
|
||||
const { data } = await getSystemLogsList(toRaw(form));
|
||||
dataList.value = data.items;
|
||||
pagination.total = data.totalCount;
|
||||
|
||||
setTimeout(() => {
|
||||
loading.value = false;
|
||||
}, 500);
|
||||
// loading.value = true;
|
||||
// const { data } = await getSystemLogsList(toRaw(form));
|
||||
// dataList.value = data.items;
|
||||
// pagination.total = data.totalCount;
|
||||
//
|
||||
// setTimeout(() => {
|
||||
// loading.value = false;
|
||||
// }, 500);
|
||||
}
|
||||
|
||||
const resetForm = formEl => {
|
||||
|
||||
Reference in New Issue
Block a user