From 473880cf5dddcae4fc8e79a6d0e07790dda7ab3d Mon Sep 17 00:00:00 2001 From: wanglei Date: Mon, 5 Aug 2024 15:17:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E9=87=87=E9=9B=86=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E4=B8=9A=E5=8A=A1=E7=B1=BB=E5=9E=8B=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/dangan/collection/index.vue | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/dangan-ui/src/views/dangan/collection/index.vue b/dangan-ui/src/views/dangan/collection/index.vue index e3944e9..cac5362 100644 --- a/dangan-ui/src/views/dangan/collection/index.vue +++ b/dangan-ui/src/views/dangan/collection/index.vue @@ -298,7 +298,6 @@ import { listCatalog } from "@/api/dangan/catalog"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; -import { getCabinetTree } from "@/api/dangan/cabinet"; import { collectSaves, collectRecongnize, getIp } from "@/api/dangan/collection"; import { listTask } from "@/api/dangan/task"; import '@/utils/WebScan'; @@ -306,7 +305,7 @@ import '@/utils/WebScan'; export default { name: "Collection", components: {Treeselect}, - dicts: ['total_task', 'tatal_task_pic', 'url'], + dicts: ['total_task', 'tatal_task_pic'], data() { return { Ip:null, @@ -620,9 +619,13 @@ export default { formData.append('picRecard', new Blob([JSON.stringify(DaPicturesRecard)], {type: 'application/json',})); collectSaves(formData).then(response => { - this.pictureRecard = response.data; - this.yxPictureRecardNum = 0; - this.wxPictureRecardNum = this.pictureRecard.length; + let YwType = this.dangAnNode.data.ywType + if(YwType==='option1'||YwType==='option2'||YwType==='option3'||YwType==='option4'||YwType==='option5'||YwType==='option6'||YwType==='option7'||YwType==='option8'||YwType==='option9'){ + this.pictureRecard = response.data; + this.yxPictureRecardNum = 0; + this.wxPictureRecardNum = this.pictureRecard.length; + } + this.$modal.msgSuccess(response.msg); this.smwj.open = false; this.smwj.loading = false; }).catch(err => { @@ -661,11 +664,14 @@ export default { DaPicturesRecard.ywType = this.dangAnNode.data.ywType; formData.append('picRecard', new Blob([JSON.stringify(DaPicturesRecard)], {type: 'application/json',})); - collectSaves(formData).then(response => { - this.pictureRecard = response.data; - this.yxPictureRecardNum = 0; - this.wxPictureRecardNum = this.pictureRecard.length; + let YwType = this.dangAnNode.data.ywType + if(YwType==='option1'||YwType==='option2'||YwType==='option3'||YwType==='option4'||YwType==='option5'||YwType==='option6'||YwType==='option7'||YwType==='option8'||YwType==='option9'){ + this.pictureRecard = response.data; + this.yxPictureRecardNum = 0; + this.wxPictureRecardNum = this.pictureRecard.length; + } + this.$modal.msgSuccess(response.msg); this.upload.open = false; this.upload.loading = false; }).catch(err => {