Explorar el Código

升级echarts到最新版本5.4.0

RuoYi hace 3 años
padre
commit
af33456ca8

+ 1 - 1
ruoyi-ui/package.json

@@ -40,7 +40,7 @@
40 40
     "axios": "0.24.0",
41 41
     "clipboard": "2.0.8",
42 42
     "core-js": "3.25.3",
43
-    "echarts": "4.9.0",
43
+    "echarts": "5.4.0",
44 44
     "element-ui": "2.15.10",
45 45
     "file-saver": "2.0.5",
46 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 41
   mounted() {
42
-    this.insertToBody()
43 42
     this.addEventClick()
44 43
   },
45 44
   beforeDestroy() {
@@ -56,11 +55,6 @@ export default {
56 55
         this.show = false
57 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 3
 </template>
4 4
 
5 5
 <script>
6
-import echarts from 'echarts'
6
+import * as echarts from 'echarts'
7 7
 require('echarts/theme/macarons') // echarts theme
8 8
 import resize from './mixins/resize'
9 9
 

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

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

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

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

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

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