fix(sign): 补齐模板查询院区参数
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user