工作流管理相关

This commit is contained in:
2026-08-06 09:31:34 +08:00
parent a951f864f4
commit cb8effc769
4 changed files with 48 additions and 10 deletions
@@ -45,7 +45,6 @@
v-model:current-page="pagination.pageNum"
v-model:page-size="pagination.pageSize"
:total="pagination.total"
:page-sizes="[10, 20, 50]"
layout="total, prev, pager, next"
small
@current-change="handlePageChange"
@@ -145,6 +144,11 @@ const fetchModelList = async () => {
const res = await getWorkflowModelList(params);
modelList.value = res.data?.list || [];
pagination.total = res.data?.total || 0;
// 预选项仅为部分信息(切换节点后无 id)时,按名称匹配当前页以高亮
if (selectedModel.value && !selectedModel.value.id && selectedModel.value.modelName) {
const matched = modelList.value.find((m) => m.modelName === selectedModel.value!.modelName);
if (matched) selectedModel.value = matched;
}
} catch {
modelList.value = [];
pagination.total = 0;