| | |
| | | </el-table> |
| | | <div class="table-add-row" @click="addEmergencyRow">新建一行</div> |
| | | </el-card> |
| | | |
| | | <!-- 材料附件 --> |
| | | <el-card class="form-card" shadow="never"> |
| | | <template #header> |
| | | <div class="card-title"> |
| | | <span class="card-title-line">|</span> |
| | | <span>材料附件</span> |
| | | <span class="upload-tip"> |
| | | 图片支持jpeg、jpg、png等格式,附件文件支持pdf、rar、zip、doc、docx格式。 |
| | | </span> |
| | | </div> |
| | | </template> |
| | | <el-form-item label="附件"> |
| | | <el-upload |
| | | v-model:file-list="form.attachments" |
| | | action="#" |
| | | :auto-upload="false" |
| | | multiple |
| | | list-type="picture-card" |
| | | > |
| | | <el-icon> |
| | | <Plus /> |
| | | </el-icon> |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-card> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { toRefs } from "vue"; |
| | | import { Plus } from "@element-plus/icons-vue"; |
| | | |
| | | const props = defineProps({ |
| | | form: { type: Object, required: true }, |
| | | form: { type: Object, required: true } |
| | | }); |
| | | |
| | | const { form } = toRefs(props); |
| | |
| | | color: #409eff; |
| | | cursor: pointer; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .upload-tip { |
| | | margin-left: 12px; |
| | | font-size: 12px; |
| | | color: #909399; |
| | | } |
| | | </style> |
| | | |