|
@@ -70,6 +70,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { queryTeacherInfo } from "@/api/app";
|
|
|
import { getReviewInfo, studyStandardList, checkeIsAssignHomework, courseReviewAdd, getCurrentCourseDetail } from './api'
|
|
|
import Item from "./modal/item";
|
|
|
import MEmpty from '@/components/MEmpty';
|
|
@@ -102,8 +103,13 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
async mounted() {
|
|
|
- this.tenantId = sessionStorage.getItem('tenantId') || null
|
|
|
try {
|
|
|
+ await queryTeacherInfo().then((res) => {
|
|
|
+ const result = res.data || null;
|
|
|
+ const tenantId = result.data.tenantId || 0;
|
|
|
+ this.tenantId = tenantId
|
|
|
+ sessionStorage.setItem("tenantId", tenantId);
|
|
|
+ });
|
|
|
// 获取是否有布置作业
|
|
|
const homeWork = await checkeIsAssignHomework({ courseScheduleId: this.id });
|
|
|
let tempData = homeWork.data || {}
|