4 changed files with 105 additions and 1 deletions
-
5src/router/routes_xm.js
-
49src/views/xm/core/xmGroup/XmGroupForIteration.vue
-
49src/views/xm/core/xmGroup/XmGroupForTest.vue
-
3src/views/xm/core/xmTestCasedb/top-nav.vue
@ -0,0 +1,49 @@ |
|||||
|
<template> |
||||
|
<section class="padding"> |
||||
|
<xm-group-mng :xm-product="xmProduct" :visible="xmProduct && xmProduct.id"></xm-group-mng> |
||||
|
</section> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import util from '@/common/js/util';//全局公共库 |
||||
|
|
||||
|
import { listXmProject } from '@/api/xm/core/xmProject'; |
||||
|
import { mapGetters } from 'vuex'; |
||||
|
import XmGroupMng from './XmGroupMng' |
||||
|
|
||||
|
export default { |
||||
|
computed: { |
||||
|
...mapGetters([ |
||||
|
'userInfo','roles','xmIteration' |
||||
|
]), |
||||
|
xmProduct(){ |
||||
|
if(this.xmIteration && this.xmIteration.id){ |
||||
|
return {id:this.xmIteration.productId,productName:this.xmIteration.productName} |
||||
|
}else{ |
||||
|
return null; |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
watch:{ |
||||
|
|
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
} |
||||
|
},//end data |
||||
|
methods: { |
||||
|
|
||||
|
},//end methods |
||||
|
components: { |
||||
|
XmGroupMng, |
||||
|
//在下面添加其它组件 |
||||
|
}, |
||||
|
activated(){ |
||||
|
}, |
||||
|
mounted() { |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
</style> |
||||
@ -0,0 +1,49 @@ |
|||||
|
<template> |
||||
|
<section class="padding"> |
||||
|
<xm-group-mng :xm-product="xmProduct" :visible="xmProduct && xmProduct.id"></xm-group-mng> |
||||
|
</section> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import util from '@/common/js/util';//全局公共库 |
||||
|
|
||||
|
import { listXmProject } from '@/api/xm/core/xmProject'; |
||||
|
import { mapGetters } from 'vuex'; |
||||
|
import XmGroupMng from './XmGroupMng' |
||||
|
|
||||
|
export default { |
||||
|
computed: { |
||||
|
...mapGetters([ |
||||
|
'userInfo','roles','testCasedb' |
||||
|
]), |
||||
|
xmProduct(){ |
||||
|
if(this.testCasedb && this.testCasedb.id){ |
||||
|
return {id:this.testCasedb.productId,productName:this.testCasedb.productName} |
||||
|
}else{ |
||||
|
return null; |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
watch:{ |
||||
|
|
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
} |
||||
|
},//end data |
||||
|
methods: { |
||||
|
|
||||
|
},//end methods |
||||
|
components: { |
||||
|
XmGroupMng, |
||||
|
//在下面添加其它组件 |
||||
|
}, |
||||
|
activated(){ |
||||
|
}, |
||||
|
mounted() { |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
</style> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue