|
@@ -56,7 +56,7 @@
|
|
|
|
|
|
<script setup lang="tsx" name="TrainingDetail">
|
|
<script setup lang="tsx" name="TrainingDetail">
|
|
/** 培训监控调卷详情 */
|
|
/** 培训监控调卷详情 */
|
|
-import { ref, computed } from 'vue'
|
|
|
|
|
|
+import { ref, computed, watch } from 'vue'
|
|
import { useRoute } from 'vue-router'
|
|
import { useRoute } from 'vue-router'
|
|
import { ElButton } from 'element-plus'
|
|
import { ElButton } from 'element-plus'
|
|
import { useSetImgBg } from '@/hooks/useSetImgBg'
|
|
import { useSetImgBg } from '@/hooks/useSetImgBg'
|
|
@@ -177,6 +177,12 @@ const {
|
|
onCurrentChange,
|
|
onCurrentChange,
|
|
} = useTableCheck(monitorDetail)
|
|
} = useTableCheck(monitorDetail)
|
|
|
|
|
|
|
|
+watch(current, () => {
|
|
|
|
+ if (current.value) {
|
|
|
|
+ useFetch('viewActiveCheck').fetch({ taskId: current.value?.taskId })
|
|
|
|
+ }
|
|
|
|
+})
|
|
|
|
+
|
|
const imgOption = computed<SetImgBgOption>(() => {
|
|
const imgOption = computed<SetImgBgOption>(() => {
|
|
return {
|
|
return {
|
|
image: current?.value?.filePath,
|
|
image: current?.value?.filePath,
|