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 @@ - - - - - + + + + + +