| | |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view class="nav bgc-ff mb-20 mt-20" v-if="comprehensive.length"> |
| | | <view class="nav bgc-ff mb-20 mt-20" v-if="comprehensive.length"> |
| | | <view class="caption"> |
| | | <view class="flex a-i-c"> |
| | | <view class="line"></view> |
| | | <text class="f-32 fw">综治任务</text> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="nav-item flex j-c-s-b a-i-c" @click="navTo(i.path)" v-for="i in comprehensive"> |
| | | |
| | | <view class="nav-item flex j-c-s-b a-i-c" @click="navTo(i.path)" v-for="i in comprehensive"> |
| | | <text class="f-28">{{i.name}}</text> |
| | | <view class="flex"> |
| | | <block v-if="i.count > 0"> |
| | |
| | | <u-icon name="arrow-right" color="#999"></u-icon> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- <view class="nav-item flex j-c-s-b a-i-c" @click="navTo('/subPackage/workbench/views/cshw')" v-for="i in comprehensive"> |
| | | |
| | | <!-- <view class="nav-item flex j-c-s-b a-i-c" @click="navTo('/subPackage/workbench/views/cshw')" v-for="i in comprehensive"> |
| | | <text class="f-28">场所审核</text> |
| | | <view class="flex"> |
| | | <text class="f-28 c-99">待处理</text> |
| | |
| | | <u-icon name="arrow-right" color="#999"></u-icon> |
| | | </view> |
| | | </view> --> |
| | | |
| | | |
| | | </view> |
| | | |
| | | <!-- <view class="nav bgc-ff mb-20"> |
| | |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view class="nav bgc-ff mb-20" v-if="securityList.length"> |
| | | <view class="nav bgc-ff mb-20" v-if="securityList.length"> |
| | | <view class="caption"> |
| | | <view class="flex a-i-c"> |
| | | <view class="line"></view> |
| | | <text class="f-32 fw">公安任务</text> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="nav-item flex j-c-s-b a-i-c" @click="navTo(`${i.path}&from=task`)" v-for="i in securityList"> |
| | | |
| | | <view class="nav-item flex j-c-s-b a-i-c" @click="navTo(`${i.path}&from=task`)" v-for="i in securityList"> |
| | | <text class="f-28">{{i.name}}</text> |
| | | <view class="flex"> |
| | | <block v-if="bailCount > 0"> |
| | |
| | | <u-icon name="arrow-right" color="#999"></u-icon> |
| | | </view> |
| | | </view> |
| | | <!-- <view class="nav-item flex j-c-s-b a-i-c" @click="navTo()"> |
| | | <text class="f-28">取保候审</text> |
| | | <view class="flex"> |
| | | <block v-if="false"> |
| | | <text class="f-28 c-99">待处理</text> |
| | | <view class="dot bgc-main">{{countInfo.comprehensiveTask}}</view> |
| | | </block> |
| | | <u-icon name="arrow-right" color="#999"></u-icon> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | }], |
| | | repairsCount: 0, |
| | | countInfo: {}, |
| | | securityList:[], |
| | | comprehensive:[], |
| | | bailCount:0 |
| | | securityList: [], |
| | | comprehensive: [], |
| | | bailCount: 0 |
| | | } |
| | | }, |
| | | |
| | | onLoad(){ |
| | | this.getMenuList() |
| | | }, |
| | | onLoad() { |
| | | this.getMenuList() |
| | | }, |
| | | onShow() { |
| | | this.getCount(); |
| | | // this.getRepairsCount(); |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | getMenuList(){ |
| | | |
| | | getMenuList() { |
| | | let list = uni.getStorageSync("taskMenu"); |
| | | if(list.length){ |
| | | for(let i of list){ |
| | | if (list.length) { |
| | | for (let i of list) { |
| | | i.count = 0; |
| | | if(i.remark == '1'){ |
| | | if(i.name == "报事报修"){ |
| | | } |
| | | if (i.remark == '1') { |
| | | if (i.name == "报事报修") {} |
| | | this.comprehensive.push(i) |
| | | }else { |
| | | } else { |
| | | this.securityList.push(i) |
| | | } |
| | | } |
| | |
| | | if (res.code == 200) { |
| | | let data = res.data; |
| | | this.countInfo = res.data; |
| | | for(let i of this.comprehensive){ |
| | | if(i.name == "场所审核"){ |
| | | for (let i of this.comprehensive) { |
| | | if (i.name == "场所审核") { |
| | | i.count = data.cssh; |
| | | }else if(i.name == "报事报修"){ |
| | | } else if (i.name == "报事报修") { |
| | | i.count = data.bsbx; |
| | | }else if(i.name == "住户审核"){ |
| | | } else if (i.name == "住户审核") { |
| | | i.count = data.zhsh |
| | | }else if (i.name.trim() == "标签报事"){ |
| | | } else if (i.name.trim() == "标签报事") { |
| | | i.count = data.bqsj |
| | | }else if (i.name == "租房管理"){ |
| | | } else if (i.name == "租房管理") { |
| | | i.count = data.czsh |
| | | } |
| | | } |
| | |
| | | getRepairsStatistics().then(res => { |
| | | if (res.code == 200) { |
| | | this.repairsCount = res.data; |
| | | let index = this.comprehensive.findIndex(item=> item.name == "报事报修") |
| | | this.comprehensive[index].count = res.data; |
| | | let index = this.comprehensive.findIndex(item => item.name == "报事报修") |
| | | this.comprehensive[index].count = res.data; |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | navTo(url) { |
| | | |
| | | if(!url || url == "暂无" ){ |
| | | |
| | | if (!url || url == "暂无") { |
| | | uni.showToast({ |
| | | title:"功能开发中~", |
| | | icon:"none" |
| | | title: "功能开发中~", |
| | | icon: "none" |
| | | }) |
| | | }else { |
| | | } else { |
| | | this.$u.func.globalNavigator(`${url}?from=task`) |
| | | } |
| | | } |
| | |
| | | .mb-20 { |
| | | margin-bottom: 20rpx; |
| | | } |
| | | .mt-20{ |
| | | margin-top:20rpx; |
| | | |
| | | .mt-20 { |
| | | margin-top: 20rpx; |
| | | } |
| | | </style> |