You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
807 B

3 years ago
3 years ago
3 years ago
  1. <template>
  2. <section>
  3. <report-index :xm-product="xmProduct" :xm-test-casedb="testCasedb" category="测试级"></report-index>
  4. </section>
  5. </template>
  6. <script>
  7. import { mapGetters } from 'vuex';
  8. import reportIndex from './reportIndex'
  9. export default {
  10. computed: {
  11. ...mapGetters([
  12. 'userInfo','roles','testCasedb'
  13. ]),
  14. xmProduct:function(){
  15. if(this.testCasedb&&this.testCasedb.id){
  16. return {id:this.testCasedb.productId,productName:this.testCasedb.productName}
  17. }else{
  18. return null;
  19. }
  20. }
  21. },
  22. watch:{
  23. },
  24. data() {
  25. return {
  26. }
  27. },//end data
  28. methods: {
  29. },//end methods
  30. components: {
  31. reportIndex,
  32. //在下面添加其它组件
  33. },
  34. activated(){
  35. },
  36. mounted() {
  37. }
  38. }
  39. </script>
  40. <style scoped>
  41. </style>