index.vue 1.6 KB
Newer Older
P
init  
Pan 已提交
1
<template>
P
Pan 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
  <div class="dashboard-editor-container">
    <div class=" clearfix">
      <pan-thumb style="float: left" :image="avatar"> 你的权限:
        <span class="pan-info-roles" :key='item' v-for="item in roles">{{item}}</span>
      </pan-thumb>
      <github></github>
      <div class="info-container">
        <span class="display_name">{{name}}</span>
        <span style='font-size:20px;padding-top:20px;display:inline-block;'>普通编辑dashboard</span>
      </div>
    </div>
    <div>
      <img class='emptyGif' :src="emptyGif">
    </div>
  </div>
P
init  
Pan 已提交
17 18 19
</template>

<script>
P
Pan 已提交
20
import { mapGetters } from 'vuex'
P
Pan 已提交
21 22
import PanThumb from '@/components/PanThumb'
import Github from '@/components/Github'
P
Pan 已提交
23 24 25

export default {
  name: 'dashboard-editor',
P
Pan 已提交
26
  components: { PanThumb, Github },
P
Pan 已提交
27
  data() {
P
Pan 已提交
28
    return {
P
Pan 已提交
29
      emptyGif: 'https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3'
P
init  
Pan 已提交
30
    }
P
Pan 已提交
31
  },
P
Pan 已提交
32 33 34 35 36
  computed: {
    ...mapGetters([
      'name',
      'avatar',
      'roles'
P
Pan 已提交
37 38
    ])
  }
P
Pan 已提交
39
}
P
init  
Pan 已提交
40 41 42
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
P
Pan 已提交
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
	.emptyGif {
		display: block;
		width: 45%;
		margin: 0 auto;
	}

	.dashboard-editor-container {
		background-color: #e3e3e3;
		min-height: 100vh;
		margin-top: -50px;
		padding: 100px 60px 0px;
		.pan-info-roles {
			font-size: 12px;
			font-weight: 700;
			color: #333;
			display: block;
		}
		.info-container {
			position: relative;
			margin-left: 190px;
			height: 150px;
			line-height: 200px;
			.display_name {
				font-size: 48px;
				line-height: 48px;
				color: #212121;
				position: absolute;
				top: 25px;
			}
		}
	}
P
init  
Pan 已提交
74
</style>