|
@@ -402,7 +402,7 @@
|
|
|
<el-button
|
|
|
:type="activeType != 4?'info':'success'"
|
|
|
size="medium"
|
|
|
- :disabled="saveBtnDisabled
|
|
|
+ :disabled="saveBtnDisabled
|
|
|
|| leftloading || logleftloading
|
|
|
|| rightloading || logrightloading"
|
|
|
:loading="saveBtnLoad"
|
|
@@ -693,7 +693,9 @@ export default {
|
|
|
|
|
|
getProjectDeatil () {
|
|
|
getProjectDeatil(this.id).then((res) => {
|
|
|
- this.projectForm = res.data.data;
|
|
|
+ const data = res.data.data
|
|
|
+ console.log(data)
|
|
|
+ this.projectForm = data;
|
|
|
if (Number(this.projectForm.estimatedAmount) < 0) {
|
|
|
this.projectForm.estimatedAmount = 0
|
|
|
}
|
|
@@ -1075,14 +1077,10 @@ export default {
|
|
|
|
|
|
templateTypeChange () {
|
|
|
findWbsTreeList(this.templateType).then((res) => {
|
|
|
- let arr = [{
|
|
|
- label: '公有库',
|
|
|
- options: [],
|
|
|
- },
|
|
|
- {
|
|
|
- label: '私有库',
|
|
|
- options: [],
|
|
|
- }];
|
|
|
+ let arr = [
|
|
|
+ {label: '公有库', options: []},
|
|
|
+ {label: '私有库', options: []}
|
|
|
+ ];
|
|
|
let data = res.data.data;
|
|
|
if (data.wbsInfos && data.wbsInfos.length) {
|
|
|
data.wbsInfos.forEach((element) => {
|
|
@@ -1199,9 +1197,12 @@ export default {
|
|
|
|
|
|
getRightTree() {
|
|
|
this.rightloading = true;
|
|
|
- findProjectTree(this.projectForm.id, this.projectForm.referenceWbsTemplateId).then((res) => {
|
|
|
+ let WbsId = this.templateType === 1 ? this.projectForm.referenceWbsTemplateId : this.projectForm.referenceWbsTemplateIdTrial
|
|
|
+ findProjectTree(this.projectForm.id, WbsId).then((res) => {
|
|
|
if (Array.isArray(res.data.data)) {
|
|
|
this.$refs.treetotree.setRightTree(res.data.data);
|
|
|
+ } else {
|
|
|
+ this.$refs.treetotree.setRightTree([]);
|
|
|
}
|
|
|
this.rightloading = false;
|
|
|
})
|