track.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <div class='flex flex-justify-start full-height'>
  3. <div class="full-height">
  4. <left-bar/>
  5. </div>
  6. <div class="flex flex-col full-height full-width" style="margin-left: 300px">
  7. <div class="white-bg padding-left padding-top flex flex-col">
  8. <div class="flex flex-center full-width">
  9. <!------tab------>
  10. <div class="flex flex-center mt-15 full-width mb-20">
  11. <div class="flex flex-center" style="flex: 3">
  12. <div v-for="(item,index) in tab" :key="item.id" class="flex flex-center tab">
  13. <div :class="active === index ? 'tab-active' : ''"
  14. @click="change(index)">{{ item.name }}
  15. </div>
  16. </div>
  17. </div>
  18. <div class="flex flex-center ml-20 mr-10" style="flex: 1">
  19. <base-button icon="Plus" title="添加文件夹" type="0"/>
  20. <base-button class="ml-20" icon="User" title="批量授权"/>
  21. </div>
  22. </div>
  23. </div>
  24. <folder_list/>
  25. </div>
  26. <div class="white-bg padding-left padding-top mt-10">
  27. <files_list/>
  28. </div>
  29. </div>
  30. </div>
  31. </template>
  32. <route>
  33. {
  34. name:'跟踪审计',
  35. }
  36. </route>
  37. <script>
  38. import leftBar from './component/left_bar.vue'
  39. import folder_list from './component/folder_list.vue'
  40. import files_list from './component/files_list.vue'
  41. import baseButton from '../../components/base-button.vue'
  42. export default {
  43. name: 'track',
  44. components: { leftBar, folder_list, files_list, baseButton },
  45. data () {
  46. return {
  47. type: 1,
  48. active: 0,
  49. tab: [
  50. {
  51. name: '项目必须文件'
  52. },
  53. {
  54. name: '相关合同'
  55. },
  56. {
  57. name: '财务相关资料'
  58. },
  59. {
  60. name: '其他文件'
  61. }
  62. ]
  63. }
  64. },
  65. methods: {
  66. change (index) {
  67. this.active = index
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="scss" scoped>
  73. .tab {
  74. width: 130px;
  75. height: 38px;
  76. background-color: #EDF0F3;
  77. padding: 2px 10px;
  78. color: #707070;
  79. font-size: 13px;
  80. }
  81. .tab:first-child {
  82. border-radius: 20px 0 0 20px;
  83. }
  84. .tab:last-child {
  85. border-radius: 0 20px 20px 0;
  86. }
  87. .tab-active {
  88. width: 130px;
  89. flex-wrap: nowrap;
  90. color: white;
  91. font-size: 15px;
  92. background-color: #BC002D;
  93. font-weight: 500;
  94. padding: 4px 10px;
  95. border-radius: 20px;
  96. }
  97. </style>