时间戳bug修复,改完 00 : 00 :00
This commit is contained in:
parent
fbb654dadc
commit
e997587d3d
|
|
@ -77,7 +77,8 @@ export default {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
data[saveField] = null;
|
data[saveField] = null;
|
||||||
}else{
|
}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") { // 如果是字符串
|
else if (rule.dataRule.type == "string") { // 如果是字符串
|
||||||
|
|
|
||||||
|
|
@ -1118,7 +1118,7 @@ export default {
|
||||||
ok() {
|
ok() {
|
||||||
|
|
||||||
let save = () => {
|
let save = () => {
|
||||||
|
console.log(this.formOptions.data.return_date)
|
||||||
// this.formOptions.data.outsourcing_driver_phone转换为字符串
|
// this.formOptions.data.outsourcing_driver_phone转换为字符串
|
||||||
this.formOptions.data.outsourcing_driver_phone = String(this.formOptions.data.outsourcing_driver_phone)
|
this.formOptions.data.outsourcing_driver_phone = String(this.formOptions.data.outsourcing_driver_phone)
|
||||||
// 将日期2018-01-01 转换为时间戵
|
// 将日期2018-01-01 转换为时间戵
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue