sharedDetail.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <script setup name="sharedDetail">
  2. import {nextTick, onMounted,ref,reactive} from 'vue'
  3. import { useRoute } from "vue-router";
  4. import apiSheetChart from '@/api/sheet'
  5. const route = useRoute()
  6. const queryData = ref({})
  7. onMounted(() => {
  8. getExcelDetail()
  9. })
  10. //获取表格列表
  11. async function getExcelDetail(){
  12. const res = await apiSheetChart.excelDetail({
  13. ExcelInfoId: route.query.id,
  14. })
  15. if(res.Ret!==200) return
  16. queryData.value = res.Data
  17. console.log(queryData.value)
  18. }
  19. </script>
  20. <template>
  21. <div class="page">
  22. <div class="top-box">
  23. <div class="top-item">作者:{{ queryData.SysUserRealName }}</div>
  24. <div class="top-item">最近保存时间:{{ queryData.CreateTime?.slice(0,10) }}</div>
  25. <div class="top-item"><van-icon name="cross" @click.stop="IsShowCatalog=false"/></div>
  26. </div>
  27. <div class="sheet-box"></div>
  28. </div>
  29. </template>
  30. <style lang="scss" scoped>
  31. .page{
  32. width: 100%;
  33. height: 100vh;
  34. padding: 24px;
  35. .top-box {
  36. width: 100%;
  37. height: 40px;
  38. display: flex;
  39. justify-content: space-between;
  40. .item {
  41. }
  42. }
  43. .sheet-box{
  44. width: 100%;
  45. height: 100%;
  46. background-color: pink;
  47. }
  48. }
  49. </style>