@@ -126,22 +126,29 @@ export default {
clickedUserSelect: false
}
},
- created() {
- document.title = "新增会议";
- if (this.params) {
- this.form.id = this.params;
- this.getDetail();
+
+ onLoad(opt) {
+ if(opt.id) {
+ this.form.id = opt.id
+ this.getDetail()
}
- this.$nextTick(() => {
+
+ this.$nextTick(()=>{
let date = new Date();
this.form.startTime.time = date.getHours()?.toString()?.padStart(2, "0") + ":" + date.getMinutes()?.toString()?.padStart(2, "0")
this.form.startTime.year = date.getFullYear()
- this.form.startTime.month = (date.getMonth() + 1)?.toString()?.padStart(2, "0")
+ this.form.startTime.month = (date.getMonth()+1)?.toString()?.padStart(2, "0")
this.form.startTime.day = date.getDate()
this.form.startTime.weekday = '日一二三四五六'.charAt(date.getDay())
this.form.endTime = {...this.form.startTime}
})
},
+
+ onShow(){
+ document.title = "新增会议";
+ this.$dict.load("meetingNoticeBefore", "meetingNoticeAfter");
+ },
+
computed: {
options() {
return {
@@ -260,11 +267,6 @@ export default {
this.index = index
this.show = true
},
- select() {
- uni.navigateTo({
- url: "/pages/meetingNotice/components/notice"
- })
- }
},
}