You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<!-- 企业端 -->
|
|
|
|
<div v-if="checkRole(['admin', 'company'])">
|
|
|
|
<qiyeduan />
|
|
|
|
</div>
|
|
|
|
<!-- 政务端 -->
|
|
|
|
<div v-if="checkRole(['admin', 'common'])">
|
|
|
|
<zhengwuduan />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import qiyeduan from '@/views/components/qiyexinxi/qiyexinxi.vue'
|
|
|
|
import zhengwuduan from '@/views/components/zhengwuxinxi/zhengwuxinxi.vue'
|
|
|
|
import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: { qiyeduan, zhengwuduan },
|
|
|
|
methods: {
|
|
|
|
checkPermi,
|
|
|
|
checkRole
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|