index.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <div>
  3. <div class='fixed-header'>
  4. <oabar />
  5. </div>
  6. <div class="dashboard-container">
  7. <div v-if="status" class="apply-box">
  8. <el-card class="box-card" style="min-height: 800px;border-radius: 10px">
  9. <div class="from-box">
  10. <div class="title">离职申请</div>
  11. <el-divider></el-divider>
  12. <edit></edit>
  13. </div>
  14. </el-card>
  15. </div>
  16. <div v-else class="data-list-box">
  17. <el-card class="box-card" style="min-height: 800px;border-radius: 10px">
  18. <div class="dataList-box">
  19. <DataList></DataList>
  20. </div>
  21. </el-card>
  22. </div>
  23. </div>
  24. </div>
  25. </template>
  26. <script>
  27. import Oabar from '../../../layout/components/Oabar.vue'
  28. import DataList from "./DataList.vue";
  29. import edit from "./edit.vue";
  30. export default {
  31. name: 'Index',
  32. components: {
  33. Oabar,
  34. DataList,
  35. edit
  36. },
  37. data() {
  38. return {
  39. status: true,
  40. }
  41. },
  42. created() {
  43. },
  44. methods: {
  45. //获取状态
  46. setStatus(status) {
  47. this.status = status
  48. },
  49. }
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. .fixed-header {
  54. position: fixed;
  55. top: 0;
  56. right: 0;
  57. z-index: 9;
  58. width: 100%;
  59. transition: width 0.28s;
  60. }
  61. .dashboard-container {
  62. background: #f5f6f8;
  63. bottom: 0;
  64. left: 0;
  65. overflow: auto;
  66. position: absolute;
  67. right: 0;
  68. top: 60px;
  69. padding: 32px;
  70. .apply-box {
  71. width: 70%;
  72. margin: 0 auto;
  73. }
  74. .data-list-box {
  75. width: 100%;
  76. margin: 0 auto;
  77. }
  78. }
  79. .from-box {
  80. padding: 20px 0;
  81. .title {
  82. font-weight: bold;
  83. font-size: 26px;
  84. margin-bottom: 20px;
  85. }
  86. }
  87. .dataList-box {
  88. padding: 10px 40px;
  89. }
  90. </style>