Browse Source

优化

master
陈裕财 4 years ago
parent
commit
67a6a23407
  1. 4
      src/views/xm/core/xmIteration/XmIterationForProjectComplex.vue
  2. 4
      src/views/xm/core/xmProduct/XmProductForProjectComplex.vue
  3. 7
      src/views/xm/core/xmProject/XmProjectComplex.vue
  4. 6
      src/views/xm/core/xmProjectGroup/XmProjectGroupMng.vue
  5. 9
      src/views/xm/core/xmProjectPhase/XmProjectPhaseMng.vue

4
src/views/xm/core/xmIteration/XmIterationForProjectComplex.vue

@ -143,7 +143,7 @@
tabClick(tab){
if(this.xmIteration==null || !this.xmIteration.id){
this.iterationVisible=true;
this.$notify({showClose: true, message:"请先选中左边迭代", type: 'warning', position: 'top-left' });
this.$notify({showClose: true, message:"请先选中左边迭代", type: 'warning' });
}
return false;
this.showPanel=tab.name
@ -175,7 +175,7 @@
if(this.xmIteration==null || !this.xmIteration.id){
this.iterationVisible=true;
this.$notify({showClose: true, message:"请先选中左边迭代", type: 'warning', position: 'top-left' });
this.$notify({showClose: true, message:"请先选中左边迭代", type: 'warning' });
}
this.$nextTick(() => {

4
src/views/xm/core/xmProduct/XmProductForProjectComplex.vue

@ -145,7 +145,7 @@ import XmProductOverview from "./XmProductOverview";
tabClick(tab){
if(this.xmProduct==null || !this.xmProduct.id){
this.productVisible=true;
this.$notify({showClose: true, message:"请先选中左边产品", type: 'warning', position: 'top-left'});
this.$notify({showClose: true, message:"请先选中左边产品", type: 'warning'});
}
this.showPanel=tab.name
}
@ -168,7 +168,7 @@ XmProductProjectForLink,
if(this.xmProduct==null || !this.xmProduct.id){
this.productVisible=true;
this.$notify({showClose: true, message:"请先选中左边产品", type: 'warning', position: 'top-left'});
this.$notify({showClose: true, message:"请先选中左边产品", type: 'warning'});
}
this.$nextTick(() => {

7
src/views/xm/core/xmProject/XmProjectComplex.vue

@ -147,7 +147,7 @@ import XmProjectOverview from "./XmProjectOverview";
tabClick(tab){
if(this.selProject==null || !this.selProject.id){
this.projectVisible=true;
this.$notify({showClose: true, message:"请先选中左边项目", type: 'warning', position: 'top-left'});
this.$notify({showClose: true, message:"请先选中左边项目", type: 'warning'});
}
this.showPanel=tab.name
}
@ -167,6 +167,11 @@ import XmProjectOverview from "./XmProjectOverview";
XmProjectOverview,
},
mounted() {
if(this.selProject==null || !this.selProject.id){
this.projectVisible=true;
this.$notify({showClose: true, message:"请先选中左边项目", type: 'warning'});
}
this.$nextTick(() => {
});

6
src/views/xm/core/xmProjectGroup/XmProjectGroupMng.vue

@ -142,8 +142,8 @@
<el-drawer v-if="selProject" :title="selProject==null?'操作日志':selProject.name+'团队操作日志'" center :visible.sync="xmRecordVisible" size="50%" :close-on-click-modal="false" append-to-body>
<xm-record :obj-type="'group'" :visible="xmRecordVisible" :project-id="selProject.id" :simple="1"></xm-record>
</el-drawer>
<el-drawer v-else-if="xmProduct&&!selProject" :title="xmProject==null?'操作日志':xmProject.productName+'团队操作日志'" center :visible.sync="xmRecordVisible" size="50%" :close-on-click-modal="false" append-to-body>
<xm-record :obj-type="'group'" :visible="xmRecordVisible" :product-id="xmProject.id" :simple="1"></xm-record>
<el-drawer v-else-if="xmProduct&&!selProject" :title="xmProduct==null?'操作日志':xmProduct.productName+'团队操作日志'" center :visible.sync="xmRecordVisible" size="50%" :close-on-click-modal="false" append-to-body>
<xm-record :obj-type="'group'" :visible="xmRecordVisible" :product-id="xmProduct.id" :simple="1"></xm-record>
</el-drawer>
<el-drawer v-if="currNodeType=='group'&&editForm.groupName" :title="editForm.groupName+'小组进度数据查看'" center :visible.sync="xmProjectGroupStateVisible" size="80%" :close-on-click-modal="false" append-to-body>
@ -152,7 +152,7 @@
<el-drawer v-else-if="selProject" :title="selProject.name+'小组进度数据查看'" center :visible.sync="xmProjectGroupStateVisible" size="80%" :close-on-click-modal="false" append-to-body>
<xm-project-group-state-mng :sel-project="selProject" :visible="xmProjectGroupStateVisible" ></xm-project-group-state-mng>
</el-drawer>
<el-drawer v-else-if="!selProject && xmProduct" :title="xmProduct.name+'小组进度数据查看'" center :visible.sync="xmProjectGroupStateVisible" size="80%" :close-on-click-modal="false" append-to-body>
<el-drawer v-else-if="!selProject && xmProduct" :title="xmProduct.productName+'小组进度数据查看'" center :visible.sync="xmProjectGroupStateVisible" size="80%" :close-on-click-modal="false" append-to-body>
<xm-project-group-state-mng :xm-product="xmProduct" :visible="xmProjectGroupStateVisible" ></xm-project-group-state-mng>
</el-drawer>

9
src/views/xm/core/xmProjectPhase/XmProjectPhaseMng.vue

@ -1282,7 +1282,14 @@ import XmProjectGroupSelect from '../xmProjectGroup/XmProjectGroupSelect.vue';
})
},
selectTotalProjectAndPhaseBudgetCost(){
selectTotalProjectAndPhaseBudgetCost({projectId:this.selProject.id}).then(res=>{
var params={ }
if(this.selProject && this.selProject.id){
params.projectId=this.selProject.id
}
if(this.xmProduct && this.xmProduct.id){
params.productId=this.xmProduct.id
}
selectTotalProjectAndPhaseBudgetCost(params ).then(res=>{
var tips = res.data.tips;
if(tips.isOk){
this.totalProjectAndPhaseBudgetCost=res.data.data;

Loading…
Cancel
Save