left_bar.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <div>
  3. <div class="white-bg top full-height flex flex-col hide-scrollbar" style='overflow-y: auto;'>
  4. <div class="flex flex-col flex-center mt-15 padding">
  5. <span class='font-15 bold mb-10'>{{ data.name }}</span>
  6. <span class="font-15 bold mt-5" style="color:#787C90;">项目总投资额</span>
  7. <span class="mt-5 font-15 bold main-color">{{
  8. data.totalAmount ? data.totalAmount.toLocaleString() : '-'
  9. }}万元</span>
  10. <main-button :width="200" type="0" @click="proInfo"/>
  11. <el-divider></el-divider>
  12. <div class="flex flex-center flex-justify-between full-width">
  13. <span class="title ml-20">项目阶段-文件管理</span>
  14. <span class="title mr-20 pointer" @click="record">授权记录</span>
  15. </div>
  16. </div>
  17. <div style='margin-left: 30px'>
  18. <el-empty v-if='stage && stage.length === 0 '></el-empty>
  19. <basic-step v-else style='margin-top: 20px' :active="active" :steps='stage'/>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import mainButton from '../../../components/main-button.vue'
  26. import basicStep from '@/components/basic-step/index.vue'
  27. export default {
  28. name: 'left_bar',
  29. components: {mainButton, basicStep},
  30. props: {
  31. data: Object,
  32. stage: Array,
  33. active: {
  34. type: Number,
  35. default: -1
  36. }
  37. },
  38. watch: {
  39. active: {
  40. handler(val) {
  41. // this.change(0)
  42. },
  43. immediate: true
  44. }
  45. },
  46. data() {
  47. return {
  48. height: 0
  49. }
  50. },
  51. created() {
  52. },
  53. methods: {
  54. proInfo() {
  55. this.$emit('typeChange')
  56. },
  57. record() {
  58. this.$emit('typeChange1')
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .top {
  65. width: 300px;
  66. position: fixed;
  67. background-color: #FAF9FA
  68. }
  69. .down {
  70. width: 300px;
  71. position: fixed;
  72. bottom: 0;
  73. padding-bottom: 20px;
  74. background-color: #FAF9FA
  75. }
  76. .tip {
  77. border-radius: 10px;
  78. background-color: #F4F4F1;
  79. height: 75px;
  80. width: 240px
  81. }
  82. .middle {
  83. width: 270px;
  84. position: fixed;
  85. bottom: 175px;
  86. top: 280px;
  87. padding-left: 30px;
  88. background-color: #FAF9FA
  89. }
  90. .title {
  91. color: #ECAB56;
  92. font-size: 16px;
  93. font-weight: 500;
  94. }
  95. </style>