zoukankan      html  css  js  c++  java
  • ant design vue 文件上传的集中页面

     <a-col  :md="24" class="uploadFiles">
                        <!-- <a-form-item :colon="false" label=" 算法服务 *" :help="fileList.length>0?'':'请上传文件!'"> -->
                                    <!-- <a-upload-dragger
                                        :multiple="false"
                                        action
                                        :before-upload="beforeUpload"
                                        :file-list="fileList"
                                        :remove="remove"
                                        accept=".log"
                                    >
                                        <p class="ant-upload-drag-icon">
                                        <img style=" 40px; height: 53px" src="@/assets/upload.png" />
                                        </p>
                                        <p class="ant-upload-text">点击或者拖拽导入文件进行上传</p>
                                        <p class="ant-upload-hint">
                                        (只支持log文件,编码格式需为GB2312格式)
                                        </p>
                                    </a-upload-dragger> -->
                          <a-form-item :colon="false" label=" 算法服务 *">
                                      <a-upload-dragger  :multiple="false"  action
                                            v-decorator="[
                                              'evaluationServce',
                                              {
                                                valuePropName: 'fileList',
                                                getValueFromEvent: normFile,
                                                rules: [{ required: true, message: '请上传文件!' }]
                                              },
                                            ]"
                                            name="files"
                                            accept=".csv"
                                          >
                                        <p class="ant-upload-drag-icon">
                                        <img style=" 40px; height: 53px" src="@/assets/upload.png" />
                                        </p>
                                        <p class="ant-upload-text">点击或者拖拽导入文件进行上传</p>
                                        <p class="ant-upload-hint">
                                        (只支持log文件,编码格式需为GB2312格式)
                                        </p>
                                          </a-upload-dragger>
                        </a-form-item>
                        </a-col>  
  • 相关阅读:
    Python中的yield详解
    Python脚本实现图片加水印
    ajax
    商城页面的增删改查
    事务及完成转账功能
    DBUtils和完善商城页面
    EL和jstl技术
    JSP
    jquery插件
    Cookie和Session
  • 原文地址:https://www.cnblogs.com/chenlongsheng/p/15528914.html
Copyright © 2011-2022 走看看