月球大数据地理空间分析展示平台-【前端】-月球2期前端
Surpriseplus
2023-09-05 96bca5626eebaa68462c7b1df6d023a95c92ae4d
修改配置文件
已修改6个文件
已删除1个文件
21 ■■■■■ 文件已修改
public/WebSDK/Workers/field/rendermapWorker.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/config/config.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/config/config1.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/Map/menuTool.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/Map/olMap.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/auth.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/request.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/WebSDK/Workers/field/rendermapWorker.js
@@ -53,7 +53,7 @@
    var colorBar = colorInfo;
    var valMax = byteArray[byteArray.length - 1];
    var valMin = byteArray[byteArray.length - 2];
    debugger
    if (colorEqually) {
        var delta = valMax - valMin;
        delta = delta / (colorBar.length - 1);
public/config/config.js
@@ -7,16 +7,14 @@
//配置文件地址
const config = {
  mapMoon: webUrl + "/mapscreen/index.html",
  //椭球体初始化加载图片
  imgUrl: "Workers/image/earth.jpg",
  //license许可
  licenseServer: "http://183.162.245.49:18080",
  //SDK许可
  StaticFileBaseUrl: webUrl + "/CIMSDK/",
  proxy: "http://" + webHost + "/MoonServer",
  BASE_URL: "http://" + webHost + "/MoonServer",
  conditions: [
    ["=", "<>", "like"],
    [">=", ">", " =", "<=", "<", "<>"],
public/config/config1.js
ÎļþÒÑɾ³ý
src/assets/js/Map/menuTool.js
@@ -557,7 +557,7 @@
  //空间查询属性定位
  spaceLocation(res) {
    var name = '空间查询';
    debugger
    this.setClearLocation(name);
    switch (res.type) {
      case 'MultiPolygon':
src/assets/js/Map/olMap.js
@@ -1,6 +1,6 @@
import { getToken } from "@/utils/auth";
//配置文件地址
import config from "../../../../public/config/config";
import config from "../../../../public/config/config.js";
import { Map, View } from "ol"; //地图,视图
import OSM from "ol/source/OSM"; //可以理解为数据源,就是一张图片
import TileLayer from "ol/layer/Tile"; //可以理解为图层
src/utils/auth.js
@@ -10,7 +10,7 @@
}
export function setToken(token) {
    debugger
    return window.sessionStorage.setItem(TokenKey, token);
}
src/utils/request.js
@@ -10,7 +10,7 @@
import router from "@/router/index";
import { getToken } from "@/utils/auth";
import config from "../../public/config/config";
import config from "../../public/config/config.js";
// create an axios instance
const service = axios.create({
  baseURL: config.BASE_URL, // api的base_url