045550f5f3deee76ea7e2816b99dec95c98d33e9.svn-base 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <el-tabs v-model="currentViewId" type="card" @tab-click="tabClick">
  3. <el-tab-pane v-for="(option, index) in options"
  4. :label="option.label"
  5. :name="option.value"
  6. :key="option.value">
  7. <keep-alive>
  8. <report :key="option.value" :name="option.value" :index="index"
  9. :option="option"/>
  10. </keep-alive>
  11. </el-tab-pane>
  12. </el-tabs>
  13. </template>
  14. <script>
  15. import report_com from "./report_com.vue";
  16. /**
  17. * 江西前端:
  18. * reportIndex_hystjx, reportIndex_rdwpjx, reportIndex_floodjx,
  19. * reportIndex_jsfl, reportIndex_dikejx, reportIndex_wrjx,
  20. * reportIndex_keyjx
  21. * 督查前端:
  22. *
  23. * 以上页面使用该组件,若要调整组件(加新功能),请一并调整。
  24. */
  25. export default {
  26. props: ['options'],
  27. components: {report: report_com},
  28. data() {
  29. return {
  30. currentViewId: '',
  31. currentNodeType: '',
  32. };
  33. },
  34. created() {
  35. this.currentViewId = this.options[0].value;
  36. },
  37. mounted() {
  38. },
  39. methods: {
  40. tabClick(e) {
  41. }
  42. },
  43. computed: {
  44. persId() {
  45. return localStorage.getItem('userid') ? localStorage.getItem('userid') : '1098101939614724096';
  46. },
  47. },
  48. watch: {
  49. currentViewId() {
  50. },
  51. },
  52. };
  53. </script>
  54. <style>
  55. </style>