From 23a1e5b3a79d4aafb1abf5d6824b51f75eb98c6d Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Thu, 11 Jul 2024 16:05:29 +0800
Subject: [PATCH] 代码优化
---
subPackage/task/index.vue | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/subPackage/task/index.vue b/subPackage/task/index.vue
index 52658a8..11c3cc0 100644
--- a/subPackage/task/index.vue
+++ b/subPackage/task/index.vue
@@ -135,15 +135,23 @@
</block>
<u-icon name="arrow-right" color="#999"></u-icon>
</view>
- <!-- <view class="flex">
- <block v-if="bailCount > 0">
+ </view>
+
+ </view>
+
+ <view class="nav bgc-ff mb-20 mt-20" v-if="schoolList.length">
+ <view class="nav-item flex j-c-s-b a-i-c" @click="navTo(`${i.path}&from=task`)" v-for="i in schoolList">
+ <text class="f-28">{{i.name}}</text>
+ <view class="flex">
+ <block v-if="i.count > 0">
<text class="f-28 c-99">待处理</text>
- <view class="dot bgc-main">{{bailCount}}</view>
+ <view class="dot bgc-main">{{i.count}}</view>
</block>
<u-icon name="arrow-right" color="#999"></u-icon>
- </view> -->
+ </view>
</view>
</view>
+
</view>
</template>
@@ -163,6 +171,7 @@
}],
repairsCount: 0,
countInfo: {},
+ schoolList: [],
securityList: [],
comprehensive: [],
bailCount: 0
@@ -187,8 +196,10 @@
if (i.remark == '1') {
if (i.name == "报事报修") {}
this.comprehensive.push(i)
- } else {
+ } else if (i.remark == '2') {
this.securityList.push(i)
+ } else if (i.remark == '3') {
+ this.schoolList.push(i)
}
}
}
--
Gitblit v1.9.3