diff --git a/src/assets/custom.scss b/src/assets/custom.scss index 30d574e..edcf417 100644 --- a/src/assets/custom.scss +++ b/src/assets/custom.scss @@ -549,3 +549,7 @@ :deep(.cm-string) { color: darkorange !important; } + +:deep(.ant-descriptions-item-label) { + width: 120px; +} diff --git a/src/views/data/task/index.vue b/src/views/data/task/index.vue index 7da319f..058096b 100644 --- a/src/views/data/task/index.vue +++ b/src/views/data/task/index.vue @@ -7,9 +7,9 @@ @@ -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 }, ]" />