diff --git a/ui/src/components/generate-related-dialog/index.vue b/ui/src/components/generate-related-dialog/index.vue index c1977fb44..a98ee255f 100644 --- a/ui/src/components/generate-related-dialog/index.vue +++ b/ui/src/components/generate-related-dialog/index.vue @@ -27,10 +27,7 @@

{{ $t('views.document.generateQuestion.tip4') }}

- + - + ('error') const stateMap = { all: ['0', '1', '2', '3', '4', '5', 'n'], - error: ['0', '1', '3', '4', '5', 'n'] + error: ['0', '1', '3', '4', '5', 'n'], } const FormRef = ref() const knowledgeId = ref() @@ -115,16 +109,16 @@ const rules = reactive({ { required: true, message: t('views.application.form.aiModel.placeholder'), - trigger: 'blur' - } + trigger: 'blur', + }, ], prompt: [ { required: true, message: t('views.application.form.prompt.placeholder'), - trigger: 'blur' - } - ] + trigger: 'blur', + }, + ], }) watch(dialogVisible, (bool) => { @@ -153,7 +147,7 @@ const submitHandle = async (formEl: FormInstance) => { if (apiType.value === 'paragraph') { const data = { ...form.value, - paragraph_id_list: idList.value + paragraph_id_list: idList.value, } paragraphApi.putBatchGenerateRelated(id, documentId, data, loading).then(() => { MsgSuccess(t('views.document.generateQuestion.successMessage')) @@ -164,7 +158,7 @@ const submitHandle = async (formEl: FormInstance) => { const data = { ...form.value, document_id_list: idList.value, - state_list: stateMap[state.value] + state_list: stateMap[state.value], } documentApi.putBatchGenerateRelated(id, data, loading).then(() => { MsgSuccess(t('views.document.generateQuestion.successMessage')) @@ -174,7 +168,7 @@ const submitHandle = async (formEl: FormInstance) => { } else if (apiType.value === 'knowledge') { const data = { ...form.value, - state_list: stateMap[state.value] + state_list: stateMap[state.value], } knowledgeApi.putGenerateRelated(id ? id : knowledgeId.value, data, loading).then(() => { MsgSuccess(t('views.document.generateQuestion.successMessage')) diff --git a/ui/src/styles/component.scss b/ui/src/styles/component.scss index cc3d8343a..ad8e64c9e 100644 --- a/ui/src/styles/component.scss +++ b/ui/src/styles/component.scss @@ -88,6 +88,7 @@ width: 280px; .el-dropdown-menu__item { padding: 8px 12px; + width: 100%; &:hover { background: var(--app-text-color-light-1); } @@ -122,7 +123,6 @@ } } - .card__radio { width: 100%; display: block; @@ -173,3 +173,8 @@ } } +.import-button { + .el-upload { + display: block !important; + } +} diff --git a/ui/src/styles/md-editor.scss b/ui/src/styles/md-editor.scss index c60f51f4e..fd58b7b5a 100644 --- a/ui/src/styles/md-editor.scss +++ b/ui/src/styles/md-editor.scss @@ -1,5 +1,6 @@ .md-editor { font-weight: 400; + background: none !important; } .md-editor-preview { diff --git a/ui/src/views/application/index.vue b/ui/src/views/application/index.vue index 4fad1217e..bbf611bf9 100644 --- a/ui/src/views/application/index.vue +++ b/ui/src/views/application/index.vue @@ -42,8 +42,14 @@ - + {{ $t('common.create') }} @@ -87,6 +93,7 @@ {{ $t('views.application.operation.toChat') }} - {{ $t('common.setting') }} - {{ $t('common.export') }} @@ -234,7 +260,15 @@ divided icon="Delete" @click.stop="deleteApplication(item)" - v-if="hasPermission([RoleConst.WORKSPACE_MANAGE.getWorkspaceRole,PermissionConst.APPLICATION_DELETE.getWorkspacePermission],'OR')" + v-if=" + hasPermission( + [ + RoleConst.WORKSPACE_MANAGE.getWorkspaceRole, + PermissionConst.APPLICATION_DELETE.getWorkspacePermission, + ], + 'OR', + ) + " >{{ $t('common.delete') }} diff --git a/ui/src/views/paragraph/component/ParagraphCard.vue b/ui/src/views/paragraph/component/ParagraphCard.vue index acde5d2cc..c19e43d1d 100644 --- a/ui/src/views/paragraph/component/ParagraphCard.vue +++ b/ui/src/views/paragraph/component/ParagraphCard.vue @@ -4,6 +4,7 @@ class="paragraph-box cursor" @mouseenter="cardEnter()" @mouseleave="cardLeave()" + @click.stop="editParagraph(data)" >

{{ data.title || '-' }}

@@ -11,6 +12,7 @@ class="paragraph-box-operation mt-8 mr-8" shadow="always" style="--el-card-padding: 8px 12px; --el-card-border-radius: 8px" + @click.stop > - + @@ -40,11 +42,11 @@