feat: 支持工作流插件复用与试运行
- 新增工作流插件类型、发布快照同步、实时可用性与下线影响检查 - 收口绑定候选、分类权限、间接环路校验与运行态优雅降级 - 补齐管理端工作流插件配置、详情与试运行界面及定向测试
This commit is contained in:
@@ -605,9 +605,25 @@ function handlePluginNodeUpdate(chooseId: any) {
|
||||
})
|
||||
.then((res) => {
|
||||
pageLoading.value = false;
|
||||
updatePluginNode.value(res.data);
|
||||
updatePluginNode.value(decoratePluginNodeData(res.data));
|
||||
});
|
||||
}
|
||||
function decoratePluginNodeData(data: any) {
|
||||
if (!data || Number(data.pluginType || 1) !== 2) {
|
||||
return data;
|
||||
}
|
||||
const statusText =
|
||||
data.available === false
|
||||
? data.reasonMessage || $t('plugin.workflowPluginUnavailable')
|
||||
: $t('plugin.workflowSnapshotSynced');
|
||||
return {
|
||||
...data,
|
||||
pluginName: data.pluginName
|
||||
? `${data.pluginName} · ${statusText}`
|
||||
: statusText,
|
||||
pluginStatusText: statusText,
|
||||
};
|
||||
}
|
||||
function onAsyncExecute(info: any) {
|
||||
chainInfo.value = info;
|
||||
}
|
||||
@@ -628,7 +644,7 @@ function onAsyncExecute(info: any) {
|
||||
:title="$t('menus.ai.plugin')"
|
||||
width="730"
|
||||
ref="pluginSelectRef"
|
||||
page-url="/api/v1/plugin/page"
|
||||
page-url="/api/v1/plugin/page?availableOnly=true"
|
||||
:has-parent="true"
|
||||
single-select
|
||||
@get-data="(v) => handleChoose(nodeNames.pluginNode, v)"
|
||||
|
||||
Reference in New Issue
Block a user