From 0bc1c1ca9c81b9a72c1c9ce1a77a6ba36c6061bc Mon Sep 17 00:00:00 2001 From: zhl Date: Wed, 27 May 2020 11:45:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=83=A8=E5=88=86=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=AD=97=E6=AE=B5=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/games/details/gift/record.vue | 2 +- src/views/games/details/mail.vue | 4 ++-- src/views/games/details/reward.vue | 2 +- src/views/sys/logs.vue | 4 ++-- src/views/sys/users.vue | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/games/details/gift/record.vue b/src/views/games/details/gift/record.vue index 004f96e..b066f64 100644 --- a/src/views/games/details/gift/record.vue +++ b/src/views/games/details/gift/record.vue @@ -271,7 +271,7 @@ export default { return cellValue ? '已使用' : '未使用' }, formatDate(row, column, cellValue, index) { - return cellValue ? moment(cellValue).format('YYYY-MM-DD HH:MM:SS') : '-' + return cellValue ? moment(cellValue).format('YYYY-MM-DD HH:mm:ss') : '-' }, useCode(row) { this.$confirm('是否修改该记录使用状态为已完成?', '提示', { diff --git a/src/views/games/details/mail.vue b/src/views/games/details/mail.vue index f89fe23..e0265f1 100644 --- a/src/views/games/details/mail.vue +++ b/src/views/games/details/mail.vue @@ -535,7 +535,7 @@ export default { .then(() => { this.modalForm.gameid = this.gameInfo.game_id - this.saveMail({ data: this.modalForm, isDev: this.isDev }) + this.saveMail({ data: this.modalForm, isDev: this.isDev, uid: this.gameInfo._id }) .then(res => { this.$message.success('保存成功!') this.queryMails() @@ -637,7 +637,7 @@ export default { } }, formdate(row, column, cellValue, index) { - return cellValue ? moment(cellValue).format('YYYY-MM-DD HH:MM:SS') : '-' + return cellValue ? moment(cellValue).format('YYYY-MM-DD HH:mm:ss') : '-' }, rowClick(row, column, event) { this.editReward(row) diff --git a/src/views/games/details/reward.vue b/src/views/games/details/reward.vue index 9eeca88..a8f9885 100644 --- a/src/views/games/details/reward.vue +++ b/src/views/games/details/reward.vue @@ -879,7 +879,7 @@ export default { return cellValue ? '已启用' : '已禁用' }, formdate(row, column, cellValue, index) { - return cellValue ? moment(cellValue).format('YYYY-MM-DD HH:MM:SS') : '-' + return cellValue ? moment(cellValue).format('YYYY-MM-DD HH:mm:ss') : '-' }, formPublished(row, column, cellValue, index) { return cellValue === true ? '是' : '否' diff --git a/src/views/sys/logs.vue b/src/views/sys/logs.vue index c77b9ef..35a961e 100644 --- a/src/views/sys/logs.vue +++ b/src/views/sys/logs.vue @@ -174,12 +174,12 @@ export default { }) }, formDate(row, column, cellValue, index) { - return cellValue ? moment(cellValue).format('YYYY-MM-DD HH:MM:SS') : '-' + return cellValue ? moment(cellValue).format('YYYY-MM-DD HH:mm:ss') : '-' }, viewLog(row) { this.modalForm = JSON.parse(JSON.stringify(row)) this.modalForm.createdAt = moment(this.modalForm.createdAt).format( - 'YYYY-MM-DD HH:MM:SS' + 'YYYY-MM-DD HH:mm:ss' ) this.openModal() }, diff --git a/src/views/sys/users.vue b/src/views/sys/users.vue index 2bf7719..737dad8 100644 --- a/src/views/sys/users.vue +++ b/src/views/sys/users.vue @@ -231,20 +231,20 @@ export default { ) }, formDate(row, column, cellValue, index) { - return cellValue ? moment(cellValue).format('YYYY-MM-DD HH:MM:SS') : '-' + return cellValue ? moment(cellValue).format('YYYY-MM-DD HH:mm:ss') : '-' }, editUser(row) { this.isNew = false this.openModal() this.modalForm = JSON.parse(JSON.stringify(row)) this.modalForm.updatedAt = this.modalForm.updatedAt - ? moment(this.modalForm.updatedAt).format('YYYY-MM-DD HH:MM:SS') + ? moment(this.modalForm.updatedAt).format('YYYY-MM-DD HH:mm:ss') : '' this.modalForm.createdAt = this.modalForm.createdAt - ? moment(this.modalForm.createdAt).format('YYYY-MM-DD HH:MM:SS') + ? moment(this.modalForm.createdAt).format('YYYY-MM-DD HH:mm:ss') : '' this.modalForm.lastLogin = this.modalForm.lastLogin - ? moment(this.modalForm.lastLogin).format('YYYY-MM-DD HH:MM:SS') + ? moment(this.modalForm.lastLogin).format('YYYY-MM-DD HH:mm:ss') : '' }, delUser(row) {