Browse Source

feat: 培训监控缺少大题号错误

chenhao 2 years ago
parent
commit
dc8ec4e2b7
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/modules/analysis/monitoring/index.vue

+ 6 - 4
src/modules/analysis/monitoring/index.vue

@@ -246,10 +246,6 @@ const getColumns = (
   ]
 }
 
-const onRefresh = () => {
-  fetch(omit(fetchModel, 'refresh'))
-}
-
 const activeCard = ref<Card>()
 
 const setActiveCard = (v: Card) => {
@@ -283,6 +279,12 @@ const sortableResult = computed<typeof result.value>(() => {
   return sortable
 })
 
+const onRefresh = () => {
+  if (fetchModel.subjectCode && fetchModel.questionMainNumber) {
+    fetch(omit(fetchModel, 'refresh'))
+  }
+}
+
 const onConfirm = () => {
   Object.assign(fetchModel, modelToFetchModel())
   onRefresh()