🧹 清理重复配置文件
- 删除根目录中重复的 NestJS 配置文件 - 删除 tsconfig.json, tsconfig.build.json, eslint.config.mjs, .prettierrc - 保留 wwjcloud-nest/ 目录中的完整配置 - 避免配置冲突,确保项目结构清晰
This commit is contained in:
67
admin-vben/src/app/views/auth/components/user-log-detail.vue
Normal file
67
admin-vben/src/app/views/auth/components/user-log-detail.vue
Normal file
@@ -0,0 +1,67 @@
|
||||
<template>
|
||||
<el-dialog v-model="showDialog" :title="t('detail')" width="500px" :destroy-on-close="true">
|
||||
<el-scrollbar height="400px" v-loading="loading">
|
||||
<el-descriptions :column="1">
|
||||
<el-descriptions-item :label="t('username')" label-align="right">{{logData.username}}</el-descriptions-item>
|
||||
<el-descriptions-item :label="t('ip')" label-align="right">{{logData.ip}}</el-descriptions-item>
|
||||
<el-descriptions-item :label="t('operation')" label-align="right">{{logData.operation}}</el-descriptions-item>
|
||||
<el-descriptions-item :label="t('url')" label-align="right"><span class="break-all">{{logData.url}}</span></el-descriptions-item>
|
||||
<el-descriptions-item :label="t('type')" label-align="right">{{logData.type}}</el-descriptions-item>
|
||||
<el-descriptions-item :label="t('params')" label-align="right">
|
||||
<span class="break-all">{{logData.params}}</span>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</el-scrollbar>
|
||||
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button @click="showDialog = false">{{ t('cancel') }}</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue'
|
||||
import { t } from '@/lang'
|
||||
import { getLogInfo } from '@/app/api/site'
|
||||
|
||||
const showDialog = ref(false)
|
||||
const loading = ref(false)
|
||||
|
||||
interface LogData {
|
||||
username: string
|
||||
ip: string,
|
||||
url: string,
|
||||
type: string,
|
||||
params:any
|
||||
}
|
||||
|
||||
const logData = ref<LogData>({
|
||||
username: '',
|
||||
ip: '',
|
||||
url: '',
|
||||
type: '',
|
||||
params: ''
|
||||
})
|
||||
const getLogDetail = async () => {
|
||||
logData.value = await (await getLogInfo(id)).data
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
let id = 0
|
||||
const setFormData = async (row: any = null) => {
|
||||
loading.value = true
|
||||
if (row) {
|
||||
id = row.id
|
||||
getLogDetail()
|
||||
}
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
showDialog,
|
||||
setFormData
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
Reference in New Issue
Block a user