|
@@ -1,11 +1,11 @@
|
|
|
<script setup lang="ts">
|
|
|
-import {watch} from "vue";
|
|
|
import {useUserStore} from "@/store/modules/user";
|
|
|
import {TeacherList, TeacherManage} from "@/api/teacher/types";
|
|
|
import {getTeacherList} from "@/api/teacher";
|
|
|
import {EquipmentManage, EquipmentParams} from "@/api/equipment/types";
|
|
|
import {getEquipmentLists} from "@/api/equipment";
|
|
|
import {trimInput} from "@/utils";
|
|
|
+
|
|
|
const userStore = useUserStore();
|
|
|
defineOptions({
|
|
|
name: "EquipmentIndex",
|
|
@@ -89,17 +89,17 @@ onMounted(() => {
|
|
|
getTeacherData(userStore.schoolId);
|
|
|
getEquipmentData(userStore.schoolId);
|
|
|
});
|
|
|
-watch(
|
|
|
- () => userStore.schoolId,
|
|
|
- (newValue) => {
|
|
|
- // 学校切换后重新获取
|
|
|
- pageParams.school_id = newValue;
|
|
|
- pageParams.teacher_id = 0;
|
|
|
- pageParams.sn = "";
|
|
|
- getTeacherData(newValue);
|
|
|
- getEquipmentData(newValue);
|
|
|
- }
|
|
|
-);
|
|
|
+// watch(
|
|
|
+// () => userStore.schoolId,
|
|
|
+// (newValue) => {
|
|
|
+// // 学校切换后重新获取
|
|
|
+// pageParams.school_id = newValue;
|
|
|
+// pageParams.teacher_id = 0;
|
|
|
+// pageParams.sn = "";
|
|
|
+// getTeacherData(newValue);
|
|
|
+// getEquipmentData(newValue);
|
|
|
+// }
|
|
|
+// );
|
|
|
</script>
|
|
|
|
|
|
<template>
|