diff --git a/.env.development b/.env.development index d89589a..8a8198b 100644 --- a/.env.development +++ b/.env.development @@ -3,6 +3,6 @@ ENV = 'development' # base api VUE_APP_BASE_API = '' -VUE_APP_DOMAIN=http://patrol.115.langye.net/ +#VUE_APP_DOMAIN=http://patrol.115.langye.net/ -#VUE_APP_DOMAIN=http://192.168.60.100:9001/ +VUE_APP_DOMAIN=http://192.168.60.100:9001/ diff --git a/src/components/LxHeader/index.vue b/src/components/LxHeader/index.vue index 4050d04..b61c971 100644 --- a/src/components/LxHeader/index.vue +++ b/src/components/LxHeader/index.vue @@ -45,7 +45,6 @@ export default { border-bottom: 2px solid #338de3; > span { position: relative; - top: 2px; } } .content { diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index fae683a..50b93d3 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -78,8 +78,13 @@ export function generaMenu(routes, data) { }] }) } else { + var path = item.url; + if (item.path != "null" && item.path != null && item.path != "") { + path = item.path + } const menu = { - path: item.url === '#' ? item.id + '_key' : item.url, + path: (path === '#' ? item.id + '_key' : path), + redirect: (item.children.length > 0 ? "noRedirect" : ""), component: item.url === '#' ? Layout : loadView(item.url), // hidden: true, children: [], diff --git a/src/views/dashboard/components/PieChart.vue b/src/views/dashboard/components/PieChart.vue index 004c945..61e0fa9 100644 --- a/src/views/dashboard/components/PieChart.vue +++ b/src/views/dashboard/components/PieChart.vue @@ -60,55 +60,7 @@ this.setOptions(this.chartData); }, setOptions(chartdata) { - console.log(chartdata.xArr) this.chart.setOption({ - dataZoom: [ - //给x轴设置滚动条 - // { - // startValue: 0, - // endValue: 6, // 显示条数 - // type: 'slider', - // show: true, - // xAxisIndex: [0], - // // handleSize: 0, //滑动条的 左右2个滑动条的大小 - // height: 8, //组件高度 - // left: 50, //左边的距离 - // right: 40, //右边的距离 - // bottom: 26, //右边的距离 - // handleColor: '#EFEFEF', //h滑动图标的颜色 - // handleStyle: { - // borderColor: '#409EFF', - // borderWidth: '1', - // shadowBlur: 2, - // background: '#EFEFEF', - // shadowColor: '#EFEFEF' - // }, - // fillerColor: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{ - // //给颜色设置渐变色 前面4个参数,给第一个设置1,第四个设置0 ,就是水平渐变 - // //给第一个设置0,第四个设置1,就是垂直渐变 - // offset: 0, - // color: '#409EFF' - // }, - // { - // offset: 1, - // color: '#409EFF' - // } - // ]), - // backgroundColor: '#EFEFEF', //两边未选中的滑动条区域的颜色 - // showDataShadow: false, //是否显示数据阴影 默认auto - // showDetail: false, //即拖拽时候是否显示详细数值信息 默认true - // handleIcon: 'M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z', - // filterMode: 'filter' - // } - //下面这个属性是里面拖到 - // { - // type: 'inside', - // show: true, - // xAxisIndex: [0], - // start: 0, //默认为1 - // end: 50, - // }, - ], legend: { orient: 'horizontal', bottom: '4%', @@ -116,34 +68,7 @@ tooltip: { trigger: 'item', formatter: "{a}
{b} : {c} ({d}%)" - }, - grid: { - top: 0, - left: '2%', - right: '2%', - bottom: '3%', - containLabel: false - }, - xAxis: [{ - type: 'category', - data: chartdata.xArr, - axisLine: { - show: false //不显示坐标轴轴线 - }, - axisTick: { - show: false //不显示坐标轴刻度 - }, - }], - yAxis: [{ - type: 'value', - minInterval: 1, - axisLine: { - show: false //不显示坐标轴轴线 - }, - axisTick: { - show: false //不显示坐标轴刻度 - }, - }], + }, radiusArr:[], series: [{ name: '数据', diff --git a/src/views/rain/inspection/components/maps.vue b/src/views/rain/inspection/components/maps.vue index 7a9c7ac..4944600 100644 --- a/src/views/rain/inspection/components/maps.vue +++ b/src/views/rain/inspection/components/maps.vue @@ -1,104 +1,113 @@