chenhao před 2 roky
rodič
revize
589977a698

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

@@ -115,17 +115,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: current?.value?.filePath || '',
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   fetchTable()
@@ -192,6 +181,17 @@ const onSubmit = () => {
     updatePersonalMarkDetailScore({ taskId: current.value.taskId, scores: modelScore.value })
   }
 }
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: current?.value?.filePath || '',
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/example/ImageModify.vue

@@ -48,17 +48,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: MockImg,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 预览试卷 */
 const onPreview = () => {
   previewModalVisible.value = true
@@ -82,6 +71,17 @@ const operationHandles: Partial<Record<OperationType, (...args: any) => void>> =
 const onOperationClick: OperationClick = ({ type, value }) => {
   operationHandles[type]?.(value)
 }
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: MockImg,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/expert/assess/index.vue

@@ -101,17 +101,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: currentAssessPaper?.value?.filePath,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   onSearch()
@@ -233,6 +222,17 @@ const onSubmit = () => {
 }
 
 onOptionInit(onSearch)
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: currentAssessPaper?.value?.filePath,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/expert/expert/index.vue

@@ -101,17 +101,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: currentExpertPaper?.value?.filePath,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   onSearch()
@@ -285,6 +274,17 @@ const onSubmit = () => {
 }
 
 onOptionInit(onSearch)
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: currentExpertPaper?.value?.filePath,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/expert/sample/index.vue

@@ -105,17 +105,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: currentRfPaper?.value?.filePath,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   onSearch()
@@ -217,6 +206,17 @@ const onSubmit = () => {
 }
 
 onOptionInit(onSearch)
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: currentRfPaper?.value?.filePath,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 9 - 9
src/modules/expert/standard/index.vue

@@ -69,15 +69,6 @@ const previewModalVisible = ref<boolean>(false)
 
 const { onBack } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: currentStandardPaper?.value?.filePath,
-    immediate: true,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 预览试卷 */
 const onPreview = () => {
   previewModalVisible.value = true
@@ -190,6 +181,15 @@ const onTransformToSample = () => {
 }
 
 onOptionInit(onSearch)
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: currentStandardPaper?.value?.filePath,
+    immediate: true,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/expert/training/index.vue

@@ -87,17 +87,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: current?.value?.filePath,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   onSearch()
@@ -199,6 +188,17 @@ const onSearch = async () => {
 }
 
 onOptionInit(onSearch)
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: current?.value?.filePath,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/marking/arbitration/index.vue

@@ -99,17 +99,6 @@ const previewModalVisible = ref<boolean>(false)
 
 const modelScore = ref<number[]>([])
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: currentArbitration?.value?.filePath,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   onSearch()
@@ -237,6 +226,17 @@ const onSubmit = () => {
 }
 
 onOptionInit(onSearch)
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: currentArbitration?.value?.filePath,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/marking/inquiry-result/index.vue

@@ -126,17 +126,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: current?.value?.filePath,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   fetchTable()
@@ -316,6 +305,17 @@ const onSubmit = () => {
     useFetch('updateCustomPaperScore').fetch({ taskId: current.value.taskId, scores: modelScore.value })
   }
 }
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: current?.value?.filePath,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/marking/mark/index.vue

@@ -120,17 +120,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: currentTask?.value?.url,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 type TaskInfoType = ExtractApiResponse<'getMarkingTask'> | ExtractArrayValue<ExtractApiResponse<'getMarkHistory'>>
 
 const currentTask = ref<TaskInfoType>()
@@ -262,6 +251,17 @@ const operationHandles: Partial<Record<OperationType, (...args: any) => void>> =
 const onOperationClick: OperationClick = ({ type, value }) => {
   operationHandles[type]?.(value)
 }
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: currentTask?.value?.url,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/marking/problem/index.vue

@@ -103,17 +103,6 @@ const sendBackVisible = ref<boolean>(false)
 
 const modelScore = ref<number[]>([])
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: currentProblem?.value?.filePath,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   onSearch()
@@ -253,6 +242,17 @@ const onSubmit = () => {
 }
 
 onOptionInit(onSearch)
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: currentProblem?.value?.filePath,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/marking/repeat/index.vue

@@ -99,17 +99,6 @@ const previewModalVisible = ref<boolean>(false)
 
 const modelScore = ref<number[]>([])
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: currentReMarkPaper?.value?.filePath,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   onSearch()
@@ -230,6 +219,17 @@ const onSubmit = () => {
 }
 
 onOptionInit(onSearch)
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: currentReMarkPaper?.value?.filePath,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 9 - 9
src/modules/marking/similar/index.vue

@@ -65,15 +65,6 @@ type RowType = ExtractMultipleApiResponse<'getSimilarPaperList'> & { index: numb
 
 const { onBack } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: currentSamePaper?.value?.filePath,
-    immediate: true,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 type OperationClick = MarkHeaderInstance['onClick']
 
 type OperationType = Parameters<Exclude<OperationClick, undefined>>[0]['type']
@@ -178,6 +169,15 @@ const onExport = () => {
 }
 
 onOptionInit(onSearch)
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: currentSamePaper?.value?.filePath,
+    immediate: true,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/marking/training-record/index.vue

@@ -63,17 +63,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: current?.value?.url,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   viewTrainingRecord()
@@ -132,6 +121,17 @@ const {
 } = useTableCheck(trainingRecordList)
 
 viewTrainingRecord()
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: current?.value?.url,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/marking/view-sample/index.vue

@@ -63,17 +63,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: current?.value?.url,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   viewSamplePaper()
@@ -121,6 +110,17 @@ const {
 } = useTableCheck(samplePaperList)
 
 viewSamplePaper()
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: current?.value?.url,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/monitor/system-check/index.vue

@@ -108,17 +108,6 @@ const sendBackVisible = ref<boolean>(false)
 
 const modelScore = ref<number[]>([])
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: currentSystemCheckPaper?.value?.filePath,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   onSearch()
@@ -268,6 +257,17 @@ const onSubmit = () => {
 }
 
 onOptionInit(onSearch)
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: currentSystemCheckPaper?.value?.filePath,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">

+ 11 - 11
src/modules/monitor/training-monitoring-detail/index.vue

@@ -79,17 +79,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: current?.value?.filePath,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   console.log('刷新')
@@ -144,6 +133,17 @@ const {
   onDbClick,
   onCurrentChange,
 } = useTableCheck(monitorDetail)
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: current?.value?.filePath,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss"></style>

+ 11 - 11
src/modules/quality/self-check-detail/index.vue

@@ -102,17 +102,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: current?.value?.filePath,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   console.log('刷新')
@@ -185,6 +174,17 @@ const onSubmit = () => {
     markSelfCheckData({ taskId: current.value.taskId, scores: modelScore.value })
   }
 }
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: current?.value?.filePath,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss"></style>

+ 11 - 11
src/modules/quality/subjective-check/index.vue

@@ -112,17 +112,6 @@ const {
   onViewStandard,
 } = useMarkHeader()
 
-const imgOption = computed<SetImgBgOption>(() => {
-  return {
-    image: currentSubjectiveCheck?.value?.filePath,
-    immediate: true,
-    rotate: rotate.value,
-    scale: scale.value,
-  }
-})
-
-const { drawing, dataUrl } = useSetImgBg(imgOption)
-
 /** 刷新 */
 const onRefresh = () => {
   onSearch()
@@ -283,6 +272,17 @@ const onConfirm = () => {
 }
 
 onOptionInit(onSearch)
+
+const imgOption = computed<SetImgBgOption>(() => {
+  return {
+    image: currentSubjectiveCheck?.value?.filePath,
+    immediate: true,
+    rotate: rotate.value,
+    scale: scale.value,
+  }
+})
+
+const { drawing, dataUrl } = useSetImgBg(imgOption)
 </script>
 
 <style scoped lang="scss">