| | |
| | | var wnsUrl = 'http://192.168.20.39:9055/gisserver/wnsserver/beijingdaohang_wns'; |
| | | //gisserver |
| | | var gisServerUrl = 'http://192.168.20.39:9055/gisserver'; |
| | | //geoServerUrl |
| | | var geoserver = 'http://192.168.20.39:8088'; |
| | | var geoServerURl = geoserver + '/geoserver/LF/wms'; |
| | | var geoserverWFS = |
| | | geoserver + |
| | | '/geoserver/LF/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=LF%3Abs_project&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=projname='; |
| | | var geoserverWFSLine = |
| | | geoserver + |
| | | '/geoserver/LF/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=LF%3Am_pipeline&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=projname='; |
| | | //模åå è½½å°å |
| | | var modelUrl = 'http://183.162.245.49:8099/pcdata/JC_MAX_MX/SN/tileset.json'; |
| | | //综åå±ç¤º |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "ç®å½åå¸", |
| | | text: 'ç®å½åå¸', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | type: 'shadow', |
| | | }, |
| | | }, |
| | | // legend: {}, |
| | | grid: { |
| | | left: "0%", |
| | | right: "4%", |
| | | bottom: "0%", |
| | | left: '0%', |
| | | right: '4%', |
| | | bottom: '0%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "value", |
| | | type: 'value', |
| | | boundaryGap: [0, 0.01], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | type: "category", |
| | | data: ["A1", "A2", "A3", "A4", "A5", "A6", "A7"], |
| | | type: 'category', |
| | | data: ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7'], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | formatter: function (params) { |
| | | var newParamsName = ""; // æç»æ¼æ¥æçå符串 |
| | | var newParamsName = ''; // æç»æ¼æ¥æçå符串 |
| | | var paramsNameNumber = params.length; // å®é
æ ç¾çä¸ªæ° |
| | | var provideNumber = 4; // æ¯è¡è½æ¾ç¤ºçåçä¸ªæ° |
| | | var rowNumber = Math.ceil(paramsNameNumber / provideNumber); // æ¢è¡çè¯ï¼éè¦æ¾ç¤ºå è¡ï¼åä¸åæ´ |
| | |
| | | if (paramsNameNumber > provideNumber) { |
| | | /** å¾ªç¯æ¯ä¸è¡,pè¡¨ç¤ºè¡ */ |
| | | for (var p = 0; p < rowNumber; p++) { |
| | | var tempStr = ""; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var tempStr = ''; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var start = p * provideNumber; // å¼å§æªåçä½ç½® |
| | | var end = start + provideNumber; // ç»ææªåçä½ç½® |
| | | // æ¤å¤ç¹æ®å¤çæåä¸è¡çç´¢å¼å¼ |
| | |
| | | tempStr = params.substring(start, paramsNameNumber); |
| | | } else { |
| | | // æ¯ä¸æ¬¡æ¼æ¥å符串并æ¢è¡ |
| | | tempStr = params.substring(start, end) + "\n"; |
| | | tempStr = params.substring(start, end) + '\n'; |
| | | } |
| | | newParamsName += tempStr; // æç»æ¼æçå符串 |
| | | } |
| | |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "ç®å½åå¸", |
| | | type: "bar", |
| | | name: 'ç®å½åå¸', |
| | | type: 'bar', |
| | | barWidth: 20, |
| | | data: [120, 150, 110, 50, 70, 20, 70], |
| | | showBackground: true, |
| | |
| | | |
| | | color: (params) => { |
| | | var colorList = [ |
| | | ["#188df0", "#83bff6"], |
| | | ["#188df0", "#83bff6"], |
| | | ["#188df0", "#83bff6"], |
| | | ["#188df0", "#83bff6"], |
| | | ["#188df0", "#83bff6"], |
| | | ["#188df0", "#83bff6"], |
| | | ["#188df0", "#83bff6"], |
| | | ['#188df0', '#83bff6'], |
| | | ['#188df0', '#83bff6'], |
| | | ['#188df0', '#83bff6'], |
| | | ['#188df0', '#83bff6'], |
| | | ['#188df0', '#83bff6'], |
| | | ['#188df0', '#83bff6'], |
| | | ['#188df0', '#83bff6'], |
| | | ]; |
| | | var colorItem = colorList[params.dataIndex]; |
| | | return new this.$echarts.graphic.LinearGradient( |
| | |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart6")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart6')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | export default { |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | gaugeChart1() { |
| | | var legendData = ["æäº¤æ°æ®é", "æä¾éææå¡é"]; //å¾ä¾ |
| | | var legendData = ['æäº¤æ°æ®é', 'æä¾éææå¡é']; //å¾ä¾ |
| | | |
| | | var indicator = [ |
| | | { name: "管é设计é¨", max: 12288 }, |
| | | { name: "ç«åºè®¾è®¡é¨", max: 12288 }, |
| | | { name: "æ»å¾å®¤", max: 12288 }, |
| | | { name: "åå¯å®¤", max: 12288 }, |
| | | { name: "åé²å®¤", max: 12288 }, |
| | | { name: "æµéé¨", max: 12288 }, |
| | | { name: "项ç®é¨", max: 12288 }, |
| | | { name: '管é设计é¨', max: 12288 }, |
| | | { name: 'ç«åºè®¾è®¡é¨', max: 12288 }, |
| | | { name: 'æ»å¾å®¤', max: 12288 }, |
| | | { name: 'åå¯å®¤', max: 12288 }, |
| | | { name: 'åé²å®¤', max: 12288 }, |
| | | { name: 'æµéé¨', max: 12288 }, |
| | | { name: '项ç®é¨', max: 12288 }, |
| | | ]; |
| | | var dataArr = [ |
| | | { |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | lineStyle: { |
| | | color: "#4A99FF", |
| | | color: '#4A99FF', |
| | | // shadowColor: '#4A99FF', |
| | | // shadowBlur: 10, |
| | | }, |
| | | shadowColor: "#4A99FF", |
| | | shadowColor: '#4A99FF', |
| | | shadowBlur: 10, |
| | | }, |
| | | }, |
| | |
| | | normal: { |
| | | // å项åºåå¡«å
æ ·å¼ |
| | | color: { |
| | | type: "linear", |
| | | type: 'linear', |
| | | x: 0, //å³ |
| | | y: 0, //ä¸ |
| | | x2: 1, //å·¦ |
| | |
| | | colorStops: [ |
| | | { |
| | | offset: 0, |
| | | color: "#BB857A", |
| | | color: '#BB857A', |
| | | }, |
| | | { |
| | | offset: 0.5, |
| | | color: "rgba(0,0,0,0)", |
| | | color: 'rgba(0,0,0,0)', |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: "#BB857A", |
| | | color: '#BB857A', |
| | | }, |
| | | ], |
| | | globalCoord: false, |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | lineStyle: { |
| | | color: "#03CCDB", |
| | | color: '#03CCDB', |
| | | // shadowColor: '#03CCDB', |
| | | // shadowBlur: 10, |
| | | }, |
| | | shadowColor: "#03CCDB", |
| | | shadowColor: '#03CCDB', |
| | | shadowBlur: 10, |
| | | }, |
| | | }, |
| | |
| | | normal: { |
| | | // å项åºåå¡«å
æ ·å¼ |
| | | color: { |
| | | type: "linear", |
| | | type: 'linear', |
| | | x: 0, //å³ |
| | | y: 0, //ä¸ |
| | | x2: 1, //å·¦ |
| | |
| | | colorStops: [ |
| | | { |
| | | offset: 0, |
| | | color: "#03CCDB", |
| | | color: '#03CCDB', |
| | | }, |
| | | { |
| | | offset: 0.5, |
| | | color: "rgba(0,0,0,0)", |
| | | color: 'rgba(0,0,0,0)', |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: "#03CCDB", |
| | | color: '#03CCDB', |
| | | }, |
| | | ], |
| | | globalCoord: false, |
| | |
| | | }, |
| | | }, |
| | | ]; |
| | | var colorArr = ["#BB857A", "#03CCDB"]; //é¢è² |
| | | var colorArr = ['#BB857A', '#03CCDB']; //é¢è² |
| | | let option = { |
| | | title: { |
| | | // show: false, |
| | | text: "æ°æ®åæå¡æäº¤", |
| | | text: 'æ°æ®åæå¡æäº¤', |
| | | // x: "4%", |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | // fontSize: "22", |
| | | }, |
| | | // subtextStyle: { |
| | |
| | | |
| | | color: colorArr, |
| | | legend: { |
| | | orient: "vertical", |
| | | icon: "circle", //å¾ä¾å½¢ç¶ |
| | | orient: 'vertical', |
| | | icon: 'circle', //å¾ä¾å½¢ç¶ |
| | | data: legendData, |
| | | top: 0, |
| | | right: 0, |
| | |
| | | itemGap: 21, // å¾ä¾æ¯é¡¹ä¹é´çé´éã[ default: 10 ]横åå¸å±æ¶ä¸ºæ°´å¹³é´éï¼çºµåå¸å±æ¶ä¸ºçºµåé´éã |
| | | textStyle: { |
| | | fontSize: 12, |
| | | color: "#03CCDB", |
| | | color: '#03CCDB', |
| | | }, |
| | | }, |
| | | radar: { |
| | | // shape: 'circle', |
| | | name: { |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | fontSize: 12, |
| | | }, |
| | | }, |
| | |
| | | show: true, |
| | | areaStyle: { |
| | | // åéåºåçæ ·å¼è®¾ç½®ã |
| | | color: ["rgba(255,255,255,0)", "rgba(255,255,255,0)"], // åéåºåé¢è²ãåéåºå伿æ°ç»ä¸é¢è²ç顺åºä¾æ¬¡å¾ªç¯è®¾ç½®é¢è²ãé»è®¤æ¯ä¸ä¸ªæ·±æµ
çé´éè²ã |
| | | color: ['rgba(255,255,255,0)', 'rgba(255,255,255,0)'], // åéåºåé¢è²ãåéåºå伿æ°ç»ä¸é¢è²ç顺åºä¾æ¬¡å¾ªç¯è®¾ç½®é¢è²ãé»è®¤æ¯ä¸ä¸ªæ·±æµ
çé´éè²ã |
| | | }, |
| | | }, |
| | | axisLine: { |
| | | //æåå¤åææ¬çåéçº¿æ ·å¼ |
| | | lineStyle: { |
| | | color: "#153269", |
| | | color: '#153269', |
| | | }, |
| | | }, |
| | | splitLine: { |
| | | lineStyle: { |
| | | color: "#113865", // åé线é¢è² |
| | | color: '#113865', // åé线é¢è² |
| | | width: 1, // åé线线宽 |
| | | }, |
| | | }, |
| | | }, |
| | | series: [ |
| | | { |
| | | type: "radar", |
| | | type: 'radar', |
| | | symbolSize: 4, |
| | | // symbol: 'angle', |
| | | data: dataArr, |
| | |
| | | ], |
| | | }; |
| | | |
| | | let myChart = this.$echarts.init(document.getElementById("gauge_chart1")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init( |
| | | document.getElementById('gauge_chart1') |
| | | ); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.gaugeChart1(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let dataAxis = [ |
| | | "å坿°æ®", |
| | | "岩忰æ®", |
| | | "æµéæ°æ®", |
| | | "åè§æ°æ®", |
| | | "ç®¡çæ°æ®", |
| | | 'å坿°æ®', |
| | | '岩忰æ®', |
| | | 'æµéæ°æ®', |
| | | 'åè§æ°æ®', |
| | | 'ç®¡çæ°æ®', |
| | | ]; |
| | | // prettier-ignore |
| | | let data = [122880, |
| | |
| | | } |
| | | let option = { |
| | | title: { |
| | | text: "åç±»æ°æ®åå¨åå¸", |
| | | text: 'åç±»æ°æ®åå¨åå¸', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | type: 'shadow', |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "0%", |
| | | right: "0%", |
| | | bottom: "0%", |
| | | left: '0%', |
| | | right: '0%', |
| | | bottom: '0%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "category", |
| | | type: 'category', |
| | | data: dataAxis, |
| | | axisLabel: { |
| | | show: true, |
| | | |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | formatter: function (params) { |
| | | var newParamsName = ""; // æç»æ¼æ¥æçå符串 |
| | | var newParamsName = ''; // æç»æ¼æ¥æçå符串 |
| | | var paramsNameNumber = params.length; // å®é
æ ç¾çä¸ªæ° |
| | | var provideNumber = 4; // æ¯è¡è½æ¾ç¤ºçåçä¸ªæ° |
| | | var rowNumber = Math.ceil(paramsNameNumber / provideNumber); // æ¢è¡çè¯ï¼éè¦æ¾ç¤ºå è¡ï¼åä¸åæ´ |
| | |
| | | if (paramsNameNumber > provideNumber) { |
| | | /** å¾ªç¯æ¯ä¸è¡,pè¡¨ç¤ºè¡ */ |
| | | for (var p = 0; p < rowNumber; p++) { |
| | | var tempStr = ""; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var tempStr = ''; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var start = p * provideNumber; // å¼å§æªåçä½ç½® |
| | | var end = start + provideNumber; // ç»ææªåçä½ç½® |
| | | // æ¤å¤ç¹æ®å¤çæåä¸è¡çç´¢å¼å¼ |
| | |
| | | tempStr = params.substring(start, paramsNameNumber); |
| | | } else { |
| | | // æ¯ä¸æ¬¡æ¼æ¥å符串并æ¢è¡ |
| | | tempStr = params.substring(start, end) + "\n"; |
| | | tempStr = params.substring(start, end) + '\n'; |
| | | } |
| | | newParamsName += tempStr; // æç»æ¼æçå符串 |
| | | } |
| | |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | dataZoom: [ |
| | | { |
| | | type: "inside", |
| | | type: 'inside', |
| | | }, |
| | | ], |
| | | series: [ |
| | | { |
| | | type: "bar", |
| | | type: 'bar', |
| | | showBackground: true, |
| | | itemStyle: { |
| | | color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#45CF98" }, |
| | | { offset: 0.5, color: "#0CC2C7" }, |
| | | { offset: 1, color: "#0EBFC1" }, |
| | | { offset: 0, color: '#45CF98' }, |
| | | { offset: 0.5, color: '#0CC2C7' }, |
| | | { offset: 1, color: '#0EBFC1' }, |
| | | ]), |
| | | barBorderRadius: [95, 95, 95, 95], |
| | | }, |
| | | emphasis: { |
| | | itemStyle: { |
| | | color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#45CF98" }, |
| | | { offset: 0.7, color: "#0CC2C7" }, |
| | | { offset: 1, color: "#0EBFC1" }, |
| | | { offset: 0, color: '#45CF98' }, |
| | | { offset: 0.7, color: '#0CC2C7' }, |
| | | { offset: 1, color: '#0EBFC1' }, |
| | | ]), |
| | | }, |
| | | }, |
| | |
| | | ], |
| | | }; |
| | | const zoomSize = 6; |
| | | let myChart = this.$echarts.init(document.getElementById("echart2")); |
| | | myChart.on("click", function (params) { |
| | | this.myChart = this.$echarts.init(document.getElementById('echart2')); |
| | | this.myChart.on('click', function (params) { |
| | | console.log(dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)]); |
| | | myChart.dispatchAction({ |
| | | type: "dataZoom", |
| | | this.myChart.dispatchAction({ |
| | | type: 'dataZoom', |
| | | startValue: dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)], |
| | | endValue: |
| | | dataAxis[ |
| | |
| | | }); |
| | | }); |
| | | |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "æ°æ®æ´æ°éä¸å叿»é", |
| | | text: 'æ°æ®æ´æ°éä¸å叿»é', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "cross", |
| | | type: 'cross', |
| | | label: { |
| | | backgroundColor: "#FFFFFF", |
| | | backgroundColor: '#FFFFFF', |
| | | }, |
| | | }, |
| | | }, |
| | | legend: { |
| | | data: ["å¢é", "æ»é", "Video Ads", "Direct", "Search Engine"], |
| | | data: ['å¢é', 'æ»é', 'Video Ads', 'Direct', 'Search Engine'], |
| | | }, |
| | | toolbox: { |
| | | feature: { |
| | |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "3%", |
| | | right: "4%", |
| | | bottom: "3%", |
| | | left: '3%', |
| | | right: '4%', |
| | | bottom: '3%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: [ |
| | | { |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | type: "category", |
| | | type: 'category', |
| | | boundaryGap: false, |
| | | data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], |
| | | }, |
| | |
| | | { |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | type: "value", |
| | | type: 'value', |
| | | boundaryGap: false, |
| | | }, |
| | | ], |
| | | series: [ |
| | | { |
| | | name: "å¢é", |
| | | type: "line", |
| | | stack: "Total", |
| | | name: 'å¢é', |
| | | type: 'line', |
| | | stack: 'Total', |
| | | areaStyle: { |
| | | color: "#8F595A", |
| | | color: '#8F595A', |
| | | opacity: 0.5, |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | focus: 'series', |
| | | }, |
| | | data: [200, 300, 100, 500, 2000, 500, 200, 400, 100, 100, 80, 300], |
| | | }, |
| | | |
| | | { |
| | | name: "æ»é", |
| | | type: "line", |
| | | stack: "Total", |
| | | name: 'æ»é', |
| | | type: 'line', |
| | | stack: 'Total', |
| | | label: { |
| | | show: true, |
| | | position: "top", |
| | | position: 'top', |
| | | }, |
| | | areaStyle: { |
| | | color: "#02929E", |
| | | color: '#02929E', |
| | | opacity: 0.5, |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | focus: 'series', |
| | | }, |
| | | data: [ |
| | | 2048, 2051, 2052, 2057, 2077, 2082, 2084, 2088, 2089, 2090, 2090, |
| | |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart1")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart1')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "åç±»æ°æ®å æ¯", |
| | | text: 'åç±»æ°æ®å æ¯', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | // Use axis to trigger tooltip |
| | | type: "shadow", // 'shadow' as default; can also be 'line' or 'shadow' |
| | | type: 'shadow', // 'shadow' as default; can also be 'line' or 'shadow' |
| | | }, |
| | | }, |
| | | legend: { |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "3%", |
| | | right: "4%", |
| | | bottom: "3%", |
| | | left: '3%', |
| | | right: '4%', |
| | | bottom: '3%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "value", |
| | | type: 'value', |
| | | axisLabel: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | axisLabel: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | type: "category", |
| | | data: ["å坿°æ®", "岩忰æ®", "æµéæ°æ®", "åè§æ°æ®", "ç®¡çæ°æ®"], |
| | | type: 'category', |
| | | data: ['å坿°æ®', '岩忰æ®', 'æµéæ°æ®', 'åè§æ°æ®', 'ç®¡çæ°æ®'], |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "åå²é", |
| | | type: "bar", |
| | | stack: "total", |
| | | name: 'åå²é', |
| | | type: 'bar', |
| | | stack: 'total', |
| | | label: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | focus: 'series', |
| | | }, |
| | | data: [122880, 40960, 153600, 5120, 28672], |
| | | }, |
| | | |
| | | { |
| | | name: "æ»é", |
| | | type: "bar", |
| | | stack: "total", |
| | | name: 'æ»é', |
| | | type: 'bar', |
| | | stack: 'total', |
| | | label: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | focus: 'series', |
| | | }, |
| | | data: [351232, 351232, 351232, 351232, 351232], |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart5")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart5')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "æ°æ®æ»éè¶å¿", |
| | | text: 'æ°æ®æ»éè¶å¿', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "cross", |
| | | type: 'cross', |
| | | label: { |
| | | backgroundColor: "#FFFFFF", |
| | | backgroundColor: '#FFFFFF', |
| | | }, |
| | | }, |
| | | }, |
| | | legend: { |
| | | data: ["å¢é", "æ»é"], |
| | | data: ['å¢é', 'æ»é'], |
| | | }, |
| | | toolbox: { |
| | | feature: { |
| | |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "3%", |
| | | right: "4%", |
| | | bottom: "3%", |
| | | left: '3%', |
| | | right: '4%', |
| | | bottom: '3%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: [ |
| | | { |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | type: "category", |
| | | type: 'category', |
| | | boundaryGap: false, |
| | | data: [2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022], |
| | | }, |
| | |
| | | { |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | type: "value", |
| | | type: 'value', |
| | | boundaryGap: false, |
| | | }, |
| | | ], |
| | | series: [ |
| | | { |
| | | name: "å¢é", |
| | | type: "line", |
| | | stack: "Total", |
| | | name: 'å¢é', |
| | | type: 'line', |
| | | stack: 'Total', |
| | | areaStyle: { |
| | | color: "#83bff6", |
| | | color: '#83bff6', |
| | | opacity: 0.5, |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | focus: 'series', |
| | | }, |
| | | data: [5120, 3072, 2048, 7168, 3072, 4096, 2048, 3072, 500], |
| | | }, |
| | | |
| | | { |
| | | name: "æ»é", |
| | | type: "line", |
| | | stack: "Total", |
| | | name: 'æ»é', |
| | | type: 'line', |
| | | stack: 'Total', |
| | | label: { |
| | | show: true, |
| | | position: "top", |
| | | position: 'top', |
| | | }, |
| | | areaStyle: { |
| | | color: "#188df0", |
| | | color: '#188df0', |
| | | opacity: 0.5, |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | focus: 'series', |
| | | }, |
| | | data: [ |
| | | 27750, 28262, 28569, 28774, 29491, 29798, 30208, 30412, 30720, |
| | |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart4")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart4')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "æå¡è®¿é®é", |
| | | text: 'æå¡è®¿é®é', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | type: 'shadow', |
| | | }, |
| | | }, |
| | | // legend: {}, |
| | | grid: { |
| | | left: "0%", |
| | | right: "4%", |
| | | bottom: "0%", |
| | | left: '0%', |
| | | right: '4%', |
| | | bottom: '0%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "value", |
| | | type: 'value', |
| | | boundaryGap: [0, 0.01], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | type: "category", |
| | | type: 'category', |
| | | data: [ |
| | | "æ°æ®ç®¡ç", |
| | | "è¿ç»´ç®¡ç", |
| | | "综åå±ç¤º", |
| | | "æ°æ®è´¨æ£", |
| | | "æ°æ®äº¤æ¢", |
| | | "æå¡ç®¡ç", |
| | | 'æ°æ®ç®¡ç', |
| | | 'è¿ç»´ç®¡ç', |
| | | '综åå±ç¤º', |
| | | 'æ°æ®è´¨æ£', |
| | | 'æ°æ®äº¤æ¢', |
| | | 'æå¡ç®¡ç', |
| | | ], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | formatter: function (params) { |
| | | var newParamsName = ""; // æç»æ¼æ¥æçå符串 |
| | | var newParamsName = ''; // æç»æ¼æ¥æçå符串 |
| | | var paramsNameNumber = params.length; // å®é
æ ç¾çä¸ªæ° |
| | | var provideNumber = 4; // æ¯è¡è½æ¾ç¤ºçåçä¸ªæ° |
| | | var rowNumber = Math.ceil(paramsNameNumber / provideNumber); // æ¢è¡çè¯ï¼éè¦æ¾ç¤ºå è¡ï¼åä¸åæ´ |
| | |
| | | if (paramsNameNumber > provideNumber) { |
| | | /** å¾ªç¯æ¯ä¸è¡,pè¡¨ç¤ºè¡ */ |
| | | for (var p = 0; p < rowNumber; p++) { |
| | | var tempStr = ""; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var tempStr = ''; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var start = p * provideNumber; // å¼å§æªåçä½ç½® |
| | | var end = start + provideNumber; // ç»ææªåçä½ç½® |
| | | // æ¤å¤ç¹æ®å¤çæåä¸è¡çç´¢å¼å¼ |
| | |
| | | tempStr = params.substring(start, paramsNameNumber); |
| | | } else { |
| | | // æ¯ä¸æ¬¡æ¼æ¥å符串并æ¢è¡ |
| | | tempStr = params.substring(start, end) + "\n"; |
| | | tempStr = params.substring(start, end) + '\n'; |
| | | } |
| | | newParamsName += tempStr; // æç»æ¼æçå符串 |
| | | } |
| | |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "å项ç®å·²å®æå·¥æ", |
| | | type: "bar", |
| | | name: 'å项ç®å·²å®æå·¥æ', |
| | | type: 'bar', |
| | | barWidth: 20, |
| | | data: [12000, 500, 1500, 400, 300, 700], |
| | | showBackground: true, |
| | |
| | | barBorderRadius: [0, 90, 90, 0], |
| | | color: (params) => { |
| | | var colorList = [ |
| | | ["#5774ce", "#7ed3f4"], |
| | | ["#5774ce", "#7ed3f4"], |
| | | ["#5774ce", "#7ed3f4"], |
| | | ["#5774ce", "#7ed3f4"], |
| | | ["#5774ce", "#7ed3f4"], |
| | | ["#5774ce", "#7ed3f4"], |
| | | ['#5774ce', '#7ed3f4'], |
| | | ['#5774ce', '#7ed3f4'], |
| | | ['#5774ce', '#7ed3f4'], |
| | | ['#5774ce', '#7ed3f4'], |
| | | ['#5774ce', '#7ed3f4'], |
| | | ['#5774ce', '#7ed3f4'], |
| | | ]; |
| | | var colorItem = colorList[params.dataIndex]; |
| | | return new this.$echarts.graphic.LinearGradient( |
| | |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart21")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart21')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let dataAxis = [ |
| | | "å坿°æ®", |
| | | "岩忰æ®", |
| | | "æµéæ°æ®", |
| | | "åè§æ°æ®", |
| | | "ç®¡çæ°æ®", |
| | | 'å坿°æ®', |
| | | '岩忰æ®', |
| | | 'æµéæ°æ®', |
| | | 'åè§æ°æ®', |
| | | 'ç®¡çæ°æ®', |
| | | ]; |
| | | // prettier-ignore |
| | | let data = [1200,500,1000,200,200]; |
| | |
| | | } |
| | | let option = { |
| | | title: { |
| | | text: "æ°æ®ä¸è½½é", |
| | | text: 'æ°æ®ä¸è½½é', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | type: 'shadow', |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "0%", |
| | | right: "0%", |
| | | bottom: "0%", |
| | | left: '0%', |
| | | right: '0%', |
| | | bottom: '0%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "category", |
| | | type: 'category', |
| | | data: dataAxis, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | formatter: function (params) { |
| | | var newParamsName = ""; // æç»æ¼æ¥æçå符串 |
| | | var newParamsName = ''; // æç»æ¼æ¥æçå符串 |
| | | var paramsNameNumber = params.length; // å®é
æ ç¾çä¸ªæ° |
| | | var provideNumber = 6; // æ¯è¡è½æ¾ç¤ºçåçä¸ªæ° |
| | | var rowNumber = Math.ceil(paramsNameNumber / provideNumber); // æ¢è¡çè¯ï¼éè¦æ¾ç¤ºå è¡ï¼åä¸åæ´ |
| | |
| | | if (paramsNameNumber > provideNumber) { |
| | | /** å¾ªç¯æ¯ä¸è¡,pè¡¨ç¤ºè¡ */ |
| | | for (var p = 0; p < rowNumber; p++) { |
| | | var tempStr = ""; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var tempStr = ''; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var start = p * provideNumber; // å¼å§æªåçä½ç½® |
| | | var end = start + provideNumber; // ç»ææªåçä½ç½® |
| | | // æ¤å¤ç¹æ®å¤çæåä¸è¡çç´¢å¼å¼ |
| | |
| | | tempStr = params.substring(start, paramsNameNumber); |
| | | } else { |
| | | // æ¯ä¸æ¬¡æ¼æ¥å符串并æ¢è¡ |
| | | tempStr = params.substring(start, end) + "\n"; |
| | | tempStr = params.substring(start, end) + '\n'; |
| | | } |
| | | newParamsName += tempStr; // æç»æ¼æçå符串 |
| | | } |
| | |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | dataZoom: [ |
| | | { |
| | | type: "inside", |
| | | type: 'inside', |
| | | }, |
| | | ], |
| | | series: [ |
| | | { |
| | | type: "bar", |
| | | type: 'bar', |
| | | showBackground: true, |
| | | itemStyle: { |
| | | color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#40FBCB" }, |
| | | { offset: 1, color: "#20B2AA" }, |
| | | { offset: 0, color: '#40FBCB' }, |
| | | { offset: 1, color: '#20B2AA' }, |
| | | ]), |
| | | }, |
| | | emphasis: { |
| | | itemStyle: { |
| | | color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#2378f7" }, |
| | | { offset: 0.7, color: "#2378f7" }, |
| | | { offset: 1, color: "##7ed3f4" }, |
| | | { offset: 0, color: '#2378f7' }, |
| | | { offset: 0.7, color: '#2378f7' }, |
| | | { offset: 1, color: '##7ed3f4' }, |
| | | ]), |
| | | }, |
| | | }, |
| | |
| | | ], |
| | | }; |
| | | const zoomSize = 6; |
| | | let myChart = this.$echarts.init(document.getElementById("echart22")); |
| | | myChart.on("click", function (params) { |
| | | this.myChart = this.$echarts.init(document.getElementById('echart22')); |
| | | this.myChart.on('click', function (params) { |
| | | console.log(dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)]); |
| | | myChart.dispatchAction({ |
| | | type: "dataZoom", |
| | | this.myChart.dispatchAction({ |
| | | type: 'dataZoom', |
| | | startValue: dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)], |
| | | endValue: |
| | | dataAxis[ |
| | |
| | | }); |
| | | }); |
| | | |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | export default { |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | gaugeChart1() { |
| | | var legendData = ["æå¡è®¿é®é", "æ°æ®ä¸è½½é"]; //å¾ä¾ |
| | | var legendData = ['æå¡è®¿é®é', 'æ°æ®ä¸è½½é']; //å¾ä¾ |
| | | |
| | | var indicator = [ |
| | | { name: "管é设计é¨", max: 3000 }, |
| | | { name: "ç«åºè®¾è®¡é¨", max: 3000 }, |
| | | { name: "æ»å¾å®¤", max: 3000 }, |
| | | { name: "åå¯å®¤", max: 3000 }, |
| | | { name: "åé²å®¤", max: 3000 }, |
| | | { name: "æµé室", max: 3000 }, |
| | | { name: "项ç®é¨", max: 3000 }, |
| | | { name: '管é设计é¨', max: 3000 }, |
| | | { name: 'ç«åºè®¾è®¡é¨', max: 3000 }, |
| | | { name: 'æ»å¾å®¤', max: 3000 }, |
| | | { name: 'åå¯å®¤', max: 3000 }, |
| | | { name: 'åé²å®¤', max: 3000 }, |
| | | { name: 'æµé室', max: 3000 }, |
| | | { name: '项ç®é¨', max: 3000 }, |
| | | ]; |
| | | var dataArr = [ |
| | | { |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | lineStyle: { |
| | | color: "#4A99FF", |
| | | color: '#4A99FF', |
| | | // shadowColor: '#4A99FF', |
| | | // shadowBlur: 10, |
| | | }, |
| | | shadowColor: "#4A99FF", |
| | | shadowColor: '#4A99FF', |
| | | shadowBlur: 10, |
| | | }, |
| | | }, |
| | |
| | | normal: { |
| | | // å项åºåå¡«å
æ ·å¼ |
| | | color: { |
| | | type: "linear", |
| | | type: 'linear', |
| | | x: 0, //å³ |
| | | y: 0, //ä¸ |
| | | x2: 1, //å·¦ |
| | |
| | | colorStops: [ |
| | | { |
| | | offset: 0, |
| | | color: "#4A99FF", |
| | | color: '#4A99FF', |
| | | }, |
| | | { |
| | | offset: 0.5, |
| | | color: "rgba(0,0,0,0)", |
| | | color: 'rgba(0,0,0,0)', |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: "#4A99FF", |
| | | color: '#4A99FF', |
| | | }, |
| | | ], |
| | | globalCoord: false, |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | lineStyle: { |
| | | color: "#4BFFFC", |
| | | color: '#4BFFFC', |
| | | // shadowColor: '#4BFFFC', |
| | | // shadowBlur: 10, |
| | | }, |
| | | shadowColor: "#4BFFFC", |
| | | shadowColor: '#4BFFFC', |
| | | shadowBlur: 10, |
| | | }, |
| | | }, |
| | |
| | | normal: { |
| | | // å项åºåå¡«å
æ ·å¼ |
| | | color: { |
| | | type: "linear", |
| | | type: 'linear', |
| | | x: 0, //å³ |
| | | y: 0, //ä¸ |
| | | x2: 1, //å·¦ |
| | |
| | | colorStops: [ |
| | | { |
| | | offset: 0, |
| | | color: "#4BFFFC", |
| | | color: '#4BFFFC', |
| | | }, |
| | | { |
| | | offset: 0.5, |
| | | color: "rgba(0,0,0,0)", |
| | | color: 'rgba(0,0,0,0)', |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: "#4BFFFC", |
| | | color: '#4BFFFC', |
| | | }, |
| | | ], |
| | | globalCoord: false, |
| | |
| | | }, |
| | | }, |
| | | ]; |
| | | var colorArr = ["#4A99FF", "#4BFFFC"]; //é¢è² |
| | | var colorArr = ['#4A99FF', '#4BFFFC']; //é¢è² |
| | | let option = { |
| | | title: { |
| | | // show: false, |
| | | text: "é¨é¨ä½¿ç¨æ°æ®", |
| | | text: 'é¨é¨ä½¿ç¨æ°æ®', |
| | | // x: "4%", |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | // fontSize: "22", |
| | | }, |
| | | // subtextStyle: { |
| | |
| | | |
| | | color: colorArr, |
| | | legend: { |
| | | orient: "vertical", |
| | | icon: "circle", //å¾ä¾å½¢ç¶ |
| | | orient: 'vertical', |
| | | icon: 'circle', //å¾ä¾å½¢ç¶ |
| | | data: legendData, |
| | | top: 0, |
| | | right: 0, |
| | |
| | | itemGap: 21, // å¾ä¾æ¯é¡¹ä¹é´çé´éã[ default: 10 ]横åå¸å±æ¶ä¸ºæ°´å¹³é´éï¼çºµåå¸å±æ¶ä¸ºçºµåé´éã |
| | | textStyle: { |
| | | fontSize: 12, |
| | | color: "#00E4FF", |
| | | color: '#00E4FF', |
| | | }, |
| | | }, |
| | | radar: { |
| | | // shape: 'circle', |
| | | name: { |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | fontSize: 12, |
| | | }, |
| | | }, |
| | | radius: 90, |
| | | nameGap: 12, // å¾ä¸å·¥èºçåè·ç¦»å¾çè·ç¦» |
| | | splitNumber: 4, // ç½æ ¼çº¿çä¸ªæ° |
| | | center: ["50%", "60%"], // å¾çä½ç½® |
| | | center: ['50%', '60%'], // å¾çä½ç½® |
| | | |
| | | indicator: indicator, |
| | | splitArea: { |
| | |
| | | show: true, |
| | | areaStyle: { |
| | | // åéåºåçæ ·å¼è®¾ç½®ã |
| | | color: ["rgba(255,255,255,0)", "rgba(255,255,255,0)"], // åéåºåé¢è²ãåéåºå伿æ°ç»ä¸é¢è²ç顺åºä¾æ¬¡å¾ªç¯è®¾ç½®é¢è²ãé»è®¤æ¯ä¸ä¸ªæ·±æµ
çé´éè²ã |
| | | color: ['rgba(255,255,255,0)', 'rgba(255,255,255,0)'], // åéåºåé¢è²ãåéåºå伿æ°ç»ä¸é¢è²ç顺åºä¾æ¬¡å¾ªç¯è®¾ç½®é¢è²ãé»è®¤æ¯ä¸ä¸ªæ·±æµ
çé´éè²ã |
| | | }, |
| | | }, |
| | | axisLine: { |
| | | //æåå¤åææ¬çåéçº¿æ ·å¼ |
| | | lineStyle: { |
| | | color: "#153269", |
| | | color: '#153269', |
| | | }, |
| | | }, |
| | | splitLine: { |
| | | lineStyle: { |
| | | color: "#113865", // åé线é¢è² |
| | | color: '#113865', // åé线é¢è² |
| | | width: 1, // åé线线宽 |
| | | }, |
| | | }, |
| | | }, |
| | | series: [ |
| | | { |
| | | type: "radar", |
| | | type: 'radar', |
| | | symbolSize: 4, |
| | | // symbol: 'angle', |
| | | data: dataArr, |
| | |
| | | ], |
| | | }; |
| | | |
| | | let myChart = this.$echarts.init(document.getElementById("echart23")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart23')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.gaugeChart1(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "1-12ææ°æ®æ´æ°é", |
| | | text: '1-12ææ°æ®æ´æ°é', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "cross", |
| | | type: 'cross', |
| | | label: { |
| | | backgroundColor: "#FFFFFF", |
| | | backgroundColor: '#FFFFFF', |
| | | }, |
| | | }, |
| | | }, |
| | |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "3%", |
| | | right: "4%", |
| | | bottom: "3%", |
| | | left: '3%', |
| | | right: '4%', |
| | | bottom: '3%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: [ |
| | | { |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | type: "category", |
| | | type: 'category', |
| | | boundaryGap: false, |
| | | data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], |
| | | }, |
| | |
| | | { |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | type: "value", |
| | | type: 'value', |
| | | boundaryGap: false, |
| | | }, |
| | | ], |
| | | series: [ |
| | | { |
| | | name: "å¢é", |
| | | type: "line", |
| | | stack: "Total", |
| | | name: 'å¢é', |
| | | type: 'line', |
| | | stack: 'Total', |
| | | areaStyle: { |
| | | color: "#8F595A", |
| | | color: '#8F595A', |
| | | opacity: 0.5, |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | focus: 'series', |
| | | }, |
| | | data: [200, 300, 100, 500, 2000, 500, 200, 400, 100, 100, 80, 300], |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart24")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart24')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "ç¨æ·å¢éåæ»éå æ¯", |
| | | text: 'ç¨æ·å¢éåæ»éå æ¯', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "item", |
| | | formatter: "{a} <br/>{b} : {c} ({d}%)", |
| | | trigger: 'item', |
| | | formatter: '{a} <br/>{b} : {c} ({d}%)', |
| | | }, |
| | | graphic: [ |
| | | { |
| | | type: "text", |
| | | left: "center", |
| | | top: "40%", |
| | | type: 'text', |
| | | left: 'center', |
| | | top: '40%', |
| | | style: { |
| | | fill: "#fff", |
| | | text: "æ»ç¨æ·é", |
| | | fill: '#fff', |
| | | text: 'æ»ç¨æ·é', |
| | | }, |
| | | }, |
| | | { |
| | | type: "text", |
| | | left: "center", |
| | | top: "50%", |
| | | type: 'text', |
| | | left: 'center', |
| | | top: '50%', |
| | | z: 10, |
| | | style: { |
| | | fill: "#fff", |
| | | fill: '#fff', |
| | | |
| | | text: "400", |
| | | font: "30px Microsoft YaHei", |
| | | text: '400', |
| | | font: '30px Microsoft YaHei', |
| | | }, |
| | | }, |
| | | ], |
| | | grid: { |
| | | left: "3%", |
| | | right: "4%", |
| | | bottom: "3%", |
| | | left: '3%', |
| | | right: '4%', |
| | | bottom: '3%', |
| | | // containLabel: true, |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "ç¨æ·é", |
| | | type: "pie", |
| | | radius: ["40%", "70%"], |
| | | name: 'ç¨æ·é', |
| | | type: 'pie', |
| | | radius: ['40%', '70%'], |
| | | labelLine: { |
| | | normal: { |
| | | length: 15, // æç¤ºçº¿å®½åº¦ |
| | | lineStyle: { |
| | | color: "#fff", // æç¤ºçº¿é¢è² |
| | | color: '#fff', // æç¤ºçº¿é¢è² |
| | | }, |
| | | }, |
| | | }, |
| | |
| | | // åååºçæç¤ºå
容 |
| | | // params: å³ä¸é¢ä¼ å
¥çdataæ°ç»,éè¿èªå®ä¹å½æ°ï¼å±ç¤ºä½ æ³è¦çå
å®¹åæ ¼å¼ |
| | | formatter: function (params) { |
| | | return params.name + "\n\n" + params.percent + "%"; |
| | | return params.name + '\n\n' + params.percent + '%'; |
| | | }, |
| | | textStyle: { |
| | | // æç¤ºæåçæ ·å¼ |
| | | color: "#fff", |
| | | color: '#fff', |
| | | fontSize: 14, |
| | | }, |
| | | }, |
| | | }, |
| | | data: [ |
| | | { value: 280, name: "å¾å¹´ç¨æ·é" }, |
| | | { value: 120, name: "ä»å¹´æ°å¢ç¨æ·é" }, |
| | | { value: 280, name: 'å¾å¹´ç¨æ·é' }, |
| | | { value: 120, name: 'ä»å¹´æ°å¢ç¨æ·é' }, |
| | | ], |
| | | emphasis: { |
| | | itemStyle: { |
| | | shadowBlur: 10, |
| | | shadowOffsetX: 0, |
| | | shadowColor: "rgba(0, 0, 0, 0.5)", |
| | | shadowColor: 'rgba(0, 0, 0, 0.5)', |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart25")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart25')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let dataAxis = ["A2", "A3", "A4", "A5", "A6", "A7"]; |
| | | let dataAxis = ['A2', 'A3', 'A4', 'A5', 'A6', 'A7']; |
| | | // prettier-ignore |
| | | let data = [300,200,80,120,80,50]; |
| | | let yMax = 500; |
| | |
| | | } |
| | | let option = { |
| | | title: { |
| | | text: "åé¡¹ç®æ°æ®é", |
| | | text: 'åé¡¹ç®æ°æ®é', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | type: 'shadow', |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "0%", |
| | | right: "0%", |
| | | bottom: "0%", |
| | | left: '0%', |
| | | right: '0%', |
| | | bottom: '0%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "category", |
| | | type: 'category', |
| | | data: dataAxis, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | formatter: function (params) { |
| | | var newParamsName = ""; // æç»æ¼æ¥æçå符串 |
| | | var newParamsName = ''; // æç»æ¼æ¥æçå符串 |
| | | var paramsNameNumber = params.length; // å®é
æ ç¾çä¸ªæ° |
| | | var provideNumber = 6; // æ¯è¡è½æ¾ç¤ºçåçä¸ªæ° |
| | | var rowNumber = Math.ceil(paramsNameNumber / provideNumber); // æ¢è¡çè¯ï¼éè¦æ¾ç¤ºå è¡ï¼åä¸åæ´ |
| | |
| | | if (paramsNameNumber > provideNumber) { |
| | | /** å¾ªç¯æ¯ä¸è¡,pè¡¨ç¤ºè¡ */ |
| | | for (var p = 0; p < rowNumber; p++) { |
| | | var tempStr = ""; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var tempStr = ''; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var start = p * provideNumber; // å¼å§æªåçä½ç½® |
| | | var end = start + provideNumber; // ç»ææªåçä½ç½® |
| | | // æ¤å¤ç¹æ®å¤çæåä¸è¡çç´¢å¼å¼ |
| | |
| | | tempStr = params.substring(start, paramsNameNumber); |
| | | } else { |
| | | // æ¯ä¸æ¬¡æ¼æ¥å符串并æ¢è¡ |
| | | tempStr = params.substring(start, end) + "\n"; |
| | | tempStr = params.substring(start, end) + '\n'; |
| | | } |
| | | newParamsName += tempStr; // æç»æ¼æçå符串 |
| | | } |
| | |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | dataZoom: [ |
| | | { |
| | | type: "inside", |
| | | type: 'inside', |
| | | }, |
| | | ], |
| | | series: [ |
| | | { |
| | | type: "bar", |
| | | type: 'bar', |
| | | showBackground: true, |
| | | itemStyle: { |
| | | color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#83bff6" }, |
| | | { offset: 0.5, color: "#188df0" }, |
| | | { offset: 1, color: "#188df0" }, |
| | | { offset: 0, color: '#83bff6' }, |
| | | { offset: 0.5, color: '#188df0' }, |
| | | { offset: 1, color: '#188df0' }, |
| | | ]), |
| | | }, |
| | | emphasis: { |
| | | itemStyle: { |
| | | color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#2378f7" }, |
| | | { offset: 0.7, color: "#2378f7" }, |
| | | { offset: 1, color: "#83bff6" }, |
| | | { offset: 0, color: '#2378f7' }, |
| | | { offset: 0.7, color: '#2378f7' }, |
| | | { offset: 1, color: '#83bff6' }, |
| | | ]), |
| | | }, |
| | | }, |
| | |
| | | ], |
| | | }; |
| | | const zoomSize = 6; |
| | | let myChart = this.$echarts.init(document.getElementById("echart26")); |
| | | myChart.on("click", function (params) { |
| | | this.myChart = this.$echarts.init(document.getElementById('echart26')); |
| | | this.myChart.on('click', function (params) { |
| | | console.log(dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)]); |
| | | myChart.dispatchAction({ |
| | | type: "dataZoom", |
| | | this.myChart.dispatchAction({ |
| | | type: 'dataZoom', |
| | | startValue: dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)], |
| | | endValue: |
| | | dataAxis[ |
| | |
| | | }); |
| | | }); |
| | | |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "项ç®ç±»å«", |
| | | text: '项ç®ç±»å«', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "item", |
| | | trigger: 'item', |
| | | }, |
| | | legend: { |
| | | top: "5%", |
| | | right: "0", |
| | | top: '5%', |
| | | right: '0', |
| | | textStyle: { |
| | | fontSize: 12, |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "项ç®ç±»å«", |
| | | type: "pie", |
| | | radius: ["45%", "55%"], |
| | | name: '项ç®ç±»å«', |
| | | type: 'pie', |
| | | radius: ['45%', '55%'], |
| | | // avoidLabelOverlap: false, |
| | | label: { |
| | | formatter: "{b}ï¼{c}", |
| | | formatter: '{b}ï¼{c}', |
| | | textStyle: { |
| | | fontSize: 12, |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | |
| | |
| | | // show: false, |
| | | }, |
| | | data: [ |
| | | { value: 2, name: "ç«åºç±»" }, |
| | | { value: 5, name: "管éç±»" }, |
| | | { value: 2, name: 'ç«åºç±»' }, |
| | | { value: 5, name: '管éç±»' }, |
| | | ], |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart31")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart31')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let dataAxis = [ |
| | | "ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨å段", |
| | | "ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ", |
| | | "广å·ç«", |
| | | "åå±±LNG", |
| | | "æ°çè¿æ¨æ²ç«åº", |
| | | "ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé", |
| | | 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨å段', |
| | | 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ', |
| | | '广å·ç«', |
| | | 'åå±±LNG', |
| | | 'æ°çè¿æ¨æ²ç«åº', |
| | | 'ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé', |
| | | ]; |
| | | // prettier-ignore |
| | | let data = [2000, 1800, 800, 1000, 600, 700]; |
| | |
| | | } |
| | | let option = { |
| | | title: { |
| | | text: "å项ç®é¢ç®", |
| | | text: 'å项ç®é¢ç®', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | type: 'shadow', |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "0%", |
| | | right: "0%", |
| | | bottom: "0%", |
| | | left: '0%', |
| | | right: '0%', |
| | | bottom: '0%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "category", |
| | | type: 'category', |
| | | data: dataAxis, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | formatter: function (params) { |
| | | var newParamsName = ""; // æç»æ¼æ¥æçå符串 |
| | | var newParamsName = ''; // æç»æ¼æ¥æçå符串 |
| | | var paramsNameNumber = params.length; // å®é
æ ç¾çä¸ªæ° |
| | | var provideNumber = 4; // æ¯è¡è½æ¾ç¤ºçåçä¸ªæ° |
| | | var rowNumber = Math.ceil(paramsNameNumber / provideNumber); // æ¢è¡çè¯ï¼éè¦æ¾ç¤ºå è¡ï¼åä¸åæ´ |
| | |
| | | if (paramsNameNumber > provideNumber) { |
| | | /** å¾ªç¯æ¯ä¸è¡,pè¡¨ç¤ºè¡ */ |
| | | for (var p = 0; p < rowNumber; p++) { |
| | | var tempStr = ""; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var tempStr = ''; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var start = p * provideNumber; // å¼å§æªåçä½ç½® |
| | | var end = start + provideNumber; // ç»ææªåçä½ç½® |
| | | // æ¤å¤ç¹æ®å¤çæåä¸è¡çç´¢å¼å¼ |
| | |
| | | tempStr = params.substring(start, paramsNameNumber); |
| | | } else { |
| | | // æ¯ä¸æ¬¡æ¼æ¥å符串并æ¢è¡ |
| | | tempStr = params.substring(start, end) + "\n"; |
| | | tempStr = params.substring(start, end) + '\n'; |
| | | } |
| | | newParamsName += tempStr; // æç»æ¼æçå符串 |
| | | } |
| | |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | dataZoom: [ |
| | | { |
| | | type: "inside", |
| | | type: 'inside', |
| | | }, |
| | | ], |
| | | series: [ |
| | | { |
| | | type: "bar", |
| | | type: 'bar', |
| | | showBackground: true, |
| | | barWidth: 20, |
| | | itemStyle: { |
| | | barBorderRadius: [90, 90, 0, 0], |
| | | color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#b8d746" }, |
| | | { offset: 0.5, color: "#8edc69" }, |
| | | { offset: 1, color: "#74c3c9" }, |
| | | { offset: 0, color: '#b8d746' }, |
| | | { offset: 0.5, color: '#8edc69' }, |
| | | { offset: 1, color: '#74c3c9' }, |
| | | ]), |
| | | }, |
| | | |
| | | emphasis: { |
| | | itemStyle: { |
| | | color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#2378f7" }, |
| | | { offset: 0.7, color: "#2378f7" }, |
| | | { offset: 1, color: "#83bff6" }, |
| | | { offset: 0, color: '#2378f7' }, |
| | | { offset: 0.7, color: '#2378f7' }, |
| | | { offset: 1, color: '#83bff6' }, |
| | | ]), |
| | | }, |
| | | }, |
| | |
| | | ], |
| | | }; |
| | | const zoomSize = 6; |
| | | let myChart = this.$echarts.init(document.getElementById("echart32")); |
| | | myChart.on("click", function (params) { |
| | | this.myChart = this.$echarts.init(document.getElementById('echart32')); |
| | | this.myChart.on('click', function (params) { |
| | | console.log(dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)]); |
| | | myChart.dispatchAction({ |
| | | type: "dataZoom", |
| | | this.myChart.dispatchAction({ |
| | | type: 'dataZoom', |
| | | startValue: dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)], |
| | | endValue: |
| | | dataAxis[ |
| | |
| | | }); |
| | | }); |
| | | |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "项ç®èæ¶", |
| | | text: '项ç®èæ¶', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | type: 'shadow', |
| | | }, |
| | | }, |
| | | legend: { |
| | | right: "0", |
| | | right: '0', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "3%", |
| | | right: "4%", |
| | | bottom: "3%", |
| | | left: '3%', |
| | | right: '4%', |
| | | bottom: '3%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "value", |
| | | type: 'value', |
| | | boundaryGap: [0, 0.01], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | type: "category", |
| | | data: ["A2", "A3", "A4", "A5", "A6", "A7"], |
| | | type: 'category', |
| | | data: ['A2', 'A3', 'A4', 'A5', 'A6', 'A7'], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | formatter: function (params) { |
| | | var newParamsName = ""; // æç»æ¼æ¥æçå符串 |
| | | var newParamsName = ''; // æç»æ¼æ¥æçå符串 |
| | | var paramsNameNumber = params.length; // å®é
æ ç¾çä¸ªæ° |
| | | var provideNumber = 3; // æ¯è¡è½æ¾ç¤ºçåçä¸ªæ° |
| | | var rowNumber = Math.ceil(paramsNameNumber / provideNumber); // æ¢è¡çè¯ï¼éè¦æ¾ç¤ºå è¡ï¼åä¸åæ´ |
| | |
| | | if (paramsNameNumber > provideNumber) { |
| | | /** å¾ªç¯æ¯ä¸è¡,pè¡¨ç¤ºè¡ */ |
| | | for (var p = 0; p < rowNumber; p++) { |
| | | var tempStr = ""; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var tempStr = ''; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var start = p * provideNumber; // å¼å§æªåçä½ç½® |
| | | var end = start + provideNumber; // ç»ææªåçä½ç½® |
| | | // æ¤å¤ç¹æ®å¤çæåä¸è¡çç´¢å¼å¼ |
| | |
| | | tempStr = params.substring(start, paramsNameNumber); |
| | | } else { |
| | | // æ¯ä¸æ¬¡æ¼æ¥å符串并æ¢è¡ |
| | | tempStr = params.substring(start, end) + "\n"; |
| | | tempStr = params.substring(start, end) + '\n'; |
| | | } |
| | | newParamsName += tempStr; // æç»æ¼æçå符串 |
| | | } |
| | |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "é¢è®¡å·¥æï¼å¤©ï¼", |
| | | type: "bar", |
| | | name: 'é¢è®¡å·¥æï¼å¤©ï¼', |
| | | type: 'bar', |
| | | data: [432, 432, 288, 252, 180, 180], |
| | | }, |
| | | { |
| | | name: "已宿工æï¼å¤©ï¼", |
| | | type: "bar", |
| | | name: '已宿工æï¼å¤©ï¼', |
| | | type: 'bar', |
| | | data: [200, 120, 200, 150, 90, 20], |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart6")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart6')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "项ç®è¿åº¦å®æç¾åæ¯", |
| | | text: '项ç®è¿åº¦å®æç¾åæ¯', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "0%", |
| | | right: "0%", |
| | | bottom: "0%", |
| | | left: '0%', |
| | | right: '0%', |
| | | bottom: '0%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "category", |
| | | type: 'category', |
| | | data: [ |
| | | "ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨å段", |
| | | "ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ", |
| | | "广å·ç«", |
| | | "åå±±LNG", |
| | | "æ°çè¿æ¨æ²ç«åº", |
| | | "ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé", |
| | | 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨å段', |
| | | 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ', |
| | | '广å·ç«', |
| | | 'åå±±LNG', |
| | | 'æ°çè¿æ¨æ²ç«åº', |
| | | 'ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé', |
| | | ], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | formatter: function (params) { |
| | | var newParamsName = ""; // æç»æ¼æ¥æçå符串 |
| | | var newParamsName = ''; // æç»æ¼æ¥æçå符串 |
| | | var paramsNameNumber = params.length; // å®é
æ ç¾çä¸ªæ° |
| | | var provideNumber = 3; // æ¯è¡è½æ¾ç¤ºçåçä¸ªæ° |
| | | var rowNumber = Math.ceil(paramsNameNumber / provideNumber); // æ¢è¡çè¯ï¼éè¦æ¾ç¤ºå è¡ï¼åä¸åæ´ |
| | |
| | | if (paramsNameNumber > provideNumber) { |
| | | /** å¾ªç¯æ¯ä¸è¡,pè¡¨ç¤ºè¡ */ |
| | | for (var p = 0; p < rowNumber; p++) { |
| | | var tempStr = ""; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var tempStr = ''; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var start = p * provideNumber; // å¼å§æªåçä½ç½® |
| | | var end = start + provideNumber; // ç»ææªåçä½ç½® |
| | | // æ¤å¤ç¹æ®å¤çæåä¸è¡çç´¢å¼å¼ |
| | |
| | | tempStr = params.substring(start, paramsNameNumber); |
| | | } else { |
| | | // æ¯ä¸æ¬¡æ¼æ¥å符串并æ¢è¡ |
| | | tempStr = params.substring(start, end) + "\n"; |
| | | tempStr = params.substring(start, end) + '\n'; |
| | | } |
| | | newParamsName += tempStr; // æç»æ¼æçå符串 |
| | | } |
| | |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | type: "value", |
| | | type: 'value', |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | series: [ |
| | | { |
| | | data: [0.4, 0.2, 0.7, 0.65, 0.5, 0.1], |
| | | type: "bar", |
| | | type: 'bar', |
| | | showBackground: true, |
| | | barWidth: 20, |
| | | backgroundStyle: { |
| | | color: "rgba(180, 180, 180, 0.2)", |
| | | color: 'rgba(180, 180, 180, 0.2)', |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart34")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart34')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "äººåææ", |
| | | text: 'äººåææ', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | type: 'shadow', |
| | | }, |
| | | }, |
| | | // legend: {}, |
| | | grid: { |
| | | left: "0%", |
| | | right: "4%", |
| | | bottom: "0%", |
| | | left: '0%', |
| | | right: '4%', |
| | | bottom: '0%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "value", |
| | | type: 'value', |
| | | boundaryGap: [0, 0.01], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | type: "category", |
| | | data: ["ä¸ç§", "æ¬ç§", "ç¡å£«", "å士å以ä¸", "å
¶ä»"], |
| | | type: 'category', |
| | | data: ['ä¸ç§', 'æ¬ç§', 'ç¡å£«', 'å士å以ä¸', 'å
¶ä»'], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "äººåææ", |
| | | type: "bar", |
| | | name: 'äººåææ', |
| | | type: 'bar', |
| | | // barWidth: 20, |
| | | data: [15, 120, 50, 40, 20], |
| | | itemStyle: { |
| | |
| | | barBorderRadius: [0, 10, 10, 0], |
| | | color: (params) => { |
| | | var colorList = [ |
| | | ["#00FCFF", "#008297"], |
| | | ["#0091FF", "#005EA4"], |
| | | ["#901698", "#F157EE"], |
| | | ["#40FBCB", "#009871"], |
| | | ["#FF515A", "#FFDD53"], |
| | | ["#6574E2", "#261164"], |
| | | ['#00FCFF', '#008297'], |
| | | ['#0091FF', '#005EA4'], |
| | | ['#901698', '#F157EE'], |
| | | ['#40FBCB', '#009871'], |
| | | ['#FF515A', '#FFDD53'], |
| | | ['#6574E2', '#261164'], |
| | | ]; |
| | | var colorItem = colorList[params.dataIndex]; |
| | | return new this.$echarts.graphic.LinearGradient( |
| | |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart35")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart35')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "å项ç®äººååé
", |
| | | text: 'å项ç®äººååé
', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "item", |
| | | trigger: 'item', |
| | | }, |
| | | visualMap: { |
| | | show: false, |
| | |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "å项ç®äººååé
", |
| | | type: "pie", |
| | | radius: "55%", |
| | | center: ["50%", "50%"], |
| | | name: 'å项ç®äººååé
', |
| | | type: 'pie', |
| | | radius: '55%', |
| | | center: ['50%', '50%'], |
| | | data: [ |
| | | { value: 80, name: "ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨å段" }, |
| | | { value: 70, name: "ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ" }, |
| | | { value: 15, name: "广å·ç«" }, |
| | | { value: 30, name: "åå±±LNG" }, |
| | | { value: 15, name: "æ°çè¿æ¨æ²ç«åº" }, |
| | | { value: 35, name: "ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé" }, |
| | | { value: 80, name: 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨å段' }, |
| | | { value: 70, name: 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ' }, |
| | | { value: 15, name: '广å·ç«' }, |
| | | { value: 30, name: 'åå±±LNG' }, |
| | | { value: 15, name: 'æ°çè¿æ¨æ²ç«åº' }, |
| | | { value: 35, name: 'ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé' }, |
| | | ].sort(function (a, b) { |
| | | return a.value - b.value; |
| | | }), |
| | | roseType: "radius", |
| | | roseType: 'radius', |
| | | label: { |
| | | color: "rgba(255, 255, 255, 0.8)", |
| | | color: 'rgba(255, 255, 255, 0.8)', |
| | | }, |
| | | labelLine: { |
| | | lineStyle: { |
| | | color: "rgba(255, 255, 255, 0.8)", |
| | | color: 'rgba(255, 255, 255, 0.8)', |
| | | }, |
| | | smooth: 0.2, |
| | | length: 10, |
| | | length2: 20, |
| | | }, |
| | | itemStyle: { |
| | | color: "#c23531", |
| | | color: '#c23531', |
| | | shadowBlur: 200, |
| | | shadowColor: "rgba(0, 0, 0, 0.5)", |
| | | shadowColor: 'rgba(0, 0, 0, 0.5)', |
| | | }, |
| | | animationType: "scale", |
| | | animationEasing: "elasticOut", |
| | | animationType: 'scale', |
| | | animationEasing: 'elasticOut', |
| | | animationDelay: function (idx) { |
| | | return Math.random() * 200; |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart36")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart36')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "é¡¹ç®æå¡åç±»", |
| | | text: 'é¡¹ç®æå¡åç±»', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | type: 'shadow', |
| | | }, |
| | | }, |
| | | // legend: {}, |
| | | grid: { |
| | | left: "0%", |
| | | right: "4%", |
| | | bottom: "0%", |
| | | left: '0%', |
| | | right: '4%', |
| | | bottom: '0%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "value", |
| | | type: 'value', |
| | | boundaryGap: [0, 0.01], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | type: "category", |
| | | type: 'category', |
| | | data: [ |
| | | "é®é¢è§£æ", |
| | | "éæ±åé¦", |
| | | "ä¸é¢æå¡", |
| | | "ç°åºæ¯æ", |
| | | "çæ¬å级", |
| | | "ææ¯å¹è®", |
| | | 'é®é¢è§£æ', |
| | | 'éæ±åé¦', |
| | | 'ä¸é¢æå¡', |
| | | 'ç°åºæ¯æ', |
| | | 'çæ¬å级', |
| | | 'ææ¯å¹è®', |
| | | ], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "é¡¹ç®æå¡åç±»", |
| | | type: "bar", |
| | | name: 'é¡¹ç®æå¡åç±»', |
| | | type: 'bar', |
| | | barWidth: 20, |
| | | data: [120, 45, 5, 15, 4, 12], |
| | | itemStyle: { |
| | |
| | | barBorderRadius: [0, 90, 90, 0], |
| | | color: (params) => { |
| | | var colorList = [ |
| | | ["#00FCFF", "#008297"], |
| | | ["#0091FF", "#005EA4"], |
| | | ["#901698", "#F157EE"], |
| | | ["#40FBCB", "#009871"], |
| | | ["#FF515A", "#FFDD53"], |
| | | ["#6574E2", "#261164"], |
| | | ['#00FCFF', '#008297'], |
| | | ['#0091FF', '#005EA4'], |
| | | ['#901698', '#F157EE'], |
| | | ['#40FBCB', '#009871'], |
| | | ['#FF515A', '#FFDD53'], |
| | | ['#6574E2', '#261164'], |
| | | ]; |
| | | var colorItem = colorList[params.dataIndex]; |
| | | return new this.$echarts.graphic.LinearGradient( |
| | |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart41")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart41')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let dataAxis = [ |
| | | "ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨å段", |
| | | "ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ", |
| | | "广å·ç«", |
| | | "åå±±LNG", |
| | | "æ°çè¿æ¨æ²ç«åº", |
| | | "ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé", |
| | | 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨å段', |
| | | 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ', |
| | | '广å·ç«', |
| | | 'åå±±LNG', |
| | | 'æ°çè¿æ¨æ²ç«åº', |
| | | 'ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé', |
| | | ]; |
| | | // prettier-ignore |
| | | let data = [0.4, 0.2, 0.7, 0.65, 0.5, 0.1]; |
| | |
| | | } |
| | | let option = { |
| | | title: { |
| | | text: "项ç®å®æè¿åº¦", |
| | | text: '项ç®å®æè¿åº¦', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | type: 'shadow', |
| | | }, |
| | | }, |
| | | grid: { |
| | | left: "0%", |
| | | right: "0%", |
| | | bottom: "0%", |
| | | left: '0%', |
| | | right: '0%', |
| | | bottom: '0%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "category", |
| | | type: 'category', |
| | | data: dataAxis, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | formatter: function (params) { |
| | | var newParamsName = ""; // æç»æ¼æ¥æçå符串 |
| | | var newParamsName = ''; // æç»æ¼æ¥æçå符串 |
| | | var paramsNameNumber = params.length; // å®é
æ ç¾çä¸ªæ° |
| | | var provideNumber = 4; // æ¯è¡è½æ¾ç¤ºçåçä¸ªæ° |
| | | var rowNumber = Math.ceil(paramsNameNumber / provideNumber); // æ¢è¡çè¯ï¼éè¦æ¾ç¤ºå è¡ï¼åä¸åæ´ |
| | |
| | | if (paramsNameNumber > provideNumber) { |
| | | /** å¾ªç¯æ¯ä¸è¡,pè¡¨ç¤ºè¡ */ |
| | | for (var p = 0; p < rowNumber; p++) { |
| | | var tempStr = ""; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var tempStr = ''; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var start = p * provideNumber; // å¼å§æªåçä½ç½® |
| | | var end = start + provideNumber; // ç»ææªåçä½ç½® |
| | | // æ¤å¤ç¹æ®å¤çæåä¸è¡çç´¢å¼å¼ |
| | |
| | | tempStr = params.substring(start, paramsNameNumber); |
| | | } else { |
| | | // æ¯ä¸æ¬¡æ¼æ¥å符串并æ¢è¡ |
| | | tempStr = params.substring(start, end) + "\n"; |
| | | tempStr = params.substring(start, end) + '\n'; |
| | | } |
| | | newParamsName += tempStr; // æç»æ¼æçå符串 |
| | | } |
| | |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | dataZoom: [ |
| | | { |
| | | type: "inside", |
| | | type: 'inside', |
| | | }, |
| | | ], |
| | | series: [ |
| | | { |
| | | type: "bar", |
| | | type: 'bar', |
| | | showBackground: true, |
| | | itemStyle: { |
| | | color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#83bff6" }, |
| | | { offset: 0.5, color: "#188df0" }, |
| | | { offset: 1, color: "#188df0" }, |
| | | { offset: 0, color: '#83bff6' }, |
| | | { offset: 0.5, color: '#188df0' }, |
| | | { offset: 1, color: '#188df0' }, |
| | | ]), |
| | | }, |
| | | emphasis: { |
| | | itemStyle: { |
| | | color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#2378f7" }, |
| | | { offset: 0.7, color: "#2378f7" }, |
| | | { offset: 1, color: "#83bff6" }, |
| | | { offset: 0, color: '#2378f7' }, |
| | | { offset: 0.7, color: '#2378f7' }, |
| | | { offset: 1, color: '#83bff6' }, |
| | | ]), |
| | | }, |
| | | }, |
| | |
| | | ], |
| | | }; |
| | | const zoomSize = 6; |
| | | let myChart = this.$echarts.init(document.getElementById("echart42")); |
| | | myChart.on("click", function (params) { |
| | | this.myChart = this.$echarts.init(document.getElementById('echart42')); |
| | | this.myChart.on('click', function (params) { |
| | | console.log(dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)]); |
| | | myChart.dispatchAction({ |
| | | type: "dataZoom", |
| | | this.myChart.dispatchAction({ |
| | | type: 'dataZoom', |
| | | startValue: dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)], |
| | | endValue: |
| | | dataAxis[ |
| | |
| | | }); |
| | | }); |
| | | |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | export default { |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | gaugeChart1() { |
| | | var legendData = ["人å", "åæ´å人å"]; //å¾ä¾ |
| | | var legendData = ['人å', 'åæ´å人å']; //å¾ä¾ |
| | | |
| | | var indicator = [ |
| | | { name: "ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé", max: 80 }, |
| | | { name: "åå±±LNG", max: 80 }, |
| | | { name: "ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨å段", max: 160 }, |
| | | { name: 'ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé', max: 80 }, |
| | | { name: 'åå±±LNG', max: 80 }, |
| | | { name: 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨å段', max: 160 }, |
| | | |
| | | { name: "ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ", max: 100 }, |
| | | { name: "æ°çè¿æ¨æ²ç«åº", max: 40 }, |
| | | { name: "广å·ç«", max: 40 }, |
| | | { name: 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ', max: 100 }, |
| | | { name: 'æ°çè¿æ¨æ²ç«åº', max: 40 }, |
| | | { name: '广å·ç«', max: 40 }, |
| | | ]; |
| | | var dataArr = [ |
| | | { |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | lineStyle: { |
| | | color: "#4A99FF", |
| | | color: '#4A99FF', |
| | | // shadowColor: '#4A99FF', |
| | | // shadowBlur: 10, |
| | | }, |
| | | shadowColor: "#4A99FF", |
| | | shadowColor: '#4A99FF', |
| | | shadowBlur: 10, |
| | | }, |
| | | }, |
| | |
| | | normal: { |
| | | // å项åºåå¡«å
æ ·å¼ |
| | | color: { |
| | | type: "linear", |
| | | type: 'linear', |
| | | x: 0, //å³ |
| | | y: 0, //ä¸ |
| | | x2: 1, //å·¦ |
| | |
| | | colorStops: [ |
| | | { |
| | | offset: 0, |
| | | color: "#4A99FF", |
| | | color: '#4A99FF', |
| | | }, |
| | | { |
| | | offset: 0.5, |
| | | color: "rgba(0,0,0,0)", |
| | | color: 'rgba(0,0,0,0)', |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: "#4A99FF", |
| | | color: '#4A99FF', |
| | | }, |
| | | ], |
| | | globalCoord: false, |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | lineStyle: { |
| | | color: "#4BFFFC", |
| | | color: '#4BFFFC', |
| | | // shadowColor: '#4BFFFC', |
| | | // shadowBlur: 10, |
| | | }, |
| | | shadowColor: "#4BFFFC", |
| | | shadowColor: '#4BFFFC', |
| | | shadowBlur: 10, |
| | | }, |
| | | }, |
| | |
| | | normal: { |
| | | // å项åºåå¡«å
æ ·å¼ |
| | | color: { |
| | | type: "linear", |
| | | type: 'linear', |
| | | x: 0, //å³ |
| | | y: 0, //ä¸ |
| | | x2: 1, //å·¦ |
| | |
| | | colorStops: [ |
| | | { |
| | | offset: 0, |
| | | color: "#4BFFFC", |
| | | color: '#4BFFFC', |
| | | }, |
| | | { |
| | | offset: 0.5, |
| | | color: "rgba(0,0,0,0)", |
| | | color: 'rgba(0,0,0,0)', |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: "#4BFFFC", |
| | | color: '#4BFFFC', |
| | | }, |
| | | ], |
| | | globalCoord: false, |
| | |
| | | }, |
| | | }, |
| | | ]; |
| | | var colorArr = ["#4A99FF", "#4BFFFC"]; //é¢è² |
| | | var colorArr = ['#4A99FF', '#4BFFFC']; //é¢è² |
| | | let option = { |
| | | title: { |
| | | // show: false, |
| | | text: "人ååå¨", |
| | | text: '人ååå¨', |
| | | // x: "4%", |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | // fontSize: "22", |
| | | }, |
| | | // subtextStyle: { |
| | |
| | | |
| | | color: colorArr, |
| | | legend: { |
| | | orient: "vertical", |
| | | icon: "circle", //å¾ä¾å½¢ç¶ |
| | | orient: 'vertical', |
| | | icon: 'circle', //å¾ä¾å½¢ç¶ |
| | | data: legendData, |
| | | top: 0, |
| | | right: 0, |
| | |
| | | itemGap: 21, // å¾ä¾æ¯é¡¹ä¹é´çé´éã[ default: 10 ]横åå¸å±æ¶ä¸ºæ°´å¹³é´éï¼çºµåå¸å±æ¶ä¸ºçºµåé´éã |
| | | textStyle: { |
| | | fontSize: 12, |
| | | color: "#00E4FF", |
| | | color: '#00E4FF', |
| | | }, |
| | | }, |
| | | radar: { |
| | | // shape: 'circle', |
| | | name: { |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | fontSize: 12, |
| | | }, |
| | | }, |
| | |
| | | show: true, |
| | | areaStyle: { |
| | | // åéåºåçæ ·å¼è®¾ç½®ã |
| | | color: ["rgba(255,255,255,0)", "rgba(255,255,255,0)"], // åéåºåé¢è²ãåéåºå伿æ°ç»ä¸é¢è²ç顺åºä¾æ¬¡å¾ªç¯è®¾ç½®é¢è²ãé»è®¤æ¯ä¸ä¸ªæ·±æµ
çé´éè²ã |
| | | color: ['rgba(255,255,255,0)', 'rgba(255,255,255,0)'], // åéåºåé¢è²ãåéåºå伿æ°ç»ä¸é¢è²ç顺åºä¾æ¬¡å¾ªç¯è®¾ç½®é¢è²ãé»è®¤æ¯ä¸ä¸ªæ·±æµ
çé´éè²ã |
| | | }, |
| | | }, |
| | | axisLine: { |
| | | //æåå¤åææ¬çåéçº¿æ ·å¼ |
| | | lineStyle: { |
| | | color: "#153269", |
| | | color: '#153269', |
| | | }, |
| | | }, |
| | | splitLine: { |
| | | lineStyle: { |
| | | color: "#113865", // åé线é¢è² |
| | | color: '#113865', // åé线é¢è² |
| | | width: 1, // åé线线宽 |
| | | }, |
| | | }, |
| | | }, |
| | | series: [ |
| | | { |
| | | type: "radar", |
| | | type: 'radar', |
| | | symbolSize: 4, |
| | | // symbol: 'angle', |
| | | data: dataArr, |
| | |
| | | ], |
| | | }; |
| | | |
| | | let myChart = this.$echarts.init(document.getElementById("echart43")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart43')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.gaugeChart1(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "åé¡¹ç®æ»ä½è¿åº¦", |
| | | text: 'åé¡¹ç®æ»ä½è¿åº¦', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "item", |
| | | trigger: 'item', |
| | | }, |
| | | // legend: {}, |
| | | grid: { |
| | | left: "3%", |
| | | right: "4%", |
| | | bottom: "3%", |
| | | left: '3%', |
| | | right: '4%', |
| | | bottom: '3%', |
| | | containLabel: true, |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "åé¡¹ç®æ»ä½è¿åº¦", |
| | | type: "pie", |
| | | radius: ["40%", "70%"], |
| | | roseType: "radius", |
| | | color: ["#03effb", "#00bec4", "#3a82ab"], |
| | | name: 'åé¡¹ç®æ»ä½è¿åº¦', |
| | | type: 'pie', |
| | | radius: ['40%', '70%'], |
| | | roseType: 'radius', |
| | | color: ['#03effb', '#00bec4', '#3a82ab'], |
| | | avoidLabelOverlap: false, |
| | | itemStyle: { |
| | | fontColor: "fff", |
| | | borderColor: "#fff", |
| | | fontColor: 'fff', |
| | | borderColor: '#fff', |
| | | }, |
| | | label: { |
| | | show: false, |
| | | position: "center", |
| | | position: 'center', |
| | | }, |
| | | emphasis: { |
| | | // label: { |
| | |
| | | show: false, |
| | | }, |
| | | data: [ |
| | | { value: 4, name: "已宿" }, |
| | | { value: 7, name: "è¿è¡ä¸" }, |
| | | { value: 8, name: "æªå¼å§" }, |
| | | { value: 4, name: '已宿' }, |
| | | { value: 7, name: 'è¿è¡ä¸' }, |
| | | { value: 8, name: 'æªå¼å§' }, |
| | | ], |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart44")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart44')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "èµé使ç¨åé¢ç®å¯¹æ¯", |
| | | text: 'èµé使ç¨åé¢ç®å¯¹æ¯', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | type: 'shadow', |
| | | }, |
| | | }, |
| | | legend: { |
| | | data: ["å©ä½éé¢", "已使ç¨éé¢", "é¢ç®éé¢"], |
| | | data: ['å©ä½éé¢', '已使ç¨éé¢', 'é¢ç®éé¢'], |
| | | }, |
| | | grid: { |
| | | left: "3%", |
| | | right: "4%", |
| | | bottom: "3%", |
| | | left: '3%', |
| | | right: '4%', |
| | | bottom: '3%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: [ |
| | | { |
| | | type: "value", |
| | | type: 'value', |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | yAxis: [ |
| | | { |
| | | type: "category", |
| | | type: 'category', |
| | | axisTick: { |
| | | show: false, |
| | | }, |
| | | data: ["A2", "A3", "A4", "A5", "A6", "A7"], |
| | | data: ['A2', 'A3', 'A4', 'A5', 'A6', 'A7'], |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | series: [ |
| | | { |
| | | name: "å©ä½", |
| | | type: "bar", |
| | | name: 'å©ä½', |
| | | type: 'bar', |
| | | label: { |
| | | show: true, |
| | | position: "inside", |
| | | position: 'inside', |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | focus: 'series', |
| | | }, |
| | | data: [1200, 1440, 240, 350, 300, 630], |
| | | }, |
| | | { |
| | | name: "é¢ç®éé¢ï¼ä¸å
)", |
| | | type: "bar", |
| | | stack: "Total", |
| | | name: 'é¢ç®éé¢ï¼ä¸å
)', |
| | | type: 'bar', |
| | | stack: 'Total', |
| | | label: { |
| | | show: true, |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | focus: 'series', |
| | | }, |
| | | data: [2000, 1800, 800, 1000, 600, 700], |
| | | }, |
| | | { |
| | | name: "已使ç¨éé¢ï¼ä¸å
ï¼", |
| | | type: "bar", |
| | | stack: "Total", |
| | | name: '已使ç¨éé¢ï¼ä¸å
ï¼', |
| | | type: 'bar', |
| | | stack: 'Total', |
| | | label: { |
| | | show: true, |
| | | position: "left", |
| | | position: 'left', |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | focus: 'series', |
| | | }, |
| | | data: [-800, -360, -560, -650, -300, -70], |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart45")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart45')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | components: {}, |
| | | data() { |
| | | //è¿éåæ¾æ°æ® |
| | | return {}; |
| | | return { myChart }; |
| | | }, |
| | | mounted() { |
| | | this.lineChart(); |
| | | this.$bus.$on('resizeEchart', (res) => { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | //æ¹æ³éå |
| | | methods: { |
| | | lineChart() { |
| | | let option = { |
| | | title: { |
| | | text: "å项ç®å®æå·¥æ", |
| | | text: 'å项ç®å®æå·¥æ', |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | type: 'shadow', |
| | | }, |
| | | }, |
| | | // legend: {}, |
| | | grid: { |
| | | left: "0%", |
| | | right: "4%", |
| | | bottom: "0%", |
| | | left: '0%', |
| | | right: '4%', |
| | | bottom: '0%', |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | type: "value", |
| | | type: 'value', |
| | | boundaryGap: [0, 0.01], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | type: "category", |
| | | type: 'category', |
| | | data: [ |
| | | "ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨å段", |
| | | "ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ", |
| | | "广å·ç«", |
| | | "åå±±LNG", |
| | | "æ°çè¿æ¨æ²ç«åº", |
| | | "ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé", |
| | | 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨å段', |
| | | 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ', |
| | | '广å·ç«', |
| | | 'åå±±LNG', |
| | | 'æ°çè¿æ¨æ²ç«åº', |
| | | 'ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé', |
| | | ], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#ccc", |
| | | color: '#ccc', |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | show: true, |
| | | textStyle: { |
| | | color: "#fff", |
| | | color: '#fff', |
| | | }, |
| | | formatter: function (params) { |
| | | var newParamsName = ""; // æç»æ¼æ¥æçå符串 |
| | | var newParamsName = ''; // æç»æ¼æ¥æçå符串 |
| | | var paramsNameNumber = params.length; // å®é
æ ç¾çä¸ªæ° |
| | | var provideNumber = 4; // æ¯è¡è½æ¾ç¤ºçåçä¸ªæ° |
| | | var rowNumber = Math.ceil(paramsNameNumber / provideNumber); // æ¢è¡çè¯ï¼éè¦æ¾ç¤ºå è¡ï¼åä¸åæ´ |
| | |
| | | if (paramsNameNumber > provideNumber) { |
| | | /** å¾ªç¯æ¯ä¸è¡,pè¡¨ç¤ºè¡ */ |
| | | for (var p = 0; p < rowNumber; p++) { |
| | | var tempStr = ""; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var tempStr = ''; // 表示æ¯ä¸æ¬¡æªåçå符串 |
| | | var start = p * provideNumber; // å¼å§æªåçä½ç½® |
| | | var end = start + provideNumber; // ç»ææªåçä½ç½® |
| | | // æ¤å¤ç¹æ®å¤çæåä¸è¡çç´¢å¼å¼ |
| | |
| | | tempStr = params.substring(start, paramsNameNumber); |
| | | } else { |
| | | // æ¯ä¸æ¬¡æ¼æ¥å符串并æ¢è¡ |
| | | tempStr = params.substring(start, end) + "\n"; |
| | | tempStr = params.substring(start, end) + '\n'; |
| | | } |
| | | newParamsName += tempStr; // æç»æ¼æçå符串 |
| | | } |
| | |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "å项ç®å·²å®æå·¥æ", |
| | | type: "bar", |
| | | name: 'å项ç®å·²å®æå·¥æ', |
| | | type: 'bar', |
| | | barWidth: 20, |
| | | data: [200, 120, 200, 150, 90, 20], |
| | | showBackground: true, |
| | |
| | | barBorderRadius: [0, 90, 90, 0], |
| | | color: (params) => { |
| | | var colorList = [ |
| | | ["#40FBCB", "#009871"], |
| | | ["#40FBCB", "#009871"], |
| | | ["#40FBCB", "#009871"], |
| | | ["#40FBCB", "#009871"], |
| | | ["#40FBCB", "#009871"], |
| | | ["#40FBCB", "#009871"], |
| | | ['#40FBCB', '#009871'], |
| | | ['#40FBCB', '#009871'], |
| | | ['#40FBCB', '#009871'], |
| | | ['#40FBCB', '#009871'], |
| | | ['#40FBCB', '#009871'], |
| | | ['#40FBCB', '#009871'], |
| | | ]; |
| | | var colorItem = colorList[params.dataIndex]; |
| | | return new this.$echarts.graphic.LinearGradient( |
| | |
| | | }, |
| | | ], |
| | | }; |
| | | let myChart = this.$echarts.init(document.getElementById("echart46")); |
| | | myChart.setOption(option); |
| | | window.addEventListener("resize", function () { |
| | | myChart.resize(); |
| | | this.myChart = this.$echarts.init(document.getElementById('echart46')); |
| | | this.myChart.setOption(option); |
| | | window.addEventListener('resize', function () { |
| | | this.myChart.resize(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | <template> |
| | | <div class="map_box"> |
| | | <div class="header_box"> |
| | | <!-- <div class="header_box"> |
| | | <h3 v-for="(e, i) in title" :key="i"> |
| | | <span v-if="typeIndex == i + 1">{{ e }}</span> |
| | | </h3> |
| | | <div class="close"> |
| | | <i class="el-icon-circle-close" @click="close"></i> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | <div id="map"></div> |
| | | <div class="left"> |
| | | <echart11 v-if="typeIndex == '1'" class="echart1"></echart11> |
| | |
| | | </div> |
| | | <div class="top_right"> |
| | | <el-form :inline="true" :model="formInline" class="demo-form-inline"> |
| | | <el-form-item> |
| | | <!-- <el-form-item> |
| | | <el-input |
| | | v-model="formInline.user" |
| | | suffix-icon="el-icon-search" |
| | | :placeholder="$t('common.pleaseInput')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item> |
| | | <el-button icon="el-icon-search" class="primaries">{{ |
| | | $t('common.iquery') |
| | | }}</el-button> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <el-form-item> |
| | | <el-button @click="getSpaceMapVisibale" class="primaries">{{ |
| | | $t('synthesis.rangequery') |
| | |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- |
| | | <div class="box_item"> |
| | | <div class="box_left">èµæç±»å«</div> |
| | | <div class="box_cont"> |
| | |
| | | <i class="el-icon-plus"></i> {{ $t('synthesis.Multiplechoice') }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | <div class="bottom_content"> |
| | | <div class="bottom_left"> |
| | | <div class="box_div">å½åæç´¢å
³é®è¯:</div> |
| | | <!-- <div class="box_div">å½åæç´¢å
³é®è¯:</div> --> |
| | | <div> |
| | | <ul> |
| | | <li>æç´¢ç±»å</li> |
| | |
| | | :data="tableData1" |
| | | style="width: 100%" |
| | | @selection-change="handleSelectionChange1" |
| | | height="86%" |
| | | height="100%" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column prop="name" :label="$t('dataManage.vmobj.name')" /> |
| | |
| | | .bottom_right { |
| | | width: calc(100% - 320px); |
| | | padding: 0px 20px; |
| | | max-height: 460px; |
| | | max-height: 600px; |
| | | overflow-y: auto; |
| | | color: white; |
| | | li { |
| | |
| | | margin: 0; |
| | | width: 300px; |
| | | height: auto; |
| | | |
| | | transition: width 2s; |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="themaic"> |
| | | <div class="headera-title"> |
| | | <div> |
| | | <el-form :inline="true" :model="formInline" class="demo-form-inline"> |
| | | <el-form-item> |
| | | <label class="th_title">{{ $t('themaic.name') }}</label> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-input |
| | | :placeholder="$t('common.pleaseInput')" |
| | | suffix-icon="el-icon-search" |
| | | v-model="input3" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div class="title_count" style="color: white"> |
| | | {{ $t('themaic.find') }} |
| | | <label style="magin: 0% 15px">{{ listcount }}</label> |
| | | {{ $t('themaic.record') }} |
| | | </div> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div class="header_right"> |
| | | <el-form :inline="true" :model="form" class="demo-form-inline"> |
| | | <el-form-item :label="$t('themaic.maptltle')"> |
| | | <el-select |
| | | v-model="selvalue" |
| | | class="m-2" |
| | | placeholder="Select" |
| | | style="width: 150px" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div class="margin-right: 32px;"> |
| | | <label style="margin-right: 10px; color: white" |
| | | >{{ $t('themaic.sortbytime') }}:</label |
| | | > |
| | | |
| | | <i |
| | | @click="changetime(1)" |
| | | :class="{ active: timeindex == 1 }" |
| | | class="el-icon-caret-bottom" |
| | | ></i> |
| | | |
| | | <i |
| | | @click="changetime(2)" |
| | | :class="{ active: timeindex == 2 }" |
| | | class="el-icon-caret-top" |
| | | ></i> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div> |
| | | <label style="margin-right: 10px; color: white" |
| | | >{{ $t('themaic.sortbyviews') }}:</label |
| | | > |
| | | |
| | | <i |
| | | @click="changeChecked(1)" |
| | | :class="{ active: checkindex == 1 }" |
| | | class="el-icon-caret-bottom" |
| | | ></i> |
| | | |
| | | <i |
| | | @click="changeChecked(2)" |
| | | :class="{ active: checkindex == 2 }" |
| | | class="el-icon-caret-top" |
| | | ></i> |
| | | </div> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="themaic_content"> |
| | | <div |
| | | @click="showThematic(item)" |
| | | v-for="(item, i) in middleList" |
| | | class="midedle_div" |
| | | :key="i" |
| | | > |
| | | <el-card class="middle_card"> |
| | | <table> |
| | | <tr> |
| | | <td> |
| | | <div class="midddle_title"> |
| | | <div class="t1">{{ item.name }}</div> |
| | | <div> |
| | | <label class="t2">{{ item.time }}</label |
| | | ><label class="t2">æµè§{{ item.count }}次</label> |
| | | </div> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <div |
| | | class="middle_image" |
| | | :style="{ |
| | | background: 'url(' + item.url + ') no-repeat center', |
| | | 'background-size': '100% 100%', |
| | | }" |
| | | ></div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td></td> |
| | | </tr> |
| | | </table> |
| | | </el-card> |
| | | </div> |
| | | </div> |
| | | <div style="display: flex; justify-content: center"> |
| | | <div class="pagination_box"> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="1" |
| | | :page-sizes="[1, 2, 5, 10]" |
| | | :page-size="10" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | <!-- <el-card style="height: 100%"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="6"> |
| | | <div class="th_title">{{ $t('themaic.name') }}</div> |
| | | </el-col> |
| | | <el-col :span="4" :offset="14"> |
| | | <el-input |
| | | size="small" |
| | | :placeholder="$t('common.pleaseInput')" |
| | | suffix-icon="el-icon-search" |
| | | v-model="input3" |
| | | > |
| | | </el-input> |
| | | </el-col> |
| | | </el-row> |
| | | <el-divider /> |
| | | <el-row> |
| | | <el-col :span="5"> |
| | | <label style="margin-right: 10px" |
| | | >{{ $t('themaic.maptltle') }}:</label |
| | | > |
| | | <el-select |
| | | v-model="selvalue" |
| | | class="m-2" |
| | | placeholder="Select" |
| | | style="width: 150px" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <div style="margin-top: 5px"> |
| | | <label style="margin-right: 10px" |
| | | >{{ $t('themaic.sortbytime') }}:</label |
| | | > |
| | | |
| | | <i |
| | | @click="changetime(1)" |
| | | :class="{ active: timeindex == 1 }" |
| | | class="el-icon-caret-bottom" |
| | | ></i> |
| | | |
| | | <i |
| | | @click="changetime(2)" |
| | | :class="{ active: timeindex == 2 }" |
| | | class="el-icon-caret-top" |
| | | ></i> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <div style="margin-top: 5px"> |
| | | <label style="margin-right: 10px" |
| | | >{{ $t('themaic.sortbyviews') }}:</label |
| | | > |
| | | |
| | | <i |
| | | @click="changeChecked(1)" |
| | | :class="{ active: checkindex == 1 }" |
| | | class="el-icon-caret-bottom" |
| | | ></i> |
| | | |
| | | <i |
| | | @click="changeChecked(2)" |
| | | :class="{ active: checkindex == 2 }" |
| | | class="el-icon-caret-top" |
| | | ></i> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="10"> </el-col> |
| | | <el-col :span="3"> |
| | | <div style="margin-top: 5px"> |
| | | {{ $t('themaic.find') }} |
| | | <label style="magin: 0% 15px">{{ listcount }}</label> |
| | | {{ $t('themaic.record') }} |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-divider /> |
| | | <el-card shadow="never" class="themic_middle_card"> |
| | | <div |
| | | @click="showThematic(item)" |
| | | v-for="(item, i) in middleList" |
| | | class="midedle_div" |
| | | :key="i" |
| | | > |
| | | <el-card class="middle_card"> |
| | | <!-- <div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | <table> |
| | | <tr> |
| | | <td> |
| | | <div class="t1">{{ item.name }}</div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <div |
| | | class="middle_image" |
| | | :style="{ |
| | | background: 'url(' + item.url + ') no-repeat center', |
| | | 'background-size': '100% 100%', |
| | | }" |
| | | ></div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <div style="position: absolute; bottom: 2%; right: 4%"> |
| | | <label class="t2">{{ item.time }}</label |
| | | ><label class="t2">æµè§{{ item.count }}次</label> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </el-card> |
| | | </div> |
| | | </el-card> |
| | | --> |
| | | <el-dialog |
| | | class="themaic_dialog" |
| | | :modal-append-to-body="true" |
| | | :append-to-body="true" |
| | | :show-close="false" |
| | | :visible.sync="dialogVisible" |
| | | width="99%" |
| | | :before-close="handleClose" |
| | | > |
| | | <map-View |
| | | v-if="dialogVisible" |
| | | @close="close" |
| | | :typeIndex="typeIndex" |
| | | ></map-View> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import mapView from '@/components/mapviewTwo'; |
| | | export default { |
| | | components: { |
| | | mapView, |
| | | }, |
| | | data() { |
| | | return { |
| | | dialogVisible: false, |
| | | input3: '', |
| | | count: 0, |
| | | listcount: 0, |
| | | checkindex: 1, |
| | | timeindex: 1, |
| | | pagesize: 10, |
| | | selvalue: 'å
¨é¨', |
| | | |
| | | middleList: [ |
| | | { |
| | | index: '1', |
| | | name: '管éåºç¡æ°æ®ä¸é¢å¾', |
| | | time: '2022-07-10', |
| | | count: '28', |
| | | url: require('../../assets/img/themic/a1.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj1.html', |
| | | }, |
| | | { |
| | | index: '2', |
| | | name: 'ç¨æ·ä½¿ç¨æ
åµä¸é¢å¾', |
| | | time: '2022-07-22', |
| | | count: '6', |
| | | url: require('../../assets/img/themic/a2.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj2.html', |
| | | }, |
| | | { |
| | | index: '3', |
| | | name: '项ç®åºæ¬æ
åµä¸é¢å¾', |
| | | time: '2022-06-25', |
| | | count: '23', |
| | | url: require('../../assets/img/themic/a3.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj3.html', |
| | | }, |
| | | { |
| | | index: '4', |
| | | name: '项ç®è¿åº¦ç®¡çä¸é¢å¾', |
| | | time: '2022-07-17', |
| | | count: '15', |
| | | url: require('../../assets/img/themic/a4.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj4.html', |
| | | }, |
| | | { |
| | | index: '5', |
| | | name: 'å
¨ç项ç®åå¸ä¸é¢å¾', |
| | | time: '2022-07-20', |
| | | count: '7', |
| | | url: require('../../assets/img/themic/a5.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj5.html', |
| | | }, |
| | | { |
| | | index: '6', |
| | | name: 'å
¨å½ç®¡ç½åå¸ä¸é¢å¾', |
| | | time: '2022-07-26', |
| | | count: '5', |
| | | url: require('../../assets/img/themic/a6.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj5.html', |
| | | }, |
| | | { |
| | | index: '7', |
| | | name: 'å
¨å½é¡¹ç®è¶³è¿¹ä¸é¢å¾', |
| | | time: '2022-06-30', |
| | | count: '10', |
| | | url: require('../../assets/img/themic/a7.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj5.html', |
| | | }, |
| | | ], |
| | | options: [ |
| | | { |
| | | value: 'å
¨é¨', |
| | | label: 'å
¨é¨', |
| | | }, |
| | | ], |
| | | typeIndex: '', |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.count = this.middleList.length; |
| | | this.listcount = this.middleList.length; |
| | | }, |
| | | created() { |
| | | var val = this.$store.state.currentPerms; |
| | | var permsEntity = this.$store.state.permsEntity; |
| | | for (var i = 0; i < permsEntity.length; i++) { |
| | | if (permsEntity[i].perms == val) { |
| | | // this.showMenuChange(permsEntity[i], permsEntity); |
| | | console.log('ä¸é¢å¾', permsEntity[i]); |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | close() { |
| | | this.$confirm('确认å
³éï¼') |
| | | .then((_) => { |
| | | this.dialogVisible = false; |
| | | }) |
| | | .catch((_) => {}); |
| | | }, |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`); |
| | | }, |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`); |
| | | }, |
| | | handleClose(done) { |
| | | this.$confirm('确认å
³éï¼') |
| | | .then((_) => { |
| | | done(); |
| | | }) |
| | | .catch((_) => {}); |
| | | }, |
| | | changeChecked(res) { |
| | | if (this.checkindex != res) { |
| | | this.checkindex = res; |
| | | } |
| | | }, |
| | | changetime(res) { |
| | | if (this.timeindex != res) { |
| | | this.timeindex = res; |
| | | } |
| | | }, |
| | | showThematic(res) { |
| | | this.typeIndex = res.index; |
| | | |
| | | this.dialogVisible = true; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | .themaic { |
| | | width: 100%; |
| | | height: 100%; |
| | | position: relative; |
| | | cursor: pointer; |
| | | overflow: hidden; |
| | | background: #303030; |
| | | |
| | | .headera-title { |
| | | width: calc(100% - 2px); |
| | | height: 70px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | background: #353539; |
| | | .th_title { |
| | | width: 81px; |
| | | height: 20px; |
| | | font-size: 21px; |
| | | font-family: Source Han Sans SC; |
| | | font-weight: 400; |
| | | color: #009cff; |
| | | line-height: 49px; |
| | | margin-left: 30px; |
| | | bottom: 24px; |
| | | } |
| | | |
| | | .title_count { |
| | | height: 18px; |
| | | font-size: 19px; |
| | | font-family: Source Han Sans CN; |
| | | font-weight: 200; |
| | | color: #ffffff; |
| | | } |
| | | .header_right { |
| | | float: right; |
| | | margin-right: 30px; |
| | | |
| | | height: 100%; |
| | | width: auto; |
| | | } |
| | | .active { |
| | | color: #409eff; |
| | | } |
| | | } |
| | | .themaic_content { |
| | | width: calc(100% - 54px); |
| | | height: 80%; |
| | | display: flex; |
| | | flex-flow: row wrap; |
| | | |
| | | justify-content: flex-start; |
| | | padding: 17px 27px 0px 27px; |
| | | |
| | | .midedle_div { |
| | | width: 456px; |
| | | height: 303px; |
| | | margin-right: 10px; |
| | | .t1 { |
| | | font-size: 16px; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #ffffff; |
| | | line-height: 35px; |
| | | } |
| | | .middle_image { |
| | | height: 220px; |
| | | width: 415px; |
| | | } |
| | | .t2 { |
| | | font-size: 12px; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #ffffff; |
| | | line-height: 35px; |
| | | } |
| | | .midddle_title { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | } |
| | | .themic_middle_card { |
| | | border: transparent; |
| | | } |
| | | /deep/.el-card { |
| | | background: #454545; |
| | | border: 1px solid #454545; |
| | | } |
| | | } |
| | | .pagination_box { |
| | | /deep/.el-input__inner { |
| | | background-color: transparent !important; |
| | | border: 1px solid; |
| | | color: white; |
| | | } |
| | | /deep/.el-pagination__total { |
| | | color: white; |
| | | } |
| | | /deep/.el-pagination__jump { |
| | | color: white; |
| | | } |
| | | /deep/.el-pager li.active { |
| | | color: #409eff; |
| | | } |
| | | /deep/.el-pager li { |
| | | color: white; |
| | | background: transparent; |
| | | } |
| | | /deep/.el-pager li { |
| | | color: white; |
| | | } |
| | | /deep/.btn-prev { |
| | | background: transparent; |
| | | } |
| | | /deep/.btn-next { |
| | | background: transparent; |
| | | } |
| | | } |
| | | /deep/.el-form-item__content { |
| | | line-height: 70px; |
| | | } |
| | | /deep/ .el-input__inner { |
| | | border: 1px solid white; |
| | | color: white; |
| | | } |
| | | /deep/.el-form-item__label { |
| | | color: white; |
| | | line-height: 70px; |
| | | } |
| | | /deep/ .el-form--inline .el-form-item { |
| | | margin-right: 32px; |
| | | } |
| | | /deep/.el-input__inner { |
| | | background-color: transparent !important ; |
| | | color: #fff; |
| | | border: 1px solid white !important; |
| | | } |
| | | } |
| | | |
| | | // .themaic .el-divider--horizontal { |
| | | // margin: 10px 0 !important; |
| | | // } |
| | | |
| | | // .themaic .th_title { |
| | | // font-size: 22px; |
| | | // font-family: Microsoft YaHei; |
| | | // font-weight: bold; |
| | | // color: #3b4d6e; |
| | | // } |
| | | |
| | | // .radiusSearch .el-input__wrapper { |
| | | // border-radius: 50px; |
| | | // } |
| | | |
| | | // .themaic .active { |
| | | // color: #409eff; |
| | | // } |
| | | |
| | | // .themaic .themic_middle_card { |
| | | // border: transparent; |
| | | |
| | | // } |
| | | |
| | | // .themaic .themic_middle_card .el-card__body { |
| | | // padding: 0px; |
| | | // } |
| | | |
| | | // .themaic |
| | | |
| | | // .themaic .midedle_div .middle_card { |
| | | // width: 100%; |
| | | // height: 100%; |
| | | // } |
| | | |
| | | // .themaic .midedle_div .middle_card .el-card__body { |
| | | // padding: 10px; |
| | | // } |
| | | |
| | | // .themaic .midedle_div .t1 { |
| | | // font-size: 16px; |
| | | // font-family: Microsoft YaHei; |
| | | // font-weight: bold; |
| | | // color: #000000; |
| | | // } |
| | | |
| | | // .themaic .midedle_div .t2 { |
| | | // font-size: 13px; |
| | | // font-family: Microsoft YaHei; |
| | | // font-weight: 400; |
| | | // color: #3f3f3f; |
| | | // margin-right: 10px; |
| | | // } |
| | | |
| | | // .themaic .midedle_div .middle_image { |
| | | // width: 94%; |
| | | // /* margin-top: 10px; */ |
| | | // height: 73%; |
| | | // position: absolute; |
| | | // } |
| | | </style> |
| | | <style> |
| | | .themaic_dialog .el-dialog { |
| | | background: rgba(0, 0, 0, 0.8) !important; |
| | | margin-top: 5px !important; |
| | | margin-bottom: 5px !important; |
| | | /* margin-top: 5px !important; |
| | | margin-top: 5px !important; */ |
| | | } |
| | | |
| | | .themaic_dialog .el-dialog__header { |
| | | background: transparent !important; |
| | | padding: 0; |
| | | margin: 0; |
| | | color: #fff; |
| | | } |
| | | |
| | | .themaic_dialog .el-dialog__body { |
| | | background: transparent !important; |
| | | height: 98vh; |
| | | padding: 0; |
| | | margin: 0; |
| | | font-size: 20px; |
| | | } |
| | | .el-card { |
| | | background: #303030; |
| | | border: 0px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | export const right_menu = [ |
| | | { |
| | | id: '1', |
| | | name: '项ç®å±ç¤º', |
| | | }, |
| | | { |
| | | id: '2', |
| | | name: 'å·¥ç¨å±ç¤º', |
| | | }, |
| | | { |
| | | id: '3', |
| | | name: 'å·¥ç¨å·¡è§', |
| | | }, |
| | | ]; |
| | | export const right_list = [ |
| | | [ |
| | | { id: 'a13', name: '大å±è§å¾', layer: [11, 12, 13, 14] }, |
| | | { id: 'a1', name: 'å
¨ç管ç½å¾', layer: [11, 12], index: '1' }, |
| | | { id: 'a2', name: 'å
¨ç项ç®è¶³è¿¹å¾', layer: [13, 14], index: '2' }, |
| | | { id: 'a3', name: 'å
¨å½å®ç½å¾', layer: [11, 13], index: '3' }, |
| | | { id: 'a4', name: 'å
¨å½é¡¹ç®è¶³è¿¹å¾', layer: [12, 14], index: '4' }, |
| | | { id: 'a5', name: '管éåºç¡æ°æ®ç»è®¡ååæ', layer: [11, 12, 13] }, |
| | | { id: 'a6', name: 'å
¨å½é¡¹ç®æ±ç¶å¾', layer: [11, 12, 14] }, |
| | | { id: 'a7', name: 'å
¨çé¡¹ç®æ±ç¶å¾', layer: [12, 13, 14] }, |
| | | { id: 'a8', name: 'å
¨ç项ç®é¥¼å¾', layer: [11] }, |
| | | { id: 'a9', name: 'å
¨å½é¡¹ç®é¥¼å¾', layer: [12] }, |
| | | { id: 'a11', name: 'å
¨çé¡¹ç®ææ¸²å¾', layer: [13] }, |
| | | { id: 'a12', name: 'å
¨å½é¡¹ç®ææ¸²å¾', layer: [14] }, |
| | | ], |
| | | [ |
| | | { id: 'b1', name: 'ä¸ä¿ä¸çº¿ç®¡éå·¥ç¨ä¸æ®µ' }, |
| | | { id: 'b2', name: '西æ°ä¸è¾ä¸çº¿ä¸æ®µç®¡éå·¥ç¨' }, |
| | | { id: 'b3', name: '西æ°ä¸è¾ä¸çº¿ä¸æ®µç®¡éå·¥ç¨' }, |
| | | { id: 'b4', name: 'ä¸ç¼
å¤©ç¶æ°ç®¡éé£é©ææ¥èªç©ºæå½±æµé' }, |
| | | { id: 'b5', name: 'å±±ä¸ç®¡ç½è¥¿å¹²çº¿é¡¹ç®' }, |
| | | ], |
| | | [ |
| | | { id: 'c1', name: '西æ°ä¸è¾ä¸çº¿' }, |
| | | { id: 'c2', name: '西æ°ä¸è¾äºçº¿è¥¿æ®µå¹²' }, |
| | | { id: 'c3', name: '西æ°ä¸è¾æ·®æ¦æ¯çº¿' }, |
| | | { id: 'c4', name: '西é¨å油管éå·¥ç¨' }, |
| | | ], |
| | | ]; |
| | | export const image_layer = [ |
| | | { |
| | | id: 1, |
| | | label: 'LF', |
| | | isEdit: false, |
| | | children: [ |
| | | { |
| | | id: 11, |
| | | label: '管éä¸å¿çº¿', |
| | | resource: 'LF:m_pipeline', |
| | | isEdit: false, |
| | | }, |
| | | { |
| | | id: 12, |
| | | label: 'æç¥éé', |
| | | resource: 'LF:th_strategic_channel', |
| | | isEdit: false, |
| | | }, |
| | | { |
| | | id: 13, |
| | | label: '项ç®', |
| | | resource: 'LF:bs_project', |
| | | isEdit: false, |
| | | }, |
| | | { |
| | | id: 14, |
| | | label: 'ç«åº', |
| | | resource: 'LF:m_sitepoint', |
| | | isEdit: false, |
| | | }, |
| | | ], |
| | | }, |
| | | ]; |
| | |
| | | <template> |
| | | <div class="themaic"> |
| | | <div class="headera-title"> |
| | | <div> |
| | | <el-form :inline="true" :model="formInline" class="demo-form-inline"> |
| | | <el-form-item> |
| | | <label class="th_title">{{ $t('themaic.name') }}</label> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-input |
| | | :placeholder="$t('common.pleaseInput')" |
| | | suffix-icon="el-icon-search" |
| | | v-model="input3" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div class="title_count" style="color: white"> |
| | | {{ $t('themaic.find') }} |
| | | <label style="magin: 0% 15px">{{ listcount }}</label> |
| | | {{ $t('themaic.record') }} |
| | | </div> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div class="header_right"> |
| | | <el-form :inline="true" :model="form" class="demo-form-inline"> |
| | | <el-form-item :label="$t('themaic.maptltle')"> |
| | | <el-select |
| | | v-model="selvalue" |
| | | class="m-2" |
| | | placeholder="Select" |
| | | style="width: 150px" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div class="margin-right: 32px;"> |
| | | <label style="margin-right: 10px; color: white" |
| | | >{{ $t('themaic.sortbytime') }}:</label |
| | | > |
| | | |
| | | <i |
| | | @click="changetime(1)" |
| | | :class="{ active: timeindex == 1 }" |
| | | class="el-icon-caret-bottom" |
| | | ></i> |
| | | |
| | | <i |
| | | @click="changetime(2)" |
| | | :class="{ active: timeindex == 2 }" |
| | | class="el-icon-caret-top" |
| | | ></i> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div> |
| | | <label style="margin-right: 10px; color: white" |
| | | >{{ $t('themaic.sortbyviews') }}:</label |
| | | > |
| | | |
| | | <i |
| | | @click="changeChecked(1)" |
| | | :class="{ active: checkindex == 1 }" |
| | | class="el-icon-caret-bottom" |
| | | ></i> |
| | | |
| | | <i |
| | | @click="changeChecked(2)" |
| | | :class="{ active: checkindex == 2 }" |
| | | class="el-icon-caret-top" |
| | | ></i> |
| | | </div> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="themaic_content"> |
| | | <div |
| | | @click="showThematic(item)" |
| | | v-for="(item, i) in middleList" |
| | | class="midedle_div" |
| | | :key="i" |
| | | > |
| | | <el-card class="middle_card"> |
| | | <table> |
| | | <tr> |
| | | <td> |
| | | <div class="midddle_title"> |
| | | <div class="t1">{{ item.name }}</div> |
| | | <div> |
| | | <label class="t2">{{ item.time }}</label |
| | | ><label class="t2">æµè§{{ item.count }}次</label> |
| | | </div> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <div |
| | | class="middle_image" |
| | | :style="{ |
| | | background: 'url(' + item.url + ') no-repeat center', |
| | | 'background-size': '100% 100%', |
| | | }" |
| | | ></div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td></td> |
| | | </tr> |
| | | </table> |
| | | </el-card> |
| | | </div> |
| | | </div> |
| | | <div style="display: flex; justify-content: center"> |
| | | <div class="pagination_box"> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="1" |
| | | :page-sizes="[1, 2, 5, 10]" |
| | | :page-size="10" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | | <div class="left_menu" :class="{ left_main_show: !leftMenuOpen }"> |
| | | <div class="tree-container"> |
| | | <el-tree |
| | | :data="treeData" |
| | | show-checkbox |
| | | node-key="id" |
| | | default-expand-all |
| | | :props="defaultProps" |
| | | ref="tree" |
| | | @check-change="handleCheckChange" |
| | | > |
| | | </el-pagination> |
| | | </el-tree> |
| | | </div> |
| | | </div> |
| | | <!-- <el-card style="height: 100%"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="6"> |
| | | <div class="th_title">{{ $t('themaic.name') }}</div> |
| | | </el-col> |
| | | <el-col :span="4" :offset="14"> |
| | | <el-input |
| | | size="small" |
| | | :placeholder="$t('common.pleaseInput')" |
| | | suffix-icon="el-icon-search" |
| | | v-model="input3" |
| | | > |
| | | </el-input> |
| | | </el-col> |
| | | </el-row> |
| | | <el-divider /> |
| | | <el-row> |
| | | <el-col :span="5"> |
| | | <label style="margin-right: 10px" |
| | | >{{ $t('themaic.maptltle') }}:</label |
| | | > |
| | | <el-select |
| | | v-model="selvalue" |
| | | class="m-2" |
| | | placeholder="Select" |
| | | style="width: 150px" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <div style="margin-top: 5px"> |
| | | <label style="margin-right: 10px" |
| | | >{{ $t('themaic.sortbytime') }}:</label |
| | | > |
| | | |
| | | <i |
| | | @click="changetime(1)" |
| | | :class="{ active: timeindex == 1 }" |
| | | class="el-icon-caret-bottom" |
| | | ></i> |
| | | |
| | | <i |
| | | @click="changetime(2)" |
| | | :class="{ active: timeindex == 2 }" |
| | | class="el-icon-caret-top" |
| | | ></i> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <div style="margin-top: 5px"> |
| | | <label style="margin-right: 10px" |
| | | >{{ $t('themaic.sortbyviews') }}:</label |
| | | > |
| | | |
| | | <i |
| | | @click="changeChecked(1)" |
| | | :class="{ active: checkindex == 1 }" |
| | | class="el-icon-caret-bottom" |
| | | ></i> |
| | | |
| | | <i |
| | | @click="changeChecked(2)" |
| | | :class="{ active: checkindex == 2 }" |
| | | class="el-icon-caret-top" |
| | | ></i> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="10"> </el-col> |
| | | <el-col :span="3"> |
| | | <div style="margin-top: 5px"> |
| | | {{ $t('themaic.find') }} |
| | | <label style="magin: 0% 15px">{{ listcount }}</label> |
| | | {{ $t('themaic.record') }} |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-divider /> |
| | | <el-card shadow="never" class="themic_middle_card"> |
| | | <div |
| | | @click="showThematic(item)" |
| | | v-for="(item, i) in middleList" |
| | | class="midedle_div" |
| | | :key="i" |
| | | > |
| | | <el-card class="middle_card"> |
| | | <!-- <div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | <table> |
| | | <tr> |
| | | <td> |
| | | <div class="t1">{{ item.name }}</div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <div |
| | | class="middle_image" |
| | | :style="{ |
| | | background: 'url(' + item.url + ') no-repeat center', |
| | | 'background-size': '100% 100%', |
| | | }" |
| | | ></div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <div style="position: absolute; bottom: 2%; right: 4%"> |
| | | <label class="t2">{{ item.time }}</label |
| | | ><label class="t2">æµè§{{ item.count }}次</label> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </el-card> |
| | | <div class="changeBaseLayer"> |
| | | <div @click="changeMenulayer" class="CenDiv"> |
| | | <div |
| | | id="cenBg" |
| | | v-bind:class="{ active: isActive, menuLayer: isMenuLayer }" |
| | | ></div> |
| | | </div> |
| | | </el-card> |
| | | --> |
| | | <el-dialog |
| | | class="themaic_dialog" |
| | | :modal-append-to-body="true" |
| | | :append-to-body="true" |
| | | :show-close="false" |
| | | :visible.sync="dialogVisible" |
| | | width="99%" |
| | | :before-close="handleClose" |
| | | > |
| | | <map-View |
| | | v-if="dialogVisible" |
| | | @close="close" |
| | | :typeIndex="typeIndex" |
| | | ></map-View> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | | <div class="center_content"> |
| | | <div id="MapView" class="MapView"> |
| | | <div class="leftEchart" v-show="openEcharts"> |
| | | <echart11 v-if="typeIndex == '1'" class="echart1"></echart11> |
| | | <echart12 v-if="typeIndex == '1'" class="echart1"></echart12> |
| | | <echart13 v-if="typeIndex == '1'" class="echart1"></echart13> |
| | | <echart21 v-if="typeIndex == '2'" class="echart1"></echart21> |
| | | <echart22 v-if="typeIndex == '2'" class="echart1"></echart22> |
| | | <echart23 v-if="typeIndex == '2'" class="echart1"></echart23> |
| | | <echart31 v-if="typeIndex == '3'" class="echart1"></echart31> |
| | | <echart32 v-if="typeIndex == '3'" class="echart1"></echart32> |
| | | <echart33 v-if="typeIndex == '3'" class="echart1"></echart33> |
| | | <echart44 v-if="typeIndex == '4'" class="echart1"></echart44> |
| | | <echart45 v-if="typeIndex == '4'" class="echart1"></echart45> |
| | | <echart46 v-if="typeIndex == '4'" class="echart1"></echart46> |
| | | </div> |
| | | <div class="rightEchart" v-show="openEcharts"> |
| | | > |
| | | <echart14 v-if="typeIndex == '1'" class="echart1"></echart14> |
| | | <echart15 v-if="typeIndex == '1'" class="echart1"></echart15> |
| | | <echart16 v-if="typeIndex == '1'" class="echart1"></echart16> |
| | | <echart24 v-if="typeIndex == '2'" class="echart1"></echart24> |
| | | <echart25 v-if="typeIndex == '2'" class="echart1"></echart25> |
| | | <echart26 v-if="typeIndex == '2'" class="echart1"></echart26> |
| | | <echart34 v-if="typeIndex == '3'" class="echart1"></echart34> |
| | | <echart35 v-if="typeIndex == '3'" class="echart1"></echart35> |
| | | <echart36 v-if="typeIndex == '3'" class="echart1"></echart36> |
| | | <echart41 v-if="typeIndex == '4'" class="echart1"></echart41> |
| | | <echart42 v-if="typeIndex == '4'" class="echart1"></echart42> |
| | | <echart43 v-if="typeIndex == '4'" class="echart1"></echart43> |
| | | </div> |
| | | <div class="left_content"> |
| | | <div v-show="leftMenuOpen" @click="showLeftMenu"> |
| | | <i style="color: white" class="el-icon-caret-left"></i> |
| | | </div> |
| | | <div v-show="!leftMenuOpen" @click="showLeftMenu"> |
| | | <i style="color: white" class="el-icon-caret-right"></i> |
| | | </div> |
| | | </div> |
| | | <div class="right_content"> |
| | | <div v-show="!rightMenuOpen" @click="showRightMenu"> |
| | | <i style="color: white" class="el-icon-caret-left"></i> |
| | | </div> |
| | | <div v-show="rightMenuOpen" @click="showRightMenu"> |
| | | <i style="color: white" class="el-icon-caret-right"></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="right_menu" :class="{ right_main_show: !rightMenuOpen }"> |
| | | <div class="content_right"> |
| | | <ul> |
| | | <li |
| | | @click="changeRightList(item)" |
| | | v-for="item in rightList" |
| | | :class="item.id == changeSelectli ? 'changeliStyle' : ''" |
| | | > |
| | | {{ item.name }} |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <div class="bottom_right"> |
| | | <div |
| | | v-for="item in rightMenu" |
| | | class="right_item" |
| | | :class="{ changeStyle: changeSelectStyle == item.id }" |
| | | @click="changeRightMenu(item)" |
| | | > |
| | | {{ item.name }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import mapView from '@/components/mapviewTwo'; |
| | | import mapsdk from '../../components/mapsdk.vue'; |
| | | import { right_menu, right_list, image_layer } from './index.js'; |
| | | import echart11 from '../../components/echart11.vue'; |
| | | import echart12 from '../../components/echart12.vue'; |
| | | import echart13 from '../../components/echart13.vue'; |
| | | import echart14 from '../../components/echart14.vue'; |
| | | import echart15 from '../../components/echart15.vue'; |
| | | import echart16 from '../../components/echart16.vue'; |
| | | import echart21 from '../../components/echart21.vue'; |
| | | import echart22 from '../../components/echart22.vue'; |
| | | import echart23 from '../../components/echart23.vue'; |
| | | import echart24 from '../../components/echart24.vue'; |
| | | import echart25 from '../../components/echart25.vue'; |
| | | import echart26 from '../../components/echart26.vue'; |
| | | import echart31 from '../../components/echart31.vue'; |
| | | import echart32 from '../../components/echart32.vue'; |
| | | import echart33 from '../../components/echart33.vue'; |
| | | import echart34 from '../../components/echart34.vue'; |
| | | import echart35 from '../../components/echart35.vue'; |
| | | import echart36 from '../../components/echart36.vue'; |
| | | import echart41 from '../../components/echart41.vue'; |
| | | import echart42 from '../../components/echart42.vue'; |
| | | import echart43 from '../../components/echart43.vue'; |
| | | import echart44 from '../../components/echart44.vue'; |
| | | import echart45 from '../../components/echart45.vue'; |
| | | import echart46 from '../../components/echart46.vue'; |
| | | import axios from 'axios'; |
| | | export default { |
| | | components: { |
| | | mapView, |
| | | mapsdk, |
| | | echart11, |
| | | echart12, |
| | | echart13, |
| | | echart14, |
| | | echart15, |
| | | echart16, |
| | | echart21, |
| | | echart22, |
| | | echart23, |
| | | echart24, |
| | | echart25, |
| | | echart26, |
| | | echart31, |
| | | echart32, |
| | | echart33, |
| | | echart34, |
| | | echart35, |
| | | echart36, |
| | | echart41, |
| | | echart43, |
| | | echart42, |
| | | echart44, |
| | | echart45, |
| | | echart46, |
| | | }, |
| | | data() { |
| | | return { |
| | | dialogVisible: false, |
| | | input3: '', |
| | | count: 0, |
| | | listcount: 0, |
| | | checkindex: 1, |
| | | timeindex: 1, |
| | | pagesize: 10, |
| | | selvalue: 'å
¨é¨', |
| | | |
| | | middleList: [ |
| | | { |
| | | index: '1', |
| | | name: '管éåºç¡æ°æ®ä¸é¢å¾', |
| | | time: '2022-07-10', |
| | | count: '28', |
| | | url: require('../../assets/img/themic/a1.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj1.html', |
| | | }, |
| | | { |
| | | index: '2', |
| | | name: 'ç¨æ·ä½¿ç¨æ
åµä¸é¢å¾', |
| | | time: '2022-07-22', |
| | | count: '6', |
| | | url: require('../../assets/img/themic/a2.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj2.html', |
| | | }, |
| | | { |
| | | index: '3', |
| | | name: '项ç®åºæ¬æ
åµä¸é¢å¾', |
| | | time: '2022-06-25', |
| | | count: '23', |
| | | url: require('../../assets/img/themic/a3.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj3.html', |
| | | }, |
| | | { |
| | | index: '4', |
| | | name: '项ç®è¿åº¦ç®¡çä¸é¢å¾', |
| | | time: '2022-07-17', |
| | | count: '15', |
| | | url: require('../../assets/img/themic/a4.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj4.html', |
| | | }, |
| | | { |
| | | index: '5', |
| | | name: 'å
¨ç项ç®åå¸ä¸é¢å¾', |
| | | time: '2022-07-20', |
| | | count: '7', |
| | | url: require('../../assets/img/themic/a5.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj5.html', |
| | | }, |
| | | { |
| | | index: '6', |
| | | name: 'å
¨å½ç®¡ç½åå¸ä¸é¢å¾', |
| | | time: '2022-07-26', |
| | | count: '5', |
| | | url: require('../../assets/img/themic/a6.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj5.html', |
| | | }, |
| | | { |
| | | index: '7', |
| | | name: 'å
¨å½é¡¹ç®è¶³è¿¹ä¸é¢å¾', |
| | | time: '2022-06-30', |
| | | count: '10', |
| | | url: require('../../assets/img/themic/a7.jpg'), |
| | | pop: '/LFWeb/content/right/xxtj/xxtj5.html', |
| | | }, |
| | | ], |
| | | options: [ |
| | | { |
| | | value: 'å
¨é¨', |
| | | label: 'å
¨é¨', |
| | | }, |
| | | ], |
| | | typeIndex: '', |
| | | typeIndex: null, |
| | | leftMenuOpen: false, |
| | | rightMenuOpen: false, |
| | | changeSelectStyle: null, |
| | | changeSelectli: null, |
| | | rightMenu: [], |
| | | rightList: [], |
| | | treeData: [], |
| | | centerFlag: false, |
| | | isActive: true, |
| | | isMenuLayer: false, |
| | | openEcharts: false, |
| | | defaultProps: { |
| | | children: 'children', |
| | | label: 'label', |
| | | }, |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.count = this.middleList.length; |
| | | this.listcount = this.middleList.length; |
| | | this.treeData = image_layer; |
| | | this.rightList = right_list[0]; |
| | | this.rightMenu = right_menu; |
| | | this.changeSelectli = this.rightList[0].id; |
| | | this.changeSelectStyle = this.rightMenu[0].id; |
| | | this.initMapView(); |
| | | this.addImageLayer(); |
| | | }, |
| | | created() { |
| | | var val = this.$store.state.currentPerms; |
| | | var permsEntity = this.$store.state.permsEntity; |
| | | for (var i = 0; i < permsEntity.length; i++) { |
| | | if (permsEntity[i].perms == val) { |
| | | // this.showMenuChange(permsEntity[i], permsEntity); |
| | | console.log('ä¸é¢å¾', permsEntity[i]); |
| | | } |
| | | } |
| | | }, |
| | | created() {}, |
| | | methods: { |
| | | close() { |
| | | this.$confirm('确认å
³éï¼') |
| | | .then((_) => { |
| | | this.dialogVisible = false; |
| | | }) |
| | | .catch((_) => {}); |
| | | }, |
| | | handleSizeChange(val) { |
| | | console.log(`æ¯é¡µ ${val} æ¡`); |
| | | }, |
| | | handleCurrentChange(val) { |
| | | console.log(`å½å页: ${val}`); |
| | | }, |
| | | handleClose(done) { |
| | | this.$confirm('确认å
³éï¼') |
| | | .then((_) => { |
| | | done(); |
| | | }) |
| | | .catch((_) => {}); |
| | | }, |
| | | changeChecked(res) { |
| | | if (this.checkindex != res) { |
| | | this.checkindex = res; |
| | | changeRightList(res) { |
| | | this.changeSelectli = res.id; |
| | | if (res.layer != null) { |
| | | var layer = res.layer; |
| | | this.$refs.tree.setCheckedKeys(layer); |
| | | } |
| | | }, |
| | | changetime(res) { |
| | | if (this.timeindex != res) { |
| | | this.timeindex = res; |
| | | if (res.index != null) { |
| | | this.openEcharts = true; |
| | | this.typeIndex = res.index; |
| | | } else { |
| | | this.openEcharts = false; |
| | | this.typeIndex = null; |
| | | } |
| | | }, |
| | | showThematic(res) { |
| | | this.typeIndex = res.index; |
| | | var vid = res.id; |
| | | |
| | | this.dialogVisible = true; |
| | | if (vid.indexOf('b') != -1) { |
| | | var url = geoserverWFS + '%27' + res.name + '%27'; |
| | | axios.get(url).then((res) => { |
| | | if (res.status == 200) { |
| | | var point = res.data.features[0].geometry.coordinates; |
| | | //å®ä½ |
| | | MapViewer.camera.flyTo({ |
| | | //跳转è§è§ |
| | | destination: new Cesium.Cartesian3.fromDegrees( |
| | | point[0], |
| | | point[1], |
| | | 8000 |
| | | ), |
| | | }); |
| | | } |
| | | }); |
| | | } else if (vid.indexOf('a') != -1) { |
| | | //å®ä½ |
| | | MapViewer.camera.flyTo({ |
| | | //跳转è§è§ |
| | | destination: new Cesium.Cartesian3.fromDegrees(105.02, 34.9, 8000000), |
| | | }); |
| | | } else if (vid.indexOf('c') != -1) { |
| | | var url = geoserverWFSLine + '%27' + res.name + '%27'; |
| | | axios.get(url).then((res) => { |
| | | if (res.status == 200) { |
| | | if (res.data.features.length == 0) return; |
| | | var std = []; |
| | | for (var i in res.data.features) { |
| | | var featurLayer = res.data.features[i]; |
| | | var path = featurLayer.geometry.coordinates[0]; |
| | | for (var j in path) { |
| | | std.push(path[j][0], path[j][1], 50); |
| | | } |
| | | } |
| | | this.showPathLine(std); |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | showPathLine(res) { |
| | | sgworld.Creator.getFlyData(res, (data) => { |
| | | data.showPoint = false; |
| | | data.showLine = true; |
| | | data.mode = 1; |
| | | // å¼¹çªæ°æ® |
| | | window.PathAnimationData = { |
| | | flyData: data, |
| | | }; |
| | | window.PathAnimationData.winIndex = layer.open({ |
| | | type: 2, |
| | | title: 'è·¯å¾å¨ç»', |
| | | shade: false, |
| | | area: ['352px', '690px'], |
| | | offset: 'r', |
| | | skin: 'other-class', |
| | | content: SmartEarthRootUrl + 'Workers/path/Path.html', |
| | | end: function () { |
| | | PathAnimationData.fly && PathAnimationData.fly.exit(); |
| | | }, |
| | | }); |
| | | }); |
| | | }, |
| | | showLeftMenu() { |
| | | this.leftMenuOpen = !this.leftMenuOpen; |
| | | var a = 0; |
| | | var layer = setInterval(() => { |
| | | a++; |
| | | this.$bus.$emit('resizeEchart', true); |
| | | if (a == 20) { |
| | | clearInterval(layer); |
| | | this.$bus.$emit('resizeEchart', true); |
| | | } |
| | | }, 100); |
| | | }, |
| | | showRightMenu() { |
| | | this.rightMenuOpen = !this.rightMenuOpen; |
| | | var a = 0; |
| | | var layer = setInterval(() => { |
| | | a++; |
| | | this.$bus.$emit('resizeEchart', true); |
| | | if (a == 20) { |
| | | clearInterval(layer); |
| | | this.$bus.$emit('resizeEchart', true); |
| | | } |
| | | }, 100); |
| | | }, |
| | | changeRightMenu(res) { |
| | | this.rightList = right_list[parseInt(res.id) - 1]; |
| | | this.changeSelectStyle = res.id; |
| | | }, |
| | | initMapView() { |
| | | window.sgworld = new SmartEarth.SGWorld('MapView', { |
| | | licenseServer: window.sceneConfig.licenseServer, |
| | | }); |
| | | |
| | | window.MapViewer = window.sgworld._Viewer; |
| | | |
| | | //å®ä½ |
| | | sgworld.Navigate.jumpTo({ |
| | | //跳转è§è§ |
| | | destination: new Cesium.Cartesian3.fromDegrees(105.02, 34.9, 8000000), |
| | | }); |
| | | |
| | | MapViewer.imageryLayers.addImageryProvider( |
| | | new Cesium.WebMapTileServiceImageryProvider({ |
| | | url: 'http://t0.tianditu.com/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=94a34772eb88317fcbf8428e10448561', |
| | | layer: 'tdtBasicLayer', |
| | | style: 'default', |
| | | format: 'image/jpeg', |
| | | tileMatrixSetID: 'GoogleMapsCompatible', |
| | | show: false, |
| | | }) |
| | | ); |
| | | |
| | | MapViewer.imageryLayers.addImageryProvider( |
| | | new Cesium.WebMapTileServiceImageryProvider({ |
| | | url: 'http://t0.tianditu.com/vec_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=vec&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=94a34772eb88317fcbf8428e10448561', |
| | | layer: 'tdtVecBasicLayer', |
| | | style: 'default', |
| | | format: 'image/jpeg', |
| | | tileMatrixSetID: 'GoogleMapsCompatible', |
| | | show: false, |
| | | }) |
| | | ); |
| | | MapViewer.imageryLayers.addImageryProvider( |
| | | new Cesium.WebMapTileServiceImageryProvider({ |
| | | url: 'http://t0.tianditu.com/cva_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=cva&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default.jpg&tk=94a34772eb88317fcbf8428e10448561', |
| | | layer: 'tdtAnnoLayer', |
| | | style: 'default', |
| | | format: 'image/jpeg', |
| | | tileMatrixSetID: 'GoogleMapsCompatible', |
| | | }) |
| | | ); |
| | | //æ¾ç¤ºfps |
| | | MapViewer.scene.debugShowFramesPerSecond = false; |
| | | //å¯¼èªæ§ä»¶ |
| | | window.sgworld.navControl('nav', false); |
| | | //æ¯ä¾å°º |
| | | window.sgworld.navControl('scale', false); |
| | | }, |
| | | changeMenulayer() { |
| | | this.isActive = !this.isActive; |
| | | this.isMenuLayer = !this.isMenuLayer; |
| | | this.setLayerVisible(); |
| | | }, |
| | | setLayerVisible() { |
| | | if (this.isActive == true) { |
| | | MapViewer.imageryLayers.get(2).show = true; |
| | | MapViewer.imageryLayers.get(1).show = false; |
| | | } else { |
| | | MapViewer.imageryLayers.get(2).show = false; |
| | | MapViewer.imageryLayers.get(1).show = true; |
| | | } |
| | | }, |
| | | addImageLayer() { |
| | | var val_layer = this.treeData[0].children; |
| | | var std = []; |
| | | for (var i = 0; i < val_layer.length; i++) { |
| | | let layerWMS = new Cesium.WebMapServiceImageryProvider({ |
| | | url: geoServerURl, |
| | | layers: val_layer[i].resource, |
| | | parameters: { |
| | | transparent: true, |
| | | format: 'image/png', |
| | | }, |
| | | }); |
| | | layerWMS.name = val_layer[i].label; |
| | | window.MapViewer.imageryLayers.addImageryProvider(layerWMS); |
| | | std.push(val_layer[i].id); |
| | | } |
| | | this.$refs.tree.setCheckedKeys(std); |
| | | }, |
| | | handleCheckChange(data, checked, indeterminate) { |
| | | if (data.children != null) return; |
| | | for (var i = 0; i < window.MapViewer.imageryLayers._layers.length; i++) { |
| | | var val_id = |
| | | window.MapViewer.imageryLayers._layers[i].imageryProvider.name; |
| | | if (val_id == data.label) { |
| | | const img_layer = window.MapViewer.imageryLayers._layers[i]; |
| | | img_layer.show = checked; |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | .themaic { |
| | | width: 100%; |
| | | height: 100%; |
| | | position: relative; |
| | | cursor: pointer; |
| | | overflow: hidden; |
| | | background: #303030; |
| | | |
| | | .headera-title { |
| | | width: calc(100% - 2px); |
| | | height: 70px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | background: #353539; |
| | | .th_title { |
| | | width: 81px; |
| | | height: 20px; |
| | | font-size: 21px; |
| | | font-family: Source Han Sans SC; |
| | | font-weight: 400; |
| | | color: #009cff; |
| | | line-height: 49px; |
| | | margin-left: 30px; |
| | | bottom: 24px; |
| | | position: relative; |
| | | display: flex; |
| | | overflow: hidden; |
| | | .left_menu { |
| | | margin: 0; |
| | | width: 300px; |
| | | height: 100%; |
| | | transition: width 2s; |
| | | background: #133a5f; |
| | | .tree-container { |
| | | margin: 10px; |
| | | } |
| | | |
| | | .title_count { |
| | | height: 18px; |
| | | font-size: 19px; |
| | | font-family: Source Han Sans CN; |
| | | font-weight: 200; |
| | | color: #ffffff; |
| | | } |
| | | .header_right { |
| | | float: right; |
| | | margin-right: 30px; |
| | | |
| | | height: 100%; |
| | | width: auto; |
| | | } |
| | | .active { |
| | | color: #409eff; |
| | | .changeBaseLayer { |
| | | width: 100%; |
| | | height: 80px; |
| | | margin-top: calc(190% - 10px); |
| | | display: flex; |
| | | align-items: flex-end; |
| | | justify-content: flex-end; |
| | | .CenDiv { |
| | | height: 40px; |
| | | width: 60px; |
| | | margin: 2%; |
| | | border-radius: 5px; |
| | | } |
| | | .CenDiv:hover { |
| | | border: 1px solid #409eff; |
| | | } |
| | | .active { |
| | | height: 40px; |
| | | width: 60px; |
| | | background: url('../../assets/img/Layer/imgLayer2.png') no-repeat center; |
| | | position: absolute; |
| | | background-size: 100% 100%; |
| | | border-radius: 5px; |
| | | } |
| | | .menuLayer { |
| | | height: 40px; |
| | | width: 60px; |
| | | background: url('../../assets/img/Layer/imgLayer1.png') no-repeat center; |
| | | position: absolute; |
| | | background-size: 100% 100%; |
| | | border-radius: 5px; |
| | | } |
| | | } |
| | | } |
| | | .themaic_content { |
| | | width: calc(100% - 54px); |
| | | height: 80%; |
| | | display: flex; |
| | | flex-flow: row wrap; |
| | | |
| | | justify-content: flex-start; |
| | | padding: 17px 27px 0px 27px; |
| | | |
| | | .midedle_div { |
| | | width: 456px; |
| | | height: 303px; |
| | | margin-right: 10px; |
| | | .t1 { |
| | | font-size: 16px; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #ffffff; |
| | | line-height: 35px; |
| | | } |
| | | .middle_image { |
| | | height: 220px; |
| | | width: 415px; |
| | | } |
| | | .t2 { |
| | | font-size: 12px; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #ffffff; |
| | | line-height: 35px; |
| | | } |
| | | .midddle_title { |
| | | .center_content { |
| | | flex: 1; |
| | | height: 100%; |
| | | .MapView { |
| | | width: 100%; |
| | | height: 100%; |
| | | overflow: hidden; |
| | | margin: 0; |
| | | padding: 0; |
| | | float: left; |
| | | position: relative; |
| | | .leftEchart { |
| | | z-index: 60; |
| | | position: absolute; |
| | | height: 100%; |
| | | width: 20%; |
| | | margin-left: 1.5%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | } |
| | | } |
| | | .themic_middle_card { |
| | | border: transparent; |
| | | } |
| | | /deep/.el-card { |
| | | background: #454545; |
| | | border: 1px solid #454545; |
| | | .rightEchart { |
| | | z-index: 60; |
| | | position: absolute; |
| | | height: 100%; |
| | | width: 20%; |
| | | right: 0; |
| | | opacity: 0.5; |
| | | margin-right: 1.5%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | } |
| | | .right_content { |
| | | width: 10px; |
| | | height: 100%; |
| | | z-index: 60; |
| | | display: flex; |
| | | align-items: center; |
| | | right: 0; |
| | | position: absolute; |
| | | padding: 0px 5px; |
| | | } |
| | | .left_content { |
| | | width: 10px; |
| | | height: 100%; |
| | | z-index: 60; |
| | | left: 0; |
| | | position: absolute; |
| | | display: flex; |
| | | align-items: center; |
| | | padding: 0px 5px; |
| | | } |
| | | } |
| | | } |
| | | .pagination_box { |
| | | /deep/.el-input__inner { |
| | | background-color: transparent !important; |
| | | border: 1px solid; |
| | | color: white; |
| | | .item_menu { |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .left_main_show { |
| | | width: 0; |
| | | } |
| | | .right_menu { |
| | | margin: 0; |
| | | width: 300px; |
| | | height: 100%; |
| | | transition: width 2s; |
| | | background: #133a5f; |
| | | |
| | | .content_right { |
| | | width: calc(100% -20px); |
| | | height: 95%; |
| | | li { |
| | | border-bottom: 1px solid white; |
| | | padding: 10px 10px; |
| | | color: white; |
| | | } |
| | | li:hover { |
| | | color: #409eff; |
| | | } |
| | | .changeliStyle { |
| | | color: #409eff; |
| | | } |
| | | } |
| | | /deep/.el-pagination__total { |
| | | color: white; |
| | | |
| | | .bottom_right { |
| | | width: 100%; |
| | | height: 5%; |
| | | display: flex; |
| | | position: relative; |
| | | .right_item { |
| | | align-items: center; |
| | | display: flex; |
| | | height: calc(100% - 2px); |
| | | flex-grow: 1; |
| | | justify-content: center; |
| | | font-size: 16px; |
| | | font-family: Source Han Sans SC; |
| | | font-weight: 400; |
| | | color: white; |
| | | border-bottom: 1px solid white; |
| | | border-top: 1px solid white; |
| | | border-left: 1px solid white; |
| | | } |
| | | } |
| | | /deep/.el-pagination__jump { |
| | | color: white; |
| | | } |
| | | /deep/.el-pager li.active { |
| | | color: #409eff; |
| | | } |
| | | /deep/.el-pager li { |
| | | color: white; |
| | | background: transparent; |
| | | } |
| | | /deep/.el-pager li { |
| | | color: white; |
| | | } |
| | | /deep/.btn-prev { |
| | | background: transparent; |
| | | } |
| | | /deep/.btn-next { |
| | | background: transparent; |
| | | .changeStyle { |
| | | background: #409eff; |
| | | } |
| | | } |
| | | /deep/.el-form-item__content { |
| | | line-height: 70px; |
| | | |
| | | .right_main_show { |
| | | width: 0; |
| | | } |
| | | /deep/ .el-input__inner { |
| | | border: 1px solid white; |
| | | color: white; |
| | | .echart1 { |
| | | width: 88%; |
| | | height: 27%; |
| | | border: 3px solid rgba(204, 204, 204, 0.76); |
| | | border-radius: 10px; |
| | | background: rgba(0, 0, 0, 0.4); |
| | | } |
| | | /deep/.el-form-item__label { |
| | | color: white; |
| | | line-height: 70px; |
| | | |
| | | /deep/ .el-tree { |
| | | padding-top: 15px; |
| | | padding-left: 10px; |
| | | // ä¸å¯å
¨éæ ·å¼ |
| | | .el-tree-node { |
| | | .is-leaf + .el-checkbox .el-checkbox__inner { |
| | | display: inline-block; |
| | | } |
| | | .el-checkbox .el-checkbox__inner { |
| | | display: none; |
| | | } |
| | | } |
| | | } |
| | | /deep/ .el-form--inline .el-form-item { |
| | | margin-right: 32px; |
| | | } |
| | | /deep/.el-input__inner { |
| | | background-color: transparent !important ; |
| | | color: #fff; |
| | | border: 1px solid white !important; |
| | | } |
| | | } |
| | | |
| | | // .themaic .el-divider--horizontal { |
| | | // margin: 10px 0 !important; |
| | | // } |
| | | |
| | | // .themaic .th_title { |
| | | // font-size: 22px; |
| | | // font-family: Microsoft YaHei; |
| | | // font-weight: bold; |
| | | // color: #3b4d6e; |
| | | // } |
| | | |
| | | // .radiusSearch .el-input__wrapper { |
| | | // border-radius: 50px; |
| | | // } |
| | | |
| | | // .themaic .active { |
| | | // color: #409eff; |
| | | // } |
| | | |
| | | // .themaic .themic_middle_card { |
| | | // border: transparent; |
| | | |
| | | // } |
| | | |
| | | // .themaic .themic_middle_card .el-card__body { |
| | | // padding: 0px; |
| | | // } |
| | | |
| | | // .themaic |
| | | |
| | | // .themaic .midedle_div .middle_card { |
| | | // width: 100%; |
| | | // height: 100%; |
| | | // } |
| | | |
| | | // .themaic .midedle_div .middle_card .el-card__body { |
| | | // padding: 10px; |
| | | // } |
| | | |
| | | // .themaic .midedle_div .t1 { |
| | | // font-size: 16px; |
| | | // font-family: Microsoft YaHei; |
| | | // font-weight: bold; |
| | | // color: #000000; |
| | | // } |
| | | |
| | | // .themaic .midedle_div .t2 { |
| | | // font-size: 13px; |
| | | // font-family: Microsoft YaHei; |
| | | // font-weight: 400; |
| | | // color: #3f3f3f; |
| | | // margin-right: 10px; |
| | | // } |
| | | |
| | | // .themaic .midedle_div .middle_image { |
| | | // width: 94%; |
| | | // /* margin-top: 10px; */ |
| | | // height: 73%; |
| | | // position: absolute; |
| | | // } |
| | | </style> |
| | | <style> |
| | | .themaic_dialog .el-dialog { |
| | | background: rgba(0, 0, 0, 0.8) !important; |
| | | margin-top: 5px !important; |
| | | margin-bottom: 5px !important; |
| | | /* margin-top: 5px !important; |
| | | margin-top: 5px !important; */ |
| | | } |
| | | |
| | | .themaic_dialog .el-dialog__header { |
| | | background: transparent !important; |
| | | padding: 0; |
| | | margin: 0; |
| | | color: #fff; |
| | | } |
| | | |
| | | .themaic_dialog .el-dialog__body { |
| | | background: transparent !important; |
| | | height: 98vh; |
| | | padding: 0; |
| | | margin: 0; |
| | | font-size: 20px; |
| | | } |
| | | .el-card { |
| | | background: #303030; |
| | | border: 0px; |
| | | } |
| | | </style> |
| | |
| | | @node-drop="handleDrop" |
| | | @node-contextmenu="rightClick" |
| | | :filter-node-method="filterNode" |
| | | @check-change="handleCheckChange" |
| | | :default-checked-keys="handleTreeCheck" |
| | | draggable |
| | | :allow-drop="allowDrop" |
| | | :allow-drag="allowDrag" |
| | |
| | | appendNodetitle: '', |
| | | maxexpandId: 4, |
| | | rightClickMenuStyle: {}, |
| | | handleTreeCheck: [], |
| | | dialogVisible: false, |
| | | addFormServer: {}, |
| | | layerId: [ |
| | | 'm_pipeline', |
| | | 'th_strategic_channel', |
| | | 'bs_project', |
| | | 'm_sitepoint', |
| | | ], |
| | | treeData: [ |
| | | { |
| | | id: 1, |
| | | label: 'å½±å', |
| | | label: 'LF', |
| | | isEdit: false, |
| | | children: [], |
| | | }, |
| | | { |
| | | id: 2, |
| | | label: 'å°å½¢', |
| | | isEdit: false, |
| | | children: [], |
| | | }, |
| | | { |
| | | id: 3, |
| | | label: '模å', |
| | | isEdit: false, |
| | | children: [], |
| | | }, |
| | | { |
| | | id: 4, |
| | | label: 'ç¢é', |
| | | isEdit: false, |
| | | children: [], |
| | | children: [ |
| | | { |
| | | id: 11, |
| | | label: '管éä¸å¿çº¿', |
| | | resource: 'LF:m_pipeline', |
| | | isEdit: false, |
| | | }, |
| | | { |
| | | id: 12, |
| | | label: 'æç¥éé', |
| | | resource: 'LF:th_strategic_channel', |
| | | isEdit: false, |
| | | }, |
| | | { |
| | | id: 13, |
| | | label: '项ç®', |
| | | resource: 'LF:bs_project', |
| | | isEdit: false, |
| | | }, |
| | | { |
| | | id: 14, |
| | | label: 'ç«åº', |
| | | resource: 'LF:m_sitepoint', |
| | | isEdit: false, |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | | defaultProps: { |
| | |
| | | // é¼ æ å·¦å»äºä»¶ |
| | | handleLeftclick(data, node) { |
| | | this.foo(); |
| | | if (node.checked == true) { |
| | | for (var i = 0; i < window.Viewer.imageryLayers._layers.length; i++) { |
| | | var val_id = |
| | | window.Viewer.imageryLayers._layers[i].imageryProvider.name; |
| | | if (val_id == data.label) { |
| | | const img_layer = window.Viewer.imageryLayers._layers[i]; |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | // åæ¶é¼ æ çå¬äºä»¶ èåæ |
| | | foo() { |
| | |
| | | this.addFormServer = {}; |
| | | }, |
| | | setAddServer() { |
| | | debugger; |
| | | var data = this.addFormServer; |
| | | data.id = Math.ceil(Math.random() * 100); |
| | | this.$refs.tree.append(data, this.currentNode); |
| | |
| | | handleDrop(draggingNode, dropNode, dropType, ev) { |
| | | console.log('tree drop: ', dropNode.label, dropType); |
| | | }, |
| | | handleCheckChange(data, checked, indeterminate) { |
| | | if (data.children != null) return; |
| | | var std = []; |
| | | if (checked == true) { |
| | | for (var i = 0; i < window.Viewer.imageryLayers._layers.length; i++) { |
| | | var val_id = |
| | | window.Viewer.imageryLayers._layers[i].imageryProvider.name; |
| | | if (val_id == data.label) { |
| | | std.push(data.label); |
| | | } |
| | | } |
| | | if (std.length == 0) { |
| | | let layerWMS = new Cesium.WebMapServiceImageryProvider({ |
| | | url: geoServerURl, |
| | | layers: data.resource, |
| | | parameters: { |
| | | transparent: true, |
| | | format: 'image/png', |
| | | }, |
| | | }); |
| | | layerWMS.name = data.label; |
| | | window.Viewer.imageryLayers.addImageryProvider(layerWMS); |
| | | } |
| | | } else { |
| | | for (var i = 0; i < window.Viewer.imageryLayers._layers.length; i++) { |
| | | var val_id = |
| | | window.Viewer.imageryLayers._layers[i].imageryProvider.name; |
| | | if (val_id == data.label) { |
| | | const img_layer = window.Viewer.imageryLayers._layers[i]; |
| | | window.Viewer.imageryLayers.remove(img_layer); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | watch: { |
| | | filterText(val) { |
| | | this.$refs.tree.filter(val); |
| | | }, |
| | | }, |
| | | mounted() {}, |
| | | mounted() { |
| | | var std = []; |
| | | var val = this.treeData[0].children; |
| | | for (var i = 0; i < window.Viewer.imageryLayers._layers.length; i++) { |
| | | var val_id = window.Viewer.imageryLayers._layers[i].imageryProvider.name; |
| | | for (var j = 0; j < val.length; j++) { |
| | | if (val_id == val[j].label) { |
| | | std.push(val[j].id); |
| | | } |
| | | } |
| | | } |
| | | this.$refs.tree.setCheckedKeys(std); |
| | | }, |
| | | }; |
| | | </script> |
| | | <style scoped lang="less"> |
| | |
| | | import { |
| | | mapState, |
| | | mapMutations |
| | | } from 'vuex' |
| | | import { mapState, mapMutations } from 'vuex'; |
| | | export default { |
| | | computed: { |
| | | ...mapState('layerTree', [ |
| | | 'treeData', |
| | | ]), |
| | | ...mapState('user', [ |
| | | 'user', |
| | | ]), |
| | | // ...mapState('layerTree', [ |
| | | // 'treeData', |
| | | // ]), |
| | | ...mapState('user', ['user']), |
| | | ...mapState('mapTools', [ |
| | | 'hideTools', |
| | | 'hidePositionBtn', |
| | | 'statusbar', |
| | | 'navBar', |
| | | 'scaleBarStatus' |
| | | 'scaleBarStatus', |
| | | ]), |
| | | ...mapState('mapStatus', [ |
| | | 'viewCenter', |
| | | 'mapStatus', |
| | | ]) |
| | | ...mapState('mapStatus', ['viewCenter', 'mapStatus']), |
| | | }, |
| | | methods: { |
| | | ...mapMutations('layerTree', [ |
| | |
| | | 'addTreeChildren', |
| | | 'updataTreeNode', |
| | | 'checkTreeNode', |
| | | 'removeTreeNode' |
| | | 'removeTreeNode', |
| | | ]), |
| | | ...mapMutations('user', [ |
| | | 'changeUserData', |
| | | ]), |
| | | ...mapMutations('user', ['changeUserData']), |
| | | ...mapMutations('mapTools', [ |
| | | 'changeScaleBarVisible', |
| | | 'changeNavBarVisible', |
| | | 'changeMapToolsVisible', |
| | | ]), |
| | | ...mapMutations('mapStatus', [ |
| | | 'setView', |
| | | 'changeMapStatus', |
| | | ]) |
| | | } |
| | | } |
| | | ...mapMutations('mapStatus', ['setView', 'changeMapStatus']), |
| | | }, |
| | | }; |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-divider class="eldivider" /> |
| | | <div style="height: 85%"> |
| | | <div style="height=500px"> |
| | | <el-table |
| | | ref="filterTable" |
| | | :data="tableData" |
| | |
| | | if (data.children != null) return; |
| | | this.listData.name = data.entity; //è¦æ¥è¯¢è¡¨æ ¼ç±»åï¼ |
| | | this.getClickTable = data; |
| | | this.listData.pageIndex =1; |
| | | this.listData.pageSize=10; |
| | | this.count = 0; |
| | | this.filedsLayer = this.getCollapseDomFiled(); //è·åæ¯ä¸ªè¡¨å段åç§°åéå¼ |
| | | |
| | | //è·åtableä¿¡æ¯ |
| | |
| | | }, |
| | | //å页ç¹å»äºä»¶ |
| | | handleSizeChange(val) { |
| | | this.listdata.pageSize = val; |
| | | this.listdata.pageIndex = 1; |
| | | this.listData.pageSize = val; |
| | | this.listData.pageIndex = 1; |
| | | //è·åtableä¿¡æ¯ |
| | | this.getCollapseTable(this.filedsLayer); |
| | | }, |
| | | handleCurrentChange(val) { |
| | | this.listdata.pageIndex = val; |
| | | this.listData.pageIndex = val; |
| | | //è·åtableä¿¡æ¯ |
| | | this.getCollapseTable(this.filedsLayer); |
| | | }, |
| | |
| | | id: 1, |
| | | label: 'å¾å±', |
| | | children: [ |
| | | { |
| | | label: 'é室', |
| | | value: 'é室', |
| | | resource: 'http://192.168.20.39:9055/gisserver/wmsserver/lfgd', |
| | | }, |
| | | { label: 'ç«åº', value: 'ç«åº' }, |
| | | { label: '管éä¸å¿çº¿', value: '管éä¸å¿çº¿' }, |
| | | ], |