no message
Showing
1 changed file
with
4 additions
and
6 deletions
| ... | @@ -78,7 +78,7 @@ | ... | @@ -78,7 +78,7 @@ |
| 78 | </el-container> | 78 | </el-container> |
| 79 | <el-dialog :title="showForm.title" v-model="showForm.open" width="500px" append-to-body @close="closeDialog"> | 79 | <el-dialog :title="showForm.title" v-model="showForm.open" width="500px" append-to-body @close="closeDialog"> |
| 80 | <el-form ref="formRefs" :model="showForm.form" :rules="rules"> | 80 | <el-form ref="formRefs" :model="showForm.form" :rules="rules"> |
| 81 | <el-form-item :label="$t('advertisement.tableAdName')" label-width="80" prop="adName"> | 81 | <el-form-item :label="$t('advertisement.tableAdName')" label-width="80" prop="name"> |
| 82 | <el-input v-model="showForm.form.name" placeholder="请输入广告名称" /> | 82 | <el-input v-model="showForm.form.name" placeholder="请输入广告名称" /> |
| 83 | </el-form-item> | 83 | </el-form-item> |
| 84 | <el-form-item :label="$t('advertisement.tablePhotoName')" label-width="80"> | 84 | <el-form-item :label="$t('advertisement.tablePhotoName')" label-width="80"> |
| ... | @@ -134,11 +134,9 @@ const data = reactive({ | ... | @@ -134,11 +134,9 @@ const data = reactive({ |
| 134 | 134 | ||
| 135 | } | 135 | } |
| 136 | }, | 136 | }, |
| 137 | rules: [ | 137 | rules: { |
| 138 | { | 138 | name: [{ required: true, message: "广告名称不能为空", trigger: "blur" }] |
| 139 | adName: [{ required: true, message: "广告名称不能为空", trigger: "blur" }] | 139 | } |
| 140 | } | ||
| 141 | ] | ||
| 142 | }); | 140 | }); |
| 143 | 141 | ||
| 144 | const { status, queryParams, total, list, showForm, rules } = toRefs(data) | 142 | const { status, queryParams, total, list, showForm, rules } = toRefs(data) | ... | ... |
-
Please register or sign in to post a comment