diff --git a/src/views/modules/heart/actuserclock-detail.vue b/src/views/modules/heart/actuserclock-detail.vue index fcead7e1..284bee12 100644 --- a/src/views/modules/heart/actuserclock-detail.vue +++ b/src/views/modules/heart/actuserclock-detail.vue @@ -9,15 +9,16 @@ :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" > - - 确认加积分 - 拒绝加积分 + + 确认加积分 + 拒绝加积分 @@ -138,13 +139,14 @@ export default { dataForm: { id: '', actId: '', - status: '', + ratiod: '', failureReason: '', address: '', latitude: '', longitude: '', radius: 200, - clockPic: [] + clockPic: [], + status:'', }, previewImgList: [], isAble: false @@ -158,11 +160,11 @@ export default { computed: { dataRule () { return { - status: [ + ratiod: [ { required: true, message: this.$t('validate.required'), - trigger: 'blur' + trigger: 'change' } ], failureReason: [ @@ -279,7 +281,12 @@ export default { } this.dataForm = { ...this.dataForm, - ...res.data + ...res.data, + } + let a = this.dataForm.status //获取积分状态 + let b = res.data.oldStatus //获取积分 + if (a =="2"&& b=="2"){ + this.dataForm.failureReason = ''; } // if (res.data.status != '5' && res.data.status != '6') { // this.dataForm.status = '5'; @@ -330,6 +337,7 @@ export default { if (this.dataForm.failureReason.length > 100) { return this.$message.error('处理意见不超过100字') } + this.dataForm.status = this.dataForm.ratiod // this.isAble = true this.$http['post']('/heart/actuserclocklog/pointCheck', this.dataForm) .then(({ data: res }) => {