|
@@ -8,13 +8,14 @@
|
|
|
stripe
|
|
|
:cell-class-name="tableCellClassName"
|
|
|
:header-cell-class-name="tableCellClassName"
|
|
|
- @row-dblclick="rowDblclick"
|
|
|
row-key="id"
|
|
|
default-expand-all
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
|
@expand-change="expandChange"
|
|
|
:row-style="{ height: uStyle.ganttHeight + 'px' }"
|
|
|
:header-row-style="{ height: uStyle.ganttHeight + 'px' }"
|
|
|
+ @cell-click="cellClick"
|
|
|
+ @row-dblclick="rowDblclick"
|
|
|
>
|
|
|
<template v-for="(item, index) in configColumns">
|
|
|
<el-table-column
|
|
@@ -686,6 +687,13 @@
|
|
|
// this.currentDbEdit = JSON.parse(JSON.stringify(row))
|
|
|
this.$emit('dbclick', JSON.parse(JSON.stringify(row)))
|
|
|
},
|
|
|
+ // 单元格点击事件
|
|
|
+ cellClick(row,column,event,cell){
|
|
|
+ // console.log(row,column,event,cell)
|
|
|
+ const clickRow = JSON.parse(JSON.stringify(row))
|
|
|
+ const clickColumn = JSON.parse(JSON.stringify(column))
|
|
|
+ this.$emit('cellClick', clickRow, clickColumn)
|
|
|
+ },
|
|
|
// 添加事件
|
|
|
addRow(row, index){
|
|
|
// console.log(row, index)
|