123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <template>
- <div id="clickBtn">
- <el-row>
- <el-col :span="24" class="info">
- <el-col :span="11" class="btn" @click.native="$router.push({ path: '/live/index' })">
- <p><i class="el-icon-camera"></i></p>
- <el-button type="primary" round>直播大厅</el-button>
- </el-col>
- <el-col :span="11" class="btn" @click.native="$router.push({ path: '/market/index' })">
- <p><i class="el-icon-coin"></i></p>
- <el-button type="primary" round>科技超市</el-button>
- </el-col>
- <el-col
- :span="11"
- class="btn"
- v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'"
- @click.native="$router.push({ path: '/myfabu/index' })"
- >
- <p><i class="el-icon-pie-chart"></i></p>
- matter
- <el-button type="primary" round>我的发布</el-button>
- </el-col>
- <el-col
- :span="11"
- class="btn"
- v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'"
- @click.native="$router.push({ path: '/myfabu/matter' })"
- >
- <p><i class="el-icon-notebook-1"></i></p>
- <el-button type="primary" round>事项管理</el-button>
- </el-col>
- <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 :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>
- <span v-else-if="this.user.role == '1' || this.user.role == '4'">
- 超级管理员,合作机构管理员,业务管理员
- </span>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- name: 'clickBtn',
- props: {},
- components: {},
- data: function() {
- return {
- user: {
- role: '2',
- },
- menuList: [],
- };
- },
- created() {},
- methods: {},
- computed: {
- // ...mapState(['user']),
- },
- };
- </script>
- <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>
|