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