diff --git a/src/views/xm/core/xmFunc/XmFuncEdit.vue b/src/views/xm/core/xmFunc/XmFuncEdit.vue
index c11e5fd5..d4e0989a 100644
--- a/src/views/xm/core/xmFunc/XmFuncEdit.vue
+++ b/src/views/xm/core/xmFunc/XmFuncEdit.vue
@@ -5,27 +5,13 @@
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -51,7 +37,7 @@
...mapGetters([ 'userInfo' ]),
},
- props:['xmFunc','visible','opType'],
+ props:['xmFunc','visible','opType','parentFunc'],
watch: {
'xmFunc':function( xmFunc ) {
@@ -128,7 +114,13 @@
if(this.opType=='edit'){
}else{
-
+ if(this.parentFunc && this.parentFunc.id){
+ this.editForm.pid=this.parentFunc.id
+ this.editForm.pname=this.parentFunc.name
+ }else{
+ this.editForm.pid=null
+ this.editForm.pname=null
+ }
}
this.editFormBak={...this.editForm}
},
diff --git a/src/views/xm/core/xmFunc/XmFuncSelect.vue b/src/views/xm/core/xmFunc/XmFuncSelect.vue
new file mode 100644
index 00000000..546798d1
--- /dev/null
+++ b/src/views/xm/core/xmFunc/XmFuncSelect.vue
@@ -0,0 +1,319 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 模块 清除选中的行
+
+
+ {{scope.row.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/xm/core/xmTestCase/XmTestCaseMng.vue b/src/views/xm/core/xmTestCase/XmTestCaseMng.vue
index 3a0fd306..589ab7da 100644
--- a/src/views/xm/core/xmTestCase/XmTestCaseMng.vue
+++ b/src/views/xm/core/xmTestCase/XmTestCaseMng.vue
@@ -1,134 +1,144 @@
-
-
-
- 查询
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{scope.row.caseName}}
-
-
-
-
- {{scope.row.caseRemark}}
-
-
-
-
- {{scope.row.testStep}}
-
-
-
-
- {{scope.row.expectResult}}
-
-
-
-
- {{scope.row.menuId}}
-
-
-
-
- {{scope.row.menuName}}
-
-
-
-
- {{scope.row.ctime}}
-
-
-
-
- {{scope.row.ltime}}
-
-
-
-
- {{scope.row.luserid}}
-
-
-
-
- {{scope.row.lusername}}
-
-
-
-
- {{scope.row.cbranchId}}
-
-
-
-
- {{scope.row.moduleId}}
-
-
-
-
- {{scope.row.moduleName}}
-
-
-
-
- {{scope.row.caseStatus}}
-
-
-
-
- {{scope.row.cuserid}}
-
-
-
-
- {{scope.row.cusername}}
-
-
-
-
- {{scope.row.productId}}
-
-
-
-
- {{scope.row.verNum}}
-
-
-
-
- {{scope.row.casedbId}}
-
-
-
-
- {{scope.row.casedbName}}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.caseName}}
+
+
+
+
+ {{scope.row.caseRemark}}
+
+
+
+
+ {{scope.row.testStep}}
+
+
+
+
+ {{scope.row.expectResult}}
+
+
+
+
+ {{scope.row.menuId}}
+
+
+
+
+ {{scope.row.menuName}}
+
+
+
+
+ {{scope.row.ctime}}
+
+
+
+
+ {{scope.row.ltime}}
+
+
+
+
+ {{scope.row.luserid}}
+
+
+
+
+ {{scope.row.lusername}}
+
+
+
+
+ {{scope.row.cbranchId}}
+
+
+
+
+ {{scope.row.moduleId}}
+
+
+
+
+ {{scope.row.moduleName}}
+
+
+
+
+ {{scope.row.caseStatus}}
+
+
+
+
+ {{scope.row.cuserid}}
+
+
+
+
+ {{scope.row.cusername}}
+
+
+
+
+ {{scope.row.productId}}
+
+
+
+
+ {{scope.row.verNum}}
+
+
+
+
+ {{scope.row.casedbId}}
+
+
+
+
+ {{scope.row.casedbName}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -149,12 +159,13 @@ import util from '@/common/js/util';//全局公共库
import config from '@/common/config';//全局公共库
import { initDicts,listXmTestCase, delXmTestCase, batchDelXmTestCase,editSomeFieldsXmTestCase } from '@/api/xm/core/xmTestCase';
import XmTestCaseEdit from './XmTestCaseEdit';//新增修改界面
+import XmFuncSelect from '../xmFunc/XmFuncSelect';//新增修改界面
import { mapGetters } from 'vuex'
export default {
name:'xmTestCaseMng',
components: {
- XmTestCaseEdit,
+ XmTestCaseEdit,XmFuncSelect
},
props:['visible'],
computed: {
@@ -172,7 +183,8 @@ export default {
data() {
return {
filters: {
- key: ''
+ key: '',
+ xmFunc:null,
},
xmTestCases: [],//查询结果
pageInfo:{//分页数据
@@ -251,6 +263,10 @@ export default {
}
if(this.filters.key){
params.key=this.filters.key
+ }
+
+ if(this.filters.xmFunc && this.filters.xmFunc.id){
+ params.funcPidPathsLike=this.filters.xmFunc.pidPaths
}
this.load.list = true;
@@ -363,6 +379,10 @@ export default {
initData: function(){
},
+ onXmFuncRowClick(row){
+ this.filters.xmFunc=row
+ this.searchXmTestCases();
+ }
},//end methods
mounted() {
diff --git a/src/views/xm/core/xmTestPlan/XmTestPlanMng.vue b/src/views/xm/core/xmTestPlan/XmTestPlanMng.vue
index c63c6227..82613b98 100644
--- a/src/views/xm/core/xmTestPlan/XmTestPlanMng.vue
+++ b/src/views/xm/core/xmTestPlan/XmTestPlanMng.vue
@@ -56,7 +56,7 @@
-
+