|
@@ -72,15 +72,25 @@ export default defineComponent({
|
|
|
}
|
|
|
|
|
|
const onDetail = async () => {
|
|
|
- if (state.classList.length > 0) {
|
|
|
- router.push({
|
|
|
- path: '/companion-unbind',
|
|
|
- query: { id: route.query.id }
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ try {
|
|
|
+ const { data } = await request.post(
|
|
|
+ '/api-school/classGroup/teacherHandoverList/' + route.query.id,
|
|
|
+ {}
|
|
|
+ )
|
|
|
+ const classList = data || []
|
|
|
+
|
|
|
+ if (classList.length > 0) {
|
|
|
+ router.push({
|
|
|
+ path: '/companion-unbind',
|
|
|
+ query: { id: route.query.id }
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
- state.showDialog = true
|
|
|
+ state.showDialog = true
|
|
|
+ } catch {
|
|
|
+ //
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const onConfirm = async () => {
|