From 58d533b992d434f9e82cebf5771af488744aecb8 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Thu, 28 Dec 2023 19:33:19 +0800
Subject: [PATCH] 修复问题
---
subPackage/task/index.vue | 86 +++++++++++++++++++------------------------
1 files changed, 38 insertions(+), 48 deletions(-)
diff --git a/subPackage/task/index.vue b/subPackage/task/index.vue
index 127a9bb..2a6d7e1 100644
--- a/subPackage/task/index.vue
+++ b/subPackage/task/index.vue
@@ -22,15 +22,15 @@
</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">
@@ -40,8 +40,8 @@
<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>
@@ -97,7 +97,7 @@
<u-icon name="arrow-right" color="#999"></u-icon>
</view>
</view> -->
-
+
</view>
<!-- <view class="nav bgc-ff mb-20">
@@ -118,15 +118,15 @@
</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">
@@ -136,16 +136,6 @@
<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>
@@ -166,32 +156,31 @@
}],
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)
}
}
@@ -202,16 +191,16 @@
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
}
}
@@ -223,21 +212,21 @@
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`)
}
}
@@ -303,7 +292,8 @@
.mb-20 {
margin-bottom: 20rpx;
}
- .mt-20{
- margin-top:20rpx;
+
+ .mt-20 {
+ margin-top: 20rpx;
}
</style>
\ No newline at end of file
--
Gitblit v1.9.3