|
|
@@ -0,0 +1,57 @@
|
|
|
+<!-- 系统运行管理-终端登录日志-详情 -->
|
|
|
+<template>
|
|
|
+ <app-drawer :title="t('system.client_log.details.title')" width="900" v-model:show="show">
|
|
|
+ <app-table-details :title="t('system.client_log.details.subtitle')" :data="record" :label-width="160" :cell-props="detailProps" :column="2" />
|
|
|
+ <template #footer>
|
|
|
+ <el-button @click="onCancel">{{ t('operation.close') }}</el-button>
|
|
|
+ </template>
|
|
|
+ </app-drawer>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts" setup>
|
|
|
+import { shallowRef, PropType } from 'vue'
|
|
|
+import { i18n } from '@/stores'
|
|
|
+import { CellProp } from '@pc/components/base/table-details/types'
|
|
|
+import AppDrawer from '@pc/components/base/drawer/index.vue'
|
|
|
+import AppTableDetails from '@pc/components/base/table-details/index.vue'
|
|
|
+import { formatDate } from '@/filters'
|
|
|
+import { useEnum } from '@/hooks/enum'
|
|
|
+
|
|
|
+const { global: { t } } = i18n
|
|
|
+const clienttype = useEnum('clienttype')
|
|
|
+const logintype = useEnum('logintype')
|
|
|
+const operatetype = useEnum('operatetype')
|
|
|
+
|
|
|
+defineProps({
|
|
|
+ record: {
|
|
|
+ type: Object as PropType<Model.LoginLogViewRsp>,
|
|
|
+ required: true
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
+const show = shallowRef(true)
|
|
|
+
|
|
|
+const detailProps: CellProp[] = [
|
|
|
+ { prop: 'logincode', label: 'system.client_log.details.logincode' },
|
|
|
+ { prop: 'accountname', label: 'system.client_log.details.accountname' },
|
|
|
+ { prop: 'areaname', label: 'system.client_log.details.areaname' },
|
|
|
+ { prop: 'membername', label: 'system.client_log.details.membername' },
|
|
|
+ { prop: 'loginip', label: 'system.client_log.details.loginip' },
|
|
|
+ { prop: 'funcode', label: 'system.client_log.details.funcode' },
|
|
|
+ { prop: 'operatetime', label: 'system.client_log.details.operatetime', formatValue: (val) => formatDate(val) },
|
|
|
+ { prop: 'loginflowno', label: 'system.client_log.details.loginflowno' },
|
|
|
+ { prop: 'operatetype', label: 'system.client_log.details.operatetype', formatValue: (val) => operatetype.getEnumTypeName(val) },
|
|
|
+ { prop: 'softversion', label: 'system.client_log.details.softversion' },
|
|
|
+ { prop: 'clienttype', label: 'system.client_log.details.clienttype', formatValue: (val) => clienttype.getEnumTypeName(val) },
|
|
|
+ { prop: 'deviceid', label: 'system.client_log.details.deviceid' },
|
|
|
+ { prop: 'environmentinfo', label: 'system.client_log.details.environmentinfo' },
|
|
|
+ { prop: 'remark', label: 'system.client_log.details.remark' },
|
|
|
+ { prop: 'logintype', label: 'system.client_log.details.logintype', formatValue: (val) => logintype.getEnumTypeName(val) },
|
|
|
+ { prop: 'authid', label: 'system.client_log.details.authid' },
|
|
|
+ { prop: 'authtype', label: 'system.client_log.details.authtype' },
|
|
|
+]
|
|
|
+
|
|
|
+const onCancel = () => {
|
|
|
+ show.value = false
|
|
|
+}
|
|
|
+</script>
|