|
@@ -1,9 +1,10 @@
|
|
|
-import { defineComponent, onMounted, reactive, ref } from "vue";
|
|
|
+import { defineComponent, onMounted, reactive, ref, watch } from "vue";
|
|
|
import WorkHome from "../work-home";
|
|
|
import WorkEaluating from "../work-ealuating";
|
|
|
import { getQuery } from "/src/utils/queryString";
|
|
|
import { api_lessonTrainingTrainingStudentDetail } from "../../api";
|
|
|
import { headTopData } from "../../header-top";
|
|
|
+import { evaluatingData } from "/src/view/evaluating";
|
|
|
|
|
|
const workHomeRef = ref();
|
|
|
|
|
@@ -37,6 +38,15 @@ export default defineComponent({
|
|
|
setModelType();
|
|
|
}
|
|
|
};
|
|
|
+ // 评测作业监听评测资源加载完成
|
|
|
+ watch(
|
|
|
+ () => evaluatingData.jsonLoadDone,
|
|
|
+ () => {
|
|
|
+ if (data.trainingType === "EVALUATION" && evaluatingData.jsonLoading && evaluatingData.jsonLoadDone) {
|
|
|
+ headTopData.handleChangeModeType('evaluating');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
onMounted(() => {
|
|
|
getWorkDetail();
|
|
|
});
|