|
@@ -257,18 +257,22 @@
|
|
fixed:"right",
|
|
fixed:"right",
|
|
width:70,
|
|
width:70,
|
|
dataIndex:'download',
|
|
dataIndex:'download',
|
|
- // scopedSlots: { customRender: 'download' },
|
|
|
|
customRender:function (t,r,index) {
|
|
customRender:function (t,r,index) {
|
|
- const that = this
|
|
|
|
- var childrenVal
|
|
|
|
- childrenVal = (<div onclick={()=>{that.handleDownload(record)}} >下载委托</div>)
|
|
|
|
return {
|
|
return {
|
|
- children: childrenVal,
|
|
|
|
|
|
+ children: (<a href="#" id='download111'> 下载委托</a>),
|
|
attrs: {
|
|
attrs: {
|
|
rowSpan: r.rowSpan
|
|
rowSpan: r.rowSpan
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- // return {children: <a onclick={()=>{that.handleDownload(record)}} >下载委托</a>,attrs: {rowSpan:r.rowSpan}};
|
|
|
|
|
|
+ },
|
|
|
|
+ customCell: (row, index) => {
|
|
|
|
+ return {
|
|
|
|
+ on: {
|
|
|
|
+ click: (e) => {
|
|
|
|
+ this.handleDownload(row, index);
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ };
|
|
},
|
|
},
|
|
},
|
|
},
|
|
// {
|
|
// {
|