BUG 28221

This commit is contained in:
aixianling
2022-03-15 16:01:55 +08:00
parent 11666a26ab
commit 3fb8629a21

View File

@@ -386,10 +386,10 @@ export default {
this.formData[fieldDbName] = `${e.year}-${e.month}-${e.day}` this.formData[fieldDbName] = `${e.year}-${e.month}-${e.day}`
} }
if (this.formDataList[this.datePropIndex][this.dateIndex].type == 'datetime') { //年月日时分秒 if (this.formDataList[this.datePropIndex][this.dateIndex].type == 'datetime') { //年月日时分秒
this.formData[fieldDbName] = `${e.year}-${e.month}-${e.day} ${e.hour}-${e.minute}-${e.second}` this.formData[fieldDbName] = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}:${e.second}`
} }
if (this.formDataList[this.datePropIndex][this.dateIndex].type == 'time') { //时分秒 if (this.formDataList[this.datePropIndex][this.dateIndex].type == 'time') { //时分秒
this.formData[fieldDbName] = `${e.hour}-${e.minute}-${e.second}` this.formData[fieldDbName] = `${e.hour}:${e.minute}:${e.second}`
} }
}, },
submit() { submit() {