|
|
|
@ -9,6 +9,7 @@ |
|
|
|
:model="dataForm" |
|
|
|
:rules="dataRule" |
|
|
|
ref="dataForm" |
|
|
|
v-if="clickStatus === 1" |
|
|
|
@keyup.enter.native="dataFormSubmitHandle()" |
|
|
|
:label-width="$i18n.locale === 'en-US' ? '120px' : '80px'" |
|
|
|
> |
|
|
|
@ -27,10 +28,31 @@ |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<template slot="footer"> |
|
|
|
<el-form |
|
|
|
:model="dataForm" |
|
|
|
:rules="dataRule" |
|
|
|
ref="dataForm" |
|
|
|
v-if="clickStatus === 2" |
|
|
|
@keyup.enter.native="dataFormSubmitHandle()" |
|
|
|
:label-width="$i18n.locale === 'en-US' ? '120px' : '80px'" |
|
|
|
> |
|
|
|
<el-form-item label="填写原因" prop="failureReason"> |
|
|
|
<el-input |
|
|
|
v-model="dataForm.failureReason" |
|
|
|
maxlength="50" |
|
|
|
show-word-limit |
|
|
|
placeholder="请您填写拉入黑名单原因,50字以内" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<template slot="footer" v-if="clickStatus === 1"> |
|
|
|
<el-button @click="visible = false">{{ $t('cancel') }}</el-button> |
|
|
|
<el-button type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button> |
|
|
|
</template> |
|
|
|
<template slot="footer" v-if="clickStatus === 2"> |
|
|
|
<el-button @click="visible = false">{{ $t('cancel') }}</el-button> |
|
|
|
<el-button type="primary" @click="blackListSubmitHandle()">{{ $t('confirm') }}</el-button> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -46,6 +68,7 @@ export default { |
|
|
|
failureReason: '', |
|
|
|
tagIds: [] |
|
|
|
}, |
|
|
|
clickStatus: '', |
|
|
|
tagOptions: [], |
|
|
|
userGridList: [] |
|
|
|
} |
|
|
|
@ -110,6 +133,42 @@ export default { |
|
|
|
1000, |
|
|
|
{ leading: true, trailing: false } |
|
|
|
), |
|
|
|
// 拉黑 |
|
|
|
blackListSubmitHandle: debounce( |
|
|
|
function () { |
|
|
|
this.$refs['dataForm'].validate(valid => { |
|
|
|
if (!valid) { |
|
|
|
return false |
|
|
|
} |
|
|
|
let postData = { |
|
|
|
id: this.dataForm.id, |
|
|
|
auditStatus: '3', |
|
|
|
failureReason: this.dataForm.failureReason |
|
|
|
} |
|
|
|
this.$http['post']( |
|
|
|
'/app-user/volunteerinfo/volunteerInfoCheck', |
|
|
|
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(() => {}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
1000, |
|
|
|
{ leading: true, trailing: false } |
|
|
|
), |
|
|
|
showLeaderFlagFormatter (row, column, cellValue, index) { |
|
|
|
if (cellValue === '1') { |
|
|
|
return '是' |
|
|
|
|