c04fc8f65f91306a2a2a8fed097174dd61a7c7cb.svn-base 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <div>
  3. <a-spin size="large" :spinning="spinning">
  4. <!-- <a-card style="margin-top:10px;text-align: center;" :title="false" > -->
  5. <!-- <h1 >没有查询到任何数据</h1> -->
  6. <div v-if="chartData.length<=0" class="empty-warp">
  7. <a-empty />
  8. </div>
  9. <!-- </a-card> -->
  10. <div v-else>
  11. <div v-if="!isOnlyTable()">
  12. <tab-graphreport-auto-chart
  13. v-if="head.displayTemplate === 'tab'"
  14. :chartData="chartData"
  15. :head="head"
  16. :title="title"
  17. :graphTypeDictOptions = "graphTypeDictOptions"
  18. :aliases="aliases"
  19. >
  20. </tab-graphreport-auto-chart>
  21. <row-graphreport-auto-chart
  22. v-else-if="head.displayTemplate === 'single' || head.displayTemplate === 'double'"
  23. :chartData="chartData"
  24. :head="head"
  25. :title="title"
  26. :graphTypeDictOptions = "graphTypeDictOptions"
  27. :col="getCol()"
  28. :aliases="aliases"
  29. >
  30. </row-graphreport-auto-chart>
  31. </div>
  32. <div v-if="getChartType('table') || getChartType('treeTable')" >
  33. <graphreport-auto-table
  34. v-if="getChartType('table')"
  35. :items="items"
  36. :cggraphreportData="cggraphreportData"
  37. :chartData="chartData">
  38. </graphreport-auto-table>
  39. <graphreport-auto-tree-table
  40. v-if="getChartType('treeTable')"
  41. :items="items"
  42. :cggraphreportData="cggraphreportData"
  43. :chartData="chartData">
  44. </graphreport-auto-tree-table>
  45. </div>
  46. </div>
  47. </a-spin>
  48. </div>
  49. </template>
  50. <script>
  51. import TabGraphreportAutoChart from './TabGraphreportAutoChart'
  52. import RowGraphreportAutoChart from './RowGraphreportAutoChart'
  53. import GraphreportAutoTable from './GraphreportAutoTable'
  54. import GraphreportAutoTreeTable from './GraphreportAutoTreeTable'
  55. import GroupSearch from './GroupSearch'
  56. import { OnlAutoChartMixins } from '../mixins/OnlAutoChartMixins'
  57. export default {
  58. name: 'GroupAutoChart',
  59. mixins: [OnlAutoChartMixins],
  60. components: {
  61. TabGraphreportAutoChart,
  62. RowGraphreportAutoChart,
  63. GraphreportAutoTable,
  64. GraphreportAutoTreeTable,
  65. GroupSearch
  66. },
  67. props: ['propsChartData', 'title']
  68. }
  69. </script>
  70. <style scoped>
  71. .empty-warp{
  72. height:100%;
  73. width:100%;
  74. padding:10px;
  75. background-color:white;
  76. }
  77. </style>