|
@@ -1,36 +1,33 @@
|
|
<template>
|
|
<template>
|
|
<div id="clickBtn">
|
|
<div id="clickBtn">
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col :span="24">
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <p><i class="el-icon-edit"></i></p>
|
|
|
|
- <el-button type="primary">直播大厅</el-button>
|
|
|
|
|
|
+ <el-col :span="24" class="info">
|
|
|
|
+ <el-col :span="11" class="btn">
|
|
|
|
+ <p><i class="el-icon-camera"></i></p>
|
|
|
|
+ <el-button type="primary" round>直播大厅</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12">
|
|
|
|
- <p><i class="el-icon-edit"></i></p>
|
|
|
|
- <el-button type="primary">科技超市</el-button>
|
|
|
|
|
|
+ <el-col :span="11" class="btn">
|
|
|
|
+ <p><i class="el-icon-coin"></i></p>
|
|
|
|
+ <el-button type="primary" round>科技超市</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'">
|
|
|
|
- <p><i class="el-icon-edit"></i></p>
|
|
|
|
- <el-button type="primary">我的发布</el-button>
|
|
|
|
|
|
+ <el-col :span="11" class="btn" v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'">
|
|
|
|
+ <p><i class="el-icon-pie-chart"></i></p>
|
|
|
|
+ <el-button type="primary" round>我的发布</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'">
|
|
|
|
- <p><i class="el-icon-edit"></i></p>
|
|
|
|
- <el-button type="primary">事项管理</el-button>
|
|
|
|
|
|
+ <el-col :span="11" class="btn" v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'">
|
|
|
|
+ <p><i class="el-icon-notebook-1"></i></p>
|
|
|
|
+ <el-button type="primary" round>事项管理</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'">
|
|
|
|
- <p><i class="el-icon-edit"></i></p>
|
|
|
|
- <el-button type="primary">展会管理</el-button>
|
|
|
|
|
|
+ <el-col :span="11" class="btn" v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'">
|
|
|
|
+ <p><i class="el-icon-video-camera"></i></p>
|
|
|
|
+ <el-button type="primary" round>展会管理</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="12" v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'">
|
|
|
|
- <p><i class="el-icon-edit"></i></p>
|
|
|
|
- <el-button type="primary">个人中心</el-button>
|
|
|
|
|
|
+ <el-col :span="11" class="btn" v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'">
|
|
|
|
+ <p><i class="el-icon-user"></i></p>
|
|
|
|
+ <el-button type="primary" round>个人中心</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<span v-else-if="this.user.role == '1' || this.user.role == '4'">
|
|
<span v-else-if="this.user.role == '1' || this.user.role == '4'">
|
|
- <el-col :span="12" v-for="(item, index) in menuList" :key="index">
|
|
|
|
- <p><i class="el-icon-edit"></i></p>
|
|
|
|
- <el-button type="primary">{{ item.title }}</el-button>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ 超级管理员,合作机构管理员,业务管理员
|
|
</span>
|
|
</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -39,8 +36,6 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
-const { mapActions: authUser } = createNamespacedHelpers('authUser');
|
|
|
|
-
|
|
|
|
export default {
|
|
export default {
|
|
name: 'clickBtn',
|
|
name: 'clickBtn',
|
|
props: {},
|
|
props: {},
|
|
@@ -48,26 +43,37 @@ export default {
|
|
data: function() {
|
|
data: function() {
|
|
return {
|
|
return {
|
|
user: {
|
|
user: {
|
|
- role: '1',
|
|
|
|
|
|
+ role: '2',
|
|
},
|
|
},
|
|
menuList: [],
|
|
menuList: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
- this.searchInfo();
|
|
|
|
- console.log(this.user);
|
|
|
|
- },
|
|
|
|
- methods: {
|
|
|
|
- ...authUser(['fetch']),
|
|
|
|
- async searchInfo() {
|
|
|
|
- let res = await this.fetch();
|
|
|
|
- console.log(res);
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ created() {},
|
|
|
|
+ methods: {},
|
|
computed: {
|
|
computed: {
|
|
- ...mapState(['user']),
|
|
|
|
|
|
+ // ...mapState(['user']),
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style lang="less" scoped></style>
|
|
|
|
|
|
+<style lang="less" scoped>
|
|
|
|
+.info {
|
|
|
|
+ margin: 15px 0 0 0;
|
|
|
|
+ .btn {
|
|
|
|
+ box-shadow: 0 0 5px #ccc;
|
|
|
|
+ margin: 0 10px 10px 10px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ border-radius: 10px;
|
|
|
|
+ padding: 15px;
|
|
|
|
+ p {
|
|
|
|
+ padding: 0 0 10px 0;
|
|
|
|
+ i {
|
|
|
|
+ font-size: 30px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .btn:nth-child(2n) {
|
|
|
|
+ margin: 0;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</style>
|