5151 >{{ $t('views.document.generateQuestion.title') }}
5252 </el-button >
5353 <el-button
54- @click =" openknowledgeDialog() "
54+ @click =" openBatchEditDocument "
5555 :disabled =" multipleSelection.length === 0"
56- v-if =" permissionPrecise.doc_migrate(id)"
57- >{{ $t('views.document.setting.migration') }}
56+ v-if =" permissionPrecise.doc_edit(id)"
57+ >
58+ {{ $t('common.setting') }}
5859 </el-button >
5960 <el-dropdown v-if =" MoreFilledPermission0(id)" >
6061 <el-button class =" ml-12 mr-12" >
6364 <template #dropdown >
6465 <el-dropdown-menu >
6566 <el-dropdown-item
66- @click =" openBatchEditDocument "
67+ @click =" openknowledgeDialog() "
6768 :disabled =" multipleSelection.length === 0"
68- v-if =" permissionPrecise.doc_edit (id)"
69+ v-if =" permissionPrecise.doc_migrate (id)"
6970 >
70- {{ $t('common. setting') }}
71+ {{ $t('views.document. setting.migration ') }}
7172 </el-dropdown-item >
7273 <el-dropdown-item
7374 divided
434435 "
435436 @click =" cancelTask(row, TaskType.GENERATE_PROBLEM)"
436437 >
437- <AppIcon
438- iconName =" app-generate-question"
439- class =" color-secondary"
440- ></AppIcon >
438+ <el-icon class =" color-secondary" ><Close /></el-icon >
441439 {{ $t('views.document.setting.cancelGenerateQuestion') }}
442440 </el-dropdown-item >
443441 <el-dropdown-item
444- v-else
445442 @click =" openGenerateDialog(row)"
446- v-if =" permissionPrecise.doc_generate(id)"
443+ v-else- if =" permissionPrecise.doc_generate(id)"
447444 >
448445 <AppIcon
449446 iconName =" app-generate-question"
494491 </span >
495492 </template >
496493 <template v-if =" knowledgeDetail ?.type === 1 || knowledgeDetail ?.type === 2 " >
497- <el-tooltip
498- effect =" dark"
499- :content =" $t('views.knowledge.setting.sync')"
500- placement =" top"
501- v-if =" permissionPrecise.sync(id)"
502- >
503- <span class =" mr-4" >
504- <el-button type =" primary" text @click.stop =" syncDocument(row)" >
505- <AppIcon iconName =" app-sync" ></AppIcon >
506- </el-button >
507- </span >
508- </el-tooltip >
509494 <el-tooltip
510495 effect =" dark"
511496 :content =" $t('views.document.setting.cancelVectorization')"
538523 </el-button >
539524 </span >
540525 </el-tooltip >
526+ <el-tooltip
527+ effect =" dark"
528+ :content =" $t('common.setting')"
529+ placement =" top"
530+ v-if =" permissionPrecise.doc_edit(id)"
531+ >
532+ <span class =" mr-4" >
533+ <el-button type =" primary" text @click.stop =" settingDoc(row)" >
534+ <AppIcon iconName =" app-setting" ></AppIcon >
535+ </el-button >
536+ </span >
537+ </el-tooltip >
541538 <span @click.stop >
542539 <el-dropdown trigger =" click" v-if =" MoreFilledPermission2(id)" >
543540 <el-button text type =" primary" >
546543 <template #dropdown >
547544 <el-dropdown-menu >
548545 <el-dropdown-item
549- @click =" settingDoc (row)"
550- v-if =" permissionPrecise.doc_edit (id)"
546+ @click =" syncDocument (row)"
547+ v-if =" permissionPrecise.sync (id)"
551548 >
552- <AppIcon iconName =" app-setting " ></AppIcon >
553- {{ $t('common. setting') }}</el-dropdown-item
549+ <AppIcon iconName =" app-sync " class = " color-secondary " ></AppIcon >
550+ {{ $t('views.knowledge. setting.sync ') }}</el-dropdown-item
554551 >
555552 <el-dropdown-item
556553 v-if ="
561558 "
562559 @click =" cancelTask(row, TaskType.GENERATE_PROBLEM)"
563560 >
564- <AppIcon iconName = " app-generate-question " ></ AppIcon >
561+ <el-icon class = " color-secondary " ><Close /></ el-icon >
565562 {{ $t('views.document.setting.cancelGenerateQuestion') }}
566563 </el-dropdown-item >
567564 <el-dropdown-item
568- v-else
569565 @click =" openGenerateDialog(row)"
570- v-if =" permissionPrecise.doc_generate(id)"
566+ v-else- if =" permissionPrecise.doc_generate(id)"
571567 >
572- <AppIcon iconName =" app-generate-question" ></AppIcon >
568+ <AppIcon
569+ iconName =" app-generate-question"
570+ class =" color-secondary"
571+ ></AppIcon >
573572 {{ $t('views.document.generateQuestion.title') }}
574573 </el-dropdown-item >
575574 <el-dropdown-item
576575 @click =" openknowledgeDialog(row)"
577576 v-if =" permissionPrecise.doc_migrate(id)"
578577 >
579- <AppIcon iconName =" app-migrate" ></AppIcon >
578+ <AppIcon iconName =" app-migrate" class = " color-secondary " ></AppIcon >
580579 {{ $t('views.document.setting.migration') }}
581580 </el-dropdown-item >
582581 <el-dropdown-item
583582 @click =" exportDocument(row)"
584583 v-if =" permissionPrecise.doc_export(id)"
585584 >
586- <AppIcon iconName =" app-export" ></AppIcon >
585+ <AppIcon iconName =" app-export" class = " color-secondary " ></AppIcon >
587586 {{ $t('views.document.setting.export') }} Excel
588587 </el-dropdown-item >
589588 <el-dropdown-item
590589 @click =" exportDocumentZip(row)"
591590 v-if =" permissionPrecise.doc_export(id)"
592591 >
593- <AppIcon iconName =" app-export" ></AppIcon >
592+ <AppIcon iconName =" app-export" class = " color-secondary " ></AppIcon >
594593 {{ $t('views.document.setting.export') }} Zip
595594 </el-dropdown-item >
596595 <el-dropdown-item
597596 @click.stop =" deleteDocument(row)"
598597 v-if =" permissionPrecise.doc_delete(id)"
599598 >
600- <AppIcon iconName =" app-delete" ></AppIcon >
599+ <AppIcon iconName =" app-delete" class = " color-secondary " ></AppIcon >
601600 {{ $t('common.delete') }}
602601 </el-dropdown-item >
603602 </el-dropdown-menu >
@@ -712,7 +711,7 @@ const permissionPrecise = computed(() => {
712711
713712const MoreFilledPermission0 = (id : string ) => {
714713 return (
715- permissionPrecise .value .doc_edit (id ) ||
714+ permissionPrecise .value .doc_migrate (id ) ||
716715 (knowledgeDetail ?.value .type === 1 && permissionPrecise .value .doc_sync (id )) ||
717716 (knowledgeDetail ?.value .type === 2 && permissionPrecise .value .doc_sync (id )) ||
718717 permissionPrecise .value .doc_delete (id )
@@ -731,7 +730,7 @@ const MoreFilledPermission1 = (id: string) => {
731730
732731const MoreFilledPermission2 = (id : string ) => {
733732 return (
734- permissionPrecise .value .doc_edit (id ) ||
733+ permissionPrecise .value .sync (id ) ||
735734 permissionPrecise .value .doc_generate (id ) ||
736735 permissionPrecise .value .doc_migrate (id ) ||
737736 permissionPrecise .value .doc_export (id ) ||
0 commit comments