diff --git a/dangan-ui/src/views/dangan/cabinet/index.vue b/dangan-ui/src/views/dangan/cabinet/index.vue index a863885..7bacc4f 100644 --- a/dangan-ui/src/views/dangan/cabinet/index.vue +++ b/dangan-ui/src/views/dangan/cabinet/index.vue @@ -1,144 +1,36 @@ diff --git a/dangan-ui/src/views/dangan/collection/index.vue b/dangan-ui/src/views/dangan/collection/index.vue index 50c4fd2..de8a47e 100644 --- a/dangan-ui/src/views/dangan/collection/index.vue +++ b/dangan-ui/src/views/dangan/collection/index.vue @@ -70,25 +70,24 @@ -
-
-
物理书架:
+
+
+
档案室密集柜:
-
+
-
-
-
物理书架:
+
+
+
档案室密集柜:
-
@@ -179,7 +177,7 @@
-
+
{ 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); }) }, }