diff --git a/src/views/modules/custom/evaluatedept.vue b/src/views/modules/custom/evaluatedept.vue index 241b101c..49e147aa 100644 --- a/src/views/modules/custom/evaluatedept.vue +++ b/src/views/modules/custom/evaluatedept.vue @@ -2,8 +2,11 @@ - + + + {{ $t('query') }} @@ -25,6 +28,7 @@ {{ $t('update') }} {{ $t('delete') }} + 管理 @@ -39,6 +43,7 @@ + @@ -46,6 +51,7 @@ diff --git a/src/views/modules/custom/evaluateofficer-add-or-update.vue b/src/views/modules/custom/evaluateofficer-add-or-update.vue index cc88d4bc..7b40d359 100644 --- a/src/views/modules/custom/evaluateofficer-add-or-update.vue +++ b/src/views/modules/custom/evaluateofficer-add-or-update.vue @@ -1,44 +1,30 @@ - + - - + + + + + - - + + - + + + + @@ -69,7 +55,11 @@ export default { createdTime: '', updatedBy: '', updatedTime: '' - } + }, + sexFlagArr: [ + { dictValue: '1', dictName: '男' }, + { dictValue: '0', dictName: '女' } + ] } }, computed: { diff --git a/src/views/modules/custom/evaluateofficer-add.vue b/src/views/modules/custom/evaluateofficer-add.vue new file mode 100644 index 00000000..a1ca7739 --- /dev/null +++ b/src/views/modules/custom/evaluateofficer-add.vue @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + {{ $t('cancel') }} + {{ $t('confirm') }} + + + + + diff --git a/src/views/modules/custom/evaluateofficer.vue b/src/views/modules/custom/evaluateofficer.vue index ff441729..960f3fed 100644 --- a/src/views/modules/custom/evaluateofficer.vue +++ b/src/views/modules/custom/evaluateofficer.vue @@ -2,14 +2,54 @@ - + + + + + + + + + + + {{ $t('query') }} - {{ $t('add') }} + {{ $t('add') }} + + + {{ $t('export') }} + + + + 导入 + {{ $t('deleteBatch') }} @@ -17,9 +57,9 @@ - - - + + + @@ -42,6 +82,7 @@ + @@ -49,6 +90,8 @@ diff --git a/src/views/modules/custom/evaluateoption-add-or-update.vue b/src/views/modules/custom/evaluateoption-add-or-update.vue index c960fb84..30cda96b 100644 --- a/src/views/modules/custom/evaluateoption-add-or-update.vue +++ b/src/views/modules/custom/evaluateoption-add-or-update.vue @@ -2,16 +2,19 @@ - - + + + + + - + - + - + @@ -32,14 +35,18 @@ export default { roleCode: '', optionContent: '', sort: '', - available: '', + available: '1', revision: '', delFlag: '', createdBy: '', createdTime: '', updatedBy: '', updatedTime: '' - } + }, + roleFlagArr: [ + { dictValue: 1, dictName: '点赞' }, + { dictValue: 2, dictName: '吐槽' } + ] } }, computed: { diff --git a/src/views/modules/custom/evaluateoption.vue b/src/views/modules/custom/evaluateoption.vue index 92afd2dd..00a5bd9d 100644 --- a/src/views/modules/custom/evaluateoption.vue +++ b/src/views/modules/custom/evaluateoption.vue @@ -2,8 +2,17 @@ - + + + + + + + + + {{ $t('query') }} @@ -16,12 +25,16 @@ - + - - - + + + + + + + {{ $t('update') }} {{ $t('delete') }} @@ -58,11 +71,49 @@ export default { }, dataForm: { id: '' - } + }, + roleFlagArr: [ + { dictValue: 1, dictName: '点赞' }, + { dictValue: 2, dictName: '吐槽' } + ] } }, components: { AddOrUpdate + }, + methods: { + showFlagFormat (row, column) { + if (row.roleCode === 1) { + return '点赞' + } else { + return '吐槽' + } + }, + availableHandle (id, availableValue) { + let postData = { + id: id, + available: availableValue + } + this.$http['post']( + '/custom/evaluateoption/updateOptionInfo', + postData + ) + .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.visible = false + this.$emit('refreshDataList') + } + }) + }) + .catch(() => {}) + } } } diff --git a/src/views/modules/custom/evaluaterole-add-or-update.vue b/src/views/modules/custom/evaluaterole-add-or-update.vue index a9d11b54..7a1f43c2 100644 --- a/src/views/modules/custom/evaluaterole-add-or-update.vue +++ b/src/views/modules/custom/evaluaterole-add-or-update.vue @@ -9,24 +9,6 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/views/modules/custom/evaluaterole-switch.vue b/src/views/modules/custom/evaluaterole-switch.vue new file mode 100644 index 00000000..51b2368b --- /dev/null +++ b/src/views/modules/custom/evaluaterole-switch.vue @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + diff --git a/src/views/modules/custom/evaluaterole.vue b/src/views/modules/custom/evaluaterole.vue index c0c38a31..2080f4a1 100644 --- a/src/views/modules/custom/evaluaterole.vue +++ b/src/views/modules/custom/evaluaterole.vue @@ -9,7 +9,7 @@ {{ $t('query') }} - {{ $t('add') }} + {{ $t('add') }} {{ $t('deleteBatch') }} diff --git a/src/views/modules/heart/actinfo-add-or-update.vue b/src/views/modules/heart/actinfo-add-or-update.vue index 235f2c52..ea352ae2 100644 --- a/src/views/modules/heart/actinfo-add-or-update.vue +++ b/src/views/modules/heart/actinfo-add-or-update.vue @@ -55,6 +55,7 @@ type="datetime" value-format="yyyy-MM-dd HH:mm" format="yyyy-MM-dd HH:mm" + :picker-options="isSignupEndTime" placeholder="选择日期时间"> @@ -65,7 +66,7 @@ 固定名额 - 人 + 人 不限名额 @@ -180,6 +181,8 @@ prop="contacts"> + + @@ -201,7 +204,7 @@ - 积分 @@ -238,9 +241,9 @@ prop="isBanner"> 是 + label="1" @change="changeHandler">是 否 + label="0" @change="changeHandler">否 @@ -266,7 +269,7 @@ {{$t("confirm")}} - {{ $t('cancel') }} + 返回 @@ -318,6 +321,12 @@ export default { actUserDefaultState: '1', bannerUrl:"" }, + isSignupEndTime: { + disabledDate(time) { + return time < Date.now() - 8.64e7;//8.64e7=1000*60*60*24一天 + } + }, + isImgRequired: true, mapSelectVisible:false, signInIsAble: true, isAble: false, @@ -497,6 +506,9 @@ export default { ], updatedTime: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } + ], + isBanner: [ + { required: this.isImgRequired, message: this.$t('validate.required'), trigger: 'blur' } ] } } @@ -505,6 +517,13 @@ export default { dateChangeTime(){ this.dataForm.signinStartTime = this.dataForm.actStartTime }, + changeHandler(value) { + if(value == 1){ + this.isImgRequired = true + } else{ + this.isImgRequired = false + } + }, backToActList () { this.$emit('refreshDataList') this.$parent.selectComponent = 'ActInfoList' @@ -607,9 +626,9 @@ export default { return this.$message.error('活动结束时间必须大于活动开始时间。'); } - if (signinEndTime < actStarTime) { + if (signinEndTime < actEndTime) { - return this.$message.error('签到结束时间必须大于签到开始时间。'); + return this.$message.error('签到结束时间必须大于活动结束时间。'); } this.isAble = true diff --git a/src/views/modules/heart/actinfo-cancel.vue b/src/views/modules/heart/actinfo-cancel.vue index b543f191..98f22154 100644 --- a/src/views/modules/heart/actinfo-cancel.vue +++ b/src/views/modules/heart/actinfo-cancel.vue @@ -1,13 +1,7 @@ - - - - 活动取消,并发送通知给已报名的志愿者,是否确定取消? - - - + {{dataForm.contacts}} + + {{dataForm.tel}} @@ -148,7 +150,7 @@ - {{ $t('cancel') }} + 返回 diff --git a/src/views/modules/heart/actphrase-add-or-update.vue b/src/views/modules/heart/actphrase-add-or-update.vue index 0f996962..b88b69d1 100644 --- a/src/views/modules/heart/actphrase-add-or-update.vue +++ b/src/views/modules/heart/actphrase-add-or-update.vue @@ -1,22 +1,22 @@ - - + + - + - + - + - diff --git a/src/views/modules/heart/actphrase.vue b/src/views/modules/heart/actphrase.vue index 22afa5a5..9f92f229 100644 --- a/src/views/modules/heart/actphrase.vue +++ b/src/views/modules/heart/actphrase.vue @@ -5,7 +5,7 @@ - + diff --git a/src/views/modules/heart/actuserclock-detail.vue b/src/views/modules/heart/actuserclock-detail.vue index 86e63ccd..c0e1a5c7 100644 --- a/src/views/modules/heart/actuserclock-detail.vue +++ b/src/views/modules/heart/actuserclock-detail.vue @@ -1,13 +1,13 @@ - 处理操作 + 处理操作 : - + 确认加积分 拒绝加积分 - + @@ -16,7 +16,7 @@ - 打卡位置: {{dataForm.address}} + 打卡位置 : {{dataForm.address}} @@ -30,18 +30,35 @@ - + - + + + - +
- 活动取消,并发送通知给已报名的志愿者,是否确定取消? -