提交 38e23864 authored 作者: xiajunjie's avatar xiajunjie

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

上级 f6ec2fb2
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
"dependencies": { "dependencies": {
"@riophae/vue-treeselect": "0.4.0", "@riophae/vue-treeselect": "0.4.0",
"axios": "0.18.1", "axios": "0.18.1",
"echarts": "^4.6.0", "echarts": "^5.0.2",
"vue-echarts": "^4.1.0",
"element-ui": "2.13.0", "element-ui": "2.13.0",
"fit2cloud-ui": "^0.1.12", "fit2cloud-ui": "^0.1.12",
"js-cookie": "2.2.0", "js-cookie": "2.2.0",
......
...@@ -21,7 +21,7 @@ import message from '@/metersphere/common/js/message' ...@@ -21,7 +21,7 @@ import message from '@/metersphere/common/js/message'
import { left2RightDrag, bottom2TopDrag, right2LeftDrag } from '@/metersphere/common/js/directive' import { left2RightDrag, bottom2TopDrag, right2LeftDrag } from '@/metersphere/common/js/directive'
Vue.prototype.$api = api Vue.prototype.$api = api
import echarts from 'echarts' import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts Vue.prototype.$echarts = echarts
......
...@@ -280,8 +280,8 @@ export default { ...@@ -280,8 +280,8 @@ export default {
post('/chart/view/save', view).then(response => { post('/chart/view/save', view).then(response => {
// this.get(response.data.id); // this.get(response.data.id);
this.getData(response.data.id) this.getData(response.data.id)
this.$store.commit('setChartSceneData', null) this.$store.dispatch('chart/setChartSceneData', null)
this.$store.commit('setChartSceneData', this.sceneId) this.$store.dispatch('chart/setChartSceneData', this.sceneId)
}) })
}, },
getData(id) { getData(id) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论