|
|
|
@ -298,7 +298,6 @@
|
|
|
|
import { listCatalog } from "@/api/dangan/catalog";
|
|
|
|
import { listCatalog } from "@/api/dangan/catalog";
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
import { getCabinetTree } from "@/api/dangan/cabinet";
|
|
|
|
|
|
|
|
import { collectSaves, collectRecongnize, getIp } from "@/api/dangan/collection";
|
|
|
|
import { collectSaves, collectRecongnize, getIp } from "@/api/dangan/collection";
|
|
|
|
import { listTask } from "@/api/dangan/task";
|
|
|
|
import { listTask } from "@/api/dangan/task";
|
|
|
|
import '@/utils/WebScan';
|
|
|
|
import '@/utils/WebScan';
|
|
|
|
@ -306,7 +305,7 @@ import '@/utils/WebScan';
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Collection",
|
|
|
|
name: "Collection",
|
|
|
|
components: {Treeselect},
|
|
|
|
components: {Treeselect},
|
|
|
|
dicts: ['total_task', 'tatal_task_pic', 'url'],
|
|
|
|
dicts: ['total_task', 'tatal_task_pic'],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
Ip:null,
|
|
|
|
Ip:null,
|
|
|
|
@ -620,9 +619,13 @@ export default {
|
|
|
|
formData.append('picRecard', new Blob([JSON.stringify(DaPicturesRecard)], {type: 'application/json',}));
|
|
|
|
formData.append('picRecard', new Blob([JSON.stringify(DaPicturesRecard)], {type: 'application/json',}));
|
|
|
|
|
|
|
|
|
|
|
|
collectSaves(formData).then(response => {
|
|
|
|
collectSaves(formData).then(response => {
|
|
|
|
|
|
|
|
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.pictureRecard = response.data;
|
|
|
|
this.yxPictureRecardNum = 0;
|
|
|
|
this.yxPictureRecardNum = 0;
|
|
|
|
this.wxPictureRecardNum = this.pictureRecard.length;
|
|
|
|
this.wxPictureRecardNum = this.pictureRecard.length;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.$modal.msgSuccess(response.msg);
|
|
|
|
this.smwj.open = false;
|
|
|
|
this.smwj.open = false;
|
|
|
|
this.smwj.loading = false;
|
|
|
|
this.smwj.loading = false;
|
|
|
|
}).catch(err => {
|
|
|
|
}).catch(err => {
|
|
|
|
@ -661,11 +664,14 @@ export default {
|
|
|
|
DaPicturesRecard.ywType = this.dangAnNode.data.ywType;
|
|
|
|
DaPicturesRecard.ywType = this.dangAnNode.data.ywType;
|
|
|
|
formData.append('picRecard', new Blob([JSON.stringify(DaPicturesRecard)], {type: 'application/json',}));
|
|
|
|
formData.append('picRecard', new Blob([JSON.stringify(DaPicturesRecard)], {type: 'application/json',}));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
collectSaves(formData).then(response => {
|
|
|
|
collectSaves(formData).then(response => {
|
|
|
|
|
|
|
|
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.pictureRecard = response.data;
|
|
|
|
this.yxPictureRecardNum = 0;
|
|
|
|
this.yxPictureRecardNum = 0;
|
|
|
|
this.wxPictureRecardNum = this.pictureRecard.length;
|
|
|
|
this.wxPictureRecardNum = this.pictureRecard.length;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.$modal.msgSuccess(response.msg);
|
|
|
|
this.upload.open = false;
|
|
|
|
this.upload.open = false;
|
|
|
|
this.upload.loading = false;
|
|
|
|
this.upload.loading = false;
|
|
|
|
}).catch(err => {
|
|
|
|
}).catch(err => {
|
|
|
|
|