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) {