|
@@ -1372,13 +1372,17 @@ export default {
|
|
},
|
|
},
|
|
getRightTree() {
|
|
getRightTree() {
|
|
console.log(this.wbsId, this.projectInfo.id, this.contractForm.id);
|
|
console.log(this.wbsId, this.projectInfo.id, this.contractForm.id);
|
|
- this.rightloading = true;
|
|
|
|
- getContractInfoTree(this.wbsId, this.projectInfo.id, this.contractForm.id).then((res) => {
|
|
|
|
- if (Array.isArray(res.data.data)) {
|
|
|
|
- this.$refs.treetotree.setRightTree(res.data.data);
|
|
|
|
- }
|
|
|
|
- this.rightloading = false;
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
|
|
+ if(this.wbsId){
|
|
|
|
+ this.rightloading = true;
|
|
|
|
+ getContractInfoTree(this.wbsId, this.projectInfo.id, this.contractForm.id).then((res) => {
|
|
|
|
+ if (Array.isArray(res.data.data)) {
|
|
|
|
+ this.$refs.treetotree.setRightTree(res.data.data);
|
|
|
|
+ }
|
|
|
|
+ this.rightloading = false;
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
saveWbsTree() {
|
|
saveWbsTree() {
|
|
let obj = {};
|
|
let obj = {};
|