From 7f28f66236be1af17b0ee8cc9340f7d3f8a34ef0 Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.coom> Date: Wed, 3 Jun 2020 16:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=89=93=E5=8D=A1=E7=A7=AF=E5=88=86?= =?UTF-8?q?=E3=80=91-=E3=80=90=E6=9F=A5=E7=9C=8B=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E3=80=91=E5=A2=9E=E5=8A=A0=E5=B1=8F=E8=94=BD=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=20=E6=89=93=E5=8D=A1=E5=88=97=E8=A1=A8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=B7=BB=E5=8A=A0=20=E9=99=90=E5=88=B6=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/heart/actinfo-add-or-update.vue | 11 +++-- src/views/modules/heart/actinfo-list.vue | 7 +++- .../modules/heart/actuserclock-detail.vue | 41 ++++++++++++++++++- 3 files changed, 53 insertions(+), 6 deletions(-) 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(() => { + }) + } } }