1
0

no-case.vue 911 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div class="no-data">
  3. <img :src="emptyBG" />
  4. <span>案件不存在</span>
  5. <el-button
  6. v-if="showBtn"
  7. class="btn"
  8. link
  9. text
  10. plain
  11. style="margin-top: 20px"
  12. @click="toHome"
  13. >回到首页</el-button
  14. >
  15. </div>
  16. </template>
  17. <script lang="ts" setup>
  18. import emptyBG from "@/assets/image/empty__empty.png";
  19. import { RouteName, router } from "@/router";
  20. const props = withDefaults(
  21. defineProps<{
  22. showBtn: boolean;
  23. }>(),
  24. {
  25. showBtn: true,
  26. }
  27. );
  28. const toHome = () => {
  29. router.replace({ name: RouteName.vrmodel });
  30. };
  31. </script>
  32. <style lang="scss" scoped>
  33. .no-data {
  34. width: 100%;
  35. height: 100%;
  36. /* background: red; */
  37. min-height: 530px;
  38. display: flex;
  39. justify-content: center;
  40. align-items: center;
  41. flex-direction: column;
  42. .btn,
  43. span {
  44. color: #999;
  45. }
  46. }
  47. </style>