From a34acfc9181792e2c4a6fa113bd9e21780c5224d Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期五, 25 十月 2024 16:00:05 +0800 Subject: [PATCH] 后台修改 --- src/views/project/yw/systemManage/userMgr/optDlg/OptDlg.vue | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/views/project/yw/systemManage/userMgr/optDlg/OptDlg.vue b/src/views/project/yw/systemManage/userMgr/optDlg/OptDlg.vue index 7a88ced..b2aa6e5 100644 --- a/src/views/project/yw/systemManage/userMgr/optDlg/OptDlg.vue +++ b/src/views/project/yw/systemManage/userMgr/optDlg/OptDlg.vue @@ -85,6 +85,7 @@ import { userSexMap } from '../types'; import * as userApi from '/@/api/auth/user'; +import { formatDate } from '/@/utils/formatTime'; const props = defineProps(['item', 'roleList']); const emit = defineEmits(['update', 'insert']); @@ -145,6 +146,7 @@ const submitFormValue = async () => { const valid = await dialogFormRef.value.validate().catch(() => {}); if (!valid) return; + const updateTime = formatDate(new Date()); if (isEditDialog.value) { const res = await userApi.updateUserInfoByPost(dialogFormValue.value); @@ -157,8 +159,9 @@ const res = await userApi.addUserInfoByPost(sendForm); const newData = { - id: res.user_id, + user_id: res.user_id, ...dialogFormValue.value, + create_time: updateTime.slice(0, 10), }; emit('insert', newData); // tableData.value.push(newData); -- Gitblit v1.9.3