简历日期添加修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
2ed051e25b
commit
3f0573eeb3
|
@ -254,7 +254,7 @@
|
|||
<el-date-picker
|
||||
v-model="form.StartTime"
|
||||
type="year"
|
||||
value-format="yyyy-MM-DD"
|
||||
value-format="yyyy"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
|
@ -265,7 +265,7 @@
|
|||
<el-date-picker
|
||||
v-model="form.EndTime"
|
||||
type="year"
|
||||
value-format="yyyy-MM-DD"
|
||||
value-format="yyyy"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
|
@ -904,12 +904,23 @@ export default {
|
|||
try {
|
||||
if (key === 'clinicalTrials') {
|
||||
let validate = await this.$refs.clinicalTrialsFrom.validate()
|
||||
console.log(validate, 'validate')
|
||||
if (!validate) return false
|
||||
this.form.DoctorId = this.reviewerId
|
||||
if (this.trialId) {
|
||||
this.form.TrialId = this.trialId
|
||||
}
|
||||
if (this.form.StartTime) {
|
||||
let arr = this.form.StartTime.split("-")
|
||||
if (arr.length <= 1) {
|
||||
this.form.StartTime = `${this.form.StartTime}-01-01`
|
||||
}
|
||||
}
|
||||
if (this.form.EndTime) {
|
||||
let arr = this.form.EndTime.split("-")
|
||||
if (arr.length <= 1) {
|
||||
this.form.EndTime = `${this.form.EndTime}-12-31`
|
||||
}
|
||||
}
|
||||
this.loading = true
|
||||
let res = await addOrUpdateTrialExperience(this.form)
|
||||
this.loading = false
|
||||
|
|
Loading…
Reference in New Issue