From 3259be3b1398edf8f0d808e43d54d2bad08db186 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Tue, 15 Aug 2023 18:27:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/task/index.vue | 59 +++++++-- components/task/taskItem.vue | 18 ++- pages/oaLogin/oaLogin.vue | 72 ++++++----- pages/oaTask/oaTask.vue | 3 +- pages/updatePasswprd/updatePasswprd.vue | 151 ++++++++++++----------- subpkg/companyInfo/companyInfo.vue | 7 +- subpkg/fileTask/fileTask.vue | 7 +- subpkg/newPersonnel/newPersonnel.vue | 4 +- subpkg/taskAdmin/taskAdmin.vue | 27 ++-- subpkg/updateArchives/updateArchives.vue | 6 +- 10 files changed, 215 insertions(+), 139 deletions(-) diff --git a/components/task/index.vue b/components/task/index.vue index 772b2aa..2023f6a 100644 --- a/components/task/index.vue +++ b/components/task/index.vue @@ -3,27 +3,31 @@ - + - - + + - - + + \ No newline at end of file diff --git a/subpkg/companyInfo/companyInfo.vue b/subpkg/companyInfo/companyInfo.vue index bcf1fc8..21340c2 100644 --- a/subpkg/companyInfo/companyInfo.vue +++ b/subpkg/companyInfo/companyInfo.vue @@ -45,7 +45,7 @@ - + @@ -94,7 +94,8 @@ } }, onReachBottom() { - this.loadCompanyList(); + if(this.current==1) this.loadCompanyList(); + else if(this.current==3) this.$refs.taskRef.loadList(); }, methods: { async initLoad() { @@ -145,7 +146,7 @@ }, onPullDownRefresh() { if(this.current==1) this.initLoad(); - + else if(this.current==3) this.$refs.taskRef.initLoadConfig(); this.$u.sleep(500).then(()=>{uni.stopPullDownRefresh()}) } } diff --git a/subpkg/fileTask/fileTask.vue b/subpkg/fileTask/fileTask.vue index a7e399f..f715067 100644 --- a/subpkg/fileTask/fileTask.vue +++ b/subpkg/fileTask/fileTask.vue @@ -40,16 +40,16 @@ import { informationList } from "@/api/information.js" export default { data() { return { - ids: [], + ids: -1, list: [] } }, onLoad(options) { try{ - this.ids = JSON.parse(options.id); + this.ids = options.id; this.loadList(); }catch(e){ - this.ids = []; + this.ids = -1; } }, onShow() {}, @@ -76,6 +76,7 @@ export default { let res = await informationList({ 'arr[]': [...this.ids] }); + console.log(res); } }, onPullDownRefresh() { diff --git a/subpkg/newPersonnel/newPersonnel.vue b/subpkg/newPersonnel/newPersonnel.vue index 122b72f..6e1c185 100644 --- a/subpkg/newPersonnel/newPersonnel.vue +++ b/subpkg/newPersonnel/newPersonnel.vue @@ -228,8 +228,8 @@ title: "添加成功", success: () => { setTimeout(() => { - // uni.$emit('initPersonnel'); - // uni.navigateBack(); + uni.$emit('initPersonnel'); + uni.navigateBack(); }, 1000) } }) diff --git a/subpkg/taskAdmin/taskAdmin.vue b/subpkg/taskAdmin/taskAdmin.vue index 87dd6e1..bd95245 100644 --- a/subpkg/taskAdmin/taskAdmin.vue +++ b/subpkg/taskAdmin/taskAdmin.vue @@ -11,18 +11,19 @@ - - - - - + + + + + +