From aa813c964916563720355c6dabc3b806a89836ed Mon Sep 17 00:00:00 2001 From: ZhangAo Date: Fri, 20 Mar 2026 17:26:05 +0800 Subject: [PATCH] u --- .../ocr-uniapp/src/pages-sub/upload/index.vue | 17 +++++++++++------ .../src/views/system/permission/index.vue | 15 --------------- .../ocr-vue/src/views/test/detail.vue | 11 ----------- .../ocr-vue/src/views/test/index.vue | 7 ------- 4 files changed, 11 insertions(+), 39 deletions(-) delete mode 100644 code/container-ocr/ocr-vue/src/views/test/detail.vue delete mode 100644 code/container-ocr/ocr-vue/src/views/test/index.vue diff --git a/code/container-ocr/ocr-uniapp/src/pages-sub/upload/index.vue b/code/container-ocr/ocr-uniapp/src/pages-sub/upload/index.vue index 05b83140..d366ccc4 100644 --- a/code/container-ocr/ocr-uniapp/src/pages-sub/upload/index.vue +++ b/code/container-ocr/ocr-uniapp/src/pages-sub/upload/index.vue @@ -14,6 +14,8 @@ const form = ref({ boxImageUrl: '', }) +const otherImages = ref([]) + function handleChooseBox() { uni.chooseImage({ count: 1, @@ -23,6 +25,11 @@ function handleChooseBox() { boxImage.value = tempFile.path + toast.loading('OCR识别中,请稍等 . . .', { + overlay: true, + transparent: false, + }) + imageCompress(tempFile.path).then((compressRes) => { uploadFileToAliyun(compressRes.path, tempFile.name, 'image').then((res) => { if (res.url) { @@ -30,11 +37,6 @@ function handleChooseBox() { ocrFinish.value = false - toast.loading('OCR识别中,请稍等 . . .', { - overlay: true, - transparent: false, - }) - recognizeOcrBoxApi({ fileUrl: form.value.boxImageUrl, }).then((ocrRes) => { @@ -171,7 +173,10 @@ function handleDeleteBoxImage() { - + diff --git a/code/container-ocr/ocr-vue/src/views/system/permission/index.vue b/code/container-ocr/ocr-vue/src/views/system/permission/index.vue index e2f6576d..fa867a74 100644 --- a/code/container-ocr/ocr-vue/src/views/system/permission/index.vue +++ b/code/container-ocr/ocr-vue/src/views/system/permission/index.vue @@ -544,21 +544,6 @@ function handleShowBatchCopyDialog() { - - - -const router = useRouter(); - - - - - diff --git a/code/container-ocr/ocr-vue/src/views/test/index.vue b/code/container-ocr/ocr-vue/src/views/test/index.vue deleted file mode 100644 index 626a40ab..00000000 --- a/code/container-ocr/ocr-vue/src/views/test/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - -