qinzhipeng_v 5 năm trước cách đây
mục cha
commit
18c17e319a

+ 6 - 2
src/views/projectManage/taskList/components/scheduleList.vue

@@ -146,7 +146,10 @@ export default {
   watch: {
     id: {
       handler(newV, oldV) {
-        this.listByTask(newV)
+        console.log(newV)
+        this.$nextTick(() => {
+          this.listByTask(newV)
+        })
       },
       immediate: true
     },
@@ -185,8 +188,9 @@ export default {
     // },
     async listByTask(id) { // 获取排期列表
       const res = await listByTask(id)
+
       if (res.code === 200) {
-        this.scheduleList = res.data.schedulDetailResponses
+        this.scheduleList = res.data.scheduleDetailRespons
         this.scheduleDetail = res.data || {}
         this.scheduleList = this.scheduleList.map(item => ({
           ...item,