diff --git a/src/views/pictureOnMap/inputSearch.vue b/src/views/pictureOnMap/inputSearch.vue index ee0ad81..d732a0b 100644 --- a/src/views/pictureOnMap/inputSearch.vue +++ b/src/views/pictureOnMap/inputSearch.vue @@ -3,7 +3,7 @@ - - - - + + + + appStore.MapData, (newValue, oldValue) => { @@ -168,17 +168,16 @@ // bus.emit('removeMapDatas',['temporary']); }, 500); -const tabsClick=(e)=>{ - let type=e.paneName - getItem.value='' - selectmodel.value='' - if(type=='zhandian'){ - GetSearchList(appStore.MapData) - }else if(type=='daolu'){ - GetSearchList(roadData.value) - +const tabsClick = e => { + let type = e.paneName; + getItem.value = ''; + selectmodel.value = ''; + if (type == 'zhandian') { + GetSearchList(appStore.MapData); + } else if (type == 'daolu') { + GetSearchList(roadData.value); } -} +}; onMounted(() => { bus.on('YQ_head', val => { console.log('appStore.MapData', appStore.MapData); @@ -197,20 +196,21 @@ diff --git a/src/views/pictureOnMap/inputSearch.vue b/src/views/pictureOnMap/inputSearch.vue index ee0ad81..d732a0b 100644 --- a/src/views/pictureOnMap/inputSearch.vue +++ b/src/views/pictureOnMap/inputSearch.vue @@ -3,7 +3,7 @@ - - - - + + + + appStore.MapData, (newValue, oldValue) => { @@ -168,17 +168,16 @@ // bus.emit('removeMapDatas',['temporary']); }, 500); -const tabsClick=(e)=>{ - let type=e.paneName - getItem.value='' - selectmodel.value='' - if(type=='zhandian'){ - GetSearchList(appStore.MapData) - }else if(type=='daolu'){ - GetSearchList(roadData.value) - +const tabsClick = e => { + let type = e.paneName; + getItem.value = ''; + selectmodel.value = ''; + if (type == 'zhandian') { + GetSearchList(appStore.MapData); + } else if (type == 'daolu') { + GetSearchList(roadData.value); } -} +}; onMounted(() => { bus.on('YQ_head', val => { console.log('appStore.MapData', appStore.MapData); @@ -197,20 +196,21 @@ diff --git a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue new file mode 100644 index 0000000..662d24f --- /dev/null +++ b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/views/pictureOnMap/inputSearch.vue b/src/views/pictureOnMap/inputSearch.vue index ee0ad81..d732a0b 100644 --- a/src/views/pictureOnMap/inputSearch.vue +++ b/src/views/pictureOnMap/inputSearch.vue @@ -3,7 +3,7 @@ - - - - + + + + appStore.MapData, (newValue, oldValue) => { @@ -168,17 +168,16 @@ // bus.emit('removeMapDatas',['temporary']); }, 500); -const tabsClick=(e)=>{ - let type=e.paneName - getItem.value='' - selectmodel.value='' - if(type=='zhandian'){ - GetSearchList(appStore.MapData) - }else if(type=='daolu'){ - GetSearchList(roadData.value) - +const tabsClick = e => { + let type = e.paneName; + getItem.value = ''; + selectmodel.value = ''; + if (type == 'zhandian') { + GetSearchList(appStore.MapData); + } else if (type == 'daolu') { + GetSearchList(roadData.value); } -} +}; onMounted(() => { bus.on('YQ_head', val => { console.log('appStore.MapData', appStore.MapData); @@ -197,20 +196,21 @@ diff --git a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue new file mode 100644 index 0000000..662d24f --- /dev/null +++ b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue index e421b34..3611592 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue @@ -128,6 +128,7 @@ // return value.toFixed(2); // 保留两位小数 // }, }, + max: Math.ceil(Math.max.apply(null, props.data.yAxis1_bar) * 1.2), nameTextStyle: { color: "#AAC1CF", }, @@ -181,11 +182,12 @@ name: props.data.y2_Unit, type: "value", min: 0, + minInterval: 1, axisLabel: { color: "#AAC1CF", show: true, // formatter: function (value) { - // return value.toFixed(2); // 保留两位小数 + // return value.toFixed(0); // 保留两位小数 // }, }, nameTextStyle: { @@ -197,7 +199,7 @@ color: "#2161a8", }, }, - // alignTicks: true, + alignTicks: true, position: "right", offset: 0, }); @@ -226,6 +228,17 @@ return value + unit; }, }, + + label: { + show: true, + position: "top", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value; + }, + }, }, { name: props.data.yAxis1_bar_Name, diff --git a/src/views/pictureOnMap/inputSearch.vue b/src/views/pictureOnMap/inputSearch.vue index ee0ad81..d732a0b 100644 --- a/src/views/pictureOnMap/inputSearch.vue +++ b/src/views/pictureOnMap/inputSearch.vue @@ -3,7 +3,7 @@ - - - - + + + + appStore.MapData, (newValue, oldValue) => { @@ -168,17 +168,16 @@ // bus.emit('removeMapDatas',['temporary']); }, 500); -const tabsClick=(e)=>{ - let type=e.paneName - getItem.value='' - selectmodel.value='' - if(type=='zhandian'){ - GetSearchList(appStore.MapData) - }else if(type=='daolu'){ - GetSearchList(roadData.value) - +const tabsClick = e => { + let type = e.paneName; + getItem.value = ''; + selectmodel.value = ''; + if (type == 'zhandian') { + GetSearchList(appStore.MapData); + } else if (type == 'daolu') { + GetSearchList(roadData.value); } -} +}; onMounted(() => { bus.on('YQ_head', val => { console.log('appStore.MapData', appStore.MapData); @@ -197,20 +196,21 @@ diff --git a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue new file mode 100644 index 0000000..662d24f --- /dev/null +++ b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue index e421b34..3611592 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue @@ -128,6 +128,7 @@ // return value.toFixed(2); // 保留两位小数 // }, }, + max: Math.ceil(Math.max.apply(null, props.data.yAxis1_bar) * 1.2), nameTextStyle: { color: "#AAC1CF", }, @@ -181,11 +182,12 @@ name: props.data.y2_Unit, type: "value", min: 0, + minInterval: 1, axisLabel: { color: "#AAC1CF", show: true, // formatter: function (value) { - // return value.toFixed(2); // 保留两位小数 + // return value.toFixed(0); // 保留两位小数 // }, }, nameTextStyle: { @@ -197,7 +199,7 @@ color: "#2161a8", }, }, - // alignTicks: true, + alignTicks: true, position: "right", offset: 0, }); @@ -226,6 +228,17 @@ return value + unit; }, }, + + label: { + show: true, + position: "top", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value; + }, + }, }, { name: props.data.yAxis1_bar_Name, diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue index 727f6a8..b12fa14 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue @@ -70,7 +70,7 @@ }, legend: { textStyle: { - color: "#FFFFFF", // 这里设置为红色 + color: "#FFFFFF", }, }, grid: { @@ -87,7 +87,7 @@ align: "right", fontSize: 10, }, - max: Math.ceil(Math.max.apply(null, props.data.yAxis2) * 1.1), + max: Math.ceil(Math.max.apply(null, props.data.yAxis2) * 1.2), nameLocation: "start", type: "value", minInterval: 1, @@ -109,7 +109,7 @@ axisLabel: { color: "#EBFEFF", show: true, - fontSize: 12, + fontSize: props.data.xAxis.length > 8 ? 8 : 12, }, nameTextStyle: { color: "#FFFFFF", @@ -119,31 +119,48 @@ { name: props.data.yAxis2_Name, type: "bar", - barWidth: 10, + // barWidth: 10, // label: { // show: true, // }, data: props.data.yAxis2, barGap: "-100%", itemStyle: { - borderRadius: [20, 20, 20, 20], + borderRadius: [0, 20, 20, 0], color: "#31FEDF", }, + label: { + show: true, + position: "right", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value + props.data.y1_Unit; + }, + }, }, { name: props.data.yAxis_Name, type: "bar", - barWidth: 10, + // barWidth: 10, // label: { // show: true, // }, data: props.data.yAxis, itemStyle: { borderRadius: [20, 20, 20, 20], - color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [ - { offset: 0, color: "#FF6464" }, - { offset: 1, color: "#FF9A9A" }, - ]), + color: "#FF6464", + }, + label: { + show: false, + position: "right", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value + props.data.y1_Unit; + }, }, }, ], diff --git a/src/views/pictureOnMap/inputSearch.vue b/src/views/pictureOnMap/inputSearch.vue index ee0ad81..d732a0b 100644 --- a/src/views/pictureOnMap/inputSearch.vue +++ b/src/views/pictureOnMap/inputSearch.vue @@ -3,7 +3,7 @@ - - - - + + + + appStore.MapData, (newValue, oldValue) => { @@ -168,17 +168,16 @@ // bus.emit('removeMapDatas',['temporary']); }, 500); -const tabsClick=(e)=>{ - let type=e.paneName - getItem.value='' - selectmodel.value='' - if(type=='zhandian'){ - GetSearchList(appStore.MapData) - }else if(type=='daolu'){ - GetSearchList(roadData.value) - +const tabsClick = e => { + let type = e.paneName; + getItem.value = ''; + selectmodel.value = ''; + if (type == 'zhandian') { + GetSearchList(appStore.MapData); + } else if (type == 'daolu') { + GetSearchList(roadData.value); } -} +}; onMounted(() => { bus.on('YQ_head', val => { console.log('appStore.MapData', appStore.MapData); @@ -197,20 +196,21 @@ diff --git a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue new file mode 100644 index 0000000..662d24f --- /dev/null +++ b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue index e421b34..3611592 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue @@ -128,6 +128,7 @@ // return value.toFixed(2); // 保留两位小数 // }, }, + max: Math.ceil(Math.max.apply(null, props.data.yAxis1_bar) * 1.2), nameTextStyle: { color: "#AAC1CF", }, @@ -181,11 +182,12 @@ name: props.data.y2_Unit, type: "value", min: 0, + minInterval: 1, axisLabel: { color: "#AAC1CF", show: true, // formatter: function (value) { - // return value.toFixed(2); // 保留两位小数 + // return value.toFixed(0); // 保留两位小数 // }, }, nameTextStyle: { @@ -197,7 +199,7 @@ color: "#2161a8", }, }, - // alignTicks: true, + alignTicks: true, position: "right", offset: 0, }); @@ -226,6 +228,17 @@ return value + unit; }, }, + + label: { + show: true, + position: "top", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value; + }, + }, }, { name: props.data.yAxis1_bar_Name, diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue index 727f6a8..b12fa14 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue @@ -70,7 +70,7 @@ }, legend: { textStyle: { - color: "#FFFFFF", // 这里设置为红色 + color: "#FFFFFF", }, }, grid: { @@ -87,7 +87,7 @@ align: "right", fontSize: 10, }, - max: Math.ceil(Math.max.apply(null, props.data.yAxis2) * 1.1), + max: Math.ceil(Math.max.apply(null, props.data.yAxis2) * 1.2), nameLocation: "start", type: "value", minInterval: 1, @@ -109,7 +109,7 @@ axisLabel: { color: "#EBFEFF", show: true, - fontSize: 12, + fontSize: props.data.xAxis.length > 8 ? 8 : 12, }, nameTextStyle: { color: "#FFFFFF", @@ -119,31 +119,48 @@ { name: props.data.yAxis2_Name, type: "bar", - barWidth: 10, + // barWidth: 10, // label: { // show: true, // }, data: props.data.yAxis2, barGap: "-100%", itemStyle: { - borderRadius: [20, 20, 20, 20], + borderRadius: [0, 20, 20, 0], color: "#31FEDF", }, + label: { + show: true, + position: "right", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value + props.data.y1_Unit; + }, + }, }, { name: props.data.yAxis_Name, type: "bar", - barWidth: 10, + // barWidth: 10, // label: { // show: true, // }, data: props.data.yAxis, itemStyle: { borderRadius: [20, 20, 20, 20], - color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [ - { offset: 0, color: "#FF6464" }, - { offset: 1, color: "#FF9A9A" }, - ]), + color: "#FF6464", + }, + label: { + show: false, + position: "right", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value + props.data.y1_Unit; + }, }, }, ], diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue index 263ec56..1542859 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue @@ -152,9 +152,6 @@ color: "aqua", // 数据点颜色 }, }, - - - { name: props.data.yAxis3_line_Name, type: "line", diff --git a/src/views/pictureOnMap/inputSearch.vue b/src/views/pictureOnMap/inputSearch.vue index ee0ad81..d732a0b 100644 --- a/src/views/pictureOnMap/inputSearch.vue +++ b/src/views/pictureOnMap/inputSearch.vue @@ -3,7 +3,7 @@ - - - - + + + + appStore.MapData, (newValue, oldValue) => { @@ -168,17 +168,16 @@ // bus.emit('removeMapDatas',['temporary']); }, 500); -const tabsClick=(e)=>{ - let type=e.paneName - getItem.value='' - selectmodel.value='' - if(type=='zhandian'){ - GetSearchList(appStore.MapData) - }else if(type=='daolu'){ - GetSearchList(roadData.value) - +const tabsClick = e => { + let type = e.paneName; + getItem.value = ''; + selectmodel.value = ''; + if (type == 'zhandian') { + GetSearchList(appStore.MapData); + } else if (type == 'daolu') { + GetSearchList(roadData.value); } -} +}; onMounted(() => { bus.on('YQ_head', val => { console.log('appStore.MapData', appStore.MapData); @@ -197,20 +196,21 @@ diff --git a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue new file mode 100644 index 0000000..662d24f --- /dev/null +++ b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue index e421b34..3611592 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue @@ -128,6 +128,7 @@ // return value.toFixed(2); // 保留两位小数 // }, }, + max: Math.ceil(Math.max.apply(null, props.data.yAxis1_bar) * 1.2), nameTextStyle: { color: "#AAC1CF", }, @@ -181,11 +182,12 @@ name: props.data.y2_Unit, type: "value", min: 0, + minInterval: 1, axisLabel: { color: "#AAC1CF", show: true, // formatter: function (value) { - // return value.toFixed(2); // 保留两位小数 + // return value.toFixed(0); // 保留两位小数 // }, }, nameTextStyle: { @@ -197,7 +199,7 @@ color: "#2161a8", }, }, - // alignTicks: true, + alignTicks: true, position: "right", offset: 0, }); @@ -226,6 +228,17 @@ return value + unit; }, }, + + label: { + show: true, + position: "top", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value; + }, + }, }, { name: props.data.yAxis1_bar_Name, diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue index 727f6a8..b12fa14 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue @@ -70,7 +70,7 @@ }, legend: { textStyle: { - color: "#FFFFFF", // 这里设置为红色 + color: "#FFFFFF", }, }, grid: { @@ -87,7 +87,7 @@ align: "right", fontSize: 10, }, - max: Math.ceil(Math.max.apply(null, props.data.yAxis2) * 1.1), + max: Math.ceil(Math.max.apply(null, props.data.yAxis2) * 1.2), nameLocation: "start", type: "value", minInterval: 1, @@ -109,7 +109,7 @@ axisLabel: { color: "#EBFEFF", show: true, - fontSize: 12, + fontSize: props.data.xAxis.length > 8 ? 8 : 12, }, nameTextStyle: { color: "#FFFFFF", @@ -119,31 +119,48 @@ { name: props.data.yAxis2_Name, type: "bar", - barWidth: 10, + // barWidth: 10, // label: { // show: true, // }, data: props.data.yAxis2, barGap: "-100%", itemStyle: { - borderRadius: [20, 20, 20, 20], + borderRadius: [0, 20, 20, 0], color: "#31FEDF", }, + label: { + show: true, + position: "right", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value + props.data.y1_Unit; + }, + }, }, { name: props.data.yAxis_Name, type: "bar", - barWidth: 10, + // barWidth: 10, // label: { // show: true, // }, data: props.data.yAxis, itemStyle: { borderRadius: [20, 20, 20, 20], - color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [ - { offset: 0, color: "#FF6464" }, - { offset: 1, color: "#FF9A9A" }, - ]), + color: "#FF6464", + }, + label: { + show: false, + position: "right", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value + props.data.y1_Unit; + }, }, }, ], diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue index 263ec56..1542859 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue @@ -152,9 +152,6 @@ color: "aqua", // 数据点颜色 }, }, - - - { name: props.data.yAxis3_line_Name, type: "line", diff --git a/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/index.vue b/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/index.vue index 29fd07b..9b72658 100644 --- a/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/index.vue +++ b/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/index.vue @@ -8,6 +8,7 @@ :XAxis="chartInfo2.XAxis" :YAxis="chartInfo2.YAxis" :typeName="chartInfo2.typeName" + :zoomData="chartInfo2.zoomData" >
调蓄池({{ tiaoxuchiCount }})
@@ -55,6 +56,7 @@ // YAxis: [50, 145, 34, 170, 144, 220], XAxis: [], YAxis: [], + zoomData: [0, 100], typeName: '装机功率(kw)', loading: true, }); diff --git a/src/views/pictureOnMap/inputSearch.vue b/src/views/pictureOnMap/inputSearch.vue index ee0ad81..d732a0b 100644 --- a/src/views/pictureOnMap/inputSearch.vue +++ b/src/views/pictureOnMap/inputSearch.vue @@ -3,7 +3,7 @@ - - - - + + + + appStore.MapData, (newValue, oldValue) => { @@ -168,17 +168,16 @@ // bus.emit('removeMapDatas',['temporary']); }, 500); -const tabsClick=(e)=>{ - let type=e.paneName - getItem.value='' - selectmodel.value='' - if(type=='zhandian'){ - GetSearchList(appStore.MapData) - }else if(type=='daolu'){ - GetSearchList(roadData.value) - +const tabsClick = e => { + let type = e.paneName; + getItem.value = ''; + selectmodel.value = ''; + if (type == 'zhandian') { + GetSearchList(appStore.MapData); + } else if (type == 'daolu') { + GetSearchList(roadData.value); } -} +}; onMounted(() => { bus.on('YQ_head', val => { console.log('appStore.MapData', appStore.MapData); @@ -197,20 +196,21 @@ diff --git a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue new file mode 100644 index 0000000..662d24f --- /dev/null +++ b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue index e421b34..3611592 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue @@ -128,6 +128,7 @@ // return value.toFixed(2); // 保留两位小数 // }, }, + max: Math.ceil(Math.max.apply(null, props.data.yAxis1_bar) * 1.2), nameTextStyle: { color: "#AAC1CF", }, @@ -181,11 +182,12 @@ name: props.data.y2_Unit, type: "value", min: 0, + minInterval: 1, axisLabel: { color: "#AAC1CF", show: true, // formatter: function (value) { - // return value.toFixed(2); // 保留两位小数 + // return value.toFixed(0); // 保留两位小数 // }, }, nameTextStyle: { @@ -197,7 +199,7 @@ color: "#2161a8", }, }, - // alignTicks: true, + alignTicks: true, position: "right", offset: 0, }); @@ -226,6 +228,17 @@ return value + unit; }, }, + + label: { + show: true, + position: "top", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value; + }, + }, }, { name: props.data.yAxis1_bar_Name, diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue index 727f6a8..b12fa14 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue @@ -70,7 +70,7 @@ }, legend: { textStyle: { - color: "#FFFFFF", // 这里设置为红色 + color: "#FFFFFF", }, }, grid: { @@ -87,7 +87,7 @@ align: "right", fontSize: 10, }, - max: Math.ceil(Math.max.apply(null, props.data.yAxis2) * 1.1), + max: Math.ceil(Math.max.apply(null, props.data.yAxis2) * 1.2), nameLocation: "start", type: "value", minInterval: 1, @@ -109,7 +109,7 @@ axisLabel: { color: "#EBFEFF", show: true, - fontSize: 12, + fontSize: props.data.xAxis.length > 8 ? 8 : 12, }, nameTextStyle: { color: "#FFFFFF", @@ -119,31 +119,48 @@ { name: props.data.yAxis2_Name, type: "bar", - barWidth: 10, + // barWidth: 10, // label: { // show: true, // }, data: props.data.yAxis2, barGap: "-100%", itemStyle: { - borderRadius: [20, 20, 20, 20], + borderRadius: [0, 20, 20, 0], color: "#31FEDF", }, + label: { + show: true, + position: "right", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value + props.data.y1_Unit; + }, + }, }, { name: props.data.yAxis_Name, type: "bar", - barWidth: 10, + // barWidth: 10, // label: { // show: true, // }, data: props.data.yAxis, itemStyle: { borderRadius: [20, 20, 20, 20], - color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [ - { offset: 0, color: "#FF6464" }, - { offset: 1, color: "#FF9A9A" }, - ]), + color: "#FF6464", + }, + label: { + show: false, + position: "right", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value + props.data.y1_Unit; + }, }, }, ], diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue index 263ec56..1542859 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue @@ -152,9 +152,6 @@ color: "aqua", // 数据点颜色 }, }, - - - { name: props.data.yAxis3_line_Name, type: "line", diff --git a/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/index.vue b/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/index.vue index 29fd07b..9b72658 100644 --- a/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/index.vue +++ b/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/index.vue @@ -8,6 +8,7 @@ :XAxis="chartInfo2.XAxis" :YAxis="chartInfo2.YAxis" :typeName="chartInfo2.typeName" + :zoomData="chartInfo2.zoomData" >
调蓄池({{ tiaoxuchiCount }})
@@ -55,6 +56,7 @@ // YAxis: [50, 145, 34, 170, 144, 220], XAxis: [], YAxis: [], + zoomData: [0, 100], typeName: '装机功率(kw)', loading: true, }); diff --git a/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/yushuibengzhanEcharts.vue b/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/yushuibengzhanEcharts.vue index 0ae672f..02fb7e6 100644 --- a/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/yushuibengzhanEcharts.vue +++ b/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/yushuibengzhanEcharts.vue @@ -29,6 +29,10 @@ type: [String, Number], default: '', }, + zoomData: { + type: Array, + default: () => [0, 100], + }, }); watch( @@ -127,6 +131,18 @@ padding: [-8, 0, 0, -100], // 四个数字分别为上右下左与原位置距离 }, }, + + dataZoom: [ + { + type: 'inside', // 支持内部鼠标滚动平移 + start: props.zoomData[0], + end: props.zoomData[1], + yAxisIndex: 0, + zoomOnMouseWheel: true, // 关闭滚轮缩放 + moveOnMouseWheel: true, // 开启滚轮平移 + moveOnMouseMove: false, // 鼠标移动能触发数据窗口平移 + }, + ], series: [ { data: props.YAxis, diff --git a/src/views/pictureOnMap/inputSearch.vue b/src/views/pictureOnMap/inputSearch.vue index ee0ad81..d732a0b 100644 --- a/src/views/pictureOnMap/inputSearch.vue +++ b/src/views/pictureOnMap/inputSearch.vue @@ -3,7 +3,7 @@ - - - - + + + + appStore.MapData, (newValue, oldValue) => { @@ -168,17 +168,16 @@ // bus.emit('removeMapDatas',['temporary']); }, 500); -const tabsClick=(e)=>{ - let type=e.paneName - getItem.value='' - selectmodel.value='' - if(type=='zhandian'){ - GetSearchList(appStore.MapData) - }else if(type=='daolu'){ - GetSearchList(roadData.value) - +const tabsClick = e => { + let type = e.paneName; + getItem.value = ''; + selectmodel.value = ''; + if (type == 'zhandian') { + GetSearchList(appStore.MapData); + } else if (type == 'daolu') { + GetSearchList(roadData.value); } -} +}; onMounted(() => { bus.on('YQ_head', val => { console.log('appStore.MapData', appStore.MapData); @@ -197,20 +196,21 @@ diff --git a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue new file mode 100644 index 0000000..662d24f --- /dev/null +++ b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue index e421b34..3611592 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarCharts2Y.vue @@ -128,6 +128,7 @@ // return value.toFixed(2); // 保留两位小数 // }, }, + max: Math.ceil(Math.max.apply(null, props.data.yAxis1_bar) * 1.2), nameTextStyle: { color: "#AAC1CF", }, @@ -181,11 +182,12 @@ name: props.data.y2_Unit, type: "value", min: 0, + minInterval: 1, axisLabel: { color: "#AAC1CF", show: true, // formatter: function (value) { - // return value.toFixed(2); // 保留两位小数 + // return value.toFixed(0); // 保留两位小数 // }, }, nameTextStyle: { @@ -197,7 +199,7 @@ color: "#2161a8", }, }, - // alignTicks: true, + alignTicks: true, position: "right", offset: 0, }); @@ -226,6 +228,17 @@ return value + unit; }, }, + + label: { + show: true, + position: "top", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value; + }, + }, }, { name: props.data.yAxis1_bar_Name, diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue index 727f6a8..b12fa14 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraBarChartsLeft.vue @@ -70,7 +70,7 @@ }, legend: { textStyle: { - color: "#FFFFFF", // 这里设置为红色 + color: "#FFFFFF", }, }, grid: { @@ -87,7 +87,7 @@ align: "right", fontSize: 10, }, - max: Math.ceil(Math.max.apply(null, props.data.yAxis2) * 1.1), + max: Math.ceil(Math.max.apply(null, props.data.yAxis2) * 1.2), nameLocation: "start", type: "value", minInterval: 1, @@ -109,7 +109,7 @@ axisLabel: { color: "#EBFEFF", show: true, - fontSize: 12, + fontSize: props.data.xAxis.length > 8 ? 8 : 12, }, nameTextStyle: { color: "#FFFFFF", @@ -119,31 +119,48 @@ { name: props.data.yAxis2_Name, type: "bar", - barWidth: 10, + // barWidth: 10, // label: { // show: true, // }, data: props.data.yAxis2, barGap: "-100%", itemStyle: { - borderRadius: [20, 20, 20, 20], + borderRadius: [0, 20, 20, 0], color: "#31FEDF", }, + label: { + show: true, + position: "right", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value + props.data.y1_Unit; + }, + }, }, { name: props.data.yAxis_Name, type: "bar", - barWidth: 10, + // barWidth: 10, // label: { // show: true, // }, data: props.data.yAxis, itemStyle: { borderRadius: [20, 20, 20, 20], - color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [ - { offset: 0, color: "#FF6464" }, - { offset: 1, color: "#FF9A9A" }, - ]), + color: "#FF6464", + }, + label: { + show: false, + position: "right", + valueAnimation: true, + color: "inherit", + fontSize: 12, + formatter: (params) => { + return params.value + props.data.y1_Unit; + }, }, }, ], diff --git a/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue b/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue index 263ec56..1542859 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/components/DraLineChartsLeft.vue @@ -152,9 +152,6 @@ color: "aqua", // 数据点颜色 }, }, - - - { name: props.data.yAxis3_line_Name, type: "line", diff --git a/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/index.vue b/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/index.vue index 29fd07b..9b72658 100644 --- a/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/index.vue +++ b/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/index.vue @@ -8,6 +8,7 @@ :XAxis="chartInfo2.XAxis" :YAxis="chartInfo2.YAxis" :typeName="chartInfo2.typeName" + :zoomData="chartInfo2.zoomData" >
调蓄池({{ tiaoxuchiCount }})
@@ -55,6 +56,7 @@ // YAxis: [50, 145, 34, 170, 144, 220], XAxis: [], YAxis: [], + zoomData: [0, 100], typeName: '装机功率(kw)', loading: true, }); diff --git a/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/yushuibengzhanEcharts.vue b/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/yushuibengzhanEcharts.vue index 0ae672f..02fb7e6 100644 --- a/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/yushuibengzhanEcharts.vue +++ b/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/Rain/yushuibengzhanEcharts.vue @@ -29,6 +29,10 @@ type: [String, Number], default: '', }, + zoomData: { + type: Array, + default: () => [0, 100], + }, }); watch( @@ -127,6 +131,18 @@ padding: [-8, 0, 0, -100], // 四个数字分别为上右下左与原位置距离 }, }, + + dataZoom: [ + { + type: 'inside', // 支持内部鼠标滚动平移 + start: props.zoomData[0], + end: props.zoomData[1], + yAxisIndex: 0, + zoomOnMouseWheel: true, // 关闭滚轮缩放 + moveOnMouseWheel: true, // 开启滚轮平移 + moveOnMouseMove: false, // 鼠标移动能触发数据窗口平移 + }, + ], series: [ { data: props.YAxis, diff --git a/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/sewage/index.vue b/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/sewage/index.vue index e9968a4..49b81a5 100644 --- a/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/sewage/index.vue +++ b/src/views/pictureOnMap/page/WaterAssets/DrainageFacilitiesLeft/sewage/index.vue @@ -51,6 +51,7 @@ :XAxis="chartInfo2.XAxis" :YAxis="chartInfo2.YAxis" :typeName="chartInfo2.typeName" + :zoomData="chartInfo2.zoomData" > @@ -141,6 +142,7 @@ // YAxis: [50, 145, 34, 170, 144, 220], XAxis: [], YAxis: [], + zoomData: [20, 30], typeName: '数量(个)', loading: true, });