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 => {