changeStartTime(val){debuggerthis.startT = val// this.startTime = parseInt(val.split('-').join(''))this.startTime = moment(val).unix() * 1000 //开始时间毫秒if(this.endTime){this.endTime = moment(this.endT).unix() * 1000 //结束时间毫秒if(this.startTime - this.endTime >= 0){this.$message.warning('培训开始时间不能大于培训结束时间!')this.form.trainTime = ''this.form.trainDuration = ''}else{const sc = (this.endTime - this.startTime) /1000 / 60 / 60 + 'h'this.form.trainDuration = sc}}},changeEndTime(val){this.endT = val// this.endTime = parseInt(val.split('-').join(''))this.endTime = moment(val).unix() * 1000 //开始时间毫秒if(this.startTime){this.startTime = moment(this.startT).unix() * 1000 //结束时间毫秒if(this.endTime - this.startTime <=0 ){this.$message.warning('培训结束时间不能小于培训开始时间!')this.form.completeTime = ''this.form.trainDuration = ''}else{const sc = (this.endTime - this.startTime) /1000 / 60 / 60 + 'h'this.form.trainDuration = sc}}},