Skip to content

Commit 2a362a3

Browse files
YunaiVgitee-org
authored andcommitted
!343 同步dev分支
Merge pull request !343 from xingyu/dev
2 parents bcfafdb + 74a83a3 commit 2a362a3

File tree

12 files changed

+72
-60
lines changed

12 files changed

+72
-60
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"clipboard": "2.0.8",
4848
"core-js": "^3.26.0",
4949
"crypto-js": "^4.0.0",
50-
"echarts": "4.9.0",
50+
"echarts": "5.4.0",
5151
"element-ui": "2.15.10",
5252
"file-saver": "2.0.5",
5353
"fuse.js": "6.6.2",
@@ -89,7 +89,7 @@
8989
"fs-extra": "^8.1.0",
9090
"lint-staged": "12.5.0",
9191
"runjs": "4.4.2",
92-
"sass": "1.3.0",
92+
"sass": "1.32.13",
9393
"sass-loader": "10.2.0",
9494
"script-ext-html-webpack-plugin": "2.1.5",
9595
"svg-sprite-loader": "5.1.1",

src/assets/styles/ruoyi.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
color: inherit;
6161
}
6262

63+
.el-message-box__status + .el-message-box__message{
64+
word-break: break-word;
65+
}
66+
6367
.el-dialog:not(.is-fullscreen) {
6468
margin-top: 6vh !important;
6569
}

src/components/HeaderSearch/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ export default {
8888
threshold: 0.4,
8989
location: 0,
9090
distance: 100,
91-
maxPatternLength: 32,
9291
minMatchCharLength: 1,
9392
keys: [{
9493
name: 'title',

src/components/RightPanel/index.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export default {
5353
}
5454
},
5555
mounted() {
56-
this.insertToBody()
5756
this.addEventClick()
5857
},
5958
beforeDestroy() {
@@ -70,11 +69,6 @@ export default {
7069
this.show = false
7170
window.removeEventListener('click', this.closeSidebar)
7271
}
73-
},
74-
insertToBody() {
75-
const elx = this.$refs.rightPanel
76-
const body = document.querySelector('body')
77-
body.insertBefore(elx, body.firstChild)
7872
}
7973
}
8074
}

src/components/TopNav/index.vue

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
<template>
22
<el-menu
3-
:default-active="activeMenu"
4-
mode="horizontal"
5-
@select="handleSelect"
3+
:default-active="activeMenu"
4+
mode="horizontal"
5+
@select="handleSelect"
66
>
77
<template v-for="(item, index) in topMenus">
8-
<el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber"
9-
><svg-icon :icon-class="item.meta.icon" />
10-
{{ item.meta.title }}</el-menu-item
11-
>
8+
<el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber">
9+
<svg-icon :icon-class="item.meta.icon"/>
10+
{{ item.meta.title }}
11+
</el-menu-item>
1212
</template>
1313

1414
<!-- 顶部菜单超出数量折叠 -->
1515
<el-submenu :style="{'--theme': theme}" index="more" v-if="topMenus.length > visibleNumber">
1616
<template slot="title">更多菜单</template>
1717
<template v-for="(item, index) in topMenus">
1818
<el-menu-item
19-
:index="item.path"
20-
:key="index"
21-
v-if="index >= visibleNumber"
22-
><svg-icon :icon-class="item.meta.icon" />
23-
{{ item.meta.title }}</el-menu-item
19+
:index="item.path"
20+
:key="index"
21+
v-if="index >= visibleNumber"
2422
>
23+
<svg-icon :icon-class="item.meta.icon"/>
24+
{{ item.meta.title }}
25+
</el-menu-item>
2526
</template>
2627
</el-submenu>
2728
</el-menu>
@@ -92,7 +93,9 @@ export default {
9293
if (path !== undefined && path.lastIndexOf("/") > 0 && hideList.indexOf(path) === -1) {
9394
const tmpPath = path.substring(1, path.length);
9495
activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));
95-
this.$store.dispatch('app/toggleSideBarHide', false);
96+
if (!this.$route.meta.link) {
97+
this.$store.dispatch('app/toggleSideBarHide', false)
98+
}
9699
} else if(!this.$route.children) {
97100
activePath = path;
98101
this.$store.dispatch('app/toggleSideBarHide', true);
@@ -145,6 +148,8 @@ export default {
145148
}
146149
if(routes.length > 0) {
147150
this.$store.commit("SET_SIDEBAR_ROUTERS", routes);
151+
} else {
152+
this.$store.dispatch("app/toggleSideBarHide", true);
148153
}
149154
},
150155
ishttp(url) {

src/components/Verifition/Verify.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ export default {
139139
let slider = 'slider' + '-' + s.join('')
140140
let point = 'point' + '-' + s.join('')
141141
// 判断下是否存在 slider
142-
console.log(localStorage.getItem('slider'))
143142
if (!localStorage.getItem('slider')) {
144143
localStorage.setItem('slider', slider)
145144
}

src/layout/components/TagsView/index.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export default {
239239

240240
<style lang="scss" scoped>
241241
.tags-view-container {
242-
height: 34px;
242+
height: 36px;
243243
width: 100%;
244244
background: #fff;
245245
border-bottom: 1px solid #d8dce5;
@@ -249,15 +249,16 @@ export default {
249249
display: inline-block;
250250
position: relative;
251251
cursor: pointer;
252-
height: 26px;
253-
line-height: 26px;
252+
height: 28px;
253+
line-height: 28px;
254254
border: 1px solid #d8dce5;
255255
color: #495060;
256256
background: #fff;
257-
padding: 0 8px;
257+
padding: 0 6px;
258258
font-size: 12px;
259-
margin-left: 5px;
259+
margin-left: 4px;
260260
margin-top: 4px;
261+
border-radius: 3px 3px 3px 3px;
261262
&:first-of-type {
262263
margin-left: 15px;
263264
}

src/views/dashboard/BarChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</template>
44

55
<script>
6-
import echarts from 'echarts'
6+
import * as echarts from 'echarts'
77
require('echarts/theme/macarons') // echarts theme
88
import resize from './mixins/resize'
99

src/views/dashboard/LineChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</template>
44

55
<script>
6-
import echarts from 'echarts'
6+
import * as echarts from 'echarts'
77
require('echarts/theme/macarons') // echarts theme
88
import resize from './mixins/resize'
99

src/views/dashboard/PieChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</template>
44

55
<script>
6-
import echarts from 'echarts'
6+
import * as echarts from 'echarts'
77
require('echarts/theme/macarons') // echarts theme
88
import resize from './mixins/resize'
99

0 commit comments

Comments
 (0)