From 1396ff75d3d7a5018fd1919f28c7a2bb358c0946 Mon Sep 17 00:00:00 2001 From: ChenQiuYu Date: Tue, 20 May 2025 15:27:14 +0800 Subject: [PATCH] dev --- .../social/inventoryUp/List_3501.vue | 22 ++++++--------- .../social/inventoryUp/List_3502.vue | 20 +++++++------- .../social/inventoryUp/List_3503.vue | 15 +++-------- .../social/inventoryUp/List_3505.vue | 27 ++++++++----------- 4 files changed, 34 insertions(+), 50 deletions(-) diff --git a/src/components/social/inventoryUp/List_3501.vue b/src/components/social/inventoryUp/List_3501.vue index 4843a56..c8de44c 100644 --- a/src/components/social/inventoryUp/List_3501.vue +++ b/src/components/social/inventoryUp/List_3501.vue @@ -3,6 +3,7 @@ import {ref, computed, onMounted} from 'vue' import {ElInput, ElTable, ElTableColumn, ElPagination} from 'element-plus' import {post} from "@/utils/request.ts"; import {Search} from "@element-plus/icons-vue"; +import {formatDate} from "@/utils/dateUtils"; interface TableItem { name: string; @@ -62,13 +63,6 @@ let changePage = (value: number) => { let change_search = () => { init() } -const formatDate = (isoStr: any) => { - if (!isoStr) { - return '' - } - const date = new Date(isoStr); - return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')}`; -}