From e47c36915710db01a0140e5321678fd2aa34e536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=86=9B?= <510423039@qq.com> Date: Thu, 17 Nov 2022 12:25:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ES=E6=97=A5=E5=BF=97=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=A4=9A=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/elasticSearch/ElasticSearch.ts | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/vben28/src/views/admin/elasticSearch/ElasticSearch.ts b/vben28/src/views/admin/elasticSearch/ElasticSearch.ts index 81d9e347..0bc7d8f2 100644 --- a/vben28/src/views/admin/elasticSearch/ElasticSearch.ts +++ b/vben28/src/views/admin/elasticSearch/ElasticSearch.ts @@ -1,52 +1,52 @@ -import { FormSchema } from "/@/components/Table"; -import { BasicColumn } from "/@/components/Table"; -import { useI18n } from "/@/hooks/web/useI18n"; +import { FormSchema } from '/@/components/Table'; +import { BasicColumn } from '/@/components/Table'; +import { useI18n } from '/@/hooks/web/useI18n'; const { t } = useI18n(); -import { formatToDateTime,dateUtil } from '/@/utils/dateUtil'; +import { formatToDateTime, dateUtil } from '/@/utils/dateUtil'; import { EsLogServiceProxy, PagingElasticSearchLogInput, - PagingElasticSearchLogOutputCustomePagedResultDto -} from "/@/services/ServiceProxies"; + PagingElasticSearchLogOutputCustomePagedResultDto, +} from '/@/services/ServiceProxies'; export const searchFormSchema: FormSchema[] = [ { - field: "filter", - component: "Input", - label: t("common.key"), + field: 'filter', + component: 'Input', + label: t('common.key'), labelWidth: 80, colProps: { - span: 6 - } + span: 6, + }, }, { - field: "time", - component: "RangePicker", - label: "创建时间:", + field: 'time', + component: 'RangePicker', + label: t('common.creationTime'), labelWidth: 80, colProps: { span: 6 }, - defaultValue: [dateUtil().subtract(0, "days"), dateUtil().add(1, "days")] - } + defaultValue: [dateUtil().subtract(0, 'days'), dateUtil().add(1, 'days')], + }, ]; export const tableColumns: BasicColumn[] = [ { - title: t("routes.admin.logLevel"), - dataIndex: "level", - width: 200 + title: t('routes.admin.logLevel'), + dataIndex: 'level', + width: 200, }, { - title: t("common.creationTime"), - dataIndex: "creationTime", + title: t('common.creationTime'), + dataIndex: 'creationTime', customRender: ({ text }) => { return formatToDateTime(text); }, - width: 200 + width: 200, }, { - title: t("routes.admin.logContent"), - dataIndex: "message" - } + title: t('routes.admin.logContent'), + dataIndex: 'message', + }, ]; /** @@ -55,7 +55,7 @@ export const tableColumns: BasicColumn[] = [ * @returns */ export async function getElasticSearchLogAsync( - request: PagingElasticSearchLogInput + request: PagingElasticSearchLogInput, ): Promise { const _elasticSearchServiceProxy = new EsLogServiceProxy(); return await _elasticSearchServiceProxy.page(request);