小小儁爺
11 小时以前 d7c86ef866b5443c9f1408d64cd2ac511b262e92
src/views/sopManager/sopRoute.vue
@@ -279,9 +279,8 @@
              :on-exceed="handleExceed"
              :auto-upload="false"
              :multiple="false"
              accept=".mp4,.pdf,.png,.jpeg,.jpg,.svg,.txt,.xlsx,.xls"
              accept=".mp4,.pdf,.png,.jpeg,.jpg"
            >
              <!--              accept=".mp4,.pdf"-->
              <el-button
                v-waves
                type="primary"
@@ -527,14 +526,14 @@
    },
    // 对话框确认
    dialogVisibleConfirm() {
      console.log(this.$refs.uploadFileRef.uploadFiles[0])
      // console.log(this.$refs.uploadFileRef.uploadFiles[0])
      if (!this.$refs.uploadFileRef.uploadFiles[0]) {
        this.$message.info('请选择文件上传!')
        return this.$message.info('请选择文件上传!')
      }
      const isLt100M = this.$refs.uploadFileRef.uploadFiles[0].size / 1024 / 1024 <= 1024
      const isLt100M = this.$refs.uploadFileRef.uploadFiles[0].size / 1024 / 1024 <= 10
      if (!isLt100M) {
        return this.$message.info('请检查,上传文件大小不能超过1024MB!')
        return this.$message.info('请检查,上传文件大小不能超过10MB!')
      }
      this.$refs.dialogForm.validate(valid => {