quanyawei
2024-03-13 67597e4129af701c6e1f2c8da113f2d6a9760f8a
src/components/UploadExcel/index.vue
@@ -48,7 +48,7 @@
        </span>
      </div>
    </el-upload>
    <el-dialog :visible.sync="dialogVisible" width="600px" :modal-append-to-body="false" :destroy-on-close="true" @close="handleCancel">
    <el-dialog :visible.sync="dialogVisible" width="600px" append-to-body :modal-append-to-body="false" :destroy-on-close="true" @close="handleCancel">
      <div style="text-align: center;">
        <img
          v-if="dialogType == 1"
@@ -101,11 +101,15 @@
  methods: {
    handleCancel(e) {
      if (this.$refs.video) {
        this.$refs.video.pause()
      }
      this.dialogImageUrl = ''
      this.dialogVisible = false
      setTimeout(() => {
        if (this.$refs.video) {
          this.$refs.video.pause()
        }
        this.dialogImageUrl = ''
      }, 200)
    },
    // 上传前
    before_upload(file) {