Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue
@@ -10,11 +10,16 @@
    class="avue-dialog"
    style="margin-top: -20vh !important;"
  >
    <Divider left="30px" text="导入提示"></Divider>
    <ul>
    <Divider left="30px" text="导入提示">
    </Divider>
    <ul v-if="tipList.length === 0" style="color: #f33939">
      <li>
        请点击浏览文件进行上传
      </li>
    </ul>
    <ul style="color: #f33939" v-if="tipList.length >=1 ">
      <li v-for="(item, index) in tipList" :key="index">{{ index + 1 }}: {{ item }} 。</li>
    </ul>
    <Divider left="30px" text="选择文件后会自动上传"></Divider>
    <el-upload
@@ -43,21 +48,30 @@
export default {
  name: "upload-file",
  props: {
    // 控制上传类型 格式为: ['xls', 'xlsx'],
    fileType: {
      type: Array,
      default: () => []
    },
    // 对话框头部名称
    title: {
      type: String,
      default: '上传文件'
    },
    // 必传 上传的地址
    fileUrl: {
      type: String,
      default: ''
    },
    // 请求地址 携带参数
    fileData: {
      type: Array,
      default: () => []
    },
    // 导入提示文字  tipList:["导入模板中标明红色字体的为必输项","部门列上下级关系必须按照反斜杠隔开(/)"]
    tipList:{
      type:Array,
      default:() => []
    }
  },
  data() {