请上传
@@ -70,6 +71,8 @@ export default {
},
data() {
return {
+ number: 0,
+ uploadList: [],
dialogImageUrl: "",
dialogVisible: false,
hideUpload: false,
@@ -121,12 +124,17 @@ export default {
// 上传成功回调
handleUploadSuccess(res) {
if (res.code == 200) {
- this.fileList.push({ name: res.data.fileName, url: res.data.url });
- this.$emit("input", this.listToString(this.fileList));
- this.loading.close();
+ this.uploadList.push({ name: res.data.fileName, url: res.data.url });
+ if (this.uploadList.length === this.number) {
+ this.fileList = this.fileList.concat(this.uploadList);
+ this.uploadList = [];
+ this.number = 0;
+ this.$emit("input", this.listToString(this.fileList));
+ this.$modal.closeLoading();
+ }
} else {
- this.$message.error(res.msg);
- this.loading.close();
+ this.$modal.msgError(res.msg);
+ this.$modal.closeLoading();
}
},
// 上传前loading加载
@@ -147,35 +155,27 @@ export default {
}
if (!isImg) {
- this.$message.error(
- `文件格式不正确, 请上传${this.fileType.join("/")}图片格式文件!`
- );
+ this.$modal.msgError(`文件格式不正确, 请上传${this.fileType.join("/")}图片格式文件!`);
return false;
}
if (this.fileSize) {
const isLt = file.size / 1024 / 1024 < this.fileSize;
if (!isLt) {
- this.$message.error(`上传头像图片大小不能超过 ${this.fileSize} MB!`);
+ this.$modal.msgError(`上传头像图片大小不能超过 ${this.fileSize} MB!`);
return false;
}
}
- this.loading = this.$loading({
- lock: true,
- text: "上传中",
- background: "rgba(0, 0, 0, 0.7)",
- });
+ this.$modal.loading("正在上传图片,请稍候...");
+ this.number++;
},
// 文件个数超出
handleExceed() {
- this.$message.error(`上传文件数量不能超过 ${this.limit} 个!`);
+ this.$modal.msgError(`上传文件数量不能超过 ${this.limit} 个!`);
},
// 上传失败
handleUploadError(res) {
- this.$message({
- type: "error",
- message: "上传失败",
- });
- this.loading.close();
+ this.$modal.msgError("上传图片失败,请重试");
+ this.$modal.closeLoading();
},
// 预览
handlePictureCardPreview(file) {
diff --git a/ruoyi-ui/src/components/Pagination/index.vue b/ruoyi-ui/src/components/Pagination/index.vue
index b09f080c9..56f5a6b9d 100644
--- a/ruoyi-ui/src/components/Pagination/index.vue
+++ b/ruoyi-ui/src/components/Pagination/index.vue
@@ -1,7 +1,6 @@
+
+
+ - update 图片上传 文件上传 支持并发上传
+ - update 组件ImageUpload支持多图同时选择上传
+ - udpate 组件fileUpload支持多文件同时选择上传
+ - update springboot 2.6.3 => 2.6.4
+ - update hutool 5.7.20 => 5.7.21
+ - update qiniu 7.9.2 => 7.9.3
+ - update minio 8.3.5 => 8.3.7
+ - update 优化 R 默认返回 msg
+ - update 增加 用户注册 用户类型默认值
+ - update 增加用户登出日志
+ - update 更新 多用户多设备的注释说明
+ - update 优化 是否为管理员的判断
+ - update 优化 页面若未匹配到字典标签则返回原字典值
+ - update 调整用户登录 将日志调整到最后 防止获取不到用户警告
+ - update 优化随机数生成方式 避免容易生成两个相同随机数的问题
+ - fix 修复代码生成 基于路径生成 路径为空问题
+ - fix 恢复误删 @Async 注解线程池配置类
+ - fix 修复 minio 适配 https 导致的问题
+ - fix 修复分页组件请求两次问题
+
+
- [重大更新] 重写项目整体结构 数据处理下沉至Mapper符合MVC规范 减少循环依赖
@@ -708,7 +731,7 @@ export default {
data() {
return {
// 版本号
- version: "4.0.0",
+ version: "4.0.1",
};
},
methods: {
diff --git a/ruoyi-ui/src/views/register.vue b/ruoyi-ui/src/views/register.vue
index c9f1efbb2..9320b8071 100644
--- a/ruoyi-ui/src/views/register.vue
+++ b/ruoyi-ui/src/views/register.vue
@@ -86,7 +86,8 @@ export default {
password: "",
confirmPassword: "",
code: "",
- uuid: ""
+ uuid: "",
+ user_type: "sys_user"
},
registerRules: {
username: [
diff --git a/ruoyi-ui/src/views/system/dept/index.vue b/ruoyi-ui/src/views/system/dept/index.vue
index b57f2b9de..17bc72ac6 100644
--- a/ruoyi-ui/src/views/system/dept/index.vue
+++ b/ruoyi-ui/src/views/system/dept/index.vue
@@ -206,7 +206,7 @@ export default {
email: [
{
type: "email",
- message: "'请输入正确的邮箱地址",
+ message: "请输入正确的邮箱地址",
trigger: ["blur", "change"]
}
],
diff --git a/ruoyi-ui/src/views/system/menu/index.vue b/ruoyi-ui/src/views/system/menu/index.vue
index 5c1f85a6f..1b6f39de6 100644
--- a/ruoyi-ui/src/views/system/menu/index.vue
+++ b/ruoyi-ui/src/views/system/menu/index.vue
@@ -78,7 +78,7 @@
-
-
+
权限字符
diff --git a/ruoyi-ui/src/views/system/notice/index.vue b/ruoyi-ui/src/views/system/notice/index.vue
index 9c793f5b9..d57a70827 100644
--- a/ruoyi-ui/src/views/system/notice/index.vue
+++ b/ruoyi-ui/src/views/system/notice/index.vue
@@ -135,7 +135,7 @@
-
+
-
+
-
+
-
+