From e6f2effa8eeac06c0253aa41efc4adb13881a9c2 Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Fri, 13 Dec 2024 14:39:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/components/swiper.vue | 2 +- pages/home/components/swiperRepair.vue | 177 +++++++++++++++++++++++++ pages/home/index.vue | 12 +- pages/submission/records.vue | 13 +- 4 files changed, 198 insertions(+), 6 deletions(-) create mode 100644 pages/home/components/swiperRepair.vue diff --git a/pages/home/components/swiper.vue b/pages/home/components/swiper.vue index 48a3768..e3e1d6c 100644 --- a/pages/home/components/swiper.vue +++ b/pages/home/components/swiper.vue @@ -1,6 +1,6 @@ + + \ No newline at end of file diff --git a/pages/home/index.vue b/pages/home/index.vue index 6e8ce47..f75ef52 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -24,11 +24,14 @@ {{ item.name }} - + - + + + + @@ -55,13 +58,16 @@ import alarm from "./components/alarm.vue"; import eacharts from "./components/eacharts.vue"; import eachartsPie from "./components/eacharts_pie.vue"; import eachartsNightpie from "./components/eacharts_nightpie.vue"; +// swiperRepair +import swiperRepair from "./components/swiperRepair.vue"; export default { components: { swiperSlider, alarm, eacharts, eachartsPie, - eachartsNightpie + eachartsNightpie, + swiperRepair }, data() { return { diff --git a/pages/submission/records.vue b/pages/submission/records.vue index 6c36539..b7346f8 100644 --- a/pages/submission/records.vue +++ b/pages/submission/records.vue @@ -169,7 +169,7 @@ export default { reportUnit: '',//提报单位 }, - current: 1, + current: 0, loadingState: "loadmore", isNomore: false, noDataFlag: false, @@ -200,6 +200,7 @@ export default { tabList: [],//tab状态 messageCount: 0,//消息总数展示 + requirementCode:'',//单号 }; }, computed: { @@ -229,6 +230,7 @@ export default { }, onLoad(options) { this.type = options.type ? options.type : '' + this.requirementCode = options.requirementCode ? options.requirementCode : '' }, onShow() { this.$nextTick(() => { @@ -236,7 +238,14 @@ export default { if (this.type == '') { this.$refs.tabbarRef.getPermission(); } - this.changeTab(1) + if(this.requirementCode != ''){ + this.current = 0 + this.searchInfo.requirementCode = this.requirementCode + }else{ + this.current = 1 + this.changeTab(1) + } + this.getRecordsList() }); },