| | |
| | | @click="handleAdd" |
| | | type="primary" |
| | | icon="plus" |
| | | v-has="'accountSons:add&edit&delete&submit'" |
| | | >新增</a-button> |
| | | <!-- <a-button type="primary" icon="download" @click="handleExportXls('设备文档')">导出</a-button> |
| | | <a-upload |
| | |
| | | @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导入</a-button> |
| | | </a-upload> --> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0" v-has="'accountSons:add&edit&delete&submit'"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item |
| | | key="1" |
| | |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a @click="handleEdit(record)">编辑</a> |
| | | <a @click="handleEdit(record)" v-has="'accountSons:add&edit&delete&submit'">编辑</a> |
| | | |
| | | <a-divider type="vertical" /> |
| | | |
| | |
| | | <a-popconfirm |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-has="'accountSons:add&edit&delete&submit'" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |