工作流管理相关

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
@@ -34,7 +34,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"
@@ -82,6 +81,7 @@ watch(
visible.value = val;
if (val) {
selectedSkill.value = props.defaultSkill || null;
pagination.pageNum = 1;
fetchSkillList();
}
}
@@ -100,6 +100,11 @@ const fetchSkillList = async () => {
const res = await getWorkflowSkillList(params);
skillList.value = res.data?.list || [];
pagination.total = res.data?.total || 0;
// 预选项仅为部分信息(切换节点后无 id)时,按名称匹配当前页以高亮
if (selectedSkill.value && !selectedSkill.value.id && selectedSkill.value.name) {
const matched = skillList.value.find((s) => s.name === selectedSkill.value!.name);
if (matched) selectedSkill.value = matched;
}
} catch {
skillList.value = [];
pagination.total = 0;