浏览代码

排期事件编辑时时间不对

qinzhipeng_v 5 年之前
父节点
当前提交
10688c6735
共有 1 个文件被更改,包括 14 次插入9 次删除
  1. 14 9
      src/views/projectManage/taskList/taskViewDetails.vue

+ 14 - 9
src/views/projectManage/taskList/taskViewDetails.vue

@@ -186,7 +186,7 @@
             style="margin: 2% 3%; color: #333B4A; padding-bottom:2%;border-bottom:1px solid #E9E9E9;"
           >
             <el-col :span="12">
-              <div>排期汇总:{{ tiem_date.startTime }} ~ {{ tiem_date.endTime }}</div>
+              <div class="dateSet">排期汇总:{{ tiem_date.startTime }} ~ {{ tiem_date.endTime }}</div>
             </el-col>
           </el-row>
           <el-row
@@ -194,13 +194,13 @@
             style="margin: 2% 3%; color: #333B4A; padding-bottom:2%;border-bottom:1px solid #E9E9E9;"
           >
             <el-col :span="8">
-              <div>实际提测时间:{{ task_form.launchTestRealTime }}</div>
+              <div class="dateSet">实际提测时间:{{ task_form.launchTestRealTime }}</div>
             </el-col>
             <el-col :span="8">
-              <div>实际准出时间:{{ task_form.testFinishRealTime }}</div>
+              <div class="dateSet">实际准出时间:{{ task_form.testFinishRealTime }}</div>
             </el-col>
             <el-col :span="8">
-              <div>实际上线完成时间:{{ task_form.onlineRealTime }}</div>
+              <div class="dateSet">实际上线完成时间:{{ task_form.onlineRealTime }}</div>
             </el-col>
           </el-row>
           <el-row
@@ -208,7 +208,7 @@
             style="margin: 2% 3%; color: #333B4A; padding-bottom:2%;border-bottom:1px solid #E9E9E9; "
           >
             <el-col :span="8">
-              <div>预计上线版本:{{ task_form.preOnlineVersion }}</div>
+              <div class="dateSet">预计上线版本:{{ task_form.preOnlineVersion }}</div>
             </el-col>
             <!-- <el-col :span="8"><div>实际上线版本:<span>{{ task_form.value }}</span></div></el-col> -->
           </el-row>
@@ -652,8 +652,7 @@ export default {
         this.total = res.total
         this.tiem_date.startTime = res.data.scheduleListResponse.startTime // 开始时间
         this.tiem_date.endTime = res.data.scheduleListResponse.endTime // 结束时间
-        this.arr_event =
-          res.data.scheduleListResponse.schedulDetailResponseList
+        this.arr_event = res.data.scheduleListResponse.schedulDetailResponseList
         this.table_loading = false
         this.launchTestInfoDOS = res.data.launchTestInfoDOS // 提测
         this.dailyTestReports = res.data.dailyTestReports // 测试
@@ -859,13 +858,15 @@ export default {
         item.id === e ? (eventID = item) : ''
       })
       this.dialogFormVisible = true
+      var start1 = eventID.startTime.split(/\s+/)
+      var start2 = eventID.endTime.split(/\s+/)
       this.form = eventID
+      this.$set(this.form, 'date_start', [start1[0] + 'T' + start1[1] + '.000Z', start2[0] + 'T' + start2[1] + '.000Z'])
       this.options = this.form.peopleObject
-      if (this.form.peopleObject !== null || this.form.peopleObject !== '') {
+      if (this.form.peopleObject !== null && this.form.peopleObject !== '') {
         const peopleArr = this.form.peopleObject.map((eachPeople) => eachPeople.idap)
         this.$set(this.form, 'peoples', peopleArr)
       }
-      this.$set(this.form, 'date_start', [eventID.startTime, eventID.endTime])
       this.form.noHoliday === 1
         ? (this.form.noHoliday = false)
         : (this.form.noHoliday = true)
@@ -1367,4 +1368,8 @@ export default {
    color: #409EFF;
    cursor: pointer;
 }
+.dateSet {
+  font-size: 14px;
+  color: #333B4A;
+}
 </style>