Explorar el Código

计划排期优化

wyh hace 2 años
padre
commit
3cc0536619
Se han modificado 1 ficheros con 5 adiciones y 9 borrados
  1. 5 9
      itdmWeb/src/components/Gantt.vue

+ 5 - 9
itdmWeb/src/components/Gantt.vue

@@ -52,7 +52,7 @@ export default {
             label: response.deviceName
           }
         })
-        this.initData()
+        gantt.init(this.$refs.gantt);
       })
     },
     // 获取项目经理下拉列表
@@ -68,15 +68,16 @@ export default {
             label: response.name
           }
         })
-        this.initData()
+        gantt.init(this.$refs.gantt);
       })
     },
     // 获取传感器下拉列表
     getCgqlist(){
       getCgqList().then((res) => {
+        console.log(111111,res)
         this.tasks.collections.chuanganqi = res.map(response =>{
           return {
-            key: response.xuliehao,
+            key: response.id,
             value: response.id,
             label: response.xuliehao
           }
@@ -160,9 +161,6 @@ export default {
           notification.open({
             message: '注意',
             description: res.message,
-            // onClick: () => {
-            //   console.log('Notification Clicked!');
-            // },
           });
           this.getinit(this.tasks.queryParam)
         })
@@ -170,9 +168,6 @@ export default {
         notification.open({
           message: '注意',
           description: '数据为空,提交失败',
-          // onClick: () => {
-          //   console.log('Notification Clicked!');
-          // },
         });
       }
     },
@@ -410,6 +405,7 @@ export default {
           return gridDateToStr(date); 
           }
         }
+        // 右侧项目展示
         gantt.templates.task_text = function (start, end, task) {
           console.log(task)
           // return "<b>设备:</b> " + task.shebeiId + ",<b> 项目经理:</b> " + task.pm;