App.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <script setup>
  2. import { RouterView } from 'vue-router'
  3. import { ElConfigProvider } from 'element-plus';
  4. import zhCn from 'element-plus/lib/locale/lang/zh-cn'
  5. import { provide, ref, nextTick } from 'vue'
  6. const isRouteActive = ref(true);
  7. provide('reload', ()=>{
  8. isRouteActive.value = false;
  9. nextTick(()=>{
  10. isRouteActive.value = true;
  11. })
  12. })
  13. </script>
  14. <template>
  15. <!-- element Puls 转中文环境配置 -->
  16. <el-config-provider :locale="zhCn">
  17. <RouterView />
  18. </el-config-provider>
  19. </template>
  20. <style lang="scss">
  21. .serch-box {
  22. width: 100%;
  23. height: 80px;
  24. box-sizing: border-box;
  25. display: flex;
  26. padding: 0 24px 0 0;
  27. justify-content: space-between;
  28. margin-top: 20px;
  29. flex-wrap: nowrap;
  30. .form-right {
  31. display: flex;
  32. }
  33. .form-left {
  34. height: 100%;
  35. background: #fff;
  36. overflow: hidden;
  37. .fonstSizeitem {
  38. .el-form-item__label {
  39. font-size: 12px;
  40. }
  41. }
  42. .el-form {
  43. width: 940px;
  44. }
  45. .el-form-item__label {
  46. width: 100px;
  47. font-size: 14px;
  48. line-height: normal;
  49. display: flex;
  50. align-items: center;
  51. }
  52. .el-form-item__content {
  53. width: 195px;
  54. .el-range-input {
  55. font-size: 12px;
  56. }
  57. .el-range-separator {
  58. font-size: 12px;
  59. }
  60. .el-input {
  61. width: 100% !important;
  62. .el-input__inner {
  63. font-size: 14px;
  64. }
  65. }
  66. }
  67. .el-form-item {
  68. margin-bottom: 10px;
  69. margin-right: 10px;
  70. .el-range-editor.el-input__wrapper {
  71. width: 300px;
  72. height: 32px;
  73. }
  74. }
  75. }
  76. }
  77. .serch-box-40 {
  78. height: 40px;
  79. }
  80. .top-btn {
  81. padding: 10px 0 0 24px;
  82. .el-button {
  83. padding: 20px;
  84. text-align: center;
  85. }
  86. }
  87. .tabel-data {
  88. background: #FAFAFA;
  89. color: #152129;
  90. font-size: 14px;
  91. }
  92. .operation {
  93. padding-left: 24px;
  94. margin-top: 10px;
  95. }
  96. .image_item {
  97. display: flex;
  98. flex-direction: column;
  99. align-items: flex-start;
  100. }
  101. body .pagination-style {
  102. padding: 14px 5px;
  103. background: #fff;
  104. float: right;
  105. margin-right: 10px;
  106. }
  107. .table-wrapper {
  108. padding: 20px;
  109. }
  110. .el-overlay-message-box {
  111. z-index: 2999;
  112. }
  113. </style>