diff --git a/ui/src/components/global/mk-table/MkAction.vue b/ui/src/components/global/mk-table/MkAction.vue
index b6d872a004a..d98a6f12f13 100644
--- a/ui/src/components/global/mk-table/MkAction.vue
+++ b/ui/src/components/global/mk-table/MkAction.vue
@@ -1,13 +1,13 @@
-
+
{{ label }}
diff --git a/ui/src/views/VIEW_README.md b/ui/src/views/VIEW_README.md
index 80d50966388..e8870abc58e 100644
--- a/ui/src/views/VIEW_README.md
+++ b/ui/src/views/VIEW_README.md
@@ -698,7 +698,9 @@ Workspace API 内部通过 `getWorkspaceId()` 读取当前路由工作空间。
接口成功后刷新列表回显,不在请求前切换状态,不单独封装 Action。
页面保留列表、多选、任务状态展示判断与刷新方法,不维护各 Action 的请求流程。
`DocumentStatus`、`DocumentTags` 等纯展示组件继续留在 `document/components/`。
-页面不再维护这些弹窗 Ref 和打开方法;承载入口的 `MkTableMoreDropdown` 使用 `persistent`,避免菜单收起时卸载弹窗。
+页面不再维护这些弹窗 Ref 和打开方法。行内更多菜单使用 `MkTableMoreDropdown`;批量操作栏使用
+`MkDropdown` 搭配非 text 的“更多操作 + 下箭头”按钮和 `MkDropdownMenu`,点击展开。
+两种菜单均保留 `persistent`,避免菜单收起时卸载 Action 内的弹窗。
不新增前端权限判断;共享文档不展示选择列及操作入口。
文档分页接口维护在 `workspace/knowledge/document.ts`,页面管理 loading。文件状态表头使用
`MkDropdown` 单选筛选全部、成功、失败、索引中、分词索引中、排队中和生成中;查询组合
diff --git a/ui/src/views/knowledge-detail/document/action-dropdown/DeleteDocumentAction.vue b/ui/src/views/knowledge-detail/document/action-dropdown/DeleteDocumentAction.vue
index 0f59b7561fc..4b0aded152f 100644
--- a/ui/src/views/knowledge-detail/document/action-dropdown/DeleteDocumentAction.vue
+++ b/ui/src/views/knowledge-detail/document/action-dropdown/DeleteDocumentAction.vue
@@ -34,5 +34,5 @@ function handleDelete() {
-
+
diff --git a/ui/src/views/knowledge-detail/document/index.vue b/ui/src/views/knowledge-detail/document/index.vue
index 4e7dfab4fc2..900fe0f9587 100644
--- a/ui/src/views/knowledge-detail/document/index.vue
+++ b/ui/src/views/knowledge-detail/document/index.vue
@@ -469,6 +469,8 @@ onMounted(() => {
{
@refresh="refreshAfterOperation"
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ 更多操作
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ui/src/views/system/resource-management/tool/index.vue b/ui/src/views/system/resource-management/tool/index.vue
index 74820ffe766..cb89f4fdc8a 100644
--- a/ui/src/views/system/resource-management/tool/index.vue
+++ b/ui/src/views/system/resource-management/tool/index.vue
@@ -188,7 +188,7 @@ onMounted(() => {
工作流
-
+
工作流
-
+
()
@@ -67,7 +67,7 @@ defineExpose({ open })
-
+
@@ -76,5 +76,5 @@ defineExpose({ open })
{{ enableAfterSave ? '保存并启用' : '保存' }}
-
+
diff --git a/ui/src/views/tool/tool-card/ToolStatusSwitch.vue b/ui/src/views/tool/tool-card/ToolStatusSwitch.vue
index af5ef79e42e..d6834c4e983 100644
--- a/ui/src/views/tool/tool-card/ToolStatusSwitch.vue
+++ b/ui/src/views/tool/tool-card/ToolStatusSwitch.vue
@@ -6,7 +6,7 @@ import type SystemSharedToolApi from '@/api/admin/system/shared-resources/tool/t
import { TOOL_TYPE } from '@/api/enums'
import type { ToolItem } from '@/api/types'
import { MsgConfirm, MsgError, MsgSuccess } from '@/utils/message'
-import InitParamDialog from './InitParamDialog.vue'
+import InitParamDrawer from './InitParamDrawer.vue'
defineOptions({ name: 'ToolStatusSwitch', inheritAttrs: false })
@@ -16,7 +16,7 @@ const loading = defineModel('loading', { default: false })
const emit = defineEmits<{ update: [tool: ToolItem] }>()
-const initParamDialogRef = useTemplateRef>('initParamDialogRef')
+const initParamDrawerRef = useTemplateRef>('initParamDrawerRef')
function handleToolStatusChange() {
if (loading.value) return false
@@ -36,7 +36,7 @@ function handleToolStatusChange() {
}
if (hasMissingInitParams(toolDetail)) {
- initParamDialogRef.value?.open(toolDetail, true, true)
+ initParamDrawerRef.value?.open(toolDetail, true, true)
return false
}
@@ -75,5 +75,5 @@ function updateToolStatus(active: boolean) {
-
+
diff --git a/ui/src/views/tool/tool-card/action-dropdown/InitParamAction.vue b/ui/src/views/tool/tool-card/action-dropdown/InitParamAction.vue
index bfe5ce4b3b7..9318cff3d2d 100644
--- a/ui/src/views/tool/tool-card/action-dropdown/InitParamAction.vue
+++ b/ui/src/views/tool/tool-card/action-dropdown/InitParamAction.vue
@@ -4,7 +4,7 @@ import type ToolApi from '@/api/admin/workspace/tool/tool'
import type SystemResourceToolApi from '@/api/admin/system/resource-management/tool/tool'
import type SystemSharedToolApi from '@/api/admin/system/shared-resources/tool/tool'
import type { ToolItem } from '@/api/types'
-import InitParamDialog from '../InitParamDialog.vue'
+import InitParamDrawer from '../InitParamDrawer.vue'
defineOptions({ name: 'InitParamAction' })
@@ -15,7 +15,7 @@ const loading = defineModel('loading', { default: false })
const emit = defineEmits<{ update: [tool: ToolItem] }>()
const dialogMounted = ref(false)
-const initParamDialogRef = useTemplateRef>('initParamDialogRef')
+const initParamDrawerRef = useTemplateRef>('initParamDrawerRef')
function handleOpenInitParam() {
loading.value = true
@@ -23,7 +23,7 @@ function handleOpenInitParam() {
.getToolDetail(props.tool.id)
.then((toolDetail) => {
dialogMounted.value = true
- return nextTick(() => initParamDialogRef.value?.open(toolDetail))
+ return nextTick(() => initParamDrawerRef.value?.open(toolDetail))
})
.finally(() => {
loading.value = false
@@ -36,11 +36,11 @@ function handleDialogClosed() {
-
+
{{ label }}
-
+