时间格式处理
parent
5336bfd709
commit
a15e908e76
|
@ -237,11 +237,11 @@ export default {
|
||||||
var dateTime
|
var dateTime
|
||||||
if (this.clinicalTrialForm.StartTime) {
|
if (this.clinicalTrialForm.StartTime) {
|
||||||
dateTime = new Date(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) {
|
if (this.clinicalTrialForm.EndTime) {
|
||||||
dateTime = new Date(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 => {
|
addOrUpdateTrialExperience(this.clinicalTrialForm).then(res => {
|
||||||
this.isDisabled = false
|
this.isDisabled = false
|
||||||
|
|
Loading…
Reference in New Issue