zhanghua
2025-06-13 21c9c72db79cd1cc450d7dfb668cbab43befa991
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() { },