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