fix(sign): 补齐模板查询院区参数

This commit is contained in:
xy
2026-09-28 21:04:03 +08:00
parent b6775a66c7
commit f7804d476d
5 changed files with 45 additions and 12 deletions
@@ -70,6 +70,7 @@ const {
visits,
} = useSigningTaskForm({
campus: computed(() => appStore.selectedCampus),
campusId: computed(() => appStore.selectedCampusId),
initialTemplate,
})
@@ -165,6 +166,14 @@ watch(
return
}
await appStore.loadCampuses()
if (!appStore.selectedCampusId) {
ElMessage.error(
appStore.campusLoadFailed ? '院区加载失败,无法加载文书模板' : '当前没有可用院区',
)
return
}
resetForm()
await loadTemplates()
await nextTick()