From 5117fe2958a1bcec82e09fce01e49bb0bc2e0ba4 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, 14 Dec 2022 15:11:09 +0800
Subject: [PATCH] =?UTF-8?q?update=20=E5=90=8C=E6=AD=A5=20ruoyi=20=E7=9B=B8?=
=?UTF-8?q?=E5=85=B3=E6=8F=90=E4=BA=A4=20*=20fix=20=E4=BF=AE=E5=A4=8D=20?=
=?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E5=8C=85=E5=90=AB=E7=89=B9=E6=AE=8A?=
=?UTF-8?q?=E5=AD=97=E7=AC=A6=EF=BC=88+=E3=80=81-=E3=80=81*...=EF=BC=89?=
=?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6=E6=97=A0=E6=B3=95=E4=B8=8B=E8=BD=BD?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=20*=20update=20=E4=BC=98=E5=8C=96=20?=
=?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=86=85=E5=AE=B9=E8=BF=87=E5=A4=9A=E5=B1=95?=
=?UTF-8?q?=E7=A4=BA=E4=B8=8D=E5=85=A8=E9=97=AE=E9=A2=98=20*=20update=20ec?=
=?UTF-8?q?harts=204.9.0=20=3D>=205.4.0=20*=20fix=20=E4=BF=AE=E5=A4=8D=20V?=
=?UTF-8?q?ue3=E6=A0=91=E5=BD=A2=E4=B8=8B=E6=8B=89=E4=B8=8D=E8=83=BD?=
=?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=80=89=E4=B8=AD=20*=20update=20=E4=BC=98?=
=?UTF-8?q?=E5=8C=96=20=E5=88=A0=E9=99=A4fuse=E6=97=A0=E6=95=88=E9=80=89?=
=?UTF-8?q?=E9=A1=B9maxPatternLength=20*=20fix=20=E4=BF=AE=E5=A4=8D=20?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=9B=BE=E7=89=87/?=
=?UTF-8?q?=E6=96=87=E4=BB=B6/=E5=8D=95=E9=80=89=E6=97=B6=E9=80=89?=
=?UTF-8?q?=E6=8B=A9=E5=BF=85=E5=A1=AB=E6=97=A0=E6=B3=95=E6=A0=A1=E9=AA=8C?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=20*=20fix=20=E4=BF=AE=E5=A4=8D=20=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E5=8F=82=E6=95=B0=E9=94=AE=E5=90=8D=E6=97=B6=20?=
=?UTF-8?q?=E6=9C=AA=E7=A7=BB=E9=99=A4=E8=BF=87=E6=9C=9F=E7=BC=93=E5=AD=98?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/resources/vm/vue/index-tree.vue.vm | 33 +++++++-------
.../src/main/resources/vm/vue/index.vue.vm | 38 +++++++++-------
.../resources/vm/vue/v3/index-tree.vue.vm | 44 ++++++++++---------
.../src/main/resources/vm/vue/v3/index.vue.vm | 40 +++++++++--------
.../service/impl/SysConfigServiceImpl.java | 4 ++
ruoyi-ui/package.json | 2 +-
ruoyi-ui/src/assets/styles/ruoyi.scss | 4 ++
.../src/components/HeaderSearch/index.vue | 1 -
ruoyi-ui/src/components/RightPanel/index.vue | 6 ---
ruoyi-ui/src/plugins/download.js | 2 +-
ruoyi-ui/src/views/dashboard/BarChart.vue | 2 +-
ruoyi-ui/src/views/dashboard/LineChart.vue | 2 +-
ruoyi-ui/src/views/dashboard/PieChart.vue | 2 +-
ruoyi-ui/src/views/dashboard/RaddarChart.vue | 2 +-
14 files changed, 99 insertions(+), 83 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 4ad96df33..2bc699a20 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
@@ -186,11 +186,11 @@
#elseif($column.htmlType == "imageUpload")
-
+
#elseif($column.htmlType == "fileUpload")
-
+
#elseif($column.htmlType == "editor")
@@ -204,8 +204,11 @@
v-for="dict in dict.type.${dictType}"
:key="dict.value"
:label="dict.label"
- #if($column.javaType == "Integer" || $column.javaType == "Long"):value="parseInt(dict.value)"#else:value="dict.value"#end
-
+#if($column.javaType == "Integer" || $column.javaType == "Long")
+ :value="parseInt(dict.value)"
+#else
+ :value="dict.value"
+#end
>
@@ -216,7 +219,7 @@
#elseif($column.htmlType == "checkbox" && "" != $dictType)
-
+
#elseif($column.htmlType == "checkbox" && $dictType)
-
+
请选择字典生成
#elseif($column.htmlType == "radio" && "" != $dictType)
-
+
{{dict.label}}
#elseif($column.htmlType == "radio" && $dictType)
-
+
请选择字典生成
@@ -335,7 +341,7 @@ export default {
#set($comment=$column.columnComment)
#end
$column.javaField: [
- { required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select")"change"#else"blur"#end }
+ { required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select" || $column.htmlType == "radio")"change"#else"blur"#end }
]#if($foreach.count != $columns.size()),#end
#end
#end
@@ -398,10 +404,7 @@ export default {
reset() {
this.form = {
#foreach ($column in $columns)
-#if($column.htmlType == "radio")
- $column.javaField: #if($column.javaType == "Integer" || $column.javaType == "Long")0#else"0"#end#if($foreach.count != $columns.size()),#end
-
-#elseif($column.htmlType == "checkbox")
+#if($column.htmlType == "checkbox")
$column.javaField: []#if($foreach.count != $columns.size()),#end
#else
$column.javaField: null#if($foreach.count != $columns.size()),#end
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 7a57c7fde..e645b6bb8 100644
--- a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
+++ b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
@@ -133,9 +133,9 @@
#elseif($column.list && $column.htmlType == "imageUpload")
-
-
-
+
+
+
#elseif($column.list && $column.dictType && "" != $column.dictType)
@@ -197,11 +197,11 @@
#elseif($column.htmlType == "imageUpload")
-
+
#elseif($column.htmlType == "fileUpload")
-
+
#elseif($column.htmlType == "editor")
@@ -215,8 +215,11 @@
v-for="dict in dict.type.${dictType}"
:key="dict.value"
:label="dict.label"
- #if($column.javaType == "Integer" || $column.javaType == "Long"):value="parseInt(dict.value)"#else:value="dict.value"#end
-
+#if($column.javaType == "Integer" || $column.javaType == "Long")
+ :value="parseInt(dict.value)"
+#else
+ :value="dict.value"
+#end
>
@@ -227,7 +230,7 @@
#elseif($column.htmlType == "checkbox" && "" != $dictType)
-
+
#elseif($column.htmlType == "checkbox" && $dictType)
-
+
请选择字典生成
#elseif($column.htmlType == "radio" && "" != $dictType)
-
+
{{dict.label}}
#elseif($column.htmlType == "radio" && $dictType)
-
+
请选择字典生成
@@ -412,7 +418,7 @@ export default {
#set($comment=$column.columnComment)
#end
$column.javaField: [
- { required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select")"change"#else"blur"#end }
+ { required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select" || $column.htmlType == "radio")"change"#else"blur"#end }
]#if($foreach.count != $columns.size()),#end
#end
#end
@@ -456,9 +462,7 @@ export default {
reset() {
this.form = {
#foreach ($column in $columns)
-#if($column.htmlType == "radio")
- $column.javaField: #if($column.javaType == "Integer" || $column.javaType == "Long")0#else"0"#end#if($foreach.count != $columns.size()),#end
-#elseif($column.htmlType == "checkbox")
+#if($column.htmlType == "checkbox")
$column.javaField: []#if($foreach.count != $columns.size()),#end
#else
$column.javaField: undefined#if($foreach.count != $columns.size()),#end
diff --git a/ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm
index 01a7367f8..531cdc37b 100644
--- a/ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm
+++ b/ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm
@@ -135,11 +135,11 @@
#end
#end
-
- 修改
- 新增
- 删除
-
+
+ 修改
+ 新增
+ 删除
+
@@ -165,6 +165,7 @@
value-key="${treeCode}"
placeholder="请选择${comment}"
check-strictly
+ :render-after-expand="false"
/>
#elseif($column.htmlType == "input")
@@ -172,11 +173,11 @@
#elseif($column.htmlType == "imageUpload")
-
+
#elseif($column.htmlType == "fileUpload")
-
+
#elseif($column.htmlType == "editor")
@@ -190,8 +191,11 @@
v-for="dict in ${dictType}"
:key="dict.value"
:label="dict.label"
- #if($column.javaType == "Integer" || $column.javaType == "Long"):value="parseInt(dict.value)"#else:value="dict.value"#end
-
+#if($column.javaType == "Integer" || $column.javaType == "Long")
+ :value="parseInt(dict.value)"
+#else
+ :value="dict.value"
+#end
>
@@ -202,7 +206,7 @@
#elseif($column.htmlType == "checkbox" && "" != $dictType)
-
+
#elseif($column.htmlType == "checkbox" && $dictType)
-
+
请选择字典生成
#elseif($column.htmlType == "radio" && "" != $dictType)
-
+
{{dict.label}}
#elseif($column.htmlType == "radio" && $dictType)
-
+
请选择字典生成
@@ -306,7 +313,7 @@ const data = reactive({
#set($comment=$column.columnComment)
#end
$column.javaField: [
- { required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select")"change"#else"blur"#end }
+ { required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select" || $column.htmlType == "radio")"change"#else"blur"#end }
]#if($foreach.count != $columns.size()),#end
#end
#end
@@ -359,10 +366,7 @@ function cancel() {
function reset() {
form.value = {
#foreach ($column in $columns)
-#if($column.htmlType == "radio")
- $column.javaField: #if($column.javaType == "Integer" || $column.javaType == "Long")0#else"0"#end#if($foreach.count != $columns.size()),#end
-
-#elseif($column.htmlType == "checkbox")
+#if($column.htmlType == "checkbox")
$column.javaField: []#if($foreach.count != $columns.size()),#end
#else
$column.javaField: null#if($foreach.count != $columns.size()),#end
diff --git a/ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm
index d0f4f8bc8..a93922ef5 100644
--- a/ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm
+++ b/ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm
@@ -147,10 +147,10 @@
#end
#end
-
- 修改
- 删除
-
+
+ 修改
+ 删除
+
@@ -180,11 +180,11 @@
#elseif($column.htmlType == "imageUpload")
-
+
#elseif($column.htmlType == "fileUpload")
-
+
#elseif($column.htmlType == "editor")
@@ -198,8 +198,11 @@
v-for="dict in ${dictType}"
:key="dict.value"
:label="dict.label"
- #if($column.javaType == "Integer" || $column.javaType == "Long"):value="parseInt(dict.value)"#else:value="dict.value"#end
-
+#if($column.javaType == "Integer" || $column.javaType == "Long")
+ :value="parseInt(dict.value)"
+#else
+ :value="dict.value"
+#end
>
@@ -210,7 +213,7 @@
#elseif($column.htmlType == "checkbox" && "" != $dictType)
-
+
#elseif($column.htmlType == "checkbox" && $dictType)
-
+
请选择字典生成
#elseif($column.htmlType == "radio" && "" != $dictType)
-
+
{{dict.label}}
#elseif($column.htmlType == "radio" && $dictType)
-
+
请选择字典生成
@@ -387,7 +393,7 @@ const data = reactive({
#set($comment=$column.columnComment)
#end
$column.javaField: [
- { required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select")"change"#else"blur"#end }
+ { required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select" || $column.htmlType == "radio")"change"#else"blur"#end }
]#if($foreach.count != $columns.size()),#end
#end
#end
@@ -431,9 +437,7 @@ function cancel() {
function reset() {
form.value = {
#foreach ($column in $columns)
-#if($column.htmlType == "radio")
- $column.javaField: #if($column.javaType == "Integer" || $column.javaType == "Long")0#else"0"#end#if($foreach.count != $columns.size()),#end
-#elseif($column.htmlType == "checkbox")
+#if($column.htmlType == "checkbox")
$column.javaField: []#if($foreach.count != $columns.size()),#end
#else
$column.javaField: null#if($foreach.count != $columns.size()),#end
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java
index 72dc42bb4..31f4c1dc3 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java
@@ -136,6 +136,10 @@ public class SysConfigServiceImpl implements ISysConfigService, ConfigService {
@CachePut(cacheNames = CacheNames.SYS_CONFIG, key = "#config.configKey")
@Override
public String updateConfig(SysConfig config) {
+ SysConfig temp = baseMapper.selectById(config.getConfigId());
+ if (!StringUtils.equals(temp.getConfigKey(), config.getConfigKey())) {
+ CacheUtils.evict(CacheNames.SYS_CONFIG, temp.getConfigKey());
+ }
int row = 0;
if (config.getConfigId() != null) {
row = baseMapper.updateById(config);
diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json
index 48ba1f9a4..61a89f433 100644
--- a/ruoyi-ui/package.json
+++ b/ruoyi-ui/package.json
@@ -39,7 +39,7 @@
"axios": "0.24.0",
"clipboard": "2.0.8",
"core-js": "3.25.3",
- "echarts": "4.9.0",
+ "echarts": "5.4.0",
"element-ui": "2.15.10",
"file-saver": "2.0.5",
"fuse.js": "6.4.3",
diff --git a/ruoyi-ui/src/assets/styles/ruoyi.scss b/ruoyi-ui/src/assets/styles/ruoyi.scss
index 16a4740f4..4e298744c 100644
--- a/ruoyi-ui/src/assets/styles/ruoyi.scss
+++ b/ruoyi-ui/src/assets/styles/ruoyi.scss
@@ -73,6 +73,10 @@
color: inherit;
}
+.el-message-box__status + .el-message-box__message{
+ word-break: break-word;
+}
+
.el-dialog:not(.is-fullscreen) {
margin-top: 6vh !important;
}
diff --git a/ruoyi-ui/src/components/HeaderSearch/index.vue b/ruoyi-ui/src/components/HeaderSearch/index.vue
index c44eff56e..c4d76bbb9 100644
--- a/ruoyi-ui/src/components/HeaderSearch/index.vue
+++ b/ruoyi-ui/src/components/HeaderSearch/index.vue
@@ -90,7 +90,6 @@ export default {
threshold: 0.4,
location: 0,
distance: 100,
- maxPatternLength: 32,
minMatchCharLength: 1,
keys: [{
name: 'title',
diff --git a/ruoyi-ui/src/components/RightPanel/index.vue b/ruoyi-ui/src/components/RightPanel/index.vue
index 2d6122bc0..5abeecb00 100644
--- a/ruoyi-ui/src/components/RightPanel/index.vue
+++ b/ruoyi-ui/src/components/RightPanel/index.vue
@@ -39,7 +39,6 @@ export default {
}
},
mounted() {
- this.insertToBody()
this.addEventClick()
},
beforeDestroy() {
@@ -56,11 +55,6 @@ export default {
this.show = false
window.removeEventListener('click', this.closeSidebar)
}
- },
- insertToBody() {
- const elx = this.$refs.rightPanel
- const body = document.querySelector('body')
- body.insertBefore(elx, body.firstChild)
}
}
}
diff --git a/ruoyi-ui/src/plugins/download.js b/ruoyi-ui/src/plugins/download.js
index 85138bb17..a1b21dad9 100644
--- a/ruoyi-ui/src/plugins/download.js
+++ b/ruoyi-ui/src/plugins/download.js
@@ -21,7 +21,7 @@ export default {
const isLogin = await blobValidate(res.data);
if (isLogin) {
const blob = new Blob([res.data], { type: 'application/octet-stream' })
- this.saveAs(blob, decodeURI(res.headers['download-filename']))
+ this.saveAs(blob, decodeURIComponent(res.headers['download-filename']))
} else {
this.printErrMsg(res.data);
}
diff --git a/ruoyi-ui/src/views/dashboard/BarChart.vue b/ruoyi-ui/src/views/dashboard/BarChart.vue
index be0af34f8..88e7ef64c 100644
--- a/ruoyi-ui/src/views/dashboard/BarChart.vue
+++ b/ruoyi-ui/src/views/dashboard/BarChart.vue
@@ -3,7 +3,7 @@