3089f6ce8e05cbb7a9c8cc3c69e136940da9ae52.svn-base 758 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <div>
  3. <template v-for="(chart,index2) in group.charts">
  4. <a-card size="small" :title="chart.head.name" :key="index2" style="margin-top:10px;">
  5. <a-button size="small" type="primary" slot="extra" class="ant-btn-background-ghost" @click="details(chart.head.code)">详情</a-button>
  6. <group-auto-chart :propsChartData="chart"></group-auto-chart>
  7. </a-card>
  8. </template>
  9. </div>
  10. </template>
  11. <script>
  12. import GroupAutoChart from './GroupAutoChart'
  13. export default {
  14. name: 'GroupTemplateCard',
  15. components: {
  16. GroupAutoChart
  17. },
  18. props: ['group'],
  19. data() {
  20. return {
  21. }
  22. },
  23. methods: {
  24. details(code) {
  25. this.$router.push({ path: '/online/cggraphreport/chart/' + code })
  26. }
  27. }
  28. }
  29. </script>