档案目录修改

master
wanglei 2 years ago
parent bacced1bb9
commit 3fbc6ad6e1

@ -334,7 +334,6 @@ export default {
type: 'error'
});
}else {
console.log(result.data);
if(result.data.indexOf('M3230') !== -1){
_this.WebScanSetParams()
}else {
@ -425,12 +424,12 @@ export default {
catalogTreeselect().then(response => {
this.dangAnOptions = response.data;
if(this.$route.query.id){
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(this.$route.query.id);
this.dangAnNode = this.$refs.tree.getNode(this.$route.query.id);
console.log(3132, this.dangAnNode);
});
}
});
},
@ -441,12 +440,12 @@ export default {
},
//
handleNodeClick(data, Node) {
console.log(23132,Node);
this.dangAnID = data.id;
this.dangAnNode = Node;
},
/** 点击上传操作 */
handleUpload() {
if(this.dangAnNode){
this.$modal.confirm(`是否确认选择【${this.dangAnNode.label}】档案目录?`).then(() => {
this.getTreeselect();
this.fileList = []
@ -456,9 +455,15 @@ export default {
}).catch(() => {
this.upload.open = false;
});
}else {
this.$alert(`请先选择档案目录`, `提示`, {
type: 'warning'
});
}
},
//
handleScan(){
if(this.dangAnNode){
this.$modal.confirm(`是否确认选择【${this.dangAnNode.label}】档案目录?`).then(() => {
this.getTreeselect();
this.smwj.list = [];
@ -468,6 +473,11 @@ export default {
}).catch(() => {
this.smwj.open = false;
});
}else {
this.$alert(`请先选择档案目录`, `提示`, {
type: 'warning'
});
}
},
/** 查询目录下拉树结构 */
getTreeselect() {

Loading…
Cancel
Save