|
@@ -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
|