Hall.vue 5.02 KB
Newer Older
1
<template>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
    <CellWrapper title="电子大厅" :cellContentHeight="cellContentHeight">
      <template v-slot:header>
        <span class="el-icon-refresh" title="刷新"></span>
        <span class="el-icon-more" title="操作" ></span> 
      </template>

      

      <div class="cell-content">
       <div class="card-item1">
          <div class="dept-name">
            <div class="first-word1"></div>
            <div class="dz-title" @click="openassInfo">资产信息</div>      
        </div>
        <div class="display1">
           <div class="type-count" v-for="(item, idx) in itemList" :key="idx">
              <div class="count-item">{{item.name}}</div>
              <div class="count-number">{{item.count}}</div>
           </div>  
        </div>     
      </div>
      <div class="card-item2">
24
        <div class="dept-name">
25 26
          <div class="first-word2">

27
          </div>
28
          <div class="dz-title" @click="openassInfoPub">资产发布信息</div>      
29
        </div>
30 31 32 33 34 35 36 37 38 39 40 41
        <div class="display2">
           <div class="type-count" v-for="(item, idx) in apub" :key="idx">
               <div class="count-item" >{{item.name}}</div>
               <div class="count-number">{{item.count}}</div>
           </div>     
        </div>
         
      </div>
      <div class="card-item3">
        <div class="dept-name">
          <div class="first-word3">

42
          </div>
zhoutian committed
43
          <div class="dz-title" @click="openfund">资金信息</div>      
44
        </div>
45 46 47 48 49 50 51
        <div class="display3">
          <div class="type-count" v-for="(item, idx) in fund" :key="idx">
            <div class="count-item">{{item.name}}</div>
            <div class="count-number">{{item.count}}</div>
          </div>   
        </div>
           
52
      </div>
53
      
54
    </div>
潘际乾 committed
55
  </CellWrapper>
56 57 58
</template>

<script>
59
import CellHeader from "../common/CellHeader.vue";
潘际乾 committed
60
import CellWrapper from "../common/CellWrapper.vue";
61 62 63 64 65
import { asset } from "~/service/elec";
import { assetpub } from "~/service/elec";
import { fund } from "~/service/elec";


66 67 68

export default {
  name: "Hall",
69 70
   props: ['cellContentHeight'],
  components: { CellHeader,CellWrapper},
71 72
  data() {
    return {
73 74 75 76 77 78 79 80
     // colors: ['#2073ef','rgb(28 190 241)','rgb(243, 195, 12)'],
      //titles:['资产信息','资产发布信息','资金信息'],
      itemList: [   ],
      apub:[],
      fund:[],

      
      
81 82
    };
  },
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
    created() {
      
      asset().then(res => {
  
          this.itemList=res
       
      }),

        assetpub().then(res =>{
         this.apub = res;
      }),

        fund().then(res =>{
         this.fund = res;
      })
      
  },
  methods: {
    openassInfo(){
      window.location.href="#/business/AssetInfo"
    },
    openassInfoPub(){
      window.location.href="#/business/AssetPub"
zhoutian committed
106 107 108
    },
    openfund(){
      window.location.href="#/business/Fund"
109 110 111 112 113 114
    }
  },

 


115 116 117 118
};
</script>

<style scoped>
119 120 121


 .cell-content {
122 123
  display: flex;
  flex-wrap: wrap;
124 125 126 127 128
  height: 100%;
  
 
}
.cell-content {
129 130 131
  justify-content: space-around;
  align-items: center;
}
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
.cell-content .card-item1 {
  width: 30%;
  height: 85%;
  background-color: #e6e8ef; 
  border-radius: 12px;
  padding: 0 10px 0 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  
}

 .cell-content .card-item2 {
  width: 30%;
  height: 85%;
148 149
  background-color: #e6e8ef;
  border-radius: 12px;
潘际乾 committed
150
  padding: 0 10px 0 15px;
151 152 153
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
154
  font-size: 14px;
155
}
156 157 158 159 160 161 162 163 164 165 166 167 168

 .cell-content .card-item3 {
  width: 30%;
  height: 85%;
  background-color: #e6e8ef;
  border-radius: 12px;
  padding: 0 10px 0 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

169 170 171
.dept-name {
  display: flex;
  align-items: center;
172
  /* margin-top: 20px; */
173
}
潘际乾 committed
174 175
.dept-name,
.type-count {
176 177
  flex: 1;
}
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
.first-word1 {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: bolder;
  font-family: emoji;
  border-radius: 8px;
  font-size: 20px;
  background-color: #2073ef;
}

.first-word2 {
193
  width: 40px;
潘际乾 committed
194
  height: 40px;
195 196 197 198 199 200 201
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: bolder;
  font-family: emoji;
  border-radius: 8px;
潘际乾 committed
202
  font-size: 20px;
203
  background-color:rgb(28 190 241);
204
}
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219

.first-word3 {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: bolder;
  font-family: emoji;
  border-radius: 8px;
  font-size: 20px;
  background-color:rgb(243, 195, 12);
}

220
.dz-title {
潘际乾 committed
221
  margin-left: 10px;
222 223 224
  font-weight: bold;
}

225 226 227 228 229 230 231 232 233 234 235 236 237
.display1 {
    padding: 5px 0 35px 0;
}

.display2 {
    padding: 5px 0 55px 0;
}

.display3 {
    padding: 5px 0 55px 0;
}


238 239 240
.type-count .count-item {
  display: flex;
  align-items: center;
241
  /* font-weight: 400; */
242
  color: #6c6f72;
243 244 245
  float: left;
  

246 247
}
.type-count .count-number {
248 249
  /* font-size: 20px;*/
  /* margin-left: 10px;  */
250
  color: #000;
251 252 253
  font-size: 18px;
  margin-top: 2px; 

254 255
}
</style>
256 257