Commit cd40aa36 by 胡悦

Merge branch 'gh_v1.2.0' into ty_v1.2.0

2 parents 8bdea5fd 8c9638ad
...@@ -12,9 +12,9 @@ module.exports = { ...@@ -12,9 +12,9 @@ module.exports = {
title: 'XXX汽车服务', title: 'XXX汽车服务',
request: { request: {
// baseURL: 'http://192.168.3.126:8081', // 本地测试项目地址, // baseURL: 'http://192.168.3.126:8081', // 本地测试项目地址,
// baseURL: 'http://192.168.1.160:8081', // 本地开发项目地址, baseURL: 'http://192.168.1.160:8081', // 本地开发项目地址,
// baseURL: 'http://192.168.1.158:9996', // baseURL: 'http://192.168.1.158:9996',
baseURL: 'http://192.168.1.152:8081', // baseURL: 'http://192.168.1.152:8081',
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
<script> <script>
import * as echarts from 'echarts' import * as echarts from 'echarts'
import datas from '../../utils/data' import datas from '../../utils/data'
import utils from '../../utils/util'
import { changeMixin } from '../../mixins/index' import { changeMixin } from '../../mixins/index'
export default { export default {
name: 'Analyze', name: 'Analyze',
...@@ -143,7 +144,7 @@ export default { ...@@ -143,7 +144,7 @@ export default {
this.barChart.clear() this.barChart.clear()
this.barChart.setOption(this.option) this.barChart.setOption(this.option)
this.chartAction() this.chartAction()
this.barChart.getZr().on('mousemove', params => { this.barChart.getZr().on('mousemove', utils.debounce(params => {
const pointInPixel = [params.offsetX, params.offsetY] const pointInPixel = [params.offsetX, params.offsetY]
const pointInGrid = this.barChart.convertFromPixel({ seriesIndex: 0 }, pointInPixel) const pointInGrid = this.barChart.convertFromPixel({ seriesIndex: 0 }, pointInPixel)
const yIndex = pointInGrid[1] const yIndex = pointInGrid[1]
...@@ -154,7 +155,7 @@ export default { ...@@ -154,7 +155,7 @@ export default {
name, name,
dataIndex: yIndex dataIndex: yIndex
} }
}) }), 500)
// 鼠标划入 // 鼠标划入
// this.barChart.on('mouseup', data => { // this.barChart.on('mouseup', data => {
// this.initPieData(data.name) // this.initPieData(data.name)
......
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
isBrand: false, isBrand: false,
currentName: '', currentName: '',
bgColor: '#BF98FF', bgColor: '#BF98FF',
colorList: ['#BF98FF', '#E60115', '#4FA0FF', '#EB6001', '#F5AA01'] colorList: ['#BF98FF', '#58D9F9', '#4FA0FF', '#EB6001', '#F5AA01']
} }
}, },
mounted() { mounted() {
......
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
paramsData: [], paramsData: [],
list: ['enter', 'stayfile', 'test', 'placeorder', 'success'], list: ['enter', 'stayfile', 'test', 'placeorder', 'success'],
hasData: true, hasData: true,
colorList: ['#BF98FF', '#E60115', '#4FA0FF', '#EB6001', '#F5AA01'] colorList: ['#BF98FF', '#58D9F9', '#4FA0FF', '#EB6001', '#F5AA01']
} }
}, },
mounted() { mounted() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!