档案采集其他业务类型上传

master
wanglei 1 year ago
parent bf114df4a1
commit 473880cf5d

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

Loading…
Cancel
Save