feat(视图):升级ECharts版本 4.x -> 5.x,用新的,新的好看

This commit is contained in:
xiajunjie 2021-03-03 21:08:39 +08:00
parent f6ec2fb235
commit 38e23864d2
3 changed files with 4 additions and 5 deletions

View File

@ -17,8 +17,7 @@
"dependencies": {
"@riophae/vue-treeselect": "0.4.0",
"axios": "0.18.1",
"echarts": "^4.6.0",
"vue-echarts": "^4.1.0",
"echarts": "^5.0.2",
"element-ui": "2.13.0",
"fit2cloud-ui": "^0.1.12",
"js-cookie": "2.2.0",

View File

@ -21,7 +21,7 @@ import message from '@/metersphere/common/js/message'
import { left2RightDrag, bottom2TopDrag, right2LeftDrag } from '@/metersphere/common/js/directive'
Vue.prototype.$api = api
import echarts from 'echarts'
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts

View File

@ -280,8 +280,8 @@ export default {
post('/chart/view/save', view).then(response => {
// this.get(response.data.id);
this.getData(response.data.id)
this.$store.commit('setChartSceneData', null)
this.$store.commit('setChartSceneData', this.sceneId)
this.$store.dispatch('chart/setChartSceneData', null)
this.$store.dispatch('chart/setChartSceneData', this.sceneId)
})
},
getData(id) {