diff --git a/src/apps/AppMeetingNotice/components/addMeeting.vue b/src/apps/AppMeetingNotice/components/addMeeting.vue
index 59856c76..153202ee 100644
--- a/src/apps/AppMeetingNotice/components/addMeeting.vue
+++ b/src/apps/AppMeetingNotice/components/addMeeting.vue
@@ -82,7 +82,7 @@
发布会议
-
+
@@ -95,6 +95,11 @@ import {mapActions} from "vuex";
export default {
name: "addMeeting",
components: {AiBack, AiUploader},
+ props:{
+ params:{
+ type: [Number, String]
+ }
+ },
data() {
const initTime = {
time: "",
@@ -123,10 +128,10 @@ export default {
userSelect: false,
}
},
- onLoad(opt) {
- if (opt.id) {
- this.form.id = opt.id
- this.getDetail()
+ created(){
+ if (this.params) {
+ this.form.id = this.params;
+ this.getDetail();
}
this.$nextTick(() => {
let date = new Date();
@@ -139,7 +144,7 @@ export default {
})
},
computed: {
- params() {
+ options() {
return {
year: true,
month: true,
diff --git a/src/apps/AppMeetingNotice/components/meetingList.vue b/src/apps/AppMeetingNotice/components/meetingList.vue
index 9e333c5d..c1e88b7d 100644
--- a/src/apps/AppMeetingNotice/components/meetingList.vue
+++ b/src/apps/AppMeetingNotice/components/meetingList.vue
@@ -55,13 +55,18 @@
}
},
- onLoad() {
- uni.setNavigationBarTitle({
- title: this.params == 0 ? "历史会议" : "草稿箱"
- });
- },
+ created(){
+ uni.setNavigationBarTitle({
+ title: this.params == 0 ? "历史会议" : "草稿箱"
+ });
+ this.getData()
+ },
methods: {
+ emitReachBottom(){
+ this.current = this.current + 1;
+ this.getData()
+ },
detail({id}) {
this.$parent.params = id;
this.$parent.isList = false;
@@ -109,15 +114,6 @@
return "日一二三四五六".charAt((new Date(date.split(" ")[0]).getDay()))
}
},
-
- created() {
- this.getData()
- },
-
- onReachBottom() {
- this.current = this.current + 1;
- this.getData()
- },
}