Browse Source

v1.1.0 coding...

刘洋 1 year ago
parent
commit
dcc1e3c3a5

+ 7 - 1
src/modules/analysis/marker-statistics/index.vue

@@ -275,7 +275,13 @@ const onSubmit = async () => {
 }
 watch(current, () => {
   if (current.value) {
-    useFetch('viewActiveCheck').fetch({ taskId: current.value?.taskId })
+    useFetch('viewActiveCheck')
+      .fetch({ taskId: current.value?.taskId })
+      .then(() => {
+        if (!current.value.checked) {
+          current.value.checked = true
+        }
+      })
   }
 })
 const imgOption = computed<SetImgBgOption>(() => {

+ 7 - 1
src/modules/analysis/view-marked-detail/index.vue

@@ -301,7 +301,13 @@ const onSubmit = async () => {
 // })
 watch(current, () => {
   if (current.value) {
-    useFetch('viewActiveCheck').fetch({ taskId: current.value?.taskId })
+    useFetch('viewActiveCheck')
+      .fetch({ taskId: current.value?.taskId })
+      .then(() => {
+        if (!current.value.checked) {
+          current.value.checked = true
+        }
+      })
   }
 })
 const imgOption = computed<SetImgBgOption>(() => {

+ 7 - 1
src/modules/marking/inquiry-result/index.vue

@@ -328,7 +328,13 @@ const {
 
 watch(current, () => {
   if (current.value) {
-    useFetch('viewCustomQuery').fetch({ taskId: current.value.taskId })
+    useFetch('viewCustomQuery')
+      .fetch({ taskId: current.value.taskId })
+      .then(() => {
+        if (!current.value.checked) {
+          current.value.checked = true
+        }
+      })
     // modelScore.value = [current.value?.headerScore ?? (current.value?.markerScore || 0)]
     modelScore.value = current.value?.markScores || []
   }

+ 7 - 1
src/modules/monitor/system-check/index.vue

@@ -351,7 +351,13 @@ const {
 
 watch(currentSystemCheckPaper, () => {
   if (currentSystemCheckPaper.value) {
-    useFetch('viewSystemSpotPaper').fetch({ id: currentSystemCheckPaper.value.id })
+    useFetch('viewSystemSpotPaper')
+      .fetch({ id: currentSystemCheckPaper.value.id })
+      .then(() => {
+        if (!currentSystemCheckPaper.value.checked) {
+          currentSystemCheckPaper.value.checked = true
+        }
+      })
     // modelScore.value = [currentSystemCheckPaper.value?.headerScore ?? (currentSystemCheckPaper.value?.markScore || 0)]
     modelScore.value = currentSystemCheckPaper.value?.markScores || []
   }