diff --git a/src/views/modules/heart/actinfo-add-or-update.vue b/src/views/modules/heart/actinfo-add-or-update.vue index bda5a07..ea0a22c 100644 --- a/src/views/modules/heart/actinfo-add-or-update.vue +++ b/src/views/modules/heart/actinfo-add-or-update.vue @@ -69,14 +69,14 @@ prop="actQuota">
报名未审核人员: @@ -290,7 +290,7 @@ export default { headPic: '', signupStartTime: '', signupEndTime: '', - actQuotaCategory: '1', + actQuotaCategory: 1, actStartTime: '', actEndTime: '', actAddress: '', @@ -369,6 +369,10 @@ export default { } } }, + mounted () { + this.dataForm.id = this.$route.query.id + this.init() + }, created () { this.$http .get(`/sys/user/deptOptions/getByLoginUser`) @@ -592,6 +596,7 @@ export default { ...this.dataForm, ...res.data } + this.quillEditor.root.innerHTML = this.dataForm.actContent }).catch(() => { }) }, // 表单提交 diff --git a/src/views/modules/heart/actinfo-list.vue b/src/views/modules/heart/actinfo-list.vue index 6831a62..31e76d4 100644 --- a/src/views/modules/heart/actinfo-list.vue +++ b/src/views/modules/heart/actinfo-list.vue @@ -59,7 +59,8 @@ 打卡积分
- 新闻发稿 + 新闻发稿 + 新闻编辑
@@ -184,6 +185,10 @@ export default { this.$refs.actinfoPull.dataForm.id = row.id this.$refs.actinfoPull.init() }) + }, + updateHandle (row) { + this.$parent.selectComponent = 'ActInfoAdd' + this.$router.push({ path: '/heart-actinfo', query: { id: row.id } }) } } } diff --git a/src/views/modules/heart/actuserclock-detail.vue b/src/views/modules/heart/actuserclock-detail.vue index ff333d5..616e917 100644 --- a/src/views/modules/heart/actuserclock-detail.vue +++ b/src/views/modules/heart/actuserclock-detail.vue @@ -104,6 +104,12 @@ > + + + { + this.dataForm.shieldFlag = 1 + this.dataForm.id = id + this.$http['post']('/heart/actuserclocklog/updateShieldFlag', this.dataForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.$emit('refreshDataList') + this.$parent.selectComponent = 'ActUserClockLog' + this.$router.push({ + path: '/heart-actinfo', + query: { id: this.dataForm.actId } + }) + } + }) + }).catch(() => {}) + }).catch(() => { + }) + } } }