4e1f81c6 by lttnew

引入文件

1 parent 6da7f1d5
......@@ -172,6 +172,7 @@ import { ref, reactive, onMounted, computed } from 'vue';
import { onReachBottom, onLoad } from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '@/config.js'
import dayjs from 'dayjs'
const app = getApp()
const deptType = ref(0)
......@@ -302,12 +303,8 @@ const getOrderLabel = (item) => {
const filterTime = (row) => {
if (!row) return ''
const date = new Date(String(row).replace(/-/g, '/'))
if (Number.isNaN(date.getTime())) return ''
const year = date.getFullYear()
const month = String(date.getMonth() + 1).padStart(2, '0')
const day = String(date.getDate()).padStart(2, '0')
return `${year}年${month}月${day}日`
return dayjs(String(row).replace(/-/g, '/')).format('YYYY年MM月DD日')
}
const filterType = (row) => {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!