diff --git a/src/router/routes_xm.js b/src/router/routes_xm.js
index 794c78db..6443cd92 100644
--- a/src/router/routes_xm.js
+++ b/src/router/routes_xm.js
@@ -38,6 +38,8 @@ export default {
},
hidden:true
},
+
+ { path: '/xm/core/testCasedbRoute', component: _import('xm/core/xmTestCasedb/XmTestCasedbRoute'), name: 'XmTestCasedbRoute', meta: { title: '测试库管理' },hidden:true},
{
path: '/xm/core',
component: Layout,
@@ -54,6 +56,7 @@ export default {
{ path: 'xmQuestion/XmQuestionMng', component: _import('xm/core/xmQuestion/XmQuestionMngRoute'), name: 'XmQuestionMng', meta: { title: '缺陷管理' }},
{ path: 'xmQuestion/XmQuestionMngMy', component: _import('xm/core/xmQuestion/XmQuestionMngMy'), name: 'XmQuestionMngMy', meta: { title: '我的缺陷' }},
{ path: 'xmTestCase/XmTestCaseMng', component: _import('xm/core/xmTestCase/XmTestCaseMng'), name: 'XmTestCaseMng', meta: { title: '测试设计' }},
+ { path: 'xmTestCasedb/XmTestCasedbMng', component: _import('xm/core/xmTestCasedb/XmTestCasedbMng'), name: 'XmTestCasedbMng', meta: { title: '测试库管理' }},
//{ path: 'xmTestCaseExec/XmTestCaseExecMng', component: _import('xm/core/xmTestCaseExec/XmTestCaseExecMng'), name: 'XmTestCaseExecMng', meta: { title: '测试执行' }},
{ path: 'xmQuestion/XmQuestionDetailRoute', component: _import('xm/core/xmQuestion/XmQuestionDetailRoute'), name: 'XmQuestionDetailRoute', meta: { title: '缺陷明细' },hidden:true},
diff --git a/src/views/xm/core/xmTestCasedb/XmTestCasedbEdit.vue b/src/views/xm/core/xmTestCasedb/XmTestCasedbEdit.vue
index 9bdf3d9b..90315c4f 100644
--- a/src/views/xm/core/xmTestCasedb/XmTestCasedbEdit.vue
+++ b/src/views/xm/core/xmTestCasedb/XmTestCasedbEdit.vue
@@ -5,30 +5,26 @@
-
-
-
+
-
-
+
+
+ {{editForm.id}}
+
+
+
+
+ {{editForm.productName}}
-
+
+ {{editForm.cusername}}
-
-
-
-
-
-
-
-
-
-
-
+ {{editForm.ctime}}
+
@@ -45,16 +41,17 @@
import { initDicts, addXmTestCasedb,editXmTestCasedb,editSomeFieldsXmTestCasedb } from '@/api/xm/core/xmTestCasedb';
import { mapGetters } from 'vuex'
+import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//修改界面
export default {
name:'xmTestCasedbEdit',
components: {
-
+ XmProductSelect,
},
computed: {
...mapGetters([ 'userInfo' ]),
},
- props:['xmTestCasedb','visible','opType'],
+ props:['xmTestCasedb','visible','opType','xmProduct','selProject'],
watch: {
'xmTestCasedb':function( xmTestCasedb ) {
@@ -131,7 +128,10 @@
if(this.opType=='edit'){
}else{
-
+ if(this.xmProduct && this.xmProduct.id){
+ this.editForm.productId=this.xmProduct.id
+ this.editForm.productName=this.xmProduct.productName
+ }
}
this.editFormBak={...this.editForm}
},
@@ -154,6 +154,17 @@
}
}).catch((e)=>Object.assign(this.editForm,this.editFormBak))
},
+
+ clearProduct(){
+
+ this.editForm.productId=''
+ this.editForm.productName=''
+ },
+ onProductSelected(product){
+
+ this.editForm.productId=product.id
+ this.editForm.productName=product.productName
+ },
},//end method
mounted() {
this.$nextTick(() => {
diff --git a/src/views/xm/core/xmTestCasedb/XmTestCasedbInfo.vue b/src/views/xm/core/xmTestCasedb/XmTestCasedbInfo.vue
new file mode 100644
index 00000000..1a5b6133
--- /dev/null
+++ b/src/views/xm/core/xmTestCasedb/XmTestCasedbInfo.vue
@@ -0,0 +1,318 @@
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.name}}
+
+
+
+
+ {{scope.row.productName}}
+
+
+
+
+ {{scope.row.cusername}}
+
+
+
+
+ {{scope.row.ctime}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/xm/core/xmTestCasedb/XmTestCasedbMng.vue b/src/views/xm/core/xmTestCasedb/XmTestCasedbMng.vue
index 830cf46e..1fc43057 100644
--- a/src/views/xm/core/xmTestCasedb/XmTestCasedbMng.vue
+++ b/src/views/xm/core/xmTestCasedb/XmTestCasedbMng.vue
@@ -1,6 +1,7 @@
+
查询
@@ -19,18 +20,17 @@
-->
-
-
+
- {{scope.row.name}}
+ {{scope.row.name}}
-
+
- {{scope.row.cuserid}}
+ {{scope.row.productName}}
-
-
+
+
{{scope.row.cusername}}
@@ -39,22 +39,7 @@
{{scope.row.ctime}}
-
-
-
- {{scope.row.cbranchId}}
-
-
-
-
- {{scope.row.productId}}
-
-
-
-
- {{scope.row.productName}}
-
-
+
@@ -85,13 +70,14 @@ import config from '@/common/config';//全局公共库
import { initDicts,listXmTestCasedb, delXmTestCasedb, batchDelXmTestCasedb,editSomeFieldsXmTestCasedb } from '@/api/xm/core/xmTestCasedb';
import XmTestCasedbEdit from './XmTestCasedbEdit';//新增修改界面
import { mapGetters } from 'vuex'
+import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//修改界面
export default {
name:'xmTestCasedbMng',
components: {
- XmTestCasedbEdit,
+ XmTestCasedbEdit,XmProductSelect,
},
- props:['visible'],
+ props:['visible','xmProduct','selProject'],
computed: {
...mapGetters(['userInfo']),
@@ -187,6 +173,9 @@ export default {
if(this.filters.key){
params.key=this.filters.key
}
+ if(this.filters.product && this.filters.product.id){
+ params.productId=this.filters.product.id
+ }
this.load.list = true;
listXmTestCasedb(params).then((res) => {
@@ -296,9 +285,21 @@ export default {
this.$emit('row-click',row, event, column);// @row-click="rowClick"
},
initData: function(){
-
+ this.filters.product=this.xmProduct
},
+ clearProduct(){
+ this.filters.product=null;
+ this.searchXmTestCasedbs();
+ },
+ onProductSelected(product){
+ this.filters.product=product;
+ this.searchXmTestCasedbs();
+ },
+ goCasedbInfo(row){
+ localStorage.setItem('xm-test-casedb-info',JSON.stringify(row));
+ this.$router.push({path:'/xm/core/testCasedbRoute',query:{id:row.id}})
+ }
},//end methods
mounted() {
this.$nextTick(() => {
diff --git a/src/views/xm/core/xmTestCasedb/XmTestCasedbRoute.vue b/src/views/xm/core/xmTestCasedb/XmTestCasedbRoute.vue
new file mode 100644
index 00000000..a8ba05db
--- /dev/null
+++ b/src/views/xm/core/xmTestCasedb/XmTestCasedbRoute.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
\ No newline at end of file