Browse Source

优化

master
陈裕财 4 years ago
parent
commit
5719443a75
  1. 28
      src/views/xm/core/xmProjectGroup/XmProjectGroupMng.vue

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

@ -40,11 +40,11 @@
width="50%" >
<el-row v-if="currNodeType=='project'">
<el-button type="primary" @click="showAdd" icon="el-icon-plus" v-loading="load.add">新增下级小组</el-button>
<el-button @click="showAddSub(editForm)" icon="el-icon-plus" v-loading="load.add">通过模板批量导入下级小组</el-button>
<el-button @click="showAdd" icon="el-icon-plus" v-loading="load.add">通过模板批量导入下级小组</el-button>
</el-row>
<el-row v-if="currNodeType=='product'">
<el-button type="primary" @click="showAdd" icon="el-icon-plus" v-loading="load.add">新增下级小组</el-button>
<el-button @click="showAddSub(editForm)" icon="el-icon-plus" v-loading="load.add">通过模板批量导入下级小组</el-button>
<el-button @click="showAdd" icon="el-icon-plus" v-loading="load.add">通过模板批量导入下级小组</el-button>
</el-row>
<el-row v-if="currNodeType=='group'">
@ -361,15 +361,35 @@
if(this.xmProduct && this.xmProduct.id){
this.addForm.productId=this.xmProduct.id
this.addForm.pgClass="1"
this.addForm.projectId=""
this.addForm.projectId=null
}else{
this.addForm.productId=""
this.addForm.productId=null
this.addForm.pgClass="0"
this.addForm.projectId=this.selProject.id
}
this.addFormVisible = true;
//this.addForm=Object.assign({}, this.editForm);
},
// XmProjectGroup xm_project_group
showAddSub: function (row) {
if(this.xmProduct && this.xmProduct.id){
this.addForm.productId=this.xmProduct.id
this.addForm.pgClass="1"
this.addForm.projectId=null
}else{
this.addForm.productId=null
this.addForm.pgClass="0"
this.addForm.projectId=this.selProject.id
}
if(row){
this.addForm.pgroupId=row.id
this.addForm.pgroupName=row.groupName
this.addForm.groupName=row.groupName+"-"+"下级小组xx"
this.addForm.id=null
}
this.addFormVisible = true;
//this.addForm=Object.assign({}, this.editForm);
},
afterAddSubmit(){
this.addFormVisible=false;
this.pageInfo.count=true;

Loading…
Cancel
Save