|
@@ -1756,7 +1756,7 @@ export default {
|
|
|
const {wbsid, pid, type} = this.$route.query;
|
|
|
this.id = wbsid
|
|
|
this.projectid = pid
|
|
|
- this.wbsType = Number(type)
|
|
|
+ this.wbsType = type ? Number(type) : 1
|
|
|
|
|
|
this.getNodeTypelist();
|
|
|
this.getTableTypelist();
|
|
@@ -1770,7 +1770,10 @@ export default {
|
|
|
if (node.level != 0) {
|
|
|
pid = node.data.id
|
|
|
}
|
|
|
- getLazytree(this.id, pid, this.userInfo.tenant_id, this.projectid).then((res) => {
|
|
|
+ const type = this.wbsType
|
|
|
+ getLazytree(this.id, pid, this.userInfo.tenant_id, this.projectid, {
|
|
|
+ wbsType: type
|
|
|
+ }).then((res) => {
|
|
|
let arr = [];
|
|
|
if (Array.isArray(res.data.data)) {
|
|
|
arr = res.data.data;
|