Compare commits
82 Commits
d72c379038
...
89e6ae2a59
| Author | SHA1 | Date | |
|---|---|---|---|
| 89e6ae2a59 | |||
| 7b7fa741d2 | |||
| 8be9b201ea | |||
| 9a9ea92796 | |||
| d99436a392 | |||
| 5b0a423804 | |||
| 7b850d3208 | |||
| c2e2b0808c | |||
| 03e49946c1 | |||
| 02051759ae | |||
| 971f74a4f9 | |||
| 1275fcd343 | |||
| f503f3eaff | |||
| dc3965d429 | |||
| 2b5bdaf3be | |||
| f8c187e2d1 | |||
| da60872d01 | |||
| f6ce55acbc | |||
| bd499046e8 | |||
| 11c8b2cd28 | |||
| bb97a23e1e | |||
| e12ae0bfed | |||
| 5664161860 | |||
| 4cef89a1bf | |||
| 456a256ee4 | |||
| f4fb5a65f5 | |||
| c8796dfd5b | |||
| db3df202db | |||
| c7eefe2ac3 | |||
| 5a47782eb7 | |||
| d519a97342 | |||
| d16a7c77a8 | |||
| 792baf0429 | |||
| 8886d8308b | |||
| f9417f5e85 | |||
| 23de1bfb89 | |||
| 3e10f6e04c | |||
| 0194f5b983 | |||
| 7c65b49bdd | |||
| 2894b1187e | |||
| 49cadcc3bb | |||
| 0816714f75 | |||
| db65a9f458 | |||
| 57055359f4 | |||
| 39f060abfb | |||
| 05b94e1b85 | |||
| 7704980132 | |||
| 83cd1c2025 | |||
| 6016927937 | |||
| a94e8b526c | |||
| 535627dc7f | |||
| f20414829f | |||
| 5a0e953334 | |||
| d013d17725 | |||
| fd6a573639 | |||
| 5b269fd1f7 | |||
| 49e0981a5b | |||
| 2287a9c867 | |||
| b5c5af6cd7 | |||
| 6693852ee3 | |||
| 0056ca5464 | |||
| 5c5022edb9 | |||
| 237c8c0277 | |||
| 86a75980d1 | |||
| cd9680389a | |||
| b203e6c415 | |||
| aae818d9c8 | |||
| 829d3f1ad2 | |||
| 625db9ed3f | |||
| 49828737eb | |||
| 3622786c31 | |||
| ef050b8a9f | |||
| d3e0c333ca | |||
| e9053b0d2f | |||
| cca26d9cc8 | |||
| 316ba663be | |||
| 379e9a7634 | |||
| 1f1e4a48fe | |||
| 3e833dd735 | |||
| 77d6dd501d | |||
| aef467286f | |||
| 2d6868a3e9 |
@ -3,8 +3,11 @@ NODE_ENV = 'development'
|
||||
|
||||
# 本地环境接口地址(/api/index.ts文件中使用)
|
||||
# 后端本地
|
||||
# VITE_API_URL = 'http://192.168.34.155:19111'
|
||||
VITE_API_URL = 'http://192.168.34.221:9111' #雄哥本地
|
||||
# VITE_API_URL = 'http://192.168.34.155:28890' #彭杰鞍钢本地
|
||||
VITE_API_URL = 'http://192.168.34.155:19111'
|
||||
# VITE_API_URL = 'http://192.168.34.221:9111' #雄哥本地
|
||||
# VITE_API_URL = 'http://192.168.34.221:19112' #雄哥本地
|
||||
# VITE_API_URL = 'http://192.168.34.221:28890' #雄哥本地
|
||||
# VITE_API_URL = 'http://182.90.224.237:51234' #雄哥远程
|
||||
# VITE_API_URL = 'http://192.168.34.221:28889'
|
||||
# VITE_API_URL = 'http://121.196.214.246/api'
|
||||
@ -39,12 +42,16 @@ VITE_API_URL = 'http://192.168.34.221:9111' #雄哥本地
|
||||
# 九柱
|
||||
# VITE_API_URL = 'http://jxjzw.zhgdyun.com:11111'
|
||||
# 四川网诚
|
||||
VITE_API_URL = 'http://jxj.zhgdyun.com:100'
|
||||
# VITE_API_URL = 'http://jxj.zhgdyun.com:100'
|
||||
# VITE_API_URL = 'http://jxj.zhgdyun.com:34568'
|
||||
# 新能源智慧基建管理平台|中新建电力集团(外网)
|
||||
# VITE_API_URL = 'http://117.146.73.156:9820'
|
||||
# 九柱集团
|
||||
# VITE_API_URL = 'http://218.95.151.122:31004'
|
||||
# 包头化工
|
||||
# VITE_API_URL = 'http://jxj.zhgdyun.com:18000'
|
||||
# 大连金笔
|
||||
# VITE_API_URL = 'http://101.43.164.214:11126'
|
||||
# 上传
|
||||
VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='
|
||||
|
||||
|
||||
@ -5,7 +5,8 @@ NODE_ENV = "production"
|
||||
# 注:切换部署环境时需更改src\routers\modules\staticRouter里的路径 改src\config\config.ts里的项目标识
|
||||
# VITE_API_URL = "http://139.9.66.234:6688"
|
||||
# VITE_API_URL = "http://jxj.zhgdyun.com:6688"
|
||||
VITE_API_URL = 'http://jxj.zhgdyun.com:100'
|
||||
# VITE_API_URL = 'http://jxj.zhgdyun.com:100'
|
||||
# VITE_API_URL = 'http://jxj.zhgdyun.com:33981'
|
||||
# 沈阳合盈线上
|
||||
# VITE_API_URL = "http://101.43.164.214:45022"
|
||||
# 嘉兴王江泾公用码头
|
||||
@ -41,6 +42,18 @@ VITE_API_URL = 'http://jxj.zhgdyun.com:100'
|
||||
# VITE_API_URL = 'http://218.95.151.122:31004'
|
||||
# 包头化工
|
||||
# VITE_API_URL = 'http://jxj.zhgdyun.com:18000'
|
||||
# 大连金笔
|
||||
# VITE_API_URL = 'http://101.43.164.214:11126'
|
||||
# 新能源智慧基建管理平台|中新建电力集团(内网)
|
||||
# VITE_API_URL = 'http://10.30.102.4:9820'
|
||||
# 新能源智慧基建管理平台|中新建电力集团(外网)
|
||||
# VITE_API_URL = 'http://117.146.73.156:9820'
|
||||
# 国维科技
|
||||
# VITE_API_URL = 'http://10.216.103.99:9820'
|
||||
# 新能源智慧基建管理平台
|
||||
# VITE_API_URL = 'http://121.37.106.37:9820'
|
||||
# VITE_API_URL = 'http://121.37.106.37:9809'
|
||||
# 打包
|
||||
VITE_API_URL =''
|
||||
VITE_ULD_API_URL = 'http://jxj.zhgdyun.com:8012/onlinePreview?url='
|
||||
|
||||
|
||||
@ -42,3 +42,6 @@ export const COMPANY: string = "agjtCommand"; //鞍钢集团指挥部大屏
|
||||
// export const COMPANY: string = "xjnb"; // 新建宁波项目
|
||||
// export const COMPANY: string = "ahsa"; // 安徽水安项目
|
||||
// export const COMPANY: string = "zkax"; // 中科安信项目
|
||||
// export const COMPANY: string = "ztsyj"; // 中铁十一局
|
||||
// export const COMPANY: string = "allxm"; // 安立路项目
|
||||
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
<title>
|
||||
<%- title %>
|
||||
</title>
|
||||
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@ -117,7 +118,8 @@
|
||||
}
|
||||
</script>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
<script src="https://webapi.amap.com/maps?v=2.0&key=8d7b8cd643454bec7737b3423647be21&plugin=AMap.Autocomplete,AMap.PlaceSearch,AMap.MouseTool,AMap.Geocoder,AMap.Driving" defer="defer"></script>
|
||||
<!-- <script src="https://webapi.amap.com/maps?v=2.0&key=8d7b8cd643454bec7737b3423647be21&plugin=AMap.Autocomplete,AMap.PlaceSearch,AMap.MouseTool,AMap.Geocoder,AMap.Driving" defer="defer"></script> -->
|
||||
<script src="/maps.js"></script>
|
||||
<script src="/jquery-1.12.4.min.js"></script>
|
||||
<!-- 用于前端与插件交互 -->
|
||||
<script src="/jsencrypt.min.js"></script>
|
||||
@ -130,7 +132,8 @@
|
||||
libpath="<%= BASE_URL %>lib/"
|
||||
include="jquery,jquery.range,bootstrap,bootstrap-checkbox,font-awesome,web-icons,layer,haoutil,nprogress,toastr,admui,turf,cesium,mars3d,mars3d-widget"
|
||||
></script> -->
|
||||
<script src="https://static.bimface.com/api/BimfaceSDKLoader/BimfaceSDKLoader@latest-release.js" charset="utf-8"></script>
|
||||
<script src="/BimfaceSDKLoader@latest-release.js" charset="utf-8"></script>
|
||||
<!-- <script src="https://static.bimface.com/api/BimfaceSDKLoader/BimfaceSDKLoader@latest-release.js" charset="utf-8"></script> -->
|
||||
<script>
|
||||
// 禁用鼠标滚动事件
|
||||
document.addEventListener(
|
||||
|
||||
4821
package-lock.json
generated
@ -45,8 +45,8 @@
|
||||
"jquery-ui-dist": "^1.13.2",
|
||||
"js-base64": "^3.7.5",
|
||||
"js-md5": "^0.7.3",
|
||||
"mars3d": "^3.5.6",
|
||||
"mars3d-cesium": "^1.105.0",
|
||||
"mars3d": "^3.9.10",
|
||||
"mars3d-cesium": "^1.129.0",
|
||||
"mitt": "^3.0.0",
|
||||
"moment": "^2.29.4",
|
||||
"mqtt": "^4.2.6",
|
||||
|
||||
162
public/BimfaceSDKLoader@latest-release.js
Normal file
@ -0,0 +1,162 @@
|
||||
! function() { "use strict"; var e = window.hostConfig || { APIHost: "https://api.bimface.com", resourceHost: "https://m.bimface.com", staticHost: "https://static.bimface.com", dataEnvType: "BIMFACE", securityApi: !0 };
|
||||
void 0 === Object.assign && (Object.assign = function(e) { if (null == e) throw new TypeError("Cannot convert undefined or null to object"); for (var t = Object(e), o = 1; o < arguments.length; o++) { var n = arguments[o]; if (null != n)
|
||||
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]) } return t }); let t = Object.freeze({ Release: "Release", Debug: "Debug" }),
|
||||
o = Object.freeze({ Normal: "Normal", DrawingView: "drawingView" }),
|
||||
n = Object.freeze({ BIMFACE: "BIMFACE", Local: "Local" }),
|
||||
r = Object.freeze({ zh_CN: "zh_CN", en_GB: "en_GB", sv_SE: "sv_SE", zh_TW: "zh_TW" }),
|
||||
a = Object.freeze({ Normal: "Normal", Bake: "Bake" });
|
||||
window.BimfaceSDKLoaderConfig = function() { if (window.hostConfig) { for (let t in window.hostConfig) e[t] = window.hostConfig[t];
|
||||
e.securityApi = window.hostConfig.securityApi } return { staticHost: `${e.staticHost}/api`, APIHost: e.APIHost, language: "zh_CN", viewToken: null, configuration: t.Release, dataEnvType: e.dataEnvType || "BIMFACE", viewType: o.Normal, visualStyle: a.Bake, version: "", securityApi: e.securityApi } }, window.BimfaceEnvOption = n, window.BimfaceLanguageOption = r, window.BimfaceConfigrationOption = t, window.BimfaceViewTypeOption = o; let i = function(e) { let t = e.split("/"); return t.pop(), t.join("/") + "/" }; var s = function(e, t) { for (var o = 0; o < t.length; o++) t[o] = e + t[o] },
|
||||
c = function(e) { var t = e.sdkVersion,
|
||||
n = e.options,
|
||||
r = n.configuration,
|
||||
a = [],
|
||||
i = [`/${t}/${n.language}.js`, `/${t}/Application${r}.js`]; return a = function(e, t) { return "drawingView" == e.renderType || t.viewType == o.DrawingView }(e.metadata, e.options) ? [...a, ...i, `/${t}/Drawing.css`, `/${t}/bimface.bufferfly.js`, `/${t}/Drawing${r}.js`] : [...a, ...i, `/${t}/Bimface.css`, `/${t}/thirdparty.js`, `/${t}/lib/loaders/BimTilesLoader.js`, `/${t}/Bimface${r}.js`], a };
|
||||
window.postProcessing = function(e) { var o = e.metadata,
|
||||
n = e.options,
|
||||
r = e.successCb,
|
||||
a = c(e);
|
||||
s(n.staticHost, a), o.databagId = `${o.databagId}`, n.path ? (o.path = n.path, o.dataPath = "./") : n.resourcePath && (o.path = n.resourcePath.replace("viewToken", "")), o.sdkPath = n.sdkPath, 0 == a.length ? r(o) : d(a, (function() { if (n.build === t.Debug && n.dataPath) { let e = n.dataPath.split("/");
|
||||
r({ databagId: e.pop(), path: e.join("/") }) }
|
||||
r(o) })) }; var d = function(e, o, n) { var r = e.length,
|
||||
a = 0,
|
||||
i = function(l) { if (l && "error" == l.message && l.element.indexOf("bimface.index") > -1) { a = 0; var f = n.options;
|
||||
f.build, t.Release; var h = c(n); return s(f.staticHost, h), void d(h, o) }++a == r ? o() : u(e[a], i) };
|
||||
u(e[a], i) },
|
||||
l = [],
|
||||
u = function(e, t) { if (!(l.indexOf(e.split("/").pop()) > -1)) { var o, n = document.getElementsByTagName("head")[0]; return e.indexOf(".css") > -1 ? ((o = document.createElement("link")).setAttribute("href", e), o.setAttribute("rel", "stylesheet")) : (o = document.createElement("script")).setAttribute("src", e), o.url = e, n.appendChild(o), o.addEventListener("load", (function() { l.push(this.url.split("/").pop()), t && t({ message: "success" }) })), o.addEventListener("error", (function() { t && t({ element: e, message: "error" }) })), o }
|
||||
t() };
|
||||
window.loadResource = d;
|
||||
class f extends class { constructor(e) { this.indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.msIndexedDB, this.indexedDB || console.log("IndexedDB not supported"), this._db = null, this._opt = e }
|
||||
open(e, t) { const o = e || this._opt.name,
|
||||
n = t || this._opt.version || 1,
|
||||
r = this.indexedDB.open(o, n); return new Promise(((e, t) => { r.onsuccess = t => { this._db = r.result, e(this._db) }, r.onupgradeneeded = e => { let t = this._db = e.target.result;
|
||||
(this._opt.storeList || []).forEach((e => !t.objectStoreNames.contains(e) && t.createObjectStore(e))) }, r.onerror = e => { t(e) } })) }
|
||||
getDB() { return new Promise(((e, t) => { this._db ? e(this._db) : this.open().then(e).catch(t) })) }
|
||||
addObject(e, t, o) { return new Promise(((n, r) => { this.getDB().then((a => { const i = a.transaction(e, "readwrite");
|
||||
i.objectStore(e).put(t, o).onsuccess = e => { n(e.target.result) }, i.onerror = e => { r(e) } })).catch(r) })) }
|
||||
getObject(e, t) { return new Promise(((o, n) => { this.getDB().then((r => { const a = r.transaction(e, "readonly");
|
||||
a.objectStore(e).get(t).onsuccess = e => { let t = e.target.result;
|
||||
t ? o(t) : n(e) }, a.onerror = e => { n(e) } })).catch(n) })) }
|
||||
deleteObject(e, t) { return new Promise(((o, n) => { this.getDB().then((r => { const a = r.transaction(e, "readwrite");
|
||||
a.objectStore(e).delete(t).onsuccess = e => { o(e.target.result) }, a.onerror = e => { n(e) } })).catch(n) })) }
|
||||
clearStore(e) { return new Promise(((t, o) => { this.getDB().then((n => { const r = n.transaction(e, "readwrite");
|
||||
r.objectStore(e).clear().onsuccess = e => { t(e.target.result) }, r.onerror = e => { o(e) } })).catch(o) })) }
|
||||
deleteDB(e) { return new Promise((t => { this.indexedDB.deleteDatabase(e), t() })) }
|
||||
getAllKeys(e) { return new Promise(((t, o) => { this.getDB().then((n => { const r = n.transaction(e, "readonly");
|
||||
r.objectStore(e).getAllKeys().onsuccess = e => t(e.target.result), r.onerror = o })).catch(o) })) }
|
||||
getAll(e) { return new Promise(((t, o) => { this.getDB().then((n => { const r = n.transaction(e, "readonly");
|
||||
r.objectStore(e).getAll().onsuccess = e => t(e.target.result), r.onerror = o })).catch(o) })) } } { constructor() { super({ name: "Bf_Loader", version: 1, storeList: ["d", "t"] }) }
|
||||
getDatabagInfo(e, t) { return new Promise(((o, n) => { t ? this.getObject("d", e).then((e => this.addTemp(e, t).then((() => o(e))).catch(n))).catch(n) : this.getObject("d", e).then(o).catch(n) })) }
|
||||
addDatabagInfo(e, t) { return new Promise(((o, n) => { const r = e.modelId,
|
||||
a = () => Promise.all([this.addObject("d", e, r), this.addTemp(e, t)]).then(o).catch(n);
|
||||
this.getDatabagInfo(r).then((t => { t.databagId !== e.databagId && this.deleteDB(`Bf_${data.databagId}`), a() })).catch((() => { a() })) })) }
|
||||
deleteDatabagInfo(e) { return new Promise(((t, o) => { this.deleteObject("d", e).then(t).catch(o) })) }
|
||||
addTemp(e, t) { return new Promise(((o, n) => { this.clearStore("t").then((() => { this.addObject("t", e, t).then(o).catch(n) })).catch(n) })) }
|
||||
getTemp(e) { return new Promise(((t, o) => { this.getObject("t", e).then(t).catch(o) })) }
|
||||
deleteStorageByModelId(e) { return new Promise((t => { this.getDatabagInfo(e).then((o => { let n = "gisView" === o.renderType ? `Bg_${o.modelId}` : `Bf_${o.databagId}`;
|
||||
Promise.allSettled([this.deleteDB(n), this.deleteDatabagInfo(e)]).then(t) })).catch(t) })) }
|
||||
getStoredModelIds() { return this.getAllKeys("d") }
|
||||
getStoredModelInfo() { return new Promise(((e, t) => { this.getAll("d").then((t => { let o = t.map((e => { let { modelId: t, name: o, renderType: n } = e; return { modelId: t, name: o, type: n } }));
|
||||
e(o) })).catch(t) })) } } var h = function(e, t, o) { if (e.metadata) return o(e.metadata); const r = n => { if (e.enableStorage && e.modelId) {
|
||||
(new f).getDatabagInfo(e.modelId, e.viewToken).then((e => o && o(e))).catch((() => { console.error("[BIMFACE ERROR]: failed get model info from storage"), t && t(n) })) } else t && t(n) }; if (!e.viewToken && "Local" !== e.dataEnvType) return void r(); const a = e.dataEnvType !== n.Local,
|
||||
i = a && e.securityApi;! function(e) { var t, o = Object.assign({ type: "get", data: null, success: null, failure: null }, e);
|
||||
(t = window.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP")).onreadystatechange = function() { if (4 == t.readyState) { var e = t.status;
|
||||
e >= 200 && e < 300 || 304 == e || 0 === e && "file:" === window.location.protocol ? o.success && o.success(t.responseText, t.responseXML) : o.failure && o.failure(e) } }, t.open(o.type, o.url, o.async), t.send(o.data) }({ type: i ? "post" : "get", url: a && !i ? `${e.url}?viewToken=${e.viewToken}` : e.url, async: !0, data: i ? e.data : void 0, requestHeader: e.requestHeader, success: function(t) { var n = JSON.parse(t); if ("Local" !== e.dataEnvType && "success" !== n.code) return n.message && console.error(`[BIMFACE ERROR]: ${n.message}`), void r(t); if (n = n.data || n, e.enableStorage) {
|
||||
(new f).addDatabagInfo(n, e.viewToken).then((() => o && o(n))).catch((() => o && o(n))) } else o && o(n) }, failure: r }) },
|
||||
p = function(e, t, n) { h(e, n, (function(n) { var r = function(e, t) { let n, r = t.version; if (e.renderVersion, /\d+?\.\d+?\.\d+/.test(r) && r.split(".")[0] >= 3) { window.bimfaceSdkVersion = r; const [e, t, o] = r.split("."); "6" === t && Number(o) < 143 && (r = `Bimface@${r}`) } else if ("Debug" == t.build) r = "Bimface", n = "Application";
|
||||
else if (t.sdkPath) r = n = "bimface";
|
||||
else if (t.viewType == o.DrawingView && "drawingView" != e.renderType) { var a = e.subRenders; if (a && 0 != a.length)
|
||||
for (var i = 0; i < a.length; i++) a[i].renderType == o.DrawingView && (r = a[i].jsSDKVersion, n = a[i].jsSDKVersion) } else r = e.jsSDKVersion, n = e.jsSDKVersion; return { ui: n, sdk: r } }(n, e);
|
||||
window.BimfaceLoaderConfig.fullStaticHost = "Local" == BimfaceLoaderConfig.dataEnvType ? e.staticHost + "/bimface" : e.staticHost + "/" + r.sdk; var a = { metadata: n, options: e, successCb: t, sdkVersion: r.sdk, uiVersion: r.ui },
|
||||
i = window.BimfaceLoaderConfig.fullStaticHost + "/bimface.index.js";
|
||||
d([i], (function() { postProcessing(a) }), a) })) },
|
||||
g = function(e, t) { var o = "bimView" == e.renderType ? "3DView" : e.renderType,
|
||||
n = (e.subRenders, { dataEnvType: t.dataEnvType, viewToken: t.viewToken, staticHost: t.staticHost, APIHost: t.APIHost, viewType: o }); return Object.assign(n, e) },
|
||||
w = { getStorage() { return this.storage = this.storage || new f, this.storage }, deleteStorageByModelId(e) { return this.getStorage().deleteStorageByModelId(e) }, getStoredModelIds() { return this.getStorage().getStoredModelIds() }, getStoredModelInfo() { return this.getStorage().getStoredModelInfo() }, store(e) { let { url: t, viewToken: o, storeMaterialOverride: n, successCallback: r, progressCallback: a, errorCallback: i, conditions: s, storeByQueue: c } = e; const d = c && c.enable,
|
||||
l = d && (c.delay || 2e3); if (!o) return;
|
||||
t = t || [], r = r || function() {}, a = a || function() {}, i = i || function() {}; const u = new BimfaceSDKLoaderConfig;
|
||||
u.enableStorage = !0, u.viewToken = o, BimfaceSDKLoader.load(u).then((e => { if ("3DView" == e.viewType) { const c = document.createElement("div");
|
||||
c.style.width = "1px", c.style.height = "1px", c.style.opacity = "0", c.style.position = "absolute", c.style.zIndex = "-1", c.style.top = "0px", c.style.left = "0px", document.body.appendChild(c); const u = new Glodon.Bimface.Viewer.Viewer3DConfig;
|
||||
u.domElement = c, u.enableStorage = !0, u.enableViewHouse = !1, u.enableCSMShadow = !1, u.enableSSAO = !1, u.enableLogarithmicDepthBuffer = !1; const f = new Glodon.Bimface.Viewer.Viewer3D(u),
|
||||
h = new Promise((t => { const r = () => { requestAnimationFrame((() => { f.destroy(), document.body.removeChild(c), t() })) }; if ("true" == e.config.toBimtiles) return f.addModel(e, null, { forceLoadBIMTiles: !0 }), f.getViewer().registerEventListener(CLOUD.EVENTS.ON_LOAD_PROGRESS, (function(e) { var t = e.progress,
|
||||
o = t.loaded / t.total * 100;
|
||||
a(o) })), void f.getViewer().registerEventListener(CLOUD.EVENTS.ON_MODEL_CACHE_COMPLETE, (function(e) { r() }));
|
||||
f.addModel(e), d || f.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ViewLoading, (e => a(e.progress))); let i = !1;
|
||||
f.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ViewAdded, (() => { if (i) return; const e = () => { i = !0; const e = f.getDefaultModel(),
|
||||
t = e.getCloudViewer().getModelManager().getModel(e.modelId),
|
||||
n = [...t._handler.layerProvider.getAllLayerIdxData().layerKeys],
|
||||
s = [...t._handler.layerProvider.getLayerKeyAttributes()]; let c = 0; const d = {},
|
||||
u = () => { if (a(Math.floor(100 * (c + 1) / n.length)), c === n.length) return void r();
|
||||
n[c].split("-").forEach(((e, t) => d[s[t]] = e)); const e = f.getDefaultModel();
|
||||
e && e.destroy(); const t = isNaN(l) ? 2e3 : Number(l);
|
||||
setTimeout((() => { f.addView(o) }), t), c++ };
|
||||
f.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ModelAdded, (() => { f.showExclusiveComponentsByObjectData([d], null, u) })), u() };
|
||||
n ? f.loadMaterialOverrideSet(f.getModel().modelId, o, (function() { s ? f.showExclusiveComponentsByObjectData(s, null, r) : d ? e() : (f.showAllComponents(), f.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.DemandLoaded, r)) })) : s ? f.showExclusiveComponentsByObjectData(s, null, r) : d ? e() : r() })) }));
|
||||
Promise.all([h, f._storeData(t)]).then(r).catch(i) } })).catch() } },
|
||||
m = function() { return m = Object.assign || function(e) { for (var t, o = 1, n = arguments.length; o < n; o++)
|
||||
for (var r in t = arguments[o]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]); return e }, m.apply(this, arguments) };
|
||||
|
||||
function b(e, t, o, n) { return new(o || (o = Promise))((function(r, a) {
|
||||
function i(e) { try { c(n.next(e)) } catch (e) { a(e) } }
|
||||
|
||||
function s(e) { try { c(n.throw(e)) } catch (e) { a(e) } }
|
||||
|
||||
function c(e) { var t;
|
||||
e.done ? r(e.value) : (t = e.value, t instanceof o ? t : new o((function(e) { e(t) }))).then(i, s) }
|
||||
c((n = n.apply(e, t || [])).next()) })) }
|
||||
|
||||
function v(e, t) { var o, n, r, a, i = { label: 0, sent: function() { if (1 & r[0]) throw r[1]; return r[1] }, trys: [], ops: [] }; return a = { next: s(0), throw: s(1), return: s(2) }, "function" == typeof Symbol && (a[Symbol.iterator] = function() { return this }), a;
|
||||
|
||||
function s(a) { return function(s) { return function(a) { if (o) throw new TypeError("Generator is already executing."); for (; i;) try { if (o = 1, n && (r = 2 & a[0] ? n.return : a[0] ? n.throw || ((r = n.return) && r.call(n), 0) : n.next) && !(r = r.call(n, a[1])).done) return r; switch (n = 0, r && (a = [2 & a[0], r.value]), a[0]) {
|
||||
case 0:
|
||||
case 1:
|
||||
r = a; break;
|
||||
case 4:
|
||||
return i.label++, { value: a[1], done: !1 };
|
||||
case 5:
|
||||
i.label++, n = a[1], a = [0]; continue;
|
||||
case 7:
|
||||
a = i.ops.pop(), i.trys.pop(); continue;
|
||||
default:
|
||||
if (!(r = i.trys, (r = r.length > 0 && r[r.length - 1]) || 6 !== a[0] && 2 !== a[0])) { i = 0; continue } if (3 === a[0] && (!r || a[1] > r[0] && a[1] < r[3])) { i.label = a[1]; break } if (6 === a[0] && i.label < r[1]) { i.label = r[1], r = a; break } if (r && i.label < r[2]) { i.label = r[2], i.ops.push(a); break }
|
||||
r[2] && i.ops.pop(), i.trys.pop(); continue }
|
||||
a = t.call(e, i) } catch (e) { a = [6, e], n = 0 } finally { o = r = 0 }
|
||||
if (5 & a[0]) throw a[1]; return { value: a[0] ? a[1] : void 0, done: !0 } }([a, s]) } } }
|
||||
window.hostConfig = window.hostConfig || { APIHost: "https://api.bimface.com", resourceHost: "https://m.bimface.com", staticHost: "https://static.bimface.com", dataEnvType: "BIMFACE", securityApi: !0 }; var y = function() { window.hostConfig = window.hostConfig || { APIHost: "https://api.bimface.com", resourceHost: "https://m.bimface.com", staticHost: "https://static.bimface.com", dataEnvType: "BIMFACE", securityApi: !0 }; var e = m({}, window.hostConfig); return e.staticHost = window.hostConfig.staticHost + "/api", e },
|
||||
D = function() {
|
||||
function e(e) { this._config = e } return e.prototype.getModuleData = function(e) { var t = this; return new Promise((function(o, n) { var r;
|
||||
(r = { type: "post", data: e, url: t._config.APIHost + "/inside/databag" }, new Promise((function(e, t) { var o = m(m({}, { type: "get", data: null }), r),
|
||||
n = new XMLHttpRequest;
|
||||
n.onreadystatechange = function() { if (4 == n.readyState) { var o = n.status; if (o >= 200 && o < 300 || 304 == o || 0 === o && "file:" === window.location.protocol) { var r = void 0; try { r = JSON.parse(n.responseText) } catch (e) { throw e }
|
||||
e({ json: r, responseText: n.responseText, responseXML: n.responseXML }) } else t(o) } }, n.open(o.type, o.url, o.async), n.send(o.data) }))).then((function(e) { e.json.data ? o(e.json.data) : n(e.json) })) })) }, e.prototype.loadScript = function(e) { return new Promise((function(t, o) { var n = document.createElement("script");
|
||||
n.setAttribute("src", e), n.onload = function() { t(!0) }, n.onerror = function(e) { o(e), console.error(e) }, document.getElementsByTagName("head")[0].append(n) })) }, e.prototype.loadCss = function(e) { return new Promise((function(t, o) { var n = document.createElement("link");
|
||||
n.setAttribute("href", e), n.setAttribute("rel", "stylesheet"), n.onload = function() { t(!0) }, n.onerror = function(e) { o(e), console.error(e) }, document.getElementsByTagName("head")[0].append(n) })) }, e.prototype.getStaticMainSrc = function(e) { return this._config.staticHost + "/Glodon/" + ("Debug" === this._config.build ? "Bimface" : e) }, e.prototype.loadSDKLoader = function() { var e = this; return new Promise((function(t, o) { if (window.BimfaceSDKLoader) t(!0);
|
||||
else { var n = e._config.staticHost + "/BimfaceSDKLoader/BimfaceSDKLoader@latest-release.js";
|
||||
e.loadScript(n).then((function() { return t(!0) })).catch((function() { return o() })) } })) }, e.prototype.loadUIComponents = function(e) { var t = this; return new Promise((function(o, n) { var r, a, i; if (null === (i = null === (a = null === (r = window.Glodon) || void 0 === r ? void 0 : r.Bimface) || void 0 === a ? void 0 : a.Tiles) || void 0 === i ? void 0 : i.UI) return o(!0); var s = t.getStaticMainSrc(e) + "/bimface.ui.css";
|
||||
t.loadCss(s).then((function() { return o(!0) })).catch((function() { return n() })) })) }, e }(),
|
||||
B = window.Glodon || {};
|
||||
window.Glodon = B; var T = B.Bimface = B.Bimface || {},
|
||||
S = T.Module = T.Module || {},
|
||||
E = function() {
|
||||
function e(e) { this._loadedModule = {}, this._config = e, this._helper = new D(e) } return e.prototype.loadModule = function(e) { return b(this, void 0, void 0, (function() { var t, o, n, r, a; return v(this, (function(i) { switch (i.label) {
|
||||
case 0:
|
||||
return t = new window.BimfaceSDKLoaderConfig, (t = m(m({}, t), this._config)).viewToken = e.viewToken, [4, window.BimfaceSDKLoader.load(t).catch((function(e) { return console.log(e) }))];
|
||||
case 1:
|
||||
return i.sent(), [4, this._helper.loadSDKLoader()];
|
||||
case 2:
|
||||
return i.sent(), [4, this._helper.getModuleData(e.viewToken)];
|
||||
case 3:
|
||||
return "moduleData" != (o = i.sent()).modelType && "clashDetective" != o.modelType ? [2, Promise.reject("[BIMFACE ERROR]: Invalid ViewToken, viewToken: [" + e.viewToken + "]")] : (o.viewToken = e.viewToken, n = o.jsSDKVersion, [4, this._helper.loadUIComponents(n)]);
|
||||
case 4:
|
||||
return i.sent(), this._loadedModule[e.moduleType] ? [3, 6] : (this._helper.loadCss(this._helper.getStaticMainSrc(n) + "/modules/" + e.moduleType + ".css"), [4,
|
||||
import (this._helper.getStaticMainSrc(n) + "/modules/" + e.moduleType + ".js")
|
||||
]);
|
||||
case 5:
|
||||
r = i.sent(), this._loadedModule[e.moduleType] = r.default, i.label = 6;
|
||||
case 6:
|
||||
for (a in this._loadedModule[e.moduleType]) this._loadedModule[e.moduleType][a].setCurrentModuleData && this._loadedModule[e.moduleType][a].setCurrentModuleData(o); return [2, o] } })) })) }, e }();
|
||||
S.ModuleManager = E, S.ModuleManagerConfig = y; var P = { Version: "2024-7-31-17-15", load: function(e, o, r) { window.BimfaceLoaderConfig = e, null == e.build && (e.build = t.Release); var a = function(e) { let o = Object.assign({}, e),
|
||||
r = "/Glodon"; return e.path ? (o.dataEnvType = n.Local, o.url = o.path, o.staticHost = o.sdkPath || i(o.path), o.resourcePath = i(o.path), o.path = i(o.path), r = o.sdkPath ? "" : "/jssdk") : e.resourcePath ? (o.dataEnvType = n.Local, o.url = o.resourcePath, o.resourcePath = i(o.resourcePath)) : (o.sdkPath && (r = "", o.staticHost = o.sdkPath), o.data = e.viewToken, o.url = `${e.APIHost}/inside/databag`), o.staticHost += r, e.build != t.Debug && o.configuration != t.Release || (o.configuration = ""), o.configuration = o.configuration ? `-${o.configuration.toLowerCase()}` : "", o }(e); if (!o && !r) return new Promise(((t, o) => { p(a, (function(o) { t(g(o, e)) }), o) }));
|
||||
p(a, (function(t) { o && o(g(t, e)) }), (function(e) { r && r() })) }, Storage: w };
|
||||
window.BimfaceSDKLoader = P }();
|
||||
8449
public/maps.js
Normal file
@ -17,6 +17,11 @@ export const getAlarmList = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/aiAnalyseHardWareAlarmRecord/selectAiAnalyseHardWareAlarmList`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 4.分页查询设备报警记录列表
|
||||
export const getAlarmPageList = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/aiAnalyseHardWareAlarmRecord/selectPageList`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 查询当前实时数据
|
||||
export const getRealTimeTotal = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/aiAnalyseHardWareAlarmRecord/countAiAnalyseHardWareAlarmTotal`, params, { headers: { noLoading: true } });
|
||||
|
||||
65
src/api/modules/cathangCrane.ts
Normal file
@ -0,0 +1,65 @@
|
||||
import http from "@/api";
|
||||
const BASEURL = import.meta.env.VITE_API_URL;
|
||||
|
||||
// 汽车吊
|
||||
|
||||
// 列表查询
|
||||
export const gettrucklist = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/truckCrane/list`, params);
|
||||
};
|
||||
|
||||
// 列表查询单条
|
||||
export const gettruckqueryById = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/truckCrane/queryById`, params);
|
||||
};
|
||||
|
||||
// 查询最新状态
|
||||
export const gettruckdata = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/truckCraneCurrentData/getNewData`, params);
|
||||
};
|
||||
|
||||
// 设备情况汇总
|
||||
export const gettruckstat = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/truckCrane/onlineStat`, params);
|
||||
};
|
||||
|
||||
// 设备报警分析
|
||||
export const gettruckAlam = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/truckCraneAlarm/alarmStat`, params);
|
||||
};
|
||||
|
||||
// 图表分析
|
||||
export const gettruckend = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/truckCraneCurrentData/windSpeedTrend`, params);
|
||||
};
|
||||
|
||||
// 履带吊
|
||||
// 列表查询
|
||||
export const getcrawlist = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/crawlerCrane/list`, params);
|
||||
};
|
||||
|
||||
// 列表查询单条
|
||||
export const getcrawqueryById = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/crawlerCrane/queryById`, params);
|
||||
};
|
||||
|
||||
// 查询最新状态
|
||||
export const getcrawdata = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/crawlerCraneCurrentData/getNewData`, params);
|
||||
};
|
||||
|
||||
// 设备情况汇总
|
||||
export const getcrawstat = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/crawlerCrane/onlineStat`, params);
|
||||
};
|
||||
|
||||
// 设备报警分析
|
||||
export const getcrawAlam = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/crawlerCraneAlarm/alarmStat`, params);
|
||||
};
|
||||
|
||||
// 图表分析
|
||||
export const getcrawend = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/crawlerCraneCurrentData/windSpeedTrend`, params);
|
||||
};
|
||||
17
src/api/modules/config.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import http from "@/api";
|
||||
const BASEURL = import.meta.env.VITE_API_URL;
|
||||
|
||||
// 今日大屏自定义配置
|
||||
export const addLargeScreenConfig = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/largeScreenConfig/add`, params);
|
||||
};
|
||||
|
||||
// 查询大屏自定义配置
|
||||
export const queryByProject = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/largeScreenConfig/queryByProject`, params);
|
||||
};
|
||||
|
||||
// 更新大屏自定义配置
|
||||
export const updateLargeScreenConfig = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/largeScreenConfig/edit`, params);
|
||||
};
|
||||
@ -25,7 +25,9 @@ export const getAlarmTypeApi = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/lifterAlarm/queryAlarmsDistinguishedNumberByAlarmType`, params);
|
||||
};
|
||||
|
||||
|
||||
export const getSelectLifterBySnApi = (params: {}) => {
|
||||
return http.post(BASEURL + `xmgl/lifter/selectLifterBySn`, params);
|
||||
};
|
||||
|
||||
// 右中下数据
|
||||
export const getNewestLifterApi = (params: {}) => {
|
||||
|
||||
@ -63,3 +63,8 @@ export const getworkerAttendanceTrendApi = (params: {}) => {
|
||||
export const getComapnyWorkTotalListApi = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/workerInfo/selectProjectComapnyWorkTotalList`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 获取闸机列表
|
||||
export const getUfaceDevListApi = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/ufaceDev/list`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
@ -58,3 +58,7 @@ export const jumpLargeByUserIdApi = (params?: any) => {
|
||||
export const getAllModule = (params?: any) => {
|
||||
return http.post(BASEURL + `/xmgl/baseModule/getModuleAndMenuList`, params);
|
||||
};
|
||||
|
||||
export const getScreenAuthModuleAndMenuApi = (params?: any) => {
|
||||
return http.get(BASEURL + "/xmgl/screenAuth/getModuleAndMenu", params);
|
||||
};
|
||||
|
||||
72
src/api/modules/mapConfig.ts
Normal file
@ -0,0 +1,72 @@
|
||||
// 项目展示
|
||||
import http from "@/api";
|
||||
const BASEURL = import.meta.env.VITE_API_URL;
|
||||
|
||||
// 查询系统配置
|
||||
export const getSystemConfig = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/systemConfig/queryByKey`, params);
|
||||
};
|
||||
|
||||
// 新增系统配置
|
||||
export const addSystemConfig = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/systemConfig/add`, params);
|
||||
};
|
||||
|
||||
// 修改系统配置
|
||||
export const updateSystemConfig = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/systemConfig/edit`, params);
|
||||
};
|
||||
|
||||
// 底图图层列表
|
||||
export const baseMapList = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/baseMap/list`, params);
|
||||
};
|
||||
|
||||
// 模型gltr列表
|
||||
export const gltfModelList = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/gltfModel/list`, params);
|
||||
};
|
||||
|
||||
export const getDevList = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/monitorDev/getDevList`, params);
|
||||
};
|
||||
|
||||
export const getStationStat = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/monitorDev/getStationStat`, params);
|
||||
};
|
||||
|
||||
export const getTopStat = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/reviewIndex/topStat`, params);
|
||||
};
|
||||
|
||||
export const getWorkerStat = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/reviewIndex/workerStat`, params);
|
||||
};
|
||||
|
||||
export const getAlarmList = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/reviewIndex/alarmList`, params);
|
||||
};
|
||||
|
||||
export const getAlarmNumStat = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/reviewIndex/alarmNumStat`, params);
|
||||
};
|
||||
|
||||
// 车辆类型统计
|
||||
export const getVehicleStat = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/vehiclePositionDev/countVehiclePositionDevCarType`, params);
|
||||
};
|
||||
|
||||
// 车辆列表
|
||||
export const getVehicleList = (params: any) => {
|
||||
return http.get(BASEURL + `/xmgl/vehiclePositionDev/list`, params);
|
||||
};
|
||||
|
||||
// 机械设备统计
|
||||
export const getMachineryStat = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/reviewIndex/machineryStat`, params);
|
||||
};
|
||||
|
||||
// 获取视频设备信息
|
||||
export const getVideoItemInfo = (params: any) => {
|
||||
return http.post(BASEURL + `/xmgl/videoItem/getVideoItemInfo`, params);
|
||||
};
|
||||
57
src/api/modules/projectshow.ts
Normal file
@ -0,0 +1,57 @@
|
||||
// 项目展示
|
||||
import http from "@/api";
|
||||
const BASEURL = import.meta.env.VITE_API_URL;
|
||||
|
||||
// 区域管理-树形结构
|
||||
export const arealistmap = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/qualityRegion/list`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 工作票
|
||||
export const workpage = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/mlHoist/page`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 工作票-新增
|
||||
export const workpageadd = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/mlHoist/add`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
|
||||
// 人员信息-劳务管理
|
||||
export const selectWorkerpeop = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/workerInfo/selectWorkerInfoList`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 安全隐患-质量管理-全部整改记录
|
||||
export const InspectRecord = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/qualityInspectionRecord/list?lang=zh_CN`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 所有摄像头
|
||||
export const selectEnableVideoItemList = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/videoItem/selectEnableVideoItemList?lang=zh_CN`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 人员信息-查询企业
|
||||
export const companylist = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/enterpriseInfo/list`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
|
||||
// 人员信息-查询部门
|
||||
export const TeamInfoList = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/teamInfo/getTeamInfoList`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 弹窗查询-区域人数
|
||||
export const areasafetyHatFence = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/safetyHatFence/list`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
|
||||
export const areasaWorker = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/qualityRegion/queryRegionWorker`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
|
||||
27
src/api/modules/safeEdgeProtection.ts
Normal file
@ -0,0 +1,27 @@
|
||||
import http from "@/api";
|
||||
const BASEURL = import.meta.env.VITE_API_URL;
|
||||
|
||||
// 培训概况
|
||||
export const safecationOverview = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/workerSafeEducationWorker/selectWorkerEducationOverview`, params);
|
||||
};
|
||||
|
||||
// 班前教育人数统计(近七日)
|
||||
export const safecationByWeek = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/workerSafeEducationWorker/selectWorkerEducationByWeek`, params);
|
||||
};
|
||||
|
||||
// 教育类型分析
|
||||
export const safecationByType = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/workerSafeEducationWorker/selectWorkerEducationByType`, params);
|
||||
};
|
||||
|
||||
// 近七日人员培训记录
|
||||
export const safeWorkerPage = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/workerSafeEducationWorker/selectSafeEducationWorkerPage`, params);
|
||||
};
|
||||
|
||||
// 培训统计(近一个月内) 培训人员班组统计(近一个月内)
|
||||
export const safecationByMonth = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/workerSafeEducationWorker/selectWorkerEducationByMonth`, params);
|
||||
};
|
||||
23
src/api/modules/shieldMachine.ts
Normal file
@ -0,0 +1,23 @@
|
||||
// 盾构机接口API
|
||||
import http from "@/api";
|
||||
const BASEURL = import.meta.env.VITE_API_URL;
|
||||
|
||||
// 大屏数据统计
|
||||
export const getShieldMachineData = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/tunnelBoringMachineCurrentData/getStatData`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 盾构机报警信息
|
||||
export const getShieldMachineAlarm = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/tunnelBoringMachineAlarm/getNewAlarm`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 盾构机详情
|
||||
export const getShieldMachineDetail = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/tunnelBoringMachine/queryById`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 盾构机列表
|
||||
export const getShieldMachineList = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/tunnelBoringMachine/list`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
@ -49,7 +49,15 @@ export const getVehiclePositionDayRecord = (params: {}) => {
|
||||
|
||||
// 智能安全帽--分类查询设备列表
|
||||
export const getHatDevOptionApi = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/safetyHatDev/list`, params);
|
||||
return http.get(BASEURL + `/xmgl/safetyHatDev/list`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
// 智能安全帽--分类查询设备列表-分页
|
||||
export const getHatDevOptionPageApi = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/safetyHatDev/page`, params);
|
||||
};
|
||||
// 智能安全帽--分类查询设备树
|
||||
export const getEnterpriseTreeApi = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/safetyHatDev/enterprise/tree/list`, params);
|
||||
};
|
||||
// 智能安全帽--查询设备状态总数
|
||||
export const getSafeHatTypeTotalApi = (params: {}) => {
|
||||
@ -57,16 +65,21 @@ export const getSafeHatTypeTotalApi = (params: {}) => {
|
||||
};
|
||||
// 智能安全帽--查询周报警数据
|
||||
export const getWeekAlarmDataApi = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/safetyHatAlarm/getRecentWeekAlarm`, params);
|
||||
return http.post(BASEURL + `/xmgl/safetyHatAlarm/getRecentWeekAlarm`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
// 智能安全帽--查询围栏信息
|
||||
export const getSuroundInfoApi = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/safetyHatFence/list`, params);
|
||||
return http.get(BASEURL + `/xmgl/safetyHatFence/list`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
// 智能安全帽--查询报警信息
|
||||
export const getAlarmRecordInfoApi = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/safetyHatAlarm/list`, params);
|
||||
};
|
||||
// 智能安全帽--查询报警信息-分页
|
||||
export const getAlarmRecordInfoApiPage = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/safetyHatAlarm/page`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 智能安全帽--查询实时数据信息
|
||||
export const getRealtimeDataApi = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/safetyHatData/list`, params);
|
||||
@ -75,6 +88,10 @@ export const getRealtimeDataApi = (params: {}) => {
|
||||
export const getSafeHatDayRecordApi = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/safetyHatData/list`, params);
|
||||
};
|
||||
// 获取每个设备最新一条实时数据信息
|
||||
export const getSafetyHatNewestApi = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/safetyHatData/getNewestList`, params);
|
||||
};
|
||||
// 智能安全帽--删除围栏
|
||||
export const deleteSafehatFence = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/safetyHatFence/deleteBatch`, params);
|
||||
@ -82,4 +99,41 @@ export const deleteSafehatFence = (params: {}) => {
|
||||
// 智能安全帽--添加围栏
|
||||
export const addSafeHatPositionFence = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/safetyHatFence/add`, params);
|
||||
};
|
||||
};
|
||||
|
||||
// 智能安全帽--查询围栏绑定人员
|
||||
export const getHatFenceByIdApi = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/safetyHatFence/queryById`, params);
|
||||
};
|
||||
|
||||
// 智能安全帽--绑定人员
|
||||
export const bindWorkerApi = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/safetyHatDev/bind`, params);
|
||||
};
|
||||
// 智能安全帽--解绑人员
|
||||
export const unBindWorkerApi = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/safetyHatDev/unBind`, params);
|
||||
};
|
||||
|
||||
// 智能安全帽--查询报警配置
|
||||
export const getAlarmConfigApi = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/safetyHatAlarmConfig/list`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 智能安全帽--查询围栏绑定人员
|
||||
export const getWorkerListByRegionApi = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/safetyHatData/getWorkerListByRegion`, params);
|
||||
};
|
||||
// 智能安全帽--查询围栏绑定人员
|
||||
export const getWorkerListByRegionApi1 = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/safetyHatData/getWorkerListByRegion1`, params);
|
||||
};
|
||||
|
||||
// 智能安全帽--查询围栏绑定车辆
|
||||
export const getVehicleListByRegionApi = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/vehiclePositionData/getVehicleListByRegion`, params);
|
||||
};
|
||||
// 智能安全帽--查询围栏绑定车辆
|
||||
export const getVehicleListByRegionApi1 = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/vehiclePositionData/getVehicleListByRegion1`, params);
|
||||
};
|
||||
|
||||
@ -30,6 +30,9 @@ export const getRelatedInfoApi = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/tower/getRelatedInfo`, params);
|
||||
};
|
||||
|
||||
export const getSelectTowerBySnApi = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/tower/selectTowerBySn`, params);
|
||||
};
|
||||
|
||||
// 右下-实时数据
|
||||
export const getNewestDataApi = (params: {}) => {
|
||||
|
||||
@ -17,3 +17,35 @@ export const getEntryAndExitCountApi = (params: {}) => {
|
||||
export const getEntryAndExitListApi = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/carPassRecord/page`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 测速-历史记录
|
||||
export const carMeasureSpeedData = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/carMeasureSpeedData/page`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 测速-摄像头数据
|
||||
export const carMeasureItemList = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/carMeasureSpeedBigScreen/selectEnableVideoItemList`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 测速
|
||||
export const statSpeedBigScreen = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/carMeasureSpeedBigScreen/countDev`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
// 测速-设备
|
||||
export const statBigScreeneq = (params: {}) => {
|
||||
return http.get(BASEURL + `/xmgl/carMeasureSpeedDev/page`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
//测速度- 每日车辆数
|
||||
export const getCarDaily = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/carMeasureSpeedBigScreen/getCarDaily`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
|
||||
// 测速-一周趋势
|
||||
export const getExceedSpeedTrend = (params: {}) => {
|
||||
return http.post(BASEURL + `/xmgl/carMeasureSpeedBigScreen/getExceedSpeedTrend`, params, { headers: { noLoading: true } });
|
||||
};
|
||||
|
||||
|
||||
@ -64,3 +64,13 @@
|
||||
font-family: YouSheBiaoTiHei;
|
||||
src: url("./screenFonts/YouSheBiaoTiHei-2.ttf");
|
||||
}
|
||||
@font-face {
|
||||
font-family: AlimamaShuHeiTi;
|
||||
src: url("./screenFonts/AlimamaShuHeiTi.ttf");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: AlibabaPuHuiTi;
|
||||
src: url("./screenFonts/AlibabaPuHuiTi.ttf");
|
||||
}
|
||||
|
||||
|
||||
BIN
src/assets/fonts/screenFonts/AlibabaPuHuiTi.ttf
Normal file
BIN
src/assets/fonts/screenFonts/AlimamaShuHeiTi.ttf
Normal file
BIN
src/assets/images/Mars3DImg/basemaps/TerrainEllipsoid.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/TerrainSTK.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/arcgis.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-c-bluish.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-c-dark.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-c-darkgreen.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-c-googlelite.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-c-grassgreen.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-c-grayscale.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-c-hardedge.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-c-light.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-c-midnight.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-c-pink.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-c-redalert.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-img.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bd-vec.png
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bingAerial.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bingAerialLabels.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bingRoads.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bingimage.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/bingmap.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/blackMarble.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/esriNationalGeographic.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/esriWorldImagery.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/esriWorldStreetMap.png
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/gaode_img.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/gaode_vec.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/google_img.png
Normal file
|
After Width: | Height: | Size: 9.4 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/google_ter.png
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/google_vec.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/mapQuestOpenStreetMap.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/mapboxSatellite.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/mapboxStreets.png
Normal file
|
After Width: | Height: | Size: 9.4 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/mapboxTerrain.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/naturalEarthII.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/null.png
Normal file
|
After Width: | Height: | Size: 233 B |
BIN
src/assets/images/Mars3DImg/basemaps/offline.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/osm.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/sea.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/stamenToner.png
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/stamenWatercolor.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/tdt_img.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/tdt_ter.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/tdt_vec.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
BIN
src/assets/images/Mars3DImg/basemaps/tencent_img.png
Normal file
|
After Width: | Height: | Size: 2.0 MiB |
BIN
src/assets/images/Mars3DImg/basemaps/tencent_vec.png
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
src/assets/images/Mars3DImg/marker/80800.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/images/Mars3DImg/marker/lace-blue.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
src/assets/images/Mars3DImg/marker/lace-red.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
src/assets/images/Mars3DImg/marker/lace-yellow.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
src/assets/images/Mars3DImg/marker/mark-blue.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
src/assets/images/Mars3DImg/marker/mark-green.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/assets/images/Mars3DImg/marker/mark-red.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
src/assets/images/Mars3DImg/marker/point-orange.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
src/assets/images/Mars3DImg/marker/point-red.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
src/assets/images/Mars3DImg/marker/point-yellow.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
src/assets/images/Mars3DImg/marker/route-end.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
src/assets/images/Mars3DImg/marker/route-start.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/assets/images/Mars3DImg/marker/square.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/assets/images/Mars3DImg/marker/street.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
src/assets/images/Mars3DImg/marker/street2.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/assets/images/backmap.png
Normal file
|
After Width: | Height: | Size: 97 KiB |
BIN
src/assets/images/bigImg-bak.png
Normal file
|
After Width: | Height: | Size: 3.6 MiB |
BIN
src/assets/images/bigImg.png
Normal file
|
After Width: | Height: | Size: 4.3 MiB |
|
Before Width: | Height: | Size: 5.7 MiB After Width: | Height: | Size: 5.7 MiB |
BIN
src/assets/images/carPosition/person.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/images/carPosition/person2.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/assets/images/construction/Group 4413.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
src/assets/images/construction/Group 4558.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
src/assets/images/construction/Group 45582.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
src/assets/images/construction/Group 4709.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
src/assets/images/construction/Group 5550.png
Normal file
|
After Width: | Height: | Size: 726 B |
BIN
src/assets/images/construction/Group 5600.png
Normal file
|
After Width: | Height: | Size: 666 B |
BIN
src/assets/images/construction/形状结合.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
src/assets/images/header/header-bg.png
Normal file
|
After Width: | Height: | Size: 200 KiB |
BIN
src/assets/images/header/sub-header-bg.png
Normal file
|
After Width: | Height: | Size: 62 KiB |