NEZ-1479 feat:保存接口 查询接口 统一时间格式为YYYY-MM-DD HH:mm:ss

This commit is contained in:
zhangyu
2022-01-06 13:50:56 +08:00
parent f939e58ccc
commit d7690e3dcd
3 changed files with 12 additions and 7 deletions

View File

@@ -56,7 +56,6 @@
v-model="scope.row[item.prop]"
prefix-icon=" " size="small" ref="calendar"
:format="timeFormatStrToDatePickFormat(timeFormatMain)"
:value-format="timeFormatStrToDatePickFormat(timeFormatMain)"
type="datetime"
popper-class="item-system-table right-public-box-dropdown-top right-box-select-top"
:picker-options="pickerOptions"
@@ -194,7 +193,9 @@ export default {
},
save: function (obj) {
const copy = JSON.parse(JSON.stringify(obj))
copy.expireAt = this.timezoneToUtcTimeStr(copy.expireAt)
console.log(copy.expireAt)
copy.expireAt = new Date(copy.expireAt).getTime()
copy.expireAt = this.timezoneToUtcTimeStr(copy.expireAt, 'YYYY-MM-DD HH:mm:ss')
if (copy.role) {
copy.roleId = copy.role.id
}