| | |
| | | <template>
|
| | | <view class="">
|
| | | <view class="layout" >
|
| | | <u-navbar height="48" :autoBack="false" safeAreaInsetTop placeholder
|
| | | @leftClick="selectBoxShow = !selectBoxShow">
|
| | | <view slot="left" class="top flex">
|
| | |
| | | } from "@/common/setting"
|
| | | import noticeList from "@/components/noticeList/noticeList";
|
| | | import captionRow from "@/components/caption/caption.vue"
|
| | | import taskListVue from "../../subPackage/task/taskList.vue"; |
| | |
|
| | | export default {
|
| | | components: {
|
| | |
| | | // });
|
| | | this.menuList = uni.getStorageSync("menu")
|
| | | let liveList = this.hasMenu('生活')
|
| | | console.log("liveList===>", liveList);
|
| | | this.liveList = this.setLiveMenu(liveList);
|
| | | this.contactList = this.hasMenu('快捷拨号');
|
| | | this.jobList = this.hasMenu('工作台')
|
| | |
| | | setTimeout(()=>{
|
| | | if(this.jobList.length){
|
| | | let taskList = this.jobList.filter(item => item.name == "我的任务")
|
| | | uni.setStorageSync("taskMenu",taskList[0].children);
|
| | | if(taskList.length){
|
| | | uni.setStorageSync("taskMenu",taskList[0].children);
|
| | | }else {
|
| | | uni.setStorageSync("taskMenu",[]);
|
| | | }
|
| | | }else {
|
| | | uni.setStorageSync("taskMenu",[]);
|
| | | }
|
| | |
| | |
|
| | |
|
| | | setLiveMenu(arr) {
|
| | | let index = arr.findIndex(item => item.name == "标签报事")
|
| | | if (this.curSelectSite.addressType == 1) {
|
| | | if (index != -1) {
|
| | | arr.splice(index, 1)
|
| | | }
|
| | | } else {
|
| | | if (index == -1) {
|
| | | arr.unshift({
|
| | | name: "标签报事",
|
| | | path: "/subPackage/label/index",
|
| | | pictureImg: "/static/icon/nav-01.png"
|
| | | })
|
| | | if(arr.length){
|
| | | let index = arr.findIndex(item => item.name == "标签报事")
|
| | | let index2 = arr.findIndex(item => item.name == "租户上报")
|
| | | if (this.curSelectSite.addressType == 1) {
|
| | | if (index != -1) { |
| | | arr.splice(index, 1)
|
| | | }
|
| | | if(index2 == -1){
|
| | | arr.push({
|
| | | name: "租客上报",
|
| | | path: "/subPackage/bs/views/zhsb",
|
| | | pictureImg: "/static/icon/nav-04.png"
|
| | | })
|
| | | }
|
| | | } else {
|
| | | if (index == -1) {
|
| | | arr.unshift({
|
| | | name: "标签报事",
|
| | | path: "/subPackage/label/index",
|
| | | pictureImg: "/static/icon/nav-01.png"
|
| | | })
|
| | | }
|
| | | if(index2 != -1){
|
| | | arr.splice(index2, 1)
|
| | | }
|
| | | }
|
| | | }
|
| | | return arr;
|
| | |
| | | }
|
| | | </script>
|
| | |
|
| | | <style lang="scss" scoped>
|
| | | <style lang="scss">
|
| | | page {
|
| | | color: #333;
|
| | | width:100%;
|
| | | height:100%;
|
| | | background-color:#fff;
|
| | | }
|
| | | .layout{
|
| | | width:100%;
|
| | | height:100%;
|
| | | background-color:#fff;
|
| | | }
|
| | |
|
| | | .top {
|