{
this.getTreeselect();
this.fileList = []
- this.upload.shelfId=undefined;
+ this.upload.id=undefined;
this.upload.wlsjNode=undefined;
this.upload.open = true;
}).catch(() => {
@@ -454,7 +451,7 @@ export default {
this.$modal.confirm(`是否确认选择【${this.dangAnNode.label}】档案目录?`).then(() => {
this.getTreeselect();
this.smwj.list = [];
- this.smwj.shelfId=undefined;
+ this.smwj.id=undefined;
this.smwj.wlsjNode=undefined;
this.smwj.open = true;
}).catch(() => {
@@ -468,8 +465,8 @@ export default {
},
/** 查询目录下拉树结构 */
getTreeselect() {
- listBookshelf().then(response => {
- this.shuJiaOptions = this.handleTree(response.rows, "shelfId", "pid")
+ getCabinetTree().then(response => {
+ this.shuJiaOptions = response.data
});
},
// 上传文件之前的钩子
@@ -537,14 +534,14 @@ export default {
}
}
},
- // 物理书架树选择 点击上传
+ // 档案室密集柜树选择 点击上传
selectTree(data, Node) {
- this.upload.shelfId = data.shelfId;
+ this.upload.id = data.id;
this.upload.wlsjNode = Node;
},
- // 物理书架树选择 扫描上传
+ // 档案室密集柜树选择 扫描上传
selectTree1(data, Node) {
- this.smwj.shelfId = data.shelfId;
+ this.smwj.id = data.id;
this.smwj.wlsjNode = Node;
},
// 获取所有label
@@ -596,7 +593,6 @@ export default {
this.percentage = 0;
this.openProgress = true;
collectRecongnize(arr).then(response => {
- console.log(3232,response);
if(response.fails&&response.fails.length>0){
this.pictureRecard = response.fails
this.isFails = true;
@@ -663,12 +659,9 @@ export default {
}
})
.then( (response)=> {
- console.log(response.data.file_counts);
this.percentage = Math.round((response.data.file_counts/this.pictureRecard.length)*100);
- console.log(this.percentage);
}).catch((error)=> {
// 处理错误情况
- console.log(error);
})
},
}