|
@@ -56,6 +56,7 @@ export default {
|
|
|
this.getCgqlist();
|
|
|
this.getManagerList();
|
|
|
this.initDictConfig();
|
|
|
+ // this.initData()
|
|
|
},
|
|
|
methods: {
|
|
|
// 获取设备下拉列表
|
|
@@ -331,8 +332,13 @@ export default {
|
|
|
}
|
|
|
// 右侧项目展示
|
|
|
gantt.templates.task_text = function (start, end, task) {
|
|
|
- // console.log(task)
|
|
|
- return task.worker + ", " + task.deviceName;
|
|
|
+ console.log("右侧展示",task)
|
|
|
+ if (task.parent == 0) {
|
|
|
+ return task.pm + ", " + task.deviceName;
|
|
|
+ } else {
|
|
|
+ return task.worker + ", " + task.deviceName;
|
|
|
+ }
|
|
|
+ // return task.worker + ", " + task.deviceName;
|
|
|
};
|
|
|
// 灯箱多选框
|
|
|
gantt.form_blocks["multiselect"] = {
|
|
@@ -489,7 +495,7 @@ export default {
|
|
|
gantt.attachEvent("onBeforeTaskDelete", function(id,item){
|
|
|
var select={id:id}
|
|
|
delProjectJl(select).then((res) => {
|
|
|
- console.log(res)
|
|
|
+ console.log("删除",res)
|
|
|
if (res.success) {
|
|
|
return true;
|
|
|
} else {
|