时间戳bug修复,改完 00 : 00 :00

This commit is contained in:
ljx 2024-05-23 17:43:35 +08:00
parent fbb654dadc
commit e997587d3d
2 changed files with 3 additions and 2 deletions

View File

@ -77,7 +77,8 @@ export default {
if (!value) {
data[saveField] = null;
}else{
data[saveField] = parseInt(new Date(value).getTime() / 1000); // 转换为时间戳
let date = value.replace('-','.')
data[saveField] = parseInt(new Date(date).getTime() / 1000); // 转换为时间戳
}
}
else if (rule.dataRule.type == "string") { // 如果是字符串

View File

@ -1118,7 +1118,7 @@ export default {
ok() {
let save = () => {
console.log(this.formOptions.data.return_date)
// this.formOptions.data.outsourcing_driver_phone
this.formOptions.data.outsourcing_driver_phone = String(this.formOptions.data.outsourcing_driver_phone)
// 2018-01-01