4e1f81c6 by lttnew

引入文件

1 parent 6da7f1d5
...@@ -172,6 +172,7 @@ import { ref, reactive, onMounted, computed } from 'vue'; ...@@ -172,6 +172,7 @@ import { ref, reactive, onMounted, computed } from 'vue';
172 import { onReachBottom, onLoad } from '@dcloudio/uni-app' 172 import { onReachBottom, onLoad } from '@dcloudio/uni-app'
173 import * as api from '@/common/api.js' 173 import * as api from '@/common/api.js'
174 import config from '@/config.js' 174 import config from '@/config.js'
175 import dayjs from 'dayjs'
175 const app = getApp() 176 const app = getApp()
176 const deptType = ref(0) 177 const deptType = ref(0)
177 178
...@@ -302,12 +303,8 @@ const getOrderLabel = (item) => { ...@@ -302,12 +303,8 @@ const getOrderLabel = (item) => {
302 303
303 const filterTime = (row) => { 304 const filterTime = (row) => {
304 if (!row) return '' 305 if (!row) return ''
305 const date = new Date(String(row).replace(/-/g, '/')) 306
306 if (Number.isNaN(date.getTime())) return '' 307 return dayjs(String(row).replace(/-/g, '/')).format('YYYY年MM月DD日')
307 const year = date.getFullYear()
308 const month = String(date.getMonth() + 1).padStart(2, '0')
309 const day = String(date.getDate()).padStart(2, '0')
310 return `${year}年${month}月${day}日`
311 } 308 }
312 309
313 const filterType = (row) => { 310 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!