|
@@ -127,17 +127,14 @@
|
|
|
</template>
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a @click="handleEdit(record)">编辑</a>
|
|
|
+
|
|
|
+ <a-divider type="vertical" />
|
|
|
+ <a @click="print(record)">打印</a>
|
|
|
+
|
|
|
<a-divider type="vertical" />
|
|
|
- <a-dropdown>
|
|
|
- <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
|
|
|
- <a-menu slot="overlay">
|
|
|
- <a-menu-item>
|
|
|
- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
|
- <a>删除</a>
|
|
|
- </a-popconfirm>
|
|
|
- </a-menu-item>
|
|
|
- </a-menu>
|
|
|
- </a-dropdown>
|
|
|
+ <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
|
+ <a>删除</a>
|
|
|
+ </a-popconfirm>
|
|
|
</template>
|
|
|
<!-- <span slot="action" slot-scope="text, record">-->
|
|
|
<!-- <a @click="handleEdit(record)">编辑</a>-->
|
|
@@ -287,24 +284,25 @@
|
|
|
width:150,
|
|
|
align:"center",
|
|
|
fixed: 'right',
|
|
|
- customRender: (value, row, index) => {
|
|
|
- const obj = {
|
|
|
- children:
|
|
|
- (
|
|
|
- <span>
|
|
|
- <a id="btn" onClick={() => this.handleEdit(row)}>编辑 </a>
|
|
|
- <a-divider type="vertical" />
|
|
|
- <a id="btn" onClick={() => this.print(row)}>打印 </a>
|
|
|
- <a-divider type="vertical" />
|
|
|
- <a-popconfirm title="确定删除吗?" onConfirm={() => this.handleDelete(row.id)} placement="topRight">
|
|
|
- <a>删除</a>
|
|
|
- </a-popconfirm>
|
|
|
- </span> ),
|
|
|
- attrs: {},
|
|
|
- };
|
|
|
- obj.attrs.rowSpan = this.myArray[index];
|
|
|
- return obj
|
|
|
- }
|
|
|
+ scopedSlots: { customRender: 'action' },
|
|
|
+ // customRender: (value, row, index) => {
|
|
|
+ // const obj = {
|
|
|
+ // children:
|
|
|
+ // (
|
|
|
+ // <span>
|
|
|
+ // <a id="btn" onClick={() => this.handleEdit(row)}>编辑 </a>
|
|
|
+ // <a-divider type="vertical" />
|
|
|
+ // <a id="btn" onClick={() => this.print(row)}>打印 </a>
|
|
|
+ // <a-divider type="vertical" />
|
|
|
+ // <a-popconfirm title="确定删除吗?" onConfirm={() => this.handleDelete(row.id)} placement="topRight">
|
|
|
+ // <a>删除</a>
|
|
|
+ // </a-popconfirm>
|
|
|
+ // </span> ),
|
|
|
+ // attrs: {},
|
|
|
+ // };
|
|
|
+ // obj.attrs.rowSpan = this.myArray[index];
|
|
|
+ // return obj
|
|
|
+ // }
|
|
|
}
|
|
|
],
|
|
|
url: {
|