|
@@ -57,7 +57,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
-import { getInspectedHistory } from "@/api/inspectPage";
|
|
|
|
|
|
+import { clearInspectedTask, getInspectedHistory } from "@/api/inspectPage";
|
|
import { computed, defineComponent, ref } from "vue";
|
|
import { computed, defineComponent, ref } from "vue";
|
|
import { store } from "./store";
|
|
import { store } from "./store";
|
|
import {
|
|
import {
|
|
@@ -148,7 +148,12 @@ export default defineComponent({
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- const closeWindow = () => {
|
|
|
|
|
|
+ async function updateClearTask() {
|
|
|
|
+ await clearInspectedTask(studentId, subjectCode);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ const closeWindow = async () => {
|
|
|
|
+ await updateClearTask();
|
|
window.close();
|
|
window.close();
|
|
};
|
|
};
|
|
|
|
|