|
|
|
@ -12,25 +12,25 @@ |
|
|
|
|
<BasicTable @register="registerTable" :rowSelection="rowSelection"> |
|
|
|
|
<!--插槽:table标题--> |
|
|
|
|
<template #tableTitle> |
|
|
|
|
<a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增 |
|
|
|
|
</a-button> |
|
|
|
|
<!-- <a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增 |
|
|
|
|
</a-button>--> |
|
|
|
|
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出 |
|
|
|
|
</a-button> |
|
|
|
|
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls"> |
|
|
|
|
<!-- <j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls"> |
|
|
|
|
导入 |
|
|
|
|
</j-upload-button> |
|
|
|
|
</j-upload-button>--> |
|
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0"> |
|
|
|
|
<template #overlay> |
|
|
|
|
<a-menu> |
|
|
|
|
<a-menu-item key="1" @click="batchHandleDelete"> |
|
|
|
|
<!-- <a-menu-item key="1" @click="batchHandleDelete"> |
|
|
|
|
<Icon icon="ant-design:delete-outlined"></Icon> |
|
|
|
|
删除 |
|
|
|
|
</a-menu-item> |
|
|
|
|
</a-menu-item>--> |
|
|
|
|
</a-menu> |
|
|
|
|
</template> |
|
|
|
|
<a-button>批量操作 |
|
|
|
|
<!-- <a-button>批量操作 |
|
|
|
|
<Icon icon="mdi:chevron-down"></Icon> |
|
|
|
|
</a-button> |
|
|
|
|
</a-button>--> |
|
|
|
|
</a-dropdown> |
|
|
|
|
</template> |
|
|
|
|
<!--操作栏--> |
|
|
|
@ -276,13 +276,13 @@ function getTableAction(record) { |
|
|
|
|
{ |
|
|
|
|
label: '详情', |
|
|
|
|
onClick: handleDetail.bind(null, record), |
|
|
|
|
}, { |
|
|
|
|
}, /*{ |
|
|
|
|
label: '删除', |
|
|
|
|
popConfirm: { |
|
|
|
|
title: '是否确认删除', |
|
|
|
|
confirm: handleDelete.bind(null, record), |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
},*/ |
|
|
|
|
]; |
|
|
|
|
return actions; |
|
|
|
|
} |
|
|
|
|