工作流管理相关
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user