zhanghua
2025-03-12 ad51ed48d64a29467b38196cfd47ba1a5d3ed37f
src/components/drag-upload.vue
@@ -7,7 +7,7 @@
            :data="{ staffId: staffId, orgId: orgId }"
            :on-exceed="handleExceed"
            :on-success="fileSuccess"
            :on-error="fileSuccess"
            :on-error="fileError"
            :file-list="fileList"
            :show-file-list="true"
            multiple
@@ -68,7 +68,13 @@
            this.successLoading = false
            this.$emit("fileSuccess", res, this.type);
        },
        fileError(res, f, f1) {
            this.successLoading = false
            this.$message({
                message: "上次失败",
                type: "error",
            });
        },
        // 过滤文件
        beforeAvatarUpload(file) {
            this.successLoading = true
@@ -84,6 +90,9 @@
                });
                return false;
            }
            this.successLoading = false
            this.$emit("file-uploading");
        },
    },
    mounted() { },