<!-- 阅卷监控详情页面 -->
<route lang="jsonc">
{
  "style": {
    "navigationBarTitleText": "阅卷监控"
  }
}
</route>

<script lang="ts" setup>
import { onLoad } from '@dcloudio/uni-app'
import { ref } from 'vue'
import MarkingMonitor from '@/components/marking/MarkingMonitor.vue'

defineOptions({
  name: 'MarkingMonitorPage',
})

// 页面参数
const taskId = ref<number>()
const subjectId = ref<number>()

// 页面加载时获取参数
onLoad((options) => {
  if (options.taskId) {
    taskId.value = Number(options.taskId)
  }
  if (options.subjectId) {
    subjectId.value = Number(options.subjectId)
  }
})
</script>

<template>
  <view>
    <MarkingMonitor :subject-id="subjectId" />
  </view>
</template>
