{{this.filters.product.productName}}
- 选产品
+
选择需求
{{filters.menus[0].menuName.substr(0,5)}}等({{filters.menus.length}})个
@@ -26,8 +26,7 @@
- 项目:{{this.filters.selProject.name}}
- 选项目
+
需求:
@@ -107,9 +106,6 @@
-
-
-
@@ -132,7 +128,7 @@
import xmMenuSelect from '../xmMenu/XmMenuSelect';
import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//修改界面
- import XmProjectList from '../xmProject/XmProjectList';
+ import XmProjectSelect from '@/views/xm/core/components/XmProjectSelect';
import XmGroupMng from '../xmGroup/XmGroupMng';
export default {
@@ -444,7 +440,7 @@
components: {
'xm-test-case-add':XmTestCaseAdd,
'xm-test-case-edit':XmTestCaseEdit,
- xmMenuSelect,XmProductSelect,XmProjectList,XmGroupMng
+ xmMenuSelect,XmProductSelect,XmProjectSelect,XmGroupMng
//在下面添加其它组件
},
mounted() {
diff --git a/src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue b/src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue
index 6b8294a0..16c8003f 100644
--- a/src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue
+++ b/src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue
@@ -2,8 +2,8 @@
甘特图
- {{ this.filters.selProject.name }}
- 选择项目
+
+
选择需求
{{filters.menus[0].menuName.substr(0,5)}}等({{filters.menus.length}})个
@@ -20,12 +20,10 @@
trigger="click" >
- 产品:{{this.filters.product.productName}}
- 选产品
+
- 项目:{{this.filters.selProject.name}}
- 选项目
+
需求:
@@ -168,10 +166,7 @@
-
-
-
-
+
@@ -193,11 +188,7 @@
-
-
-
-
-
+
@@ -218,7 +209,7 @@
import XmTestCaseExecAdd from './XmTestCaseExecAdd';//新增界面
import XmTestCaseExecEdit from './XmTestCaseExecEdit';//修改界面
import XmTestCaseMng from '../xmTestCase/XmTestCaseMng';//修改界面
- import XmProjectList from '../xmProject/XmProjectList';
+ import XmProjectSelect from '@/views/xm/core/components/XmProjectSelect';
import xmMenuSelect from '../xmMenu/XmMenuSelect';
import XmGroupMng from '../xmGroup/XmGroupMng';
import XmTaskList from '../xmTask/XmTaskList';
@@ -229,7 +220,7 @@
import XmGantt from '../components/xm-gantt';
import { mapGetters } from 'vuex'
-
+
export default {
computed: {
...mapGetters([
@@ -502,7 +493,7 @@
showCase(){
if(!this.filters.selProject){
this.$notify({showClose: true,message:"请先选择项目",type:"warning"});
- this.nextAction="showCase"
+ nextAction="showCase"
this.showProjectList();
return;
}
@@ -516,28 +507,28 @@
showProjectList:function(){
this.selectProjectVisible=true;
},
- onPorjectConfirm:function(project){
+ onPorjectConfirm:function(nextAction,project){
this.filters.selProject=project
this.selectProjectVisible=false;
this.getXmTestCaseExecs();
- if(this.nextAction=="showBatchEdit"){
+ if(nextAction=="showBatchEdit"){
this.showBatchEdit();
- this.nextAction=""
- }else if(this.nextAction=="showCase"){
+ nextAction=""
+ }else if(nextAction=="showCase"){
this.showCase();
- this.nextAction=""
- }else if(this.nextAction=="showAddBug"){
+ nextAction=""
+ }else if(nextAction=="showAddBug"){
this.showAddBug(this.editForm);
- this.nextAction=""
- }else if(this.nextAction=="showBugs"){
+ nextAction=""
+ }else if(nextAction=="showBugs"){
this.showBugs(this.editForm);
- this.nextAction=""
- }else if(this.nextAction=="showSelectTask"){
+ nextAction=""
+ }else if(nextAction=="showSelectTask"){
this.showSelectTask(this.editForm);
- this.nextAction=""
- }else if(this.nextAction=="showExecUsersForFilters"){
+ nextAction=""
+ }else if(nextAction=="showExecUsersForFilters"){
this.showExecUsersForFilters();
- this.nextAction=""
+ nextAction=""
}
},
formatterExecStatus(row,column,cellValue, index){
@@ -589,7 +580,7 @@
}
if( !this.filters.selProject ){
this.$notify({showClose: true, message:"请先选择项目", type: 'warning'});
- this.nextAction="showBatchEdit"
+ nextAction="showBatchEdit"
this.showProjectList();
return ;
}
@@ -641,7 +632,7 @@
},
showExecUsersForFilters:function(){
if(!this.filters.selProject){
- this.nextAction="showExecUsersForFilters"
+ nextAction="showExecUsersForFilters"
this.showProjectList();
}else{
this.selectUserForFiltersVisible=true;
@@ -654,8 +645,8 @@
}else{
this.filters.execUser=groupUsers[0]
}
- if(this.nextAction=="showExecUsersForFilters"){
- this.nextAction=""
+ if(nextAction=="showExecUsersForFilters"){
+ nextAction=""
}
this.selectUserForFiltersVisible=false
this.searchXmTestCaseExecs();
@@ -677,7 +668,7 @@
this.editForm=row
if(this.filters.selProject==null){
this.$notify({showClose: true, message: "请先选项目", type: 'success' });
- this.nextAction="showSelectTask"
+ nextAction="showSelectTask"
this.showProjectList();
return ;
@@ -707,7 +698,7 @@
if(!this.filters.selProject){
this.$notify({showClose: true, message: "请先选项目", type: 'success' });
this.showProjectList();
- this.nextAction="showBugs"
+ nextAction="showBugs"
return ;
}
if(row.caseId){
@@ -724,7 +715,7 @@
if(!this.filters.selProject){
this.$notify({showClose: true, message: "请先选项目", type: 'success' });
- this.nextAction="showAddBug"
+ nextAction="showAddBug"
this.showProjectList();
return ;
}
@@ -747,10 +738,11 @@
components: {
'xm-test-case-exec-add':XmTestCaseExecAdd,
'xm-test-case-exec-edit':XmTestCaseExecEdit,
- XmTestCaseMng,XmProjectList,xmMenuSelect,XmGroupMng,XmTaskList,XmTestCaseEdit,XmQuestionMng,XmQuestionAdd, XmGantt,XmProductSelect
+ XmTestCaseMng,XmProjectSelect,xmMenuSelect,XmGroupMng,XmTaskList,XmTestCaseEdit,XmQuestionMng,XmQuestionAdd, XmGantt,XmProductSelect
//在下面添加其它组件
},
- mounted() {
+
+XmProjectSelectmounted() {
this.filters.selProject=this.selProject;
this.filters.execUser=this.userInfo;
this.$nextTick(() => {