forked from github/dataease
feat(视图):升级ECharts版本 4.x -> 5.x,用新的,新的好看
This commit is contained in:
parent
f6ec2fb235
commit
38e23864d2
@ -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",
|
||||
|
@ -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
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user