Merge remote-tracking branch 'origin/master'

master
hansha 2 years ago
commit c3b50be6aa

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

Loading…
Cancel
Save