9 changed files with 242 additions and 67 deletions
-
22src/router/routes_xm.js
-
4src/views/xm/core/xmQuestion/XmQuestionEdit.vue
-
37src/views/xm/core/xmTestCase/XmTestCaseFlow.vue
-
37src/views/xm/core/xmTestCase/XmTestCaseList.vue
-
37src/views/xm/core/xmTestCasedb/Overview.vue
-
12src/views/xm/core/xmTestCasedb/XmTestCasedbMng.vue
-
68src/views/xm/core/xmTestCasedb/top-nav.vue
-
37src/views/xm/core/xmTestPlan/Overview.vue
-
47src/views/xm/rpt/reportIndexForTest.vue
@ -0,0 +1,37 @@ |
|||||
|
<template> |
||||
|
<section> |
||||
|
<xm-test-case-mng v-if="testCasedb&&testCasedb.id" :xm-test-casedb="testCasedb" scene="caseFlow"></xm-test-case-mng> |
||||
|
</section> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { mapGetters } from 'vuex'; |
||||
|
import XmTestCaseMng from './XmTestCaseMng' |
||||
|
|
||||
|
export default { |
||||
|
computed: { |
||||
|
...mapGetters([ |
||||
|
'userInfo','roles','testCasedb' |
||||
|
]), |
||||
|
}, |
||||
|
watch:{ |
||||
|
|
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
} |
||||
|
},//end data |
||||
|
methods: { |
||||
|
|
||||
|
},//end methods |
||||
|
components: { |
||||
|
XmTestCaseMng, |
||||
|
//在下面添加其它组件 |
||||
|
}, |
||||
|
mounted() { |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
</style> |
||||
@ -0,0 +1,37 @@ |
|||||
|
<template> |
||||
|
<section> |
||||
|
<xm-test-case-mng v-if="testCasedb&&testCasedb.id" :xm-test-casedb="testCasedb"></xm-test-case-mng> |
||||
|
</section> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { mapGetters } from 'vuex'; |
||||
|
import XmTestCaseMng from './XmTestCaseMng' |
||||
|
|
||||
|
export default { |
||||
|
computed: { |
||||
|
...mapGetters([ |
||||
|
'userInfo','roles','testCasedb' |
||||
|
]), |
||||
|
}, |
||||
|
watch:{ |
||||
|
|
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
} |
||||
|
},//end data |
||||
|
methods: { |
||||
|
|
||||
|
},//end methods |
||||
|
components: { |
||||
|
XmTestCaseMng, |
||||
|
//在下面添加其它组件 |
||||
|
}, |
||||
|
mounted() { |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
</style> |
||||
@ -0,0 +1,37 @@ |
|||||
|
<template> |
||||
|
<section> |
||||
|
<xm-test-casedb-edit v-if="testCasedb&&testCasedb.id" :xm-test-casedb="testCasedb"></xm-test-casedb-edit> |
||||
|
</section> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { mapGetters } from 'vuex'; |
||||
|
import XmTestCasedbEdit from './XmTestCasedbEdit' |
||||
|
|
||||
|
export default { |
||||
|
computed: { |
||||
|
...mapGetters([ |
||||
|
'userInfo','roles','testCasedb' |
||||
|
]), |
||||
|
}, |
||||
|
watch:{ |
||||
|
|
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
} |
||||
|
},//end data |
||||
|
methods: { |
||||
|
|
||||
|
},//end methods |
||||
|
components: { |
||||
|
XmTestCasedbEdit, |
||||
|
//在下面添加其它组件 |
||||
|
}, |
||||
|
mounted() { |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
</style> |
||||
@ -0,0 +1,37 @@ |
|||||
|
<template> |
||||
|
<section> |
||||
|
<xm-test-plan-info v-if="testCasedb&&testCasedb.id" :xm-test-casedb="testCasedb"></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 { |
||||
|
} |
||||
|
},//end data |
||||
|
methods: { |
||||
|
|
||||
|
},//end methods |
||||
|
components: { |
||||
|
XmTestPlanInfo, |
||||
|
//在下面添加其它组件 |
||||
|
}, |
||||
|
mounted() { |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
</style> |
||||
@ -0,0 +1,47 @@ |
|||||
|
<template> |
||||
|
<section> |
||||
|
<report-index :xm-product="xmProduct"></report-index> |
||||
|
</section> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
|
||||
|
import { mapGetters } from 'vuex'; |
||||
|
import reportIndex from './reportIndex' |
||||
|
|
||||
|
export default { |
||||
|
computed: { |
||||
|
...mapGetters([ |
||||
|
'userInfo','roles','testCasedb' |
||||
|
]), |
||||
|
xmProduct:function(){ |
||||
|
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: { |
||||
|
reportIndex, |
||||
|
//在下面添加其它组件 |
||||
|
}, |
||||
|
activated(){ |
||||
|
}, |
||||
|
mounted() { |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
</style> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue