6 changed files with 77 additions and 18 deletions
-
2src/router/routes_xm.js
-
46src/views/xm/core/xmTestPlan/Detail.vue
-
6src/views/xm/core/xmTestPlan/Overview.vue
-
13src/views/xm/core/xmTestPlan/XmTestPlanInfo.vue
-
16src/views/xm/core/xmTestPlan/XmTestPlanListForProject.vue
-
10src/views/xm/core/xmTestPlan/XmTestPlanMng.vue
@ -0,0 +1,46 @@ |
|||||
|
<template> |
||||
|
<section> |
||||
|
<xm-test-plan-info v-if="xmTestPlan && xmTestPlan.id" :xm-test-casedb="testCasedb" :xm-test-plan="xmTestPlan"></xm-test-plan-info> |
||||
|
</section> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { mapGetters } from 'vuex'; |
||||
|
import XmTestPlanInfo from './XmTestPlanInfo' |
||||
|
|
||||
|
export default { |
||||
|
computed: { |
||||
|
...mapGetters([ |
||||
|
'userInfo','roles','testCasedb' |
||||
|
]), |
||||
|
}, |
||||
|
watch:{ |
||||
|
|
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
xmTestPlan:null, |
||||
|
} |
||||
|
},//end data |
||||
|
methods: { |
||||
|
|
||||
|
},//end methods |
||||
|
components: { |
||||
|
XmTestPlanInfo, |
||||
|
//在下面添加其它组件 |
||||
|
}, |
||||
|
mounted() { |
||||
|
var planId=this.$route.query.id |
||||
|
if(planId){ |
||||
|
var key="xm-test-plan-info-"+planId |
||||
|
var str=sessionStorage.getItem(key) |
||||
|
if(str && str!='null' && str!='undefined'){ |
||||
|
this.xmTestPlan=JSON.parse(str) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
</style> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue