|
@@ -991,6 +991,8 @@ export default {
|
|
|
},
|
|
|
highVisible:false,
|
|
|
configVisible:false,
|
|
|
+
|
|
|
+ projectId:'',
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -1102,7 +1104,8 @@ export default {
|
|
|
async lazyTree (parentId) {//树节点懒加载
|
|
|
const { data: res } = await lazyTree({
|
|
|
parentId,
|
|
|
- token: this.token
|
|
|
+ token: this.token,
|
|
|
+ projectId:this.projectId
|
|
|
})
|
|
|
console.log(res);
|
|
|
if (res.code == 200 && res.msg == '操作成功') {
|
|
@@ -1208,7 +1211,8 @@ export default {
|
|
|
},
|
|
|
async archiveTreetree4 () {//全加载左侧树
|
|
|
const { data: res } = await archiveTreetree({
|
|
|
- token: this.token
|
|
|
+ token: this.token,
|
|
|
+ projectId:this.projectId
|
|
|
})
|
|
|
console.log(res);
|
|
|
if (res.code == 200 && res.msg == "操作成功") {
|
|
@@ -1428,6 +1432,7 @@ export default {
|
|
|
this.checkXuan = []
|
|
|
},
|
|
|
async archiveTreetree (da) {//右侧树全加载接口
|
|
|
+ da = Object.assign(da,{projectId:this.projectId})
|
|
|
const { data: res } = await archiveTreetree(da)
|
|
|
console.log(res);
|
|
|
if (res.code == 200 && res.msg == "操作成功") {
|
|
@@ -1454,6 +1459,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async archiveTreetree2 (da) {//右侧树全加载接口
|
|
|
+ da = Object.assign(da,{projectId:this.projectId})
|
|
|
+ //console.log(da,'ddddddda')
|
|
|
const { data: res } = await archiveTreetree(da)
|
|
|
console.log(res);
|
|
|
if (res.code == 200 && res.msg == "操作成功") {
|
|
@@ -1500,7 +1507,9 @@ export default {
|
|
|
this.archiveTreetree4()//全加载左侧树
|
|
|
},
|
|
|
mounted () {
|
|
|
- this.heights = this.$refs.container.$el.offsetHeight
|
|
|
+ this.heights = this.$refs.container.$el.offsetHeight;
|
|
|
+
|
|
|
+ this.projectId = this.$route.query.projectId;
|
|
|
}
|
|
|
}
|
|
|
</script>
|