bug修复

This commit is contained in:
zxy
2024-02-25 09:43:11 +08:00
parent cbd453f520
commit 3682ffc9c6
3 changed files with 19 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
//var baseUrl = 'http://cgsu81beft.51xd.pub'; //var baseUrl = 'http://cgsu81beft.51xd.pub';
var baseUrl = "http://39.101.167.152:8088/shekecaiji"; var baseUrl = "http://39.101.167.152:8088/shekecaiji";
var testUrl = "http://39.98.184.58:8000/jobslink-api/jkworksreport" var testUrl = "http://192.168.3.104:8000/jobslink-api/jkworksreport"
var href = window.location.href.split("="); var href = window.location.href.split("=");
var shengFen = unescape(href[1].split("&")[0]); var shengFen = unescape(href[1].split("&")[0]);

View File

@@ -1,6 +1,6 @@
//var baseUrl = 'http://cgsu81beft.51xd.pub'; //var baseUrl = 'http://cgsu81beft.51xd.pub';
var baseUrl = "http://39.101.167.152:8088/shekecaiji"; var baseUrl = "http://39.101.167.152:8088/shekecaiji";
var testUrl = "http://39.98.184.58:8000/jobslink-api/jkworksreport" var testUrl = "http://192.168.3.104:8000/jobslink-api/jkworksreport"
console.log(document.cookie) console.log(document.cookie)
// 获取cookie // 获取cookie
@@ -1359,7 +1359,7 @@ function getData20() {
geo: {}, geo: {},
series: [ series: [
{ {
name: "四川", name: "德阳市",
type: "map", type: "map",
mapType: "德阳市", mapType: "德阳市",
aspectScale: 0.75, aspectScale: 0.75,
@@ -1385,18 +1385,22 @@ function getData20() {
}; };
myChart.setOption(option); myChart.setOption(option);
//地图点击事件 //地图点击事件
myChart.on("click", function (params) { myChart.on("click", function (params, zhName, pyName, name) {
console.log(params);
console.log(params.name);
// window.location.href = "detail.html?shengFen=" + escape(zhName) +
// "&abbreviation=" + pyName + "&shortName=" + escape(name);
//点击事件 //点击事件
if (params.name != "") { // if (params.name != "") {
var name = params.name; // var name = params.name;
getCityListByProvinceCode(name); // 获取得城市拼音 // getCityListByProvinceCode(name); // 获取得城市拼音
return; // return;
} else { // } else {
showDialog("暂无数据,无法查看"); // showDialog("暂无数据,无法查看");
} // }
//没有找到对应城市的话,那么返回到全国地图 //没有找到对应城市的话,那么返回到全国地图
option.series[0].mapType = "china"; // option.series[0].mapType = "china";
myChart.setOption(option); // myChart.setOption(option);
}); });
window.addEventListener("resize", function () { window.addEventListener("resize", function () {
myChart.resize(); myChart.resize();

View File

@@ -23,8 +23,8 @@ module.exports = {
port: 1888, port: 1888,
proxy: { proxy: {
"/api": { "/api": {
// target: 'http://192.168.3.104:8000', // 本地服务接口地址 target: 'http://192.168.3.104:8000', // 本地服务接口地址
target: "http://39.98.184.58:8000", // 阿里云后台地址 // target: "http://39.98.184.58:8000", // 阿里云后台地址
// target: "http://192.168.3.111:8000", // 本地 // target: "http://192.168.3.111:8000", // 本地
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,