From 01fef0b9e19acb07fec138f09b07b7b3fdee5862 Mon Sep 17 00:00:00 2001
From: xx2yy <50043243@qq.com>
Date: Mon, 31 May 2021 10:31:50 +0800
Subject: [PATCH 01/25] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E8=8F=9C=E5=8D=95?=
=?UTF-8?q?=E6=96=B0=E5=A2=9E=E3=80=81=E4=BF=AE=E6=94=B9=E7=95=8C=E9=9D=A2?=
=?UTF-8?q?=E2=80=9C=E5=8A=9F=E8=83=BD=E6=9D=83=E9=99=90=E2=80=9Dmaxlength?=
=?UTF-8?q?=E4=B8=BA100=EF=BC=88=E4=BF=9D=E6=8C=81=E4=B8=8E=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E5=BA=93=E5=AD=97=E6=AE=B5=E9=95=BF=E5=BA=A6=E4=B8=80?=
=?UTF-8?q?=E8=87=B4=EF=BC=89=EF=BC=8C=E9=81=BF=E5=85=8D=E5=9B=A0=E8=B6=85?=
=?UTF-8?q?=E8=BF=8750=E5=90=8E=E4=B8=8D=E8=83=BD=E5=BD=95=E5=85=A5?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/src/views/system/menu/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ruoyi-ui/src/views/system/menu/index.vue b/ruoyi-ui/src/views/system/menu/index.vue
index 734e8e8c0..cee61b737 100644
--- a/ruoyi-ui/src/views/system/menu/index.vue
+++ b/ruoyi-ui/src/views/system/menu/index.vue
@@ -163,7 +163,7 @@
-
+
From d1351503a8f15685ff053efafc1d08540cb4239e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?=
<15040126243@163.com>
Date: Tue, 1 Jun 2021 23:14:42 +0800
Subject: [PATCH 02/25] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81=E4=B9=A6=E5=86=99=E6=A0=BC=E5=BC=8F=20=E5=8E=BB?=
=?UTF-8?q?=E9=99=A4=E8=AD=A6=E5=91=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../java/com/ruoyi/framework/aspectj/DataScopeAspect.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java
index e8ef10185..383f4b64d 100644
--- a/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java
+++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java
@@ -159,6 +159,7 @@ public class DataScopeAspect {
}
}
+ @SuppressWarnings("unchecked")
private static void putDataScope(JoinPoint joinPoint, String sql) {
Object params = joinPoint.getArgs()[0];
if (Validator.isNotNull(params)) {
@@ -167,8 +168,8 @@ public class DataScopeAspect {
baseEntity.getParams().put(DATA_SCOPE, sql);
} else {
try {
- Method getParams = params.getClass().getDeclaredMethod("getParams", null);
- Map invoke = (Map) getParams.invoke(params, null);
+ Method getParams = params.getClass().getDeclaredMethod("getParams");
+ Map invoke = (Map) getParams.invoke(params);
invoke.put(DATA_SCOPE, sql);
} catch (Exception e) {
// 方法未找到 不处理
From 83ba79dca28f2b383938cfe59c55cac3b401d006 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?=
<15040126243@163.com>
Date: Wed, 2 Jun 2021 09:41:12 +0800
Subject: [PATCH 03/25] =?UTF-8?q?update=20=E5=A2=9E=E5=8A=A0redis=E7=A9=BA?=
=?UTF-8?q?=E5=AF=86=E7=A0=81=E5=85=BC=E5=AE=B9=E6=80=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/java/com/ruoyi/framework/config/RedisConfig.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/RedisConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/RedisConfig.java
index b86872985..e86f5bc03 100644
--- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/RedisConfig.java
+++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/RedisConfig.java
@@ -1,5 +1,6 @@
package com.ruoyi.framework.config;
+import cn.hutool.core.util.StrUtil;
import com.ruoyi.framework.config.properties.RedissonProperties;
import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
@@ -52,7 +53,7 @@ public class RedisConfig extends CachingConfigurerSupport {
.setAddress(prefix + redisProperties.getHost() + ":" + redisProperties.getPort())
.setConnectTimeout(((Long) redisProperties.getTimeout().toMillis()).intValue())
.setDatabase(redisProperties.getDatabase())
- .setPassword(redisProperties.getPassword())
+ .setPassword(StrUtil.isNotBlank(redisProperties.getPassword()) ? redisProperties.getPassword() : null)
.setTimeout(singleServerConfig.getTimeout())
.setRetryAttempts(singleServerConfig.getRetryAttempts())
.setRetryInterval(singleServerConfig.getRetryInterval())
From 45fe77ce4af66d9d9b2198d851bc2ee28043bdf7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?=
<15040126243@163.com>
Date: Wed, 2 Jun 2021 09:49:16 +0800
Subject: [PATCH 04/25] =?UTF-8?q?update=20=E6=96=87=E6=A1=A3=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=20Oracle=20=E5=88=86=E6=94=AF=E8=B7=AF=E5=BE=84?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index ce17def9d..7aac0bf1d 100644
--- a/README.md
+++ b/README.md
@@ -45,6 +45,7 @@
* 同步升级 RuoYi-Vue 3.5.0
* 单模块 fast 分支 [RuoYi-Vue-Plus-fast](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/tree/fast/)
+* Oracle 模块 oracle 分支 [RuoYi-Vue-Plus-oracle](https://gitee.com/JavaLionLi/RuoYi-Vue-Plus/tree/oracle/)
## 关注作者(扫码请备注: "加群")
From edd2981076432b730677b37737c5b1e4508959ed Mon Sep 17 00:00:00 2001
From: RuoYi
Date: Wed, 2 Jun 2021 11:45:30 +0800
Subject: [PATCH 05/25] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8E=A5=E5=8F=A3swagger=E6=B3=A8=E8=A7=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../web/controller/tool/TestController.java | 26 ++++++++++++-------
1 file changed, 16 insertions(+), 10 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java
index 2ae0c54ac..4588a7a53 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java
@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
@@ -16,6 +17,7 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.StringUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
@@ -55,34 +57,38 @@ public class TestController extends BaseController
}
else
{
- return AjaxResult.error("用户不存在");
+ return error("用户不存在");
}
}
@ApiOperation("新增用户")
- @ApiImplicitParam(name = "userEntity", value = "新增用户信息", dataType = "UserEntity")
+ @ApiImplicitParams({
+ @ApiImplicitParam(name = "userId", value = "用户id", dataType = "Integer"),
+ @ApiImplicitParam(name = "username", value = "用户名称", dataType = "String"),
+ @ApiImplicitParam(name = "password", value = "用户密码", dataType = "String"),
+ @ApiImplicitParam(name = "mobile", value = "用户手机", dataType = "String")
+ })
@PostMapping("/save")
public AjaxResult save(UserEntity user)
{
if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId()))
{
- return AjaxResult.error("用户ID不能为空");
+ return error("用户ID不能为空");
}
return AjaxResult.success(users.put(user.getUserId(), user));
}
@ApiOperation("更新用户")
- @ApiImplicitParam(name = "userEntity", value = "新增用户信息", dataType = "UserEntity")
@PutMapping("/update")
- public AjaxResult update(UserEntity user)
+ public AjaxResult update(@RequestBody UserEntity user)
{
if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId()))
{
- return AjaxResult.error("用户ID不能为空");
+ return error("用户ID不能为空");
}
if (users.isEmpty() || !users.containsKey(user.getUserId()))
{
- return AjaxResult.error("用户不存在");
+ return error("用户不存在");
}
users.remove(user.getUserId());
return AjaxResult.success(users.put(user.getUserId(), user));
@@ -96,16 +102,16 @@ public class TestController extends BaseController
if (!users.isEmpty() && users.containsKey(userId))
{
users.remove(userId);
- return AjaxResult.success();
+ return success();
}
else
{
- return AjaxResult.error("用户不存在");
+ return error("用户不存在");
}
}
}
-@ApiModel("用户实体")
+@ApiModel(value = "UserEntity", description = "用户实体")
class UserEntity
{
@ApiModelProperty("用户ID")
From b7f3c68eca343de30ca36a68cd796188b5086f72 Mon Sep 17 00:00:00 2001
From: RuoYi
Date: Wed, 2 Jun 2021 11:45:40 +0800
Subject: [PATCH 06/25] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9B=BE=E7=89=87?=
=?UTF-8?q?=E5=B7=A5=E5=85=B7=E7=B1=BB=E8=AF=BB=E5=8F=96=E6=96=87=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/java/com/ruoyi/common/utils/file/ImageUtils.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/ImageUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/ImageUtils.java
index 411ef15e0..3dfc9bbce 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/ImageUtils.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/ImageUtils.java
@@ -94,6 +94,7 @@ public class ImageUtils
}
finally
{
+ IOUtils.closeQuietly(in);
IOUtils.closeQuietly(baos);
}
}
From 7c20d6e28cc2bedc9d823b53290769fad1bba527 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?=
<15040126243@163.com>
Date: Wed, 2 Jun 2021 12:47:54 +0800
Subject: [PATCH 07/25] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81=E4=B9=A6=E5=86=99=E6=A0=BC=E5=BC=8F=20=E4=BD=BF?=
=?UTF-8?q?=E7=94=A8=E5=B7=A5=E5=85=B7=E7=B1=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../com/ruoyi/framework/aspectj/DataScopeAspect.java | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java
index 383f4b64d..830dbe594 100644
--- a/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java
+++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java
@@ -8,6 +8,7 @@ import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.ServletUtils;
+import com.ruoyi.common.utils.reflect.ReflectUtils;
import com.ruoyi.common.utils.spring.SpringUtils;
import com.ruoyi.framework.web.service.TokenService;
import org.aspectj.lang.JoinPoint;
@@ -159,7 +160,6 @@ public class DataScopeAspect {
}
}
- @SuppressWarnings("unchecked")
private static void putDataScope(JoinPoint joinPoint, String sql) {
Object params = joinPoint.getArgs()[0];
if (Validator.isNotNull(params)) {
@@ -167,13 +167,8 @@ public class DataScopeAspect {
BaseEntity baseEntity = (BaseEntity) params;
baseEntity.getParams().put(DATA_SCOPE, sql);
} else {
- try {
- Method getParams = params.getClass().getDeclaredMethod("getParams");
- Map invoke = (Map) getParams.invoke(params);
- invoke.put(DATA_SCOPE, sql);
- } catch (Exception e) {
- // 方法未找到 不处理
- }
+ Map invoke = ReflectUtils.invokeGetter(params, "params");
+ invoke.put(DATA_SCOPE, sql);
}
}
}
From 2ee2e4505a34f80873806c152faca4af514e1113 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?=
<15040126243@163.com>
Date: Wed, 2 Jun 2021 14:28:40 +0800
Subject: [PATCH 08/25] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B9=A6=E5=86=99=E9=94=99=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-admin/src/main/resources/application-dev.yml | 2 +-
ruoyi-admin/src/main/resources/application-prod.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ruoyi-admin/src/main/resources/application-dev.yml b/ruoyi-admin/src/main/resources/application-dev.yml
index 71e5b6f4f..eb54d9c64 100644
--- a/ruoyi-admin/src/main/resources/application-dev.yml
+++ b/ruoyi-admin/src/main/resources/application-dev.yml
@@ -81,7 +81,7 @@ redisson:
# 单节点配置
singleServerConfig:
# 客户端名称
- clientName: ${ruoyi-vue-plus.name}
+ clientName: ${ruoyi.name}
# 最小空闲连接数
connectionMinimumIdleSize: 32
# 连接池大小
diff --git a/ruoyi-admin/src/main/resources/application-prod.yml b/ruoyi-admin/src/main/resources/application-prod.yml
index eba8a8981..2ebdcbdc6 100644
--- a/ruoyi-admin/src/main/resources/application-prod.yml
+++ b/ruoyi-admin/src/main/resources/application-prod.yml
@@ -81,7 +81,7 @@ redisson:
# 单节点配置
singleServerConfig:
# 客户端名称
- clientName: ${ruoyi-vue-plus.name}
+ clientName: ${ruoyi.name}
# 最小空闲连接数
connectionMinimumIdleSize: 32
# 连接池大小
From 0fe064b8a20056bd57e2302166cfc5a7a753f004 Mon Sep 17 00:00:00 2001
From: sxq <812980466@qq.com>
Date: Wed, 2 Jun 2021 15:14:04 +0800
Subject: [PATCH 09/25] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dreddison=E4=B8=8D?=
=?UTF-8?q?=E8=83=BD=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=E7=9A=84bug?=
=?UTF-8?q?=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/java/com/ruoyi/common/core/redis/RedisCache.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java
index 6c4c2393e..3c8bc9233 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java
@@ -96,8 +96,12 @@ public class RedisCache {
* @param collection 多个对象
* @return
*/
- public long deleteObject(final Collection collection) {
- return redissonClient.getKeys().delete(Arrays.toString(collection.toArray()));
+ public void deleteObject(final Collection collection) {
+ RBatch batch = redissonClient.createBatch();
+ collection.forEach(t->{
+ batch.getBucket(t.toString()).deleteAsync();
+ });
+ batch.execute();
}
/**
From 430addf5203b744cdd3c0b5755fe6165d0f535d4 Mon Sep 17 00:00:00 2001
From: kdyzm
Date: Wed, 2 Jun 2021 16:40:58 +0800
Subject: [PATCH 10/25] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91?=
=?UTF-8?q?=E4=B8=BA=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=99=A8=E7=94=9F?=
=?UTF-8?q?=E6=88=90=E7=9A=84=E5=89=8D=E7=AB=AF=E4=BB=A3=E7=A0=81=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0loading=EF=BC=9B=E5=88=A0=E9=99=A4=E6=96=B9=E6=B3=95?=
=?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0=E5=8F=98=E6=9B=B4=E4=B8=BA?=
=?UTF-8?q?=E7=AE=AD=E5=A4=B4=E8=A1=A8=E8=BE=BE=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
index b384ba5ee..c0114493c 100644
--- a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
+++ b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
@@ -534,9 +534,11 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
+ this.loading = true;
this.reset();
const ${pkColumn.javaField} = row.${pkColumn.javaField} || this.ids
get${BusinessName}(${pkColumn.javaField}).then(response => {
+ this.loading = false;
this.form = response.data;
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")
@@ -554,6 +556,7 @@ export default {
submitForm() {
this.#[[$]]#refs["form"].validate(valid => {
if (valid) {
+ this.loading = true;
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")
this.form.$column.javaField = this.form.${column.javaField}.join(",");
@@ -564,12 +567,14 @@ export default {
#end
if (this.form.${pkColumn.javaField} != null) {
update${BusinessName}(this.form).then(response => {
+ this.loading = false;
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
add${BusinessName}(this.form).then(response => {
+ this.loading = false;
this.msgSuccess("新增成功");
this.open = false;
this.getList();
@@ -585,9 +590,11 @@ export default {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
- }).then(function() {
+ }).then(()=> {
+ this.loading = true;
return del${BusinessName}(${pkColumn.javaField}s);
}).then(() => {
+ this.loading = false;
this.getList();
this.msgSuccess("删除成功");
})
From 9590de2c1971b596c047deddd926c2b80ade2c67 Mon Sep 17 00:00:00 2001
From: kdyzm
Date: Wed, 2 Jun 2021 17:08:00 +0800
Subject: [PATCH 11/25] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=91=E7=94=9F?=
=?UTF-8?q?=E6=88=90=E7=9A=84=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=EF=BC=9A?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0loading=E3=80=81=E4=BF=AE=E6=94=B9=E5=88=A0?=
=?UTF-8?q?=E9=99=A4=E6=8C=89=E9=92=AE=E7=9A=84=E5=9B=9E=E8=B0=83=E5=87=BD?=
=?UTF-8?q?=E6=95=B0=E4=B8=BA=E7=AE=AD=E5=A4=B4=E5=87=BD=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/resources/vm/vue/index-tree.vue.vm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
index 969dba855..ca9974979 100644
--- a/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
+++ b/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
@@ -480,12 +480,14 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
+ this.loading = true;
this.reset();
this.getTreeselect();
if (row != null) {
this.form.${treeParentCode} = row.${treeCode};
}
get${BusinessName}(row.${pkColumn.javaField}).then(response => {
+ this.loading = false;
this.form = response.data;
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")
@@ -500,6 +502,7 @@ export default {
submitForm() {
this.#[[$]]#refs["form"].validate(valid => {
if (valid) {
+ this.loading = true;
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")
this.form.$column.javaField = this.form.${column.javaField}.join(",");
@@ -507,12 +510,14 @@ export default {
#end
if (this.form.${pkColumn.javaField} != null) {
update${BusinessName}(this.form).then(response => {
+ this.loading = false;
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
add${BusinessName}(this.form).then(response => {
+ this.loading = false;
this.msgSuccess("新增成功");
this.open = false;
this.getList();
@@ -527,9 +532,11 @@ export default {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
- }).then(function() {
+ }).then(() => {
+ this.loading = true;
return del${BusinessName}(row.${pkColumn.javaField});
}).then(() => {
+ this.loading = false;
this.getList();
this.msgSuccess("删除成功");
})
From 329c95196e5803e1472f0c7bda087f6771b2789f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?=
<15040126243@163.com>
Date: Wed, 2 Jun 2021 17:15:20 +0800
Subject: [PATCH 12/25] =?UTF-8?q?update=20=E6=9B=B4=E6=96=B0=E6=B5=8B?=
=?UTF-8?q?=E8=AF=95=E6=A1=88=E4=BE=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm | 4 ++--
ruoyi-ui/src/views/demo/demo/index.vue | 9 ++++++++-
ruoyi-ui/src/views/demo/tree/index.vue | 9 ++++++++-
sql/test.sql | 4 ++--
4 files changed, 20 insertions(+), 6 deletions(-)
diff --git a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
index c0114493c..1c87a465e 100644
--- a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
+++ b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
@@ -556,7 +556,7 @@ export default {
submitForm() {
this.#[[$]]#refs["form"].validate(valid => {
if (valid) {
- this.loading = true;
+ this.loading = true;
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")
this.form.$column.javaField = this.form.${column.javaField}.join(",");
@@ -590,7 +590,7 @@ export default {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
- }).then(()=> {
+ }).then(() => {
this.loading = true;
return del${BusinessName}(${pkColumn.javaField}s);
}).then(() => {
diff --git a/ruoyi-ui/src/views/demo/demo/index.vue b/ruoyi-ui/src/views/demo/demo/index.vue
index b831ad9b3..c884b38fc 100644
--- a/ruoyi-ui/src/views/demo/demo/index.vue
+++ b/ruoyi-ui/src/views/demo/demo/index.vue
@@ -277,9 +277,11 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
+ this.loading = true;
this.reset();
const id = row.id || this.ids
getDemo(id).then(response => {
+ this.loading = false;
this.form = response.data;
this.open = true;
this.title = "修改测试单表";
@@ -289,14 +291,17 @@ export default {
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
+ this.loading = true;
if (this.form.id != null) {
updateDemo(this.form).then(response => {
+ this.loading = false;
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addDemo(this.form).then(response => {
+ this.loading = false;
this.msgSuccess("新增成功");
this.open = false;
this.getList();
@@ -312,9 +317,11 @@ export default {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
- }).then(function() {
+ }).then(() => {
+ this.loading = true;
return delDemo(ids);
}).then(() => {
+ this.loading = false;
this.getList();
this.msgSuccess("删除成功");
})
diff --git a/ruoyi-ui/src/views/demo/tree/index.vue b/ruoyi-ui/src/views/demo/tree/index.vue
index ddf767777..b65b2bd50 100644
--- a/ruoyi-ui/src/views/demo/tree/index.vue
+++ b/ruoyi-ui/src/views/demo/tree/index.vue
@@ -233,12 +233,14 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
+ this.loading = true;
this.reset();
this.getTreeselect();
if (row != null) {
this.form.parentId = row.id;
}
getTree(row.id).then(response => {
+ this.loading = false;
this.form = response.data;
this.open = true;
this.title = "修改测试树表";
@@ -248,14 +250,17 @@ export default {
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
+ this.loading = true;
if (this.form.id != null) {
updateTree(this.form).then(response => {
+ this.loading = false;
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addTree(this.form).then(response => {
+ this.loading = false;
this.msgSuccess("新增成功");
this.open = false;
this.getList();
@@ -270,9 +275,11 @@ export default {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
- }).then(function() {
+ }).then(() => {
+ this.loading = true;
return delTree(row.id);
}).then(() => {
+ this.loading = false;
this.getList();
this.msgSuccess("删除成功");
})
diff --git a/sql/test.sql b/sql/test.sql
index b7003ce20..601360a77 100644
--- a/sql/test.sql
+++ b/sql/test.sql
@@ -12,7 +12,7 @@ CREATE TABLE test_demo
create_by varchar(64) NULL DEFAULT NULL COMMENT '创建人',
update_time datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
update_by varchar(64) NULL DEFAULT NULL COMMENT '更新人',
- del_flag int(0) NULL DEFAULT NULL COMMENT '删除标志',
+ del_flag int(0) NULL DEFAULT 0 COMMENT '删除标志',
PRIMARY KEY (id) USING BTREE
) ENGINE = InnoDB COMMENT = '测试单表';
@@ -29,7 +29,7 @@ CREATE TABLE test_tree
create_by varchar(64) NULL DEFAULT NULL COMMENT '创建人',
update_time datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
update_by varchar(64) NULL DEFAULT NULL COMMENT '更新人',
- del_flag int(0) NULL DEFAULT NULL COMMENT '删除标志',
+ del_flag int(0) NULL DEFAULT 0 COMMENT '删除标志',
PRIMARY KEY (id) USING BTREE
) ENGINE = InnoDB COMMENT = '测试树表';
From 6b789e2eb07349f0423e7d064f625adb779faa6c Mon Sep 17 00:00:00 2001
From: kdyzm
Date: Wed, 2 Jun 2021 18:13:34 +0800
Subject: [PATCH 13/25] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E3=80=81=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E7=9A=84=E6=8C=89?=
=?UTF-8?q?=E9=92=AE=E5=8A=A8=E4=BD=9Cloading=E4=BB=8E=E9=A1=B5=E9=9D=A2lo?=
=?UTF-8?q?ading=E5=88=B0=E6=8C=89=E9=92=AEloading?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/resources/vm/vue/index-tree.vue.vm | 10 ++++++----
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm | 10 ++++++----
ruoyi-ui/src/views/demo/demo/index.vue | 10 ++++++----
ruoyi-ui/src/views/demo/tree/index.vue | 10 ++++++----
4 files changed, 24 insertions(+), 16 deletions(-)
diff --git a/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
index ca9974979..f1247aba3 100644
--- a/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
+++ b/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
@@ -247,7 +247,7 @@
#end
@@ -302,6 +302,8 @@ export default {
},
data() {
return {
+ //按钮loading
+ buttonLoading: false,
// 遮罩层
loading: true,
// 显示搜索条件
@@ -502,7 +504,7 @@ export default {
submitForm() {
this.#[[$]]#refs["form"].validate(valid => {
if (valid) {
- this.loading = true;
+ this.buttonLoading = true;
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")
this.form.$column.javaField = this.form.${column.javaField}.join(",");
@@ -510,14 +512,14 @@ export default {
#end
if (this.form.${pkColumn.javaField} != null) {
update${BusinessName}(this.form).then(response => {
- this.loading = false;
+ this.buttonLoading = false;
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
add${BusinessName}(this.form).then(response => {
- this.loading = false;
+ this.buttonLoading = false;
this.msgSuccess("新增成功");
this.open = false;
this.getList();
diff --git a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
index 1c87a465e..9f58575bd 100644
--- a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
+++ b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
@@ -301,7 +301,7 @@
#end
@@ -353,6 +353,8 @@ export default {
},
data() {
return {
+ //按钮loading
+ buttonLoading: false,
// 遮罩层
loading: true,
// 导出遮罩层
@@ -556,7 +558,7 @@ export default {
submitForm() {
this.#[[$]]#refs["form"].validate(valid => {
if (valid) {
- this.loading = true;
+ this.buttonLoading = true;
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")
this.form.$column.javaField = this.form.${column.javaField}.join(",");
@@ -567,14 +569,14 @@ export default {
#end
if (this.form.${pkColumn.javaField} != null) {
update${BusinessName}(this.form).then(response => {
- this.loading = false;
+ this.buttonLoading = false;
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
add${BusinessName}(this.form).then(response => {
- this.loading = false;
+ this.buttonLoading = false;
this.msgSuccess("新增成功");
this.open = false;
this.getList();
diff --git a/ruoyi-ui/src/views/demo/demo/index.vue b/ruoyi-ui/src/views/demo/demo/index.vue
index c884b38fc..48fa36819 100644
--- a/ruoyi-ui/src/views/demo/demo/index.vue
+++ b/ruoyi-ui/src/views/demo/demo/index.vue
@@ -152,7 +152,7 @@
@@ -168,6 +168,8 @@ export default {
},
data() {
return {
+ //按钮loading
+ buttonLoading: false,
// 遮罩层
loading: true,
// 导出遮罩层
@@ -291,17 +293,17 @@ export default {
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
- this.loading = true;
+ this.buttonLoading = true;
if (this.form.id != null) {
updateDemo(this.form).then(response => {
- this.loading = false;
+ this.buttonLoading = false;
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addDemo(this.form).then(response => {
- this.loading = false;
+ this.buttonLoading = false;
this.msgSuccess("新增成功");
this.open = false;
this.getList();
diff --git a/ruoyi-ui/src/views/demo/tree/index.vue b/ruoyi-ui/src/views/demo/tree/index.vue
index b65b2bd50..afe96c4ae 100644
--- a/ruoyi-ui/src/views/demo/tree/index.vue
+++ b/ruoyi-ui/src/views/demo/tree/index.vue
@@ -102,7 +102,7 @@
@@ -121,6 +121,8 @@ export default {
},
data() {
return {
+ //按钮loading
+ buttonLoading: false,
// 遮罩层
loading: true,
// 显示搜索条件
@@ -250,17 +252,17 @@ export default {
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
- this.loading = true;
+ this.buttonLoading = true;
if (this.form.id != null) {
updateTree(this.form).then(response => {
- this.loading = false;
+ this.buttonLoading = false;
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addTree(this.form).then(response => {
- this.loading = false;
+ this.buttonLoading = false;
this.msgSuccess("新增成功");
this.open = false;
this.getList();
From 85470a1549f6394398b5745ed29ef65de2377d6b Mon Sep 17 00:00:00 2001
From: RuoYi
Date: Wed, 2 Jun 2021 20:43:34 +0800
Subject: [PATCH 14/25] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95?=
=?UTF-8?q?=E6=9E=84=E5=BB=BA=E9=80=89=E6=8B=A9=E4=B8=8B=E6=8B=89=E9=80=89?=
=?UTF-8?q?=E6=8B=A9=E6=8E=A7=E5=88=B6=E5=8F=B0=E6=8A=A5=E9=94=99=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/src/views/tool/build/RightPanel.vue | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ruoyi-ui/src/views/tool/build/RightPanel.vue b/ruoyi-ui/src/views/tool/build/RightPanel.vue
index 1acdc5794..88013a547 100644
--- a/ruoyi-ui/src/views/tool/build/RightPanel.vue
+++ b/ruoyi-ui/src/views/tool/build/RightPanel.vue
@@ -573,6 +573,7 @@