style: 更多下拉按钮放出

This commit is contained in:
TsMask
2023-10-26 16:59:04 +08:00
parent d3399e5b4f
commit 5a72287fca
3 changed files with 43 additions and 57 deletions

View File

@@ -106,12 +106,7 @@ let tableColumns: ColumnsType = [
title: 'IP地址',
dataIndex: 'ip',
align: 'center',
},
{
title: '网元地址',
dataIndex: 'neAddress',
align: 'center',
},
},
{
title: '端口',
dataIndex: 'port',
@@ -564,6 +559,11 @@ function fnRecordStop(row: Record<string, any>) {
* 记录多项选择
*/
function fnRecordMore(type: string | number, row: Record<string, any>) {
if (type === 'delete') {
fnRecordDelete(row);
return
}
if (type === 'export') {
fnRecordExport(row);
}
@@ -764,9 +764,9 @@ onMounted(() => {
</a-button>
</a-tooltip>
<a-tooltip>
<template #title>{{ t('common.deleteText') }}</template>
<a-button type="link" @click.prevent="fnRecordDelete(record)">
<template #icon><DeleteOutlined /></template>
<template #title>{{ t('views.configManage.neManage.restart') }}</template>
<a-button type="link" @click.prevent="fnRecordMore('restart', record)">
<template #icon><UndoOutlined /></template>
</a-button>
</a-tooltip>
<a-tooltip>
@@ -792,14 +792,14 @@ onMounted(() => {
<thunderbolt-outlined />
{{ t('views.configManage.neManage.start') }}
</a-menu-item>
<a-menu-item key="restart">
<UndoOutlined />
{{ t('views.configManage.neManage.restart') }}
</a-menu-item>
<a-menu-item key="stop">
<pause-outlined />
{{ t('views.configManage.neManage.stop') }}
</a-menu-item>
<a-menu-item key="delete">
<DeleteOutlined />
{{ t('common.deleteText') }}
</a-menu-item>
</a-menu>
</template>
</a-dropdown>