Browse Source

设置双击返回列数据

yuhan 1 year ago
parent
commit
2a130976bb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      itdmWeb/src/components/module-iTDM/uGantt/index.vue

+ 4 - 1
itdmWeb/src/components/module-iTDM/uGantt/index.vue

@@ -685,7 +685,10 @@
         // console.log(row, column, event)
         // console.log(row, column, event)
         // 深拷贝:直接赋值会有还没点确定,甘特图部分就已经改变的bug
         // 深拷贝:直接赋值会有还没点确定,甘特图部分就已经改变的bug
         // this.currentDbEdit = JSON.parse(JSON.stringify(row))
         // this.currentDbEdit = JSON.parse(JSON.stringify(row))
-        this.$emit('dbclick', JSON.parse(JSON.stringify(row)))
+        // this.$emit('dbclick', JSON.parse(JSON.stringify(row)))
+        const dbClickRow = JSON.parse(JSON.stringify(row))
+        const dbClickColumn = JSON.parse(JSON.stringify(column))
+        this.$emit('dbclick', dbClickRow, dbClickColumn)
       },
       },
       // 单元格点击事件
       // 单元格点击事件
       cellClick(row,column,event,cell){
       cellClick(row,column,event,cell){