修正部分时间字段显示错误的bug
This commit is contained in:
parent
5fd498905c
commit
0bc1c1ca9c
@ -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('是否修改该记录使用状态为已完成?', '提示', {
|
||||
|
@ -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)
|
||||
|
@ -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 ? '是' : '否'
|
||||
|
@ -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()
|
||||
},
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user