move-submit.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <div class="hc-docs-tabs-box">
  3. <hc-tabs-simple :cur="tabsKey" :datas="tabsData" @tab-click="tabsChange">
  4. <template #tab-one>
  5. <hc-card>
  6. <template #extra>
  7. <el-button type="primary" @click="reportClick">
  8. <span>上报</span>
  9. </el-button>
  10. <el-button type="warning" class="ml-2" @click="saveClick">
  11. <span>保存</span>
  12. </el-button>
  13. </template>
  14. 表单填报页内容
  15. </hc-card>
  16. </template>
  17. <template #tab-two>
  18. <hc-pdf :src="pdfUrl" viewer="" />
  19. </template>
  20. </hc-tabs-simple>
  21. </div>
  22. </template>
  23. <script setup>
  24. import { ref } from 'vue'
  25. //类型处理
  26. const tabsKey = ref('one')
  27. const tabsData = ref([
  28. { icon: '', label: '电子档案移交接收意记表', key: 'one' },
  29. { icon: '', label: '电子档案移交清单', key: 'two' },
  30. ])
  31. const tabsChange = (item) => {
  32. console.log(item)
  33. }
  34. const pdfUrl = ref('')
  35. const saveClick = () => {
  36. console.log('保存')
  37. }
  38. const reportClick = () => {
  39. console.log('上报')
  40. }
  41. </script>
  42. <style>
  43. .hc-docs-tabs-box {
  44. position: relative;
  45. height: 100%;
  46. overflow: auto;
  47. }
  48. </style>