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.

51 lines
1.0 KiB

3 years ago
<template>
3 years ago
<view class="">
<view class="">
<Dtask v-if="shenfen=='battalion'&&!isSupervisor"></Dtask>
</view>
<view class="">
<Ztask v-if="shenfen=='brigade'"></Ztask>
</view>
<view class="">
<Jtask v-if="shenfen=='squadron'||isSupervisor"></Jtask>
</view>
</view>
3 years ago
</template>
<script>
import Dtask from "@/pages/dadui/jiancha/jiancha.vue"
3 years ago
import Jtask from "@/pages/rescue/taskapply.vue"
3 years ago
import Ztask from '@/pages/zhidui/assign/assign.vue'
export default {
components: {
Dtask,
Jtask,
Ztask
},
data() {
return {
shenfen: "",
isSupervisor: false
}
},
3 years ago
onShow() {
3 years ago
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
},
onReady() {
},
methods: {}
}
</script>
<style lang="scss">
</style>