|
|
@@ -14,6 +14,7 @@ import { ElMessage, ElDivider, ElMessageBox, ElTag } from 'element-plus'
|
|
|
import { Dialog } from '@/components/Dialog'
|
|
|
import { TableImage } from '@/components/tableImage'
|
|
|
import { designerData } from '@/api/staff/types'
|
|
|
+import { formatToDate } from '@/utils/dateUtil'
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
const { tableRegister, tableState, tableMethods } = useTable({
|
|
|
@@ -217,7 +218,7 @@ const action = async (row: any, type: string) => {
|
|
|
phone: row.phone,
|
|
|
avatar: [row.avatar],
|
|
|
gender: row.gender,
|
|
|
- birth_day_time: row.birth_day_time,
|
|
|
+ birth_day_time: formatToDate(row.birth_day_time * 1000),
|
|
|
province: row.province,
|
|
|
city: row.city,
|
|
|
area: row.area,
|
|
|
@@ -248,7 +249,7 @@ const save = async () => {
|
|
|
phone: formData.phone,
|
|
|
avatar: formData.avatar[0],
|
|
|
gender: formData.gender,
|
|
|
- birth_day_time: formData.birth_day_time,
|
|
|
+ birth_day_time: formatToDate(formData.birth_day_time),
|
|
|
province: formData.province,
|
|
|
city: formData.city,
|
|
|
area: formData.area,
|