From 17df8150720b9f37cf96937e490ee25f934397f9 Mon Sep 17 00:00:00 2001 From: Yi Bokun <90198481+yibaikuai@users.noreply.github.com> Date: Tue, 27 Sep 2022 19:06:59 +0800 Subject: [PATCH] =?UTF-8?q?[Feature]=20=E5=89=8D=E7=AB=AF=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E5=9C=A8=E7=BA=BF=E5=9C=B0=E5=9B=BE=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E6=88=AA=E5=9B=BE=E4=B8=8A=E4=BC=A0=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=20(#24)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: yibaikuai Co-authored-by: Terayco <78073130+terayco@users.noreply.github.com> --- frontend/src/components/MyVueCropper.vue | 11 +- frontend/src/views/mainfun/Classify.vue | 1 + frontend/src/views/mainfun/ClassifyScene.vue | 7 +- frontend/src/views/mainfun/DetectTargets.vue | 1 + frontend/src/views/mainfun/OnlineMap.vue | 146 +++++++++++++++++-- 5 files changed, 144 insertions(+), 22 deletions(-) diff --git a/frontend/src/components/MyVueCropper.vue b/frontend/src/components/MyVueCropper.vue index e88520e..1e7638a 100644 --- a/frontend/src/components/MyVueCropper.vue +++ b/frontend/src/components/MyVueCropper.vue @@ -123,7 +123,7 @@ export default { default:0 }, }, - emits: ["finish", "cut-changed"], + emits: ["finish", "cut-changed",'child-refresh'], data() { return { @@ -261,17 +261,14 @@ export default { this.fileList = []; hideFullScreenLoading("#load"); this.$message.success("上传成功!"); - setTimeout(() => { - this.getUploadImg("地物分类"); - }, 200); - + this.$emit('child-refresh') }); } else if (funtype === "目标检测") { this.detectTargetsUpload(this.uploadSrc).then((res) => { this.fileList = []; hideFullScreenLoading("#load"); this.$message.success("上传成功!"); - this.getUploadImg("目标检测"); + this.$emit('child-refresh') }); } else if (funtype === "场景分类") { @@ -281,7 +278,7 @@ export default { this.fileList = []; hideFullScreenLoading("#load"); this.$message.success("上传成功!"); - this.getUploadImg("场景分类"); + this.$emit('child-refresh') }); } this.$emit("cut-changed", false); diff --git a/frontend/src/views/mainfun/Classify.vue b/frontend/src/views/mainfun/Classify.vue index 750df0f..a347cf7 100644 --- a/frontend/src/views/mainfun/Classify.vue +++ b/frontend/src/views/mainfun/Classify.vue @@ -413,6 +413,7 @@ :child-prehandle="uploadSrc.prehandle" :child-denoise="uploadSrc.denoise" @cut-changed="notvisible" + @child-refresh="getMore" /> @@ -211,7 +212,7 @@ :src="beforeList[index]" :fit="fit" :lazy="true" - class="gobig" + class="gobig custom-pic" :preview-src-list="[beforeList[index]]" :preview-teleported="true" /> @@ -463,4 +464,8 @@ export default { font-weight: 500; font-family: Microsoft JhengHei UI, sans-serif; } +.custom-pic{ + width: 256px; + height: 256px; +} diff --git a/frontend/src/views/mainfun/DetectTargets.vue b/frontend/src/views/mainfun/DetectTargets.vue index f6f8db0..5b27680 100644 --- a/frontend/src/views/mainfun/DetectTargets.vue +++ b/frontend/src/views/mainfun/DetectTargets.vue @@ -354,6 +354,7 @@ :child_prehandle="uploadSrc.prehandle" :child_denoise="uploadSrc.denoise" @cut-changed="notvisible" + @child-refresh="getMore" /> 地物分类 + + 场景分类 + + + + + + +
+
1
+
+
+ +
+ + +
+ 原图 +
+ {{ sceneKey[0][0] }}:{{ scene[0][sceneKey[0][0]] }} +
+
+ +
+ {{ Object.keys(scene[0])[0] }}:{{ scene[0][Object.keys(scene[0])[0]] }} +
+
+
+
+
+
- +