zhanghua
2024-11-19 bcdb083a696b7e43f21b15e0c07195d409f36bce
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() { },