index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <div>
  3. <div class='fixed-header'>
  4. <oabar ref="oabar"/>
  5. </div>
  6. <div class="dashboard-container">
  7. <div v-if="status==1" class="apply-box">
  8. <el-card class="box-card" style="min-height: 800px;border-radius: 10px" v-loading="editLoading">
  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. editLoading:false,
  40. status: 1,
  41. }
  42. },
  43. created() {
  44. },
  45. methods: {
  46. //获取状态
  47. setStatus(status) {
  48. this.status = status;
  49. this.$refs.oabar.status = status;
  50. },
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. .fixed-header {
  56. position: fixed;
  57. top: 0;
  58. right: 0;
  59. z-index: 9;
  60. width: 100%;
  61. transition: width 0.28s;
  62. }
  63. .dashboard-container {
  64. background: #f5f6f8;
  65. bottom: 0;
  66. left: 0;
  67. overflow: auto;
  68. position: absolute;
  69. right: 0;
  70. top: 60px;
  71. padding: 32px;
  72. .apply-box {
  73. width: 70%;
  74. margin: 0 auto;
  75. }
  76. .data-list-box {
  77. width: 100%;
  78. margin: 0 auto;
  79. }
  80. }
  81. .from-box {
  82. padding: 20px 0;
  83. .title {
  84. font-weight: bold;
  85. font-size: 26px;
  86. margin-bottom: 20px;
  87. }
  88. }
  89. .dataList-box {
  90. padding: 10px 40px;
  91. }
  92. </style>