|
@@ -1561,29 +1561,37 @@ export default {
|
|
nodeType: 2,
|
|
nodeType: 2,
|
|
})
|
|
})
|
|
this.pushfileTap = true
|
|
this.pushfileTap = true
|
|
- await this.saixuan(this.dialogData)
|
|
|
|
- console.log(this.checkXuan);
|
|
|
|
|
|
+ // await this.saixuan(this.dialogData)
|
|
|
|
+ await this.saixuan(this.dialogData[0].selectAllNodes)
|
|
this.$refs.trees.setCheckedKeys(this.checkXuan);
|
|
this.$refs.trees.setCheckedKeys(this.checkXuan);
|
|
},
|
|
},
|
|
- // 赛选
|
|
|
|
saixuan (da) {//赛选
|
|
saixuan (da) {//赛选
|
|
if (da.length > 0) {
|
|
if (da.length > 0) {
|
|
- let tag = true
|
|
|
|
- da.forEach(val => {
|
|
|
|
- if (val.isDisplayTree == 1 && val.hasChildren) {
|
|
|
|
- let ks = this.saixuan(val.children)
|
|
|
|
- if (ks) {
|
|
|
|
- this.checkXuan.push(val.id)
|
|
|
|
- }
|
|
|
|
- } else if (val.isDisplayTree == 1 && !val.hasChildren) {
|
|
|
|
- this.checkXuan.push(val.id)
|
|
|
|
- } else {
|
|
|
|
- tag = false
|
|
|
|
- }
|
|
|
|
|
|
+ da.forEach(val=>{
|
|
|
|
+ this.checkXuan.push(val)
|
|
})
|
|
})
|
|
- return tag
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
+ // 赛选
|
|
|
|
+ // saixuan (da) {//赛选
|
|
|
|
+ // if (da.length > 0) {
|
|
|
|
+ // let tag = true
|
|
|
|
+ // da.forEach(val => {
|
|
|
|
+ // if (val.isDisplayTree == 1 && val.hasChildren) {
|
|
|
|
+ // let ks = this.saixuan(val.children)
|
|
|
|
+ // if (ks) {
|
|
|
|
+ // this.checkXuan.push(val.id)
|
|
|
|
+ // }
|
|
|
|
+ // } else if (val.isDisplayTree == 1 && !val.hasChildren) {
|
|
|
|
+ // this.checkXuan.push(val.id)
|
|
|
|
+ // } else {
|
|
|
|
+ // tag = false
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // return tag
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
pushFileClose () {//弹框关闭事件
|
|
pushFileClose () {//弹框关闭事件
|
|
this.checkXuan = []
|
|
this.checkXuan = []
|
|
},
|
|
},
|