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>
|
|
|
|
<view class="">
|
|
|
|
<view class="">
|
|
|
|
<Dindex v-if="shenfen=='battalion'&&!isSupervisor"></Dindex>
|
|
|
|
</view>
|
|
|
|
<view class="">
|
|
|
|
<Zindex v-if="shenfen=='brigade'"></Zindex>
|
|
|
|
</view>
|
|
|
|
<view class="">
|
|
|
|
<Jindex v-if="shenfen=='squadron'||isSupervisor"></Jindex>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Dindex from "@/pages/dadui/index/index.vue"
|
|
|
|
import Jindex from "@/pages/rescue/index.vue"
|
|
|
|
import Zindex from "@/pages/zhidui/index.vue"
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Dindex,
|
|
|
|
Jindex,
|
|
|
|
Zindex
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
shenfen: "",
|
|
|
|
isSupervisor: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
this.shenfen= ""
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
let roles = uni.getStorageSync("user").roles
|
|
|
|
let isSupervisor = roles.find(item => {
|
|
|
|
return item.name.indexOf('检查') != -1
|
|
|
|
})
|
|
|
|
isSupervisor ? this.isSupervisor = true : this.isSupervisor = false
|
|
|
|
this.shenfen = uni.getStorageSync("user").organizationLevel
|
|
|
|
console.log(1111111);
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
onReady() {
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
|
|
</style>
|