Browse Source

不满意信件驳回理由字段错误修复

master
21819 2 years ago
parent
commit
07c763c006
  1. 10
      src/views/work/components/HandleOverrule.vue

10
src/views/work/components/HandleOverrule.vue

@ -8,14 +8,14 @@
</template> </template>
<div class="dialog-body"> <div class="dialog-body">
<el-form ref="formRef" :model="form" :rules="rules" style="width: 100%"> <el-form ref="formRef" :model="form" :rules="rules" style="width: 100%">
<el-form-item label="信件信息" prop="appealReason" required <el-form-item label="信件信息" prop="overruleReason" required
style="display: flex;flex-direction: column;justify-content: start;"> style="display: flex;flex-direction: column;justify-content: start;">
<template #label> <template #label>
<span class="main-label" style="text-align: left; width: 100%">不满意信件申诉驳回理由</span> <span class="main-label" style="text-align: left; width: 100%">不满意信件申诉驳回理由</span>
</template> </template>
<el-row style="width: 100%"> <el-row style="width: 100%">
<el-input type="textarea" v-model="form.appealReason" placeholder="请输入不满意信件申诉驳回理由" <el-input type="textarea" v-model="form.overruleReason" placeholder="请输入不满意信件申诉驳回理由"
:autosize="{ minRows: 4, maxRows: 10 }" resize="none" /> :autosize="{ minRows: 4, maxRows: 10 }" resize="none" />
</el-row> </el-row>
</el-form-item> </el-form-item>
@ -55,15 +55,15 @@ watch(
} }
); );
interface FormAppeal { interface FormAppeal {
appealReason: string; overruleReason: string;
} }
const form = ref({ const form = ref({
mailId: '', mailId: '',
appealReason: '' overruleReason: ''
}) })
const formRef = ref<FormInstance>(); const formRef = ref<FormInstance>();
const rules = reactive<FormRules<FormAppeal>>({ const rules = reactive<FormRules<FormAppeal>>({
appealReason: [ overruleReason: [
{ required: true, message: '请输入驳回理由', trigger: 'blur' }, { required: true, message: '请输入驳回理由', trigger: 'blur' },
{ min: 10, message: '驳回理由不能少于10个字', trigger: 'blur' }, { min: 10, message: '驳回理由不能少于10个字', trigger: 'blur' },
{ max: 1000, message: '驳回理由不能多于1000个字', trigger: 'blur' } { max: 1000, message: '驳回理由不能多于1000个字', trigger: 'blur' }

Loading…
Cancel
Save