Commit cd40aa36 by 胡悦

Merge branch 'gh_v1.2.0' into ty_v1.2.0

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