Commit ba1a7688f40d1eb09b4ab33b8691eeef872d256f
1 parent
ad7d27f7
活动表单增加必填项
Showing
1 changed file
with
14 additions
and
8 deletions
src/views/event/handwork/edit.vue
| ... | ... | @@ -90,6 +90,20 @@ const rules = reactive({ |
| 90 | 90 | trigger: "change", |
| 91 | 91 | }, |
| 92 | 92 | ], |
| 93 | + publicityPic: [ | |
| 94 | + { | |
| 95 | + required: true, | |
| 96 | + message: "请上传宣传图片", | |
| 97 | + trigger: "change", | |
| 98 | + }, | |
| 99 | + ], | |
| 100 | + neighborhoodId: [ | |
| 101 | + { | |
| 102 | + required: true, | |
| 103 | + message: "请选择小区", | |
| 104 | + trigger: "change", | |
| 105 | + }, | |
| 106 | + ], | |
| 93 | 107 | name: [ |
| 94 | 108 | { |
| 95 | 109 | required: true, |
| ... | ... | @@ -413,14 +427,6 @@ onMounted(() => { |
| 413 | 427 | /> |
| 414 | 428 | </el-form-item> |
| 415 | 429 | <el-form-item label="流程介绍" prop="processDesc" style="width: 100%"> |
| 416 | - <!-- <el-input | |
| 417 | - v-model.trim="form.data.processDesc" | |
| 418 | - placeholder="请填写流程介绍" | |
| 419 | - maxlength="1500" | |
| 420 | - show-word-limit | |
| 421 | - :rows="5" | |
| 422 | - type="textarea" | |
| 423 | - /> --> | |
| 424 | 430 | <Tinymce v-model="form.data.processDesc"></Tinymce> |
| 425 | 431 | </el-form-item> |
| 426 | 432 | <el-form-item label="宣传图片" prop="publicityPic" style="width: 100%"> | ... | ... |