diff --git a/src/sass/AppAskForm/AddForm.vue b/src/sass/AppAskForm/AddForm.vue index d6528359..17303a21 100644 --- a/src/sass/AppAskForm/AddForm.vue +++ b/src/sass/AppAskForm/AddForm.vue @@ -174,6 +174,7 @@ export default { } else { this.pageShow = true } + document.title = !id ? '新建表单' : '编辑表单' this.init() uni.$on('setting', res => { this.form = { diff --git a/src/sass/AppAskForm/FiledConfig.vue b/src/sass/AppAskForm/FiledConfig.vue index 69a31bed..e2126b78 100644 --- a/src/sass/AppAskForm/FiledConfig.vue +++ b/src/sass/AppAskForm/FiledConfig.vue @@ -158,6 +158,9 @@ export default { isShowAnswer: false } }, + mounted () { + document.title = '表单项配置' + }, computed: { pointTypeName() { if (!this.config.pointDict) return '' diff --git a/src/sass/AppAskForm/FormSetting.vue b/src/sass/AppAskForm/FormSetting.vue index 07b17ad3..95dca801 100644 --- a/src/sass/AppAskForm/FormSetting.vue +++ b/src/sass/AppAskForm/FormSetting.vue @@ -108,6 +108,7 @@ export default { } }, created() { + document.title = '表单设置' if (this.id) { this.getInfo(this.id) } else this.getFormSetting() diff --git a/src/sass/AppAskForm/PreviewForm.vue b/src/sass/AppAskForm/PreviewForm.vue index 0c00c30c..1934df35 100644 --- a/src/sass/AppAskForm/PreviewForm.vue +++ b/src/sass/AppAskForm/PreviewForm.vue @@ -100,6 +100,11 @@ export default { ...params } }, + + mounted () { + document.title = '表单预览' + }, + methods: { getInfo(id) { uni.showLoading() diff --git a/src/sass/AppInterview/interviewDetail.vue b/src/sass/AppInterview/interviewDetail.vue index d728accf..4567cb99 100644 --- a/src/sass/AppInterview/interviewDetail.vue +++ b/src/sass/AppInterview/interviewDetail.vue @@ -53,25 +53,34 @@ export default { created() { this.searchDetail(); }, + onLoad () { + document.title = this.$route.query.id ? '调查走访详情' : '新增调查走访' + }, methods: { submitForm() { if (!this.form.title) { return this.$u.toast("请输入调查走访事项") } + this.$loading() this.$refs.interviewForm?.validate(v => { if (v) { this.$http.post(`/app/appinterview/add-xcx`, { ...this.form }).then(res => { + uni.hideLoading() if (res?.code == 0) { this.$u.toast("提交成功!") setTimeout(() => { uni.navigateBack({}) }, 1000) } + }).catch(() => { + uni.hideLoading() }) } + }).catch(() => { + uni.hideLoading() }) }, searchDetail() { diff --git a/src/sass/AppMeetingNotice/addMeeting.vue b/src/sass/AppMeetingNotice/addMeeting.vue index e90face3..a7cef752 100644 --- a/src/sass/AppMeetingNotice/addMeeting.vue +++ b/src/sass/AppMeetingNotice/addMeeting.vue @@ -251,6 +251,7 @@ export default { if (!this.form.ticket) return this.$u.toast("请选择参会人") } + this.$loading() this.$http.post("/app/appmeetinginfo/add-update", { ...this.form, files: this.form.files.map(e => e.id), @@ -258,10 +259,16 @@ export default { startTime: this.form.startTime.year + "-" + this.form.startTime.month + "-" + this.form.startTime.day + " " + this.form.startTime.time + ":00", endTime: this.form.endTime.year + "-" + this.form.endTime.month + "-" + this.form.endTime.day + " " + this.form.endTime.time + ":00", }).then(res => { + uni.hideLoading() if (res.code == 0) { this.$u.toast(status == 1 ? "发布成功" : "保存成功") - uni.navigateBack({}) + + setTimeout(() => { + uni.navigateBack() + }, 500) } + }).catch(() => { + uni.hideLoading() }) }, diff --git a/src/sass/AppMeetingNotice/detail.vue b/src/sass/AppMeetingNotice/detail.vue index 18f32a00..b920d725 100644 --- a/src/sass/AppMeetingNotice/detail.vue +++ b/src/sass/AppMeetingNotice/detail.vue @@ -114,6 +114,7 @@ export default { }, onLoad(opt) { this.id = opt.id; + document.title = "会议详情"; }, computed: { ...mapState(["user"]), @@ -234,7 +235,6 @@ export default { }, onShow() { - document.title = "会议详情"; this.$dict.load("meetStatus"); wx.hideOptionMenu(); }, diff --git a/src/sass/AppMeetingNotice/meetingList.vue b/src/sass/AppMeetingNotice/meetingList.vue index b110f4ac..3c8fc9f4 100644 --- a/src/sass/AppMeetingNotice/meetingList.vue +++ b/src/sass/AppMeetingNotice/meetingList.vue @@ -58,10 +58,10 @@ export default { onLoad(opt) { this.index = opt.index + document.title = opt.index == 0 ? "历史会议" : "草稿箱" }, onShow() { this.getData(); - document.title = opt.index == 0 ? "历史会议" : "草稿箱" }, methods: { detail({id}) { diff --git a/src/sass/AppNotification/detail.vue b/src/sass/AppNotification/detail.vue index 112320e3..a24886ea 100644 --- a/src/sass/AppNotification/detail.vue +++ b/src/sass/AppNotification/detail.vue @@ -199,16 +199,6 @@ export default { .item { position: relative; height: 80px; - - &:after { - width: 100%; - height: 1px; - background-color: rgba(216, 221, 230, 0.5); - content: ""; - position: absolute; - left: 0; - bottom: 0; - } } & > span {