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 @@ + + + + + \ 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 @@