Quellcode durchsuchen

升级echarts到最新版本5.4.0

RuoYi vor 3 Jahren
Ursprung
Commit
af33456ca8

+ 1 - 1
ruoyi-ui/package.json

@@ -40,7 +40,7 @@
40
     "axios": "0.24.0",
40
     "axios": "0.24.0",
41
     "clipboard": "2.0.8",
41
     "clipboard": "2.0.8",
42
     "core-js": "3.25.3",
42
     "core-js": "3.25.3",
43
-    "echarts": "4.9.0",
43
+    "echarts": "5.4.0",
44
     "element-ui": "2.15.10",
44
     "element-ui": "2.15.10",
45
     "file-saver": "2.0.5",
45
     "file-saver": "2.0.5",
46
     "fuse.js": "6.4.3",
46
     "fuse.js": "6.4.3",

+ 0 - 6
ruoyi-ui/src/components/RightPanel/index.vue

@@ -39,7 +39,6 @@ export default {
39
     }
39
     }
40
   },
40
   },
41
   mounted() {
41
   mounted() {
42
-    this.insertToBody()
43
     this.addEventClick()
42
     this.addEventClick()
44
   },
43
   },
45
   beforeDestroy() {
44
   beforeDestroy() {
@@ -56,11 +55,6 @@ export default {
56
         this.show = false
55
         this.show = false
57
         window.removeEventListener('click', this.closeSidebar)
56
         window.removeEventListener('click', this.closeSidebar)
58
       }
57
       }
59
-    },
60
-    insertToBody() {
61
-      const elx = this.$refs.rightPanel
62
-      const body = document.querySelector('body')
63
-      body.insertBefore(elx, body.firstChild)
64
     }
58
     }
65
   }
59
   }
66
 }
60
 }

+ 1 - 1
ruoyi-ui/src/views/dashboard/BarChart.vue

@@ -3,7 +3,7 @@
3
 </template>
3
 </template>
4
 
4
 
5
 <script>
5
 <script>
6
-import echarts from 'echarts'
6
+import * as echarts from 'echarts'
7
 require('echarts/theme/macarons') // echarts theme
7
 require('echarts/theme/macarons') // echarts theme
8
 import resize from './mixins/resize'
8
 import resize from './mixins/resize'
9
 
9
 

+ 1 - 1
ruoyi-ui/src/views/dashboard/LineChart.vue

@@ -3,7 +3,7 @@
3
 </template>
3
 </template>
4
 
4
 
5
 <script>
5
 <script>
6
-import echarts from 'echarts'
6
+import * as echarts from 'echarts'
7
 require('echarts/theme/macarons') // echarts theme
7
 require('echarts/theme/macarons') // echarts theme
8
 import resize from './mixins/resize'
8
 import resize from './mixins/resize'
9
 
9
 

+ 1 - 1
ruoyi-ui/src/views/dashboard/PieChart.vue

@@ -3,7 +3,7 @@
3
 </template>
3
 </template>
4
 
4
 
5
 <script>
5
 <script>
6
-import echarts from 'echarts'
6
+import * as echarts from 'echarts'
7
 require('echarts/theme/macarons') // echarts theme
7
 require('echarts/theme/macarons') // echarts theme
8
 import resize from './mixins/resize'
8
 import resize from './mixins/resize'
9
 
9
 

+ 1 - 1
ruoyi-ui/src/views/dashboard/RaddarChart.vue

@@ -3,7 +3,7 @@
3
 </template>
3
 </template>
4
 
4
 
5
 <script>
5
 <script>
6
-import echarts from 'echarts'
6
+import * as echarts from 'echarts'
7
 require('echarts/theme/macarons') // echarts theme
7
 require('echarts/theme/macarons') // echarts theme
8
 import resize from './mixins/resize'
8
 import resize from './mixins/resize'
9
 
9