bug修复
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//var baseUrl = 'http://cgsu81beft.51xd.pub';
|
||||
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 shengFen = unescape(href[1].split("&")[0]);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//var baseUrl = 'http://cgsu81beft.51xd.pub';
|
||||
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)
|
||||
// 获取cookie
|
||||
@@ -1359,7 +1359,7 @@ function getData20() {
|
||||
geo: {},
|
||||
series: [
|
||||
{
|
||||
name: "四川",
|
||||
name: "德阳市",
|
||||
type: "map",
|
||||
mapType: "德阳市",
|
||||
aspectScale: 0.75,
|
||||
@@ -1385,18 +1385,22 @@ function getData20() {
|
||||
};
|
||||
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 != "") {
|
||||
var name = params.name;
|
||||
getCityListByProvinceCode(name); // 获取得城市拼音
|
||||
return;
|
||||
} else {
|
||||
showDialog("暂无数据,无法查看");
|
||||
}
|
||||
// if (params.name != "") {
|
||||
// var name = params.name;
|
||||
// getCityListByProvinceCode(name); // 获取得城市拼音
|
||||
// return;
|
||||
// } else {
|
||||
// showDialog("暂无数据,无法查看");
|
||||
// }
|
||||
//没有找到对应城市的话,那么返回到全国地图
|
||||
option.series[0].mapType = "china";
|
||||
myChart.setOption(option);
|
||||
// option.series[0].mapType = "china";
|
||||
// myChart.setOption(option);
|
||||
});
|
||||
window.addEventListener("resize", function () {
|
||||
myChart.resize();
|
||||
|
||||
@@ -23,8 +23,8 @@ module.exports = {
|
||||
port: 1888,
|
||||
proxy: {
|
||||
"/api": {
|
||||
// target: 'http://192.168.3.104:8000', // 本地服务接口地址
|
||||
target: "http://39.98.184.58:8000", // 阿里云后台地址
|
||||
target: 'http://192.168.3.104:8000', // 本地服务接口地址
|
||||
// target: "http://39.98.184.58:8000", // 阿里云后台地址
|
||||
// target: "http://192.168.3.111:8000", // 本地
|
||||
ws: true,
|
||||
changeOrigin: true,
|
||||
|
||||
Reference in New Issue
Block a user