This commit is contained in:
njdaoyehu 2024-11-22 11:07:04 +08:00
parent 247f564cd1
commit c2e77544c3
2 changed files with 9 additions and 4 deletions

View File

@ -549,3 +549,7 @@
:deep(.cm-string) {
color: darkorange !important;
}
:deep(.ant-descriptions-item-label) {
width: 120px;
}

View File

@ -7,9 +7,9 @@
<BasicTable @register="registerTable">
<template #toolbar>
<a-button type="primary" @click="handleCreate" :icon="h(PlusOutlined)">新增</a-button>
<div style="width: 10px" />
<div style="width: 5px" />
<a-button type="default" @click="handleImport" :icon="h(ImportOutlined)">导入数据</a-button>
<div style="width: 10px" />
<div style="width: 5px" />
<a-button type="default" @click="handleDownload" :icon="h(DownloadOutlined)" :disabled="checkedKeys.length === 0">下发数据</a-button>
<a-button type="default" @click="handleSync" :icon="h(SyncOutlined)" :disabled="checkedKeys.length === 0">同步数据</a-button>
</template>
@ -22,6 +22,7 @@
icon: 'clarity:note-edit-line',
onClick: handleEdit.bind(null, record),
divider: true,
disabled: record.state !== 0
},
{
label: '删除',
@ -33,6 +34,7 @@
placement: 'topRight',
},
ifShow: hasPermission('AUTH_DATA_TASK:DELETE'),
disabled: record.state !== 0
},
{
label: '详情',
@ -51,8 +53,7 @@
label: '同步数据',
icon: 'ant-design:sync-outlined',
onClick: handleSync.bind(null, record),
divider: true,
disabled: record.state !== 0
divider: true
},
]"
/>