From adb590dd0ea483f5683e7fc08c91d73be8f0fb6e Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Thu, 12 Dec 2024 13:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=95=E7=A4=BAtab=E9=A1=B5=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 2 +- pages/home/components/eacharts_pie.vue | 1 - pages/home/index.vue | 236 +++++-------------------- pages/inspection/plan.vue | 2 +- pages/inspection/quest.vue | 57 ++++-- pages/submission/records.vue | 30 +++- store/index.js | 8 +- utils/tabbar.js | 29 ++- utils/website.js | 4 +- 9 files changed, 139 insertions(+), 230 deletions(-) diff --git a/pages.json b/pages.json index 17f36a9..6478957 100644 --- a/pages.json +++ b/pages.json @@ -71,7 +71,7 @@ "navigationBarTitleText": "巡检计划", "enablePullDownRefresh": false, "navigationBarTextStyle": "black", - "navigationBarBackgroundColor": "#F8F8F8", + "navigationBarBackgroundColor": "#fff", "app-plus": { "titleNView": {} } diff --git a/pages/home/components/eacharts_pie.vue b/pages/home/components/eacharts_pie.vue index 090d8d8..12ddd80 100644 --- a/pages/home/components/eacharts_pie.vue +++ b/pages/home/components/eacharts_pie.vue @@ -106,7 +106,6 @@ export default { margin: 0 32rpx 32rpx; border-radius: 20rpx; overflow: hidden; - .echarts { width: calc(100% - 64rpx); height: 368rpx; diff --git a/pages/home/index.vue b/pages/home/index.vue index 8198c1a..2a3da99 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -7,72 +7,42 @@ - - - - - - 工作台 - - - - - - 巡检计划 - - - - - - 报送记录 - - - - - - - - 维修任务 - - - - + 工作台 + + + + + - 巡检任务 - - - - - - - - 接单记录 - - - - - - 巡检任务 + + {{ item.name }} - - 设备统计 - - - 检修单状态 - - + + + + + + + 维修统计 - - + + + 故障现象分类 + + + + 设备分类 + + @@ -93,35 +63,27 @@ export default { eachartsPie, eachartsNightpie }, - computed: { - - dataTypes() { - return this.$store.state.dataType - }, - }, data() { return { swiperList: [], workList: [], - pieInfo: [],//饼图数据 - noticeList: [ - - ],//通知列表 + pieInfo: {},//饼图数据 }; }, - onLoad() { - this.pieStat() - }, onShow() { this.$nextTick(() => { + // this.pieStat() this.$refs.tabbarRef.getPermission(); - this.getNoticeList() - + // this.BetLoading.show(); + // setTimeout(() => { + // this.BetLoading.hide(); + // }, 1000); }); //工作台 - + this.pieStat() this.getUserInfo() this.getoverview() + }, methods: { // 工作台 列表 overview @@ -169,9 +131,14 @@ export default { }) }, goPage(item) { - uni.navigateTo({ - url: item, - }); + if (item == '') { + uni.showToast({ title: "功能正在完善中,敬请期待!", icon: "none" }); + } else { + uni.navigateTo({ + url: item, + }); + } + }, scanCode() { uni.scanCode({ @@ -185,28 +152,11 @@ export default { } }); }, - // 饼图数据 - pieStat() { + // 饼图数据 + pieStat() { this.$u.api.pieStat().then(res => { if (res.code == 200) { - this.pieInfo = res.data.fault - } - }) - }, - // 通知公告 - getNotice() { - uni.navigateTo({ - url: '/pages/notice/announcement', - }); - }, - - getNoticeList() { - this.$u.api.getNoticeList().then(res => { - if (res.code == 200) { - let data = res.data.records - data.forEach(item => { - this.noticeList.push(item.title) - }) + this.pieInfo = res.data } }) }, @@ -218,10 +168,11 @@ export default { width: 100%; // min-height: 100%; padding: 0; + background: rgba(239, 239, 239, 1); padding-top: var(--status-bar-height); .banner-swiper { - margin-bottom: 32rpx; + margin-bottom: 64rpx; position: relative; .logo-txt { @@ -246,7 +197,6 @@ export default { color: rgba(16, 16, 16, 1); font-size: 32rpx; padding: 0 0 32rpx 36rpx; - margin-top: 32rpx; } .workbench { @@ -297,99 +247,5 @@ export default { .statistics_pie { width: 100%; } - - .menu_box { - background: #fff; - position: relative; - margin: 0 32rpx; - border-radius: 20rpx; - - &::after { - content: ''; - position: absolute; - height: 4rpx; - width: 100%; - background: #38D79F; - position: absolute; - top: 0; - left: 0; - } - - .menu_title { - height: 100rpx; - font-weight: 500; - font-size: 32rpx; - color: #333333; - line-height: 100rpx; - text-align: left; - font-style: normal; - margin: 0 32rpx; - position: relative; - - &::after { - content: ''; - position: absolute; - bottom: 0; - left: 0; - height: 2rpx; - background: #f5f5f5; - width: 100%; - } - - } - - .menu_list { - padding-bottom: 32rpx; - margin-left: 32rpx; - margin-right: 32rpx; - margin-top: 24rpx; - - .item_box { - width: 50%; - float: left; - - &:nth-child(1) { - position: relative; - - &::after { - content: ''; - position: absolute; - width: 4rpx; - height: 100%; - background: #f5f5f5; - right: 20rpx; - top: 0; - } - } - - .item_img { - width: 64rpx; - height: 64rpx; - float: left; - - image { - width: 100%; - height: 100%; - } - } - - .item_txt { - font-weight: 400; - font-size: 32rpx; - color: #333333; - line-height: 64rpx; - text-align: left; - font-style: normal; - padding-left: 20rpx; - float: left; - } - } - } - } - - .notice_box { - width: 100%; - background: #fff; - } } \ No newline at end of file diff --git a/pages/inspection/plan.vue b/pages/inspection/plan.vue index 4988197..d2faf59 100644 --- a/pages/inspection/plan.vue +++ b/pages/inspection/plan.vue @@ -202,7 +202,7 @@ export default { .page-search-top { max-height: 210rpx; - background-color: #F8F8F8; + background-color: #fff; padding: 30rpx 40rpx 20rpx; } diff --git a/pages/inspection/quest.vue b/pages/inspection/quest.vue index 043e61d..199fde2 100644 --- a/pages/inspection/quest.vue +++ b/pages/inspection/quest.vue @@ -1,6 +1,6 @@