|
@@ -3,7 +3,7 @@
|
|
|
<div class="container">
|
|
|
<div v-if="thisStep === 'start'" class="up_box">
|
|
|
<div class="left_box">
|
|
|
- <div class="upimg_box">
|
|
|
+ <div class="upimg_box boder_box">
|
|
|
<!-- TODO 拖拽设置不生效问题 ,但是测试那里可以实现拖拽,离大谱-->
|
|
|
<el-upload
|
|
|
v-if="!showImg"
|
|
@@ -14,7 +14,7 @@
|
|
|
:on-success="handleAvatarSuccess"
|
|
|
:before-upload="beforeUp"
|
|
|
>
|
|
|
- <img src="@/assets/images/add.png" class="avatar" />
|
|
|
+ <img src="@/assets/images/Frame427319159.png" class="avatar" />
|
|
|
<span>将图片拖入框内/点击按钮上传图片</span>
|
|
|
</el-upload>
|
|
|
<div v-else class="img_show">
|
|
@@ -34,7 +34,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="right_box">
|
|
|
- <div class="upimg_box">
|
|
|
+ <div class="upimg_box boder_box">
|
|
|
<el-upload
|
|
|
disabled
|
|
|
class="avatar-uploader"
|
|
@@ -42,7 +42,7 @@
|
|
|
:show-file-list="false"
|
|
|
:on-success="handleAvatarSuccess"
|
|
|
>
|
|
|
- <img src="@/assets/images/add.png" class="avatar" />
|
|
|
+ <img src="@/assets/images/FrameYun.png" class="avatar" />
|
|
|
<span>点击按钮上传图片</span>
|
|
|
</el-upload>
|
|
|
</div>
|
|
@@ -54,14 +54,22 @@
|
|
|
<img :src="toRaw(showImg)" class="avatar" />
|
|
|
<div class="light"></div>
|
|
|
</div>
|
|
|
+ <div class="text_box">
|
|
|
+ <span>请耐心等待扫描完成</span>
|
|
|
+ <Loading :small="true"></Loading>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div v-if="thisStep === 'end'" class="end_box">
|
|
|
<div class="left_box">
|
|
|
- <div class="upimg_box">
|
|
|
- <div class="img_show">
|
|
|
- <img :src="toRaw(showImg)" class="avatar" />
|
|
|
+ <div class="boder_box">
|
|
|
+ <div class="title">原始图片</div>
|
|
|
+ <div class="upimg_box">
|
|
|
+ <div class="img_show">
|
|
|
+ <img :src="toRaw(showImg)" class="avatar" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="sunmit_btn">
|
|
|
<!-- <el-upload
|
|
|
class="avatar-uploader"
|
|
@@ -75,14 +83,17 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="right_box">
|
|
|
- <div class="upimg_box">
|
|
|
- <el-scrollbar>
|
|
|
- <div class="text_box">
|
|
|
- {{ textData }}
|
|
|
- </div>
|
|
|
- </el-scrollbar>
|
|
|
+ <div class="boder_box">
|
|
|
+ <div class="title">识别结果</div>
|
|
|
+ <div class="upimg_box">
|
|
|
+ <el-scrollbar>
|
|
|
+ <div class="text_box">
|
|
|
+ {{ textData }}
|
|
|
+ </div>
|
|
|
+ </el-scrollbar>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="sunmit_btn copy-qb" @click="copyQbUrl()">全部复制</div>
|
|
|
+ <div class="sunmit_btn copy-qb" @click="copyQbUrl()">复制结果</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -99,6 +110,7 @@
|
|
|
import { onMounted, ref, toRaw, watch } from "vue";
|
|
|
import { ElMessage } from "element-plus";
|
|
|
import Clipboard from "clipboard";
|
|
|
+import Loading from "@/components/Loading/Loading.vue";
|
|
|
import PicTree from "@/components/PicTree/PicTree.vue"; //选择文件发送的列表
|
|
|
import { picTree } from "@/api/search/search.js";
|
|
|
import { ocrRemark, preview } from "@/api/common/common.js";
|
|
@@ -223,11 +235,23 @@ const reClick = () => {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.left_box {
|
|
|
- width: 30%;
|
|
|
+ width: 45%;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
margin-right: 48px;
|
|
|
+ .boder_box {
|
|
|
+ border: 1px solid #c1cce3;
|
|
|
+ }
|
|
|
+ .title {
|
|
|
+ width: 100%;
|
|
|
+ height: 40px;
|
|
|
+ background: #ebeff6;
|
|
|
+ line-height: 40px;
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 400;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
.img_show {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
@@ -243,7 +267,7 @@ const reClick = () => {
|
|
|
.upimg_box {
|
|
|
width: 100%;
|
|
|
height: 500px;
|
|
|
- border: 1px solid #c1cce3;
|
|
|
+
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
@@ -262,14 +286,26 @@ const reClick = () => {
|
|
|
}
|
|
|
}
|
|
|
.right_box {
|
|
|
- width: 30%;
|
|
|
+ width: 45%;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
+ .boder_box {
|
|
|
+ border: 1px solid #c1cce3;
|
|
|
+ }
|
|
|
+ .title {
|
|
|
+ width: 100%;
|
|
|
+ height: 40px;
|
|
|
+ background: #ebeff6;
|
|
|
+ line-height: 40px;
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 400;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
.upimg_box {
|
|
|
width: 100%;
|
|
|
height: 500px;
|
|
|
- border: 1px solid #c1cce3;
|
|
|
+ // border: 1px solid #c1cce3;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
@@ -287,6 +323,7 @@ const reClick = () => {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.text_box {
|
|
|
+ padding:16px ;
|
|
|
font-size: 14px;
|
|
|
font-weight: 500;
|
|
|
color: #000000;
|
|
@@ -296,27 +333,40 @@ const reClick = () => {
|
|
|
.load-box {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- justify-content: center;
|
|
|
+ // justify-content: center;
|
|
|
+ flex-direction: column;
|
|
|
+ .text_box{
|
|
|
+ width: 100%;
|
|
|
+ margin-top: 20px;
|
|
|
+ color: #06286C;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ span{
|
|
|
+ margin-right: 15px;
|
|
|
+ }
|
|
|
+ }
|
|
|
.light_box {
|
|
|
width: 500px;
|
|
|
height: 500px;
|
|
|
- background-image: url("@/assets/images/light.png");
|
|
|
+ background-image: url("@/assets/images/light_boder.png");
|
|
|
background-repeat: no-repeat;
|
|
|
background-size: contain;
|
|
|
position: relative;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
+ padding:0 15px;
|
|
|
img {
|
|
|
width: 100%;
|
|
|
// height: 100%;
|
|
|
}
|
|
|
.light {
|
|
|
- width: 100%;
|
|
|
+ width: calc(100% - 30px);
|
|
|
height: 1px;
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
- left: 0;
|
|
|
+ left: 15px;
|
|
|
right: 0;
|
|
|
bottom: 0;
|
|
|
background-color: rgba(0, 255, 255, 0.7);
|
|
@@ -356,8 +406,8 @@ const reClick = () => {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
img {
|
|
|
- width: 40px;
|
|
|
- height: 40px;
|
|
|
+ width: 220;
|
|
|
+ height: 220px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
span {
|