Handy_Cao 6 months ago
parent
commit
ca0c458225

+ 39 - 2
public/locales/en-US.json

@@ -281,6 +281,7 @@
         "baseinfo": "Basic Information",
         "extendinfo": "Extended Information",
         "pleasechoicedate": "Please Select Date",
+        "placeholder": "模糊匹配",
         "alert": "Alert",
         "annex": "Attachment",
         "annex1": "Attachment 1",
@@ -3409,8 +3410,44 @@
         }
     },
     "system": {
-        "client_log": {},
-        "exrate": {},
+        "client_log": {
+            "logincode": "登录账号",
+            "accountname": "客户名称",
+            "areaname": "所属机构",
+            "membername": "所属会员",
+            "loginip": "登录IP",
+            "logintype": "登录/登出",
+            "operatetime": "时间",
+            "loginretcode": "结果",
+            "operatetype": "操作类型",
+            "ishis": "歷史查詢",
+            "details": {
+                "title": "详细信息",
+                "subtitle": "终端登录日志信息",
+                "logincode": "登录账号",
+                "accountname": "客户名称",
+                "areaname": "所属机构",
+                "membername": "所属会员",
+                "loginip": "登录IP",
+                "funcode": "登录/登出",
+                "operatetime": "时间",
+                "loginflowno": "结果",
+                "operatetype": "操作类型",
+                "softversion": "软件版本",
+                "clienttype": "客户端类型",
+                "deviceid": "登录设备信息",
+                "environmentinfo": "登录软件环境信息",
+                "remark": "备注",
+                "logintype": "登录类型",
+                "authid": "三方认证ID",
+                "authtype": "三方认证类型"
+            }
+        },
+        "exrate": {
+            "oricurrencyid": "源币种",
+            "descurrencyid": "目标币种",
+            "exchangerate": "汇率值"
+        },
         "ip_blacklist": {},
         "login_failed": {
             "loginaccount": "Login Account",

+ 39 - 2
public/locales/th-TH.json

@@ -281,6 +281,7 @@
         "baseinfo": "ข้อมูลพื้นฐาน",
         "extendinfo": "ข้อมูลเพิ่มเติม",
         "pleasechoicedate": "กรุณาเลือกวันที่",
+        "placeholder": "模糊匹配",
         "alert": "แจ้งเตือน",
         "annex": "เอกสารแนบ",
         "annex1": "เอกสารแนบ 1",
@@ -3409,8 +3410,44 @@
         }
     },
     "system": {
-        "client_log": {},
-        "exrate": {},
+        "client_log": {
+            "logincode": "登录账号",
+            "accountname": "客户名称",
+            "areaname": "所属机构",
+            "membername": "所属会员",
+            "loginip": "登录IP",
+            "logintype": "登录/登出",
+            "operatetime": "时间",
+            "loginretcode": "结果",
+            "operatetype": "操作类型",
+            "ishis": "歷史查詢",
+            "details": {
+                "title": "详细信息",
+                "subtitle": "终端登录日志信息",
+                "logincode": "登录账号",
+                "accountname": "客户名称",
+                "areaname": "所属机构",
+                "membername": "所属会员",
+                "loginip": "登录IP",
+                "funcode": "登录/登出",
+                "operatetime": "时间",
+                "loginflowno": "结果",
+                "operatetype": "操作类型",
+                "softversion": "软件版本",
+                "clienttype": "客户端类型",
+                "deviceid": "登录设备信息",
+                "environmentinfo": "登录软件环境信息",
+                "remark": "备注",
+                "logintype": "登录类型",
+                "authid": "三方认证ID",
+                "authtype": "三方认证类型"
+            }
+        },
+        "exrate": {
+            "oricurrencyid": "源币种",
+            "descurrencyid": "目标币种",
+            "exchangerate": "汇率值"
+        },
         "ip_blacklist": {},
         "login_failed": {
             "loginaccount": "บัญชีผู้ใช้",

+ 39 - 2
public/locales/vi-VN.json

@@ -281,6 +281,7 @@
         "baseinfo": "Thông tin cơ bản",
         "extendinfo": "Thông tin mở rộng",
         "pleasechoicedate": "Vui lòng chọn ngày",
+        "placeholder": "模糊匹配",
         "alert": "Gợi ý",
         "annex": "Tệp đính kèm",
         "annex1": "Tệp đính kèm 1",
@@ -3409,8 +3410,44 @@
         }
     },
     "system": {
-        "client_log": {},
-        "exrate": {},
+        "client_log": {
+            "logincode": "登录账号",
+            "accountname": "客户名称",
+            "areaname": "所属机构",
+            "membername": "所属会员",
+            "loginip": "登录IP",
+            "logintype": "登录/登出",
+            "operatetime": "时间",
+            "loginretcode": "结果",
+            "operatetype": "操作类型",
+            "ishis": "歷史查詢",
+            "details": {
+                "title": "详细信息",
+                "subtitle": "终端登录日志信息",
+                "logincode": "登录账号",
+                "accountname": "客户名称",
+                "areaname": "所属机构",
+                "membername": "所属会员",
+                "loginip": "登录IP",
+                "funcode": "登录/登出",
+                "operatetime": "时间",
+                "loginflowno": "结果",
+                "operatetype": "操作类型",
+                "softversion": "软件版本",
+                "clienttype": "客户端类型",
+                "deviceid": "登录设备信息",
+                "environmentinfo": "登录软件环境信息",
+                "remark": "备注",
+                "logintype": "登录类型",
+                "authid": "三方认证ID",
+                "authtype": "三方认证类型"
+            }
+        },
+        "exrate": {
+            "oricurrencyid": "源币种",
+            "descurrencyid": "目标币种",
+            "exchangerate": "汇率值"
+        },
         "ip_blacklist": {},
         "login_failed": {
             "loginaccount": "Tài khoản đăng nhập",

+ 39 - 2
public/locales/zh-CN.json

@@ -281,6 +281,7 @@
         "baseinfo": "基本信息",
         "extendinfo": "扩展信息",
         "pleasechoicedate": "请选择日期",
+        "placeholder": "模糊匹配",
         "alert": "提示",
         "annex": "附件",
         "annex1": "附件1",
@@ -3409,8 +3410,44 @@
         }
     },
     "system": {
-        "client_log": {},
-        "exrate": {},
+        "client_log": {
+            "logincode": "登录账号",
+            "accountname": "客户名称",
+            "areaname": "所属机构",
+            "membername": "所属会员",
+            "loginip": "登录IP",
+            "logintype": "登录/登出",
+            "operatetime": "时间",
+            "loginretcode": "结果",
+            "operatetype": "操作类型",
+            "ishis": "歷史查詢",
+            "details": {
+                "title": "详细信息",
+                "subtitle": "终端登录日志信息",
+                "logincode": "登录账号",
+                "accountname": "客户名称",
+                "areaname": "所属机构",
+                "membername": "所属会员",
+                "loginip": "登录IP",
+                "funcode": "登录/登出",
+                "operatetime": "时间",
+                "loginflowno": "结果",
+                "operatetype": "操作类型",
+                "softversion": "软件版本",
+                "clienttype": "客户端类型",
+                "deviceid": "登录设备信息",
+                "environmentinfo": "登录软件环境信息",
+                "remark": "备注",
+                "logintype": "登录类型",
+                "authid": "三方认证ID",
+                "authtype": "三方认证类型"
+            }
+        },
+        "exrate": {
+            "oricurrencyid": "源币种",
+            "descurrencyid": "目标币种",
+            "exchangerate": "汇率值"
+        },
         "ip_blacklist": {},
         "login_failed": {
             "loginaccount": "登录账号",

+ 39 - 2
public/locales/zh-TW.json

@@ -281,6 +281,7 @@
         "baseinfo": "基本信息",
         "extendinfo": "擴展信息",
         "pleasechoicedate": "請選擇日期",
+        "placeholder": "模糊匹配",
         "alert": "提示",
         "annex": "附件",
         "annex1": "附件1",
@@ -3409,8 +3410,44 @@
         }
     },
     "system": {
-        "client_log": {},
-        "exrate": {},
+        "client_log": {
+            "logincode": "登录账号",
+            "accountname": "客户名称",
+            "areaname": "所属机构",
+            "membername": "所属会员",
+            "loginip": "登录IP",
+            "logintype": "登录/登出",
+            "operatetime": "时间",
+            "loginretcode": "结果",
+            "operatetype": "操作类型",
+            "ishis": "歷史查詢",
+            "details": {
+                "title": "详细信息",
+                "subtitle": "终端登录日志信息",
+                "logincode": "登录账号",
+                "accountname": "客户名称",
+                "areaname": "所属机构",
+                "membername": "所属会员",
+                "loginip": "登录IP",
+                "funcode": "登录/登出",
+                "operatetime": "时间",
+                "loginflowno": "结果",
+                "operatetype": "操作类型",
+                "softversion": "软件版本",
+                "clienttype": "客户端类型",
+                "deviceid": "登录设备信息",
+                "environmentinfo": "登录软件环境信息",
+                "remark": "备注",
+                "logintype": "登录类型",
+                "authid": "三方认证ID",
+                "authtype": "三方认证类型"
+            }
+        },
+        "exrate": {
+            "oricurrencyid": "源币种",
+            "descurrencyid": "目标币种",
+            "exchangerate": "汇率值"
+        },
         "ip_blacklist": {},
         "login_failed": {
             "loginaccount": "登錄賬號",

+ 57 - 0
src/packages/pc/views/system/client_log/components/details/index.vue

@@ -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>

+ 14 - 14
src/packages/pc/views/system/client_log/index.vue

@@ -63,15 +63,15 @@ const { dataList, total, pageSize, pageIndex, loading, run } = useRequest(queryl
 })
 
 const tableColumns = ref<Model.TableColumn[]>([
-    { field: 'logincode', label: '登录账号' },
-    { field: 'accountname', label: '客户名称	' },
-    { field: 'areaname', label: '所属机构' },
-    { field: 'membername', label: '所属会员' },
-    { field: 'loginip', label: '登录IP' },
-    { field: 'logintype', label: '登录/登出', formatValue: (val) => logintypeEnum.getEnumTypeName(val) },
-    { field: 'operatetime', label: '时间', formatValue: (val) => formatDate(val) },
-    { field: 'loginretcode', label: '结果', formatValue: (val) => loginretcodeEnum.getEnumTypeName(val) },
-    { field: 'operatetype', label: '操作类型', formatValue: (val) => operatetypeEnum.getEnumTypeName(val) },
+    { field: 'logincode', label: 'system.client_log.logincode' },
+    { field: 'accountname', label: 'system.client_log.accountname' },
+    { field: 'areaname', label: 'system.client_log.areaname' },
+    { field: 'membername', label: 'system.client_log.membername' },
+    { field: 'loginip', label: 'system.client_log.loginip' },
+    { field: 'logintype', label: 'system.client_log.logintype', formatValue: (val) => logintypeEnum.getEnumTypeName(val) },
+    { field: 'operatetime', label: 'system.client_log.operatetime', formatValue: (val) => formatDate(val) },
+    { field: 'loginretcode', label: 'system.client_log.loginretcode', formatValue: (val) => loginretcodeEnum.getEnumTypeName(val) },
+    { field: 'operatetype', label: 'system.client_log.operatetype', formatValue: (val) => operatetypeEnum.getEnumTypeName(val) },
     { field: 'operate', label: 'common.operate', fixed: 'right' }
 ])
 
@@ -79,17 +79,17 @@ const { filterOption, getQueryParams, resetFilters } = useDataFilter<Model.Login
     filters: [
         {
             field: 'logincode',
-            label: '登录账号',
-            placeholder: '模糊匹配',
+            label: t('system.client_log.logincode'),
+            placeholder: t('common.placeholder'),
         },
         {
             field: 'accountname',
-            label: '客户名称',
-            placeholder: '模糊匹配',
+            label: t('system.client_log.accountname'),
+            placeholder: t('common.placeholder'),
         },
         {
             field: 'ishis',
-            label: '历史查询',
+            label: t('system.client_log.ishis'),
             value: 0
         },
     ],

+ 3 - 3
src/packages/pc/views/system/exrate/index.vue

@@ -51,9 +51,9 @@ const { dataList, total, pageSize, pageIndex, loading, run } = useRequest(queryr
 })
 
 const tableColumns = ref<Model.TableColumn[]>([
-    { field: 'oricurrencyid', label: '源币种', formatValue: (val) => currencyEnum.getEnumTypeName(val) },
-    { field: 'descurrencyid', label: '目标币种', formatValue: (val) => currencyEnum.getEnumTypeName(val) },
-    { field: 'exchangerate', label: '汇率值' },
+    { field: 'oricurrencyid', label: 'system.exrate.oricurrencyid', formatValue: (val) => currencyEnum.getEnumTypeName(val) },
+    { field: 'descurrencyid', label: 'system.exrate.descurrencyid', formatValue: (val) => currencyEnum.getEnumTypeName(val) },
+    { field: 'exchangerate', label: 'system.exrate.exchangerate' },
     { field: 'operate', label: 'common.operate', fixed: 'right' }
 ])