From 8490aaf91de3291910f65d7f2b9fca6680c1fffc Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 14 Dec 2023 18:00:01 +0800 Subject: [PATCH] feat: --- .../components/ai-chat/LogOperationButton.vue | 35 ++--- ui/src/components/icons/index.ts | 4 +- ui/src/views/document/index.vue | 2 +- ui/src/views/log/component/EditMarkDialog.vue | 134 ++++++++++++++++++ 4 files changed, 150 insertions(+), 25 deletions(-) create mode 100644 ui/src/views/log/component/EditMarkDialog.vue diff --git a/ui/src/components/ai-chat/LogOperationButton.vue b/ui/src/components/ai-chat/LogOperationButton.vue index 837b1aa5..ce08c306 100644 --- a/ui/src/components/ai-chat/LogOperationButton.vue +++ b/ui/src/components/ai-chat/LogOperationButton.vue @@ -12,34 +12,25 @@ - + - + + + + + + - + diff --git a/ui/src/components/icons/index.ts b/ui/src/components/icons/index.ts index bd78a175..1487982e 100644 --- a/ui/src/components/icons/index.ts +++ b/ui/src/components/icons/index.ts @@ -427,11 +427,11 @@ export const iconMap: any = { [ h('path', { d: 'M2.00497 14.6608H2.00518C2.00511 14.6609 2.00504 14.6609 2.00497 14.6608H0.666612C0.666097 14.6874 0.666707 5.33317 0.666612 5.29087H2.00518C2.00006 5.33305 1.98026 14.6344 2.00497 14.6608Z', - fill: 'currentColor' + fill: '#FFC60A' }), h('path', { d: 'M12.5717 5.28984H9.70096C10.1486 4.45673 10.3724 3.78809 10.3724 3.28394C10.3724 1.94718 9.40089 1.14037 8.5893 0.770777C8.04824 0.52438 7.5406 0.753754 7.35254 1.05296L4.5741 5.00545C4.44877 5.18374 4.24449 5.28984 4.02656 5.28984H3.33882C3.154 5.28984 3.00418 5.43966 3.00418 5.62448V14.3319C3.00418 14.5167 3.154 14.6665 3.33882 14.6665H11.1995C11.8409 14.6665 12.4029 14.2423 12.5717 13.6308L14.5687 8.37353C15.0274 7.05264 14.5687 5.28984 12.5717 5.28984Z', - fill: 'currentColor' + fill: '#FFC60A' }) ] ) diff --git a/ui/src/views/document/index.vue b/ui/src/views/document/index.vue index df159611..f2df11a3 100644 --- a/ui/src/views/document/index.vue +++ b/ui/src/views/document/index.vue @@ -127,7 +127,7 @@ const paginationConfig = reactive({ watch(documentData, (list) => { let interval - if (list.every((item) => item.status === '0')) { + if (list.length > 0 && list.every((item) => item.status === '0')) { interval = setInterval(() => { getList(true) }, 6000) diff --git a/ui/src/views/log/component/EditMarkDialog.vue b/ui/src/views/log/component/EditMarkDialog.vue new file mode 100644 index 00000000..210b3913 --- /dev/null +++ b/ui/src/views/log/component/EditMarkDialog.vue @@ -0,0 +1,134 @@ + + +