From 704af055f72f2ee4b6757fd63b5f3baee48797e8 Mon Sep 17 00:00:00 2001 From: Jackwang Date: Thu, 18 Nov 2021 15:47:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E5=85=B3=E8=81=94=E5=BF=97?= =?UTF-8?q?=E6=84=BF=E5=9B=A2=E9=98=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/heart/actinfo-add-or-update.vue | 40 ++++++++++++++++++- .../modules/heart/actinfo-detail-view.vue | 5 +++ .../heart/volunteerteam-add-or-update.vue | 26 ++++++++---- src/views/modules/heart/volunteerteam.vue | 37 ++++++++++++++--- 4 files changed, 94 insertions(+), 14 deletions(-) diff --git a/src/views/modules/heart/actinfo-add-or-update.vue b/src/views/modules/heart/actinfo-add-or-update.vue index 8b47fb6..e60316e 100644 --- a/src/views/modules/heart/actinfo-add-or-update.vue +++ b/src/views/modules/heart/actinfo-add-or-update.vue @@ -282,6 +282,20 @@  积分 + + + + + + + + + + + + + + @@ -359,8 +373,12 @@ export default { actUserDefaultState: '1', isConReview: false, kindnessTime: '', - periods: [] + periods: [], + teamType:'', + teamId:'' }, + teamList:'', + teamTypeList:[], isImgRequired: true, mapSelectVisible: false, signInIsAble: true, @@ -399,6 +417,7 @@ export default { this.init() }, created () { + this.getTeamTypeList() this.$http .get(`/sys/user/deptOptions/getByLoginUser`) .then(({ data: res }) => { @@ -530,6 +549,22 @@ export default { } }, methods: { + changeTeamType(value) { + this.dataForm.teamId = '' + this.getTeamList(value); + }, + getTeamList(val) { + this.$http.get(`heart/volunteerteam/getTeamListByType?teamType=`+val).then(({data: res}) => { + this.teamList = res.data + }).catch(() => { + }) + }, + getTeamTypeList() { + this.$http.get(`heart/volunteerteamtype/getTeamTypeList`).then(({data: res}) => { + this.teamTypeList = res.data + }).catch(() => { + }) + }, dateChangeTime () { this.dataForm.signinStartTime = this.dataForm.actStartTime }, @@ -584,6 +619,9 @@ export default { ...this.dataForm, ...res.data } + if(this.dataForm.teamType != ''){ + this.getTeamList(this.dataForm.teamType); + } // this.quillEditor.root.innerHTML = this.dataForm.actContent }).catch(() => { }) }, diff --git a/src/views/modules/heart/actinfo-detail-view.vue b/src/views/modules/heart/actinfo-detail-view.vue index db15eba..4ab3479 100644 --- a/src/views/modules/heart/actinfo-detail-view.vue +++ b/src/views/modules/heart/actinfo-detail-view.vue @@ -150,6 +150,11 @@ {{dataForm.punishmentPoints}} 积分 + + + {{dataForm.teamName}} + + diff --git a/src/views/modules/heart/volunteerteam-add-or-update.vue b/src/views/modules/heart/volunteerteam-add-or-update.vue index 4e01b16..f5664f5 100644 --- a/src/views/modules/heart/volunteerteam-add-or-update.vue +++ b/src/views/modules/heart/volunteerteam-add-or-update.vue @@ -2,20 +2,23 @@ - + - + + + + - + - + - + @@ -47,7 +50,8 @@ export default { updatedBy: '', updatedTime: '', delFlag: '' - } + }, + teamTypeList:[] } }, computed: { @@ -92,8 +96,16 @@ export default { components: { TinymceEditor }, + created: function () { + this.getTeamTypeList() + }, methods: { - init () { + getTeamTypeList () { + this.$http.get(`heart/volunteerteamtype/getTeamTypeList`).then(({ data: res }) => { + this.teamTypeList = res.data + }).catch(() => {}) + }, + init () { this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() diff --git a/src/views/modules/heart/volunteerteam.vue b/src/views/modules/heart/volunteerteam.vue index 56a1326..1890e9d 100644 --- a/src/views/modules/heart/volunteerteam.vue +++ b/src/views/modules/heart/volunteerteam.vue @@ -2,8 +2,21 @@
- - + + + + + + + + + + + {{ $t('query') }} @@ -20,14 +33,14 @@ width="50" label="序号" align="center"> - + @@ -61,11 +74,23 @@ export default { }, dataForm: { id: '' - } + }, + teamTypeList:[] } }, components: { AddOrUpdate + }, + created: function () { + this.getTeamTypeList() + }, + methods: { + getTeamTypeList() { + this.$http.get(`heart/volunteerteamtype/getTeamTypeList`).then(({data: res}) => { + this.teamTypeList = res.data + }).catch(() => { + }) + }, } }