Procházet zdrojové kódy

设置双击返回列数据

yuhan před 1 rokem
rodič
revize
2a130976bb

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

@@ -685,7 +685,10 @@
         // console.log(row, column, event)
         // 深拷贝:直接赋值会有还没点确定,甘特图部分就已经改变的bug
         // 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){