|
@@ -75,6 +75,10 @@ export default {
|
|
operation: {
|
|
operation: {
|
|
type: Function
|
|
type: Function
|
|
},
|
|
},
|
|
|
|
+ operationRecordkey: {
|
|
|
|
+ type: String,
|
|
|
|
+ default: 'id'
|
|
|
|
+ },
|
|
cstomClumn: {
|
|
cstomClumn: {
|
|
type: Function
|
|
type: Function
|
|
},
|
|
},
|
|
@@ -143,7 +147,13 @@ export default {
|
|
caozuojl(h, { row, index, column }) {
|
|
caozuojl(h, { row, index, column }) {
|
|
return (
|
|
return (
|
|
<div class="operation-btns">
|
|
<div class="operation-btns">
|
|
- <el-button size="mini" type="text" onClick={() => {}}>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ onClick={() => {
|
|
|
|
+ console.log(row[this.operationRecordkey])
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
操作记录
|
|
操作记录
|
|
</el-button>
|
|
</el-button>
|
|
{this.operation(h, { row, index, column })}
|
|
{this.operation(h, { row, index, column })}
|