ソースを参照

优化排期锁定

qinzhipeng_v 5 年 前
コミット
a62fe7bc95

+ 1 - 0
src/views/projectManage/taskList/components/scheduleList.vue

@@ -192,6 +192,7 @@ export default {
           ...item,
           peopleList: item.peopleObjectList.map(item => item.name).join(',')
         }))
+        this.$emit('updataData')
       }
     },
     addSchedule() {

+ 10 - 1
src/views/projectManage/taskList/taskViewDetail.vue

@@ -139,7 +139,7 @@
           </section>
           <el-container>
             <el-main style="padding: 0;">
-              <schedule-list :id="taskId" ref="taskSchedule" :showunlock="showunlock" :type-list="taskScheduleEvent" class-name="white" />
+              <schedule-list :id="taskId" ref="taskSchedule" :showunlock="showunlock" :type-list="taskScheduleEvent" class-name="white" @updataData="getSchedule" />
             </el-main>
             <el-aside v-if="lockHide" class="SchedulingAside">
               <div v-for="(item, index) in SchedulingContent" :key="index" class="SchedulingDiv" @click="clickScheduling(item)">
@@ -388,6 +388,15 @@ export default {
       this.isParentRequireScheduleLocked = res1.data.isParentRequireScheduleLocked
       this.$refs.taskSchedule.listByTask(this.taskId)
     },
+    async getSchedule() {
+      this.scheduleVisble = false
+      const res = await scheduleGetTaskScheduleHistory(this.taskId)
+      this.SchedulingContent = res.data
+      const res1 = await listByTask(this.taskId)
+      this.isScheduleLocked = res1.data.isScheduleLocked
+      this.tips = res1.data.tips
+      this.isParentRequireScheduleLocked = res1.data.isParentRequireScheduleLocked
+    },
     async clickScheduling(ele) {
       this.showunlock = false
       this.ScheduId = ele.id