diff --git a/src/components/gantt-v/gantt.vue b/src/components/gantt-v/gantt.vue
index d0c52d14e6918d49045030ce62128f8a0a58302c..a0e3904c8c49a07be66c6e703e29480a1c8c18e5 100644
--- a/src/components/gantt-v/gantt.vue
+++ b/src/components/gantt-v/gantt.vue
@@ -61,6 +61,7 @@
:class="' block-type-' + task.type"
@mousedown="onMouseDown($event, task.id, rowIndex)"
@contextmenu.prevent="onRightClick($event, item[listKey], task)"
+ @mouseup="handleMouseUpTask($event, task, index)"
@click.stop="onClicked(task, index)">
{{ task.title }}
@@ -71,7 +72,7 @@
{{ item.remark }}
-
+
this.$refs.ganttYd.offsetTop ) {
+ console.log(true,'11111111111', this.ganttData);
+ this.datas.push(task)
+ setTimeout(() => {
+ this.ganttData.forEach((item, index) => {
+ if (item.id == task.equipmentId) {
+ console.log(index,this.ganttData[index].blockList.findIndex(ite => ite.id == task.id),'this.ganttData[index].blockList.findIndex(ite => ite.id == task.id)');
+ let i = this.ganttData[index].blockList.findIndex(ite => ite.id == task.id)
+ this.ganttData[index].blockList.splice(i, 1);
+ }
+ })
+ },100)
+
+
+ }
+ // let gttYdHeight = this.$refs.ganttYd.clientHeight
+ // let gttYdWidth = this.$refs.ganttYd.clientWidth
+ },
handleMouseUp(task, index) {
setTimeout(() => {
this.datas.splice(index,index,1)