From 67e03b179e1a257622cf2b5b21ec0610115c3bf9 Mon Sep 17 00:00:00 2001
From: chenhuan <czj123456>
Date: 星期二, 28 五月 2024 17:48:40 +0800
Subject: [PATCH] Merge branch 'master' of http://117.78.1.188:8089/r/dkyChenJiang

---
 javaweb-plus/javaweb-admin/src/main/resources/static/js/custom/main.js |  309 ---------------------------------------------------
 1 files changed, 0 insertions(+), 309 deletions(-)

diff --git a/javaweb-plus/javaweb-admin/src/main/resources/static/js/custom/main.js b/javaweb-plus/javaweb-admin/src/main/resources/static/js/custom/main.js
index 2bacfb2..e69de29 100644
--- a/javaweb-plus/javaweb-admin/src/main/resources/static/js/custom/main.js
+++ b/javaweb-plus/javaweb-admin/src/main/resources/static/js/custom/main.js
@@ -1,309 +0,0 @@
-$(function() {
-	loadMap();
-	getReallyData();
-	//getRegulatoryUnitChartData("","");
-	//bindEvent();
-})
-// 鍔犺浇鍦板浘
-let map=null;
-var countries = [];
-var countriesOverlay = new T.D3Overlay(init,redraw);
-var countriesOverlay1 = new T.D3Overlay(init1,redraw1);
-function loadMap() {
-	map = new T.Map('map_div');
-	map.centerAndZoom(new T.LngLat(116.38, 39.9), 11);
-
-	var control = new T.Control.Zoom();
-	control.setPosition(T_ANCHOR_TOP_RIGHT);
-	map.addControl(control);// 娣诲姞缂╂斁骞崇Щ鎺т欢
-	var scale = new T.Control.Scale();// 鍒涘缓姣斾緥灏烘帶浠跺璞�
-	d3.json("/bjfw/js/custom/beijing.json", function (data) {
-		countries = data.features;
-		map.addOverLay(countriesOverlay)
-		countriesOverlay.bringToBack();
-		map.addOverLay(countriesOverlay1)
-		countriesOverlay.bringToBack();
-	});
-}
-
-
-
-function init(sel, transform) {
-	var upd = sel.selectAll('path.geojson').data(countries);
-	upd.enter()
-		.append('path')
-		.attr("class", "geojson")
-		.attr('stroke', 'grey')
-		.attr('fill', function (d, i) {
-			//return d3.hsl(Math.random() * 360, 0.9, 0.5)
-			return "transparent"
-		})
-		.attr('fill-opacity', '0')
-}
-
-function redraw(sel, transform) {
-	sel.selectAll('path.geojson').each(
-		function (d, i) {
-			d3.select(this).attr('d', transform.pathFromGeojson)
-		}
-	)
-}
-
-
-function init1(sel, transform) {
-	var upd = sel.selectAll('path.geojson1').data(countries);
-	upd.enter()
-		.append('path')
-		.attr("class", "geojson1")
-		.attr('stroke', 'grey')
-		.attr('fill', function (d, i) {
-			return d3.hsl(Math.random() * 360, 0.9, 0.5)
-		})
-		.attr('fill-opacity', '0.1')
-}
-
-function redraw1(sel, transform) {
-	sel.selectAll('path.geojson1').each(
-		function (d, i) {
-			d3.select(this).attr('d', transform.pathFromGeojson)
-		}
-	)
-}
-
-// 鑾峰彇鏁版嵁搴撶湡瀹炴暟鎹�
-function getReallyData() {
-	let url = window.location.protocol + "//" + window.location.host + "/bjfw/system/project";
-	$.get(url,function(res){
-		var data = res.projects;
-		showProjectPoint(data);
-	})
-}
-//鍦板浘涓婂睍绀洪」鐩偣
-function showProjectPoint(data){
-	var projectIcon = new T.Icon({
-		iconUrl: '/bjfw/images/icons/6.png',
-		iconSize: new T.Point(30, 30),
-		iconAnchor: new T.Point(6, 40),
-	});
-	var centerMarker = new T.Marker(new T.LngLat(center.lng, center.lat), { title: "椤圭洰",icon:icon});
-
-	var proj = infoWindowProject(onProject);
-	addClickHandler(proj, centerMarker);
-}
-// 椤甸潰鏁版嵁璧嬪��
-function pageAssignment(reallyData) {
-	for ( let key in reallyData) {
-		let className = "." + key;
-		$(className).text(reallyData[key]);
-	}
-}
-
-//鏌ヨ鐩戠鍗曚綅椤圭洰缁熻鍥捐〃鏁版嵁
-function getRegulatoryUnitChartData(startTime,endTime){
-	let url = window.location.protocol + "//" + window.location.host + "/bjfw/geotdp/index/indexProjectNumsCollect";
-	$.get(url,{
-		startTime: startTime,
-		endTime: endTime
-	},function(res){
-		if(res.status && res.message === "鎿嶄綔鎴愬姛"){
-			let chartData = {};
-			chartData.yData = res.result.map((item)=>{
-				return item.fullName;
-			})
-			chartData.xData = res.result.map((item)=>{
-				return item.projectNums;
-			})
-			loadRegulatoryUnitChart(chartData);
-		}else{
-			$.modal.alertError("璇锋眰鍑洪敊");
-		}
-		
-	})
-}
-
-//鍔犺浇鐩戠鍗曚綅椤圭洰缁熻鍥捐〃
-function loadRegulatoryUnitChart(chartData){
-	var myChart = echarts.init(document.getElementById('rank_chart'));
-
-	let beginColor = "rgb(255,140,0,0.1)",
-			endColor = "rgb(255,140,0,1)",
-			endPix = "";
-	//let endZom = 50;
-
-	let option = {
-		title: {
-			show: false,
-		},
-		dataZoom: [
-			{
-				type: "inside",
-				start: 0,
-			//	end: endZom,
-				orient: "vertical",
-				zoomOnMouseWheel: false, ////婊氳疆鏄惁瑙﹀彂缂╂斁
-			},
-		],
-		tooltip: {
-			trigger: "axis",
-			axisPointer: {
-				type: "shadow",
-			},
-		},
-		legend: {
-			bottom: 20,
-			right: 0,
-			textStyle: {
-				color: "#666",
-				fontSize: 18,
-			},
-			orient: "vertical",
-		},
-		grid: {
-			borderWidth: 0,
-			top: "8%",
-			left: "1%",
-			right: "8%",
-			bottom: "2%",
-		},
-		color: "#fff",
-		yAxis: [
-			{
-				type: "category",
-				inverse: true,
-				axisLine: {
-					show: false,
-				},
-				splitLine: {
-					show: false,
-				},
-				axisTick: {
-					show: false,
-				},
-				axisLabel: {
-					show: false,
-				},
-				data: chartData.yData,
-			},
-		],
-		xAxis: {
-			type: "value",
-			axisTick: {
-				show: false,
-			},
-			axisLine: {
-				show: false,
-			},
-			splitLine: {
-				show: false,
-			},
-			axisLabel: {
-				show: false,
-			},
-		},
-		series: [
-			{
-				name: "绱",
-				type: "bar",
-				barWidth: "10px",
-				itemStyle: {
-					normal: {
-						show: true,
-						color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
-							{
-								offset: 0,
-								color: beginColor,
-							},
-							{
-								offset: 1,
-								color: endColor,
-							},
-						]),
-						barBorderRadius: [0, 5, 5, 0],
-					},
-					emphasis: {
-						shadowBlur: 15,
-						shadowColor: "rgba(0, 0, 0, 0.1)",
-					},
-				},
-				data: chartData.xData,
-				animationDuration: 1500,
-				label: {
-					normal: {
-						color: "black",
-						show: true,
-						position: "right",
-						fontSize: 18,
-						fontStyle: "italic",
-						formatter: function (para) {
-							return para.data + endPix;
-						},
-					},
-				},
-			},
-			{
-				type: "bar",
-				barGap: "0",
-				barWidth: 10,
-				animation: false,
-				itemStyle: {
-					color: "transparent",
-				},
-				tooltip: {
-					show: false,
-				},
-				label: {
-					show: true,
-					position: ["0", "-35"],
-					fontSize: 13,
-					color: "rgb(0,0,0,0.7)",
-					formatter: function (param) {
-						return param.dataIndex + 1 + " " + param.name;
-					},
-				},
-				data: chartData.xData,
-			},
-
-		],
-		animationEasing: "cubicOut",
-	};
-
-	myChart.setOption(option);
-}
-
-//缁戝畾浜嬩欢
-function bindEvent(){
-	$(".statistic-btn .btn").on("click",function(){
-		if(this.innerText === "鎬昏"){
-			getRegulatoryUnitChartData("","");
-		}else if(this.innerText === "鏈勾搴�"){
-			let d = new Date();
-			let n = d.getFullYear();
-			let startTime = n + "-01-01 00:00:00";
-			let endTime = n + "-12-31 23:59:59";
-			getRegulatoryUnitChartData(startTime,endTime);
-		}else{
-			let startTime = getFirstDay() + " 00:00:00";
-			let endTime = getLastDay() + " 23:59:59";
-			getRegulatoryUnitChartData(startTime,endTime);
-		}
-	})
-}
-
-//鑾峰彇鏈湀绗竴澶�
-function getFirstDay(){
-    var y = new Date().getFullYear(); //鑾峰彇骞翠唤
-    var m = new Date().getMonth() + 1; //鑾峰彇鏈堜唤
-    var d = '01'
-    m = m < 10 ? '0' + m : m; //鏈堜唤琛� 0
-    
-    return [y,m,d].join("-")
-}
-//鑾峰彇鏈湀鏈�鍚庝竴澶�
-function getLastDay(){
-    var y = new Date().getFullYear(); //鑾峰彇骞翠唤
-    var m = new Date().getMonth() + 1; //鑾峰彇鏈堜唤
-    var d = new Date(y, m, 0).getDate(); //鑾峰彇褰撴湀鏈�鍚庝竴鏃�
-    m = m < 10 ? '0' + m : m; //鏈堜唤琛� 0
-    d = d < 10 ? '0' + d : d; //鏃ユ暟琛� 0
-    return [y,m,d].join("-");
-}

--
Gitblit v1.9.1