|
@@ -144,6 +144,7 @@
|
|
|
</el-col>
|
|
|
</el-row> -->
|
|
|
<el-form :model="quitForm"
|
|
|
+ status-icon
|
|
|
ref="quitForm"
|
|
|
:rules="quitRules">
|
|
|
<el-form-item label="退还课程费用" v-if="showMessage.status == 'PROCESSING'"
|
|
@@ -325,7 +326,9 @@ export default {
|
|
|
this.showMessage = res.data
|
|
|
this.showMessage.type = memo.type
|
|
|
this.remark = res.data.reason
|
|
|
- this.$refs.quitForm.resetFields()
|
|
|
+ if(this.$refs.quitForm){
|
|
|
+ this.$refs.quitForm.resetFields()
|
|
|
+ }
|
|
|
this.quitForm.reason = res.data.reason
|
|
|
} else {
|
|
|
this.$message.error(res.msg)
|
|
@@ -335,7 +338,11 @@ export default {
|
|
|
},
|
|
|
onSubmitGroup (params, status) {
|
|
|
if(status == 'DENIED') {
|
|
|
- this.onSubmitGroups(params, status)
|
|
|
+ this.$refs['quitForm'].validateField('reason', res => {
|
|
|
+ if(res) {
|
|
|
+ this.onSubmitGroups(params, status)
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
this.$refs["quitForm"].validate(res => {
|
|
|
if (res) {
|