1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
| <template>
| <view>
| <u-button @click="applyPulicy">执法申请</u-button>
| <u-button v-if="isJudge">执法审批</u-button>
| <u-button>执法结果上报</u-button>
| <u-button>记录查询</u-button>
| <u-button>数据看板</u-button>
| </view>
| </template>
|
| <script>
| import { getInfo } from '@/api/auth.js'
| export default {
| data() {
| return {
| isJudge: false
| }
| },
| onShow() {
| this.getInfo()
| },
| methods: {
| getInfo() {
| getInfo().then(val =>{
| // console.log()
| this.isJudge = val.data.roles.some(item => item.includes('check_enforce'))
| })
| },
| applyPulicy() {
| uni.navigateTo({
| url: '/policy/policyApply/policyApply'
| })
| }
| }
| }
| </script>
|
| <style>
|
| </style>
|
|