瀏覽代碼

时区修改

PrinceLee 5 年之前
父節點
當前提交
0515c4e2b7
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      src/views/Platform/presentation/presentationReport.vue

+ 5 - 3
src/views/Platform/presentation/presentationReport.vue

@@ -54,14 +54,14 @@
           </el-select>
         </el-form-item>
         <el-form-item label="计划提测时间" prop="planLaunchTime">
-          <el-date-picker v-model="fromDev.planLaunchTime" size="small" type="date" style="width:25vw;" placeholder="选择日期" />
+          <el-date-picker v-model="fromDev.planLaunchTime" value-format="yyyy-MM-dd HH:mm:ss" size="small" type="date" style="width:25vw;" placeholder="选择日期" />
         </el-form-item>
       </div>
 
       <div class="double">
         <el-form-item label=" prd地址 " prop="prdUrl"><el-input v-model="fromDev.prdUrl" size="small" style="width:15vw;" placeholder="请提供wiki链接" /></el-form-item>
         <el-form-item label="实际提测时间" prop="launchTime">
-          <el-date-picker v-model="fromDev.launchTime" type="date" size="small" style="width:25vw;" placeholder="选择日期" />
+          <el-date-picker v-model="fromDev.launchTime" value-format="yyyy-MM-dd HH:mm:ss" type="date" size="small" style="width:25vw;" placeholder="选择日期" />
         </el-form-item>
       </div>
       <div class="double">
@@ -238,7 +238,9 @@ export default {
           typeof (this.editorContent) === 'string' ? this.fromDev.joinTest = this.editorContent : ''
           typeof (this.DetailsOfProposal) === 'string' ? this.fromDev.moduleInfo = this.DetailsOfProposal : ''
           this.fromDev.lateStatus = this.lateStatus
-          this.fromDev.devTimeEnd = moment(this.fromDev.devTimeEnd).add(1, 'day').subtract(1, 'second').format('YYYY-MM-DD HH:mm:ss')
+          this.fromDev.devTimeEnd = moment(this.fromDev.devTimeEnd).endOf('day').format('YYYY-MM-DD HH:mm:ss')
+          this.fromDev.planLaunchTime = moment(this.fromDev.planLaunchTime).endOf('day').format('YYYY-MM-DD HH:mm:ss')
+          this.fromDev.launchTime = moment(this.fromDev.launchTime).endOf('day').format('YYYY-MM-DD HH:mm:ss')
           this.fromDev.id === undefined ? this.fromDev.id = this.clien : ''
           this.userData = { id: '', ename: this.userInformation, name: this.userNames }
           this.objData = { launchTestInfo: this.fromDev, user: this.userData }