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) { :deep(.cm-string) {
color: darkorange !important; color: darkorange !important;
} }
:deep(.ant-descriptions-item-label) {
width: 120px;
}

View File

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