时间格式处理

uat_us
wangxiaoshuang 2024-06-19 16:49:26 +08:00
parent 5336bfd709
commit a15e908e76
1 changed files with 2 additions and 2 deletions

View File

@ -237,11 +237,11 @@ export default {
var dateTime
if (this.clinicalTrialForm.StartTime) {
dateTime = new Date(this.clinicalTrialForm.StartTime)
this.clinicalTrialForm.StartTime = moment(new Date(dateTime.setDate(dateTime.getDate()+1))).format('YYYY')
this.clinicalTrialForm.StartTime = moment(new Date(dateTime.setDate(dateTime.getDate()+1))).format('YYYY') + "-01"
}
if (this.clinicalTrialForm.EndTime) {
dateTime = new Date(this.clinicalTrialForm.EndTime)
this.clinicalTrialForm.EndTime = moment(new Date(dateTime.setDate(dateTime.getDate()+1))).format("YYYY")
this.clinicalTrialForm.EndTime = moment(new Date(dateTime.setDate(dateTime.getDate()+1))).format("YYYY") + "-01"
}
addOrUpdateTrialExperience(this.clinicalTrialForm).then(res => {
this.isDisabled = false