沙盘设置开发
After Width: | Height: | Size: 20 KiB |
|
@ -1 +1,2 @@
|
|||
<svg class="icon" style="width: 1.0400390625em;height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1065 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7908"><path d="M0 1024V250.6656h101.978163a623.725473 623.725473 0 0 0-5.774667 85.596129c0 285.33408 194.290925 517.180818 433.468623 517.180818s433.448146-231.273367 433.448147-517.180818a641.807143 641.807143 0 0 0-5.75419-85.596129h101.281926v773.3344z m379.592209-250.542735a219.212095 219.212095 0 0 1-105.295525-24.962124 200.41371 200.41371 0 0 1-16.054393-80.968204 198.181658 198.181658 0 0 0 16.054393 80.968204c-51.193857-83.609807-27.910891-215.710435 69.726033-303.743391l106.954206-101.240971a29.323841 29.323841 0 0 1 37.187217 0l69.746511 52.873015v4.402672c-32.538815 35.200896-67.412071 83.630284-92.988522 114.448986s-18.614086 44.026717-4.668879 57.214254a36.675279 36.675279 0 0 0 46.504499 4.402672l13.945207-8.805344a1190.707675 1190.707675 0 0 0 120.817502-88.053433h4.648402l55.821781 66.040075a25.658361 25.658361 0 0 1 0 35.221373l-106.954205 101.220494a311.258649 311.258649 0 0 1-215.50566 90.981722z m78.920449-221.157461c-2.313962-12.675599-1.33104-15.41959 10.50498-30.122465a191.731232 191.731232 0 0 1 23.876815-24.573052s23.221533-26.41603 37.187217-39.624045a984.335 984.335 0 0 1 93.008999-101.240971l186.017998-145.390553 4.627925-4.382194 4.259328-4.095509a90.387873 90.387873 0 0 1 0.389074-31.16682s7.146662-46.893573 18.614086-107.650441v-6.798545l2.293485-6.593768 0.901012-2.559693 1.433428-6.470904c0.143343-0.675759 0.307163-1.310563 0.430028-2.047754H841.627005c0-3.194497 0-4.095509 1.822501-6.040875 0.880534-3.74739 1.802024-7.597168 2.805423-11.528857 0-4.423149 4.689357-8.825821 4.689358-13.208015a9.74731 9.74731 0 0 1 9.276327-8.825821 16.648242 16.648242 0 0 1 9.317281 4.402672 15.66532 15.66532 0 0 1 4.648403 13.228493l-4.648403 17.590209a443.707395 443.707395 0 0 0-27.91089 105.66412 88.811103 88.811103 0 0 1-4.8327 26.41603 13.719954 13.719954 0 0 1-1.781547 5.549414l-2.682558 7.658601a19.924649 19.924649 0 0 0 4.66888 26.436508l9.296804 13.187537a22.791505 22.791505 0 0 0 27.931369 4.402672 77.814662 77.814662 0 0 1 41.815142-13.208015 510.91469 510.91469 0 0 0 111.623085-26.41603l18.593609-8.825821a17.692597 17.692597 0 0 1 13.945206 4.361717c4.648402 4.423149 4.648402 4.423149 4.648403 8.825821a9.767788 9.767788 0 0 1-9.296805 8.82582 467.563732 467.563732 0 0 1-134.865096 35.200896 101.302404 101.302404 0 0 0-51.193857 17.610687l-4.689357 4.402672c0 4.402672-4.648402 4.402672-9.296804 8.784866l-162.75551 154.093508c-55.821781 48.429388-84.387953 68.825021-132.366836 105.664121a302.658081 302.658081 0 0 1-59.630604 41.671799c-8.191017 3.849778-10.648322 6.716634-17.569732 6.716634a28.66856 28.66856 0 0 1-24.777826-20.047514zM892.779906 61.739791v-4.382194c0-4.402672 4.66888-8.825821 4.66888-13.228492L906.745591 17.713074h4.689357a964.16462 964.16462 0 0 1 139.472543 132.080151v4.382194l-27.890413 8.805343c-4.66888 4.402672-9.317282 4.402672-18.614086 4.402672a1235.348718 1235.348718 0 0 0-111.623086-105.643643z m-53.487341-10.99644z" p-id="7909"></path></svg>
|
||||
<svg class="icon" style="width: 1.0400390625em;height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1065 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7908">
|
||||
<path fill="#fff" d="M0 1024V250.6656h101.978163a623.725473 623.725473 0 0 0-5.774667 85.596129c0 285.33408 194.290925 517.180818 433.468623 517.180818s433.448146-231.273367 433.448147-517.180818a641.807143 641.807143 0 0 0-5.75419-85.596129h101.281926v773.3344z m379.592209-250.542735a219.212095 219.212095 0 0 1-105.295525-24.962124 200.41371 200.41371 0 0 1-16.054393-80.968204 198.181658 198.181658 0 0 0 16.054393 80.968204c-51.193857-83.609807-27.910891-215.710435 69.726033-303.743391l106.954206-101.240971a29.323841 29.323841 0 0 1 37.187217 0l69.746511 52.873015v4.402672c-32.538815 35.200896-67.412071 83.630284-92.988522 114.448986s-18.614086 44.026717-4.668879 57.214254a36.675279 36.675279 0 0 0 46.504499 4.402672l13.945207-8.805344a1190.707675 1190.707675 0 0 0 120.817502-88.053433h4.648402l55.821781 66.040075a25.658361 25.658361 0 0 1 0 35.221373l-106.954205 101.220494a311.258649 311.258649 0 0 1-215.50566 90.981722z m78.920449-221.157461c-2.313962-12.675599-1.33104-15.41959 10.50498-30.122465a191.731232 191.731232 0 0 1 23.876815-24.573052s23.221533-26.41603 37.187217-39.624045a984.335 984.335 0 0 1 93.008999-101.240971l186.017998-145.390553 4.627925-4.382194 4.259328-4.095509a90.387873 90.387873 0 0 1 0.389074-31.16682s7.146662-46.893573 18.614086-107.650441v-6.798545l2.293485-6.593768 0.901012-2.559693 1.433428-6.470904c0.143343-0.675759 0.307163-1.310563 0.430028-2.047754H841.627005c0-3.194497 0-4.095509 1.822501-6.040875 0.880534-3.74739 1.802024-7.597168 2.805423-11.528857 0-4.423149 4.689357-8.825821 4.689358-13.208015a9.74731 9.74731 0 0 1 9.276327-8.825821 16.648242 16.648242 0 0 1 9.317281 4.402672 15.66532 15.66532 0 0 1 4.648403 13.228493l-4.648403 17.590209a443.707395 443.707395 0 0 0-27.91089 105.66412 88.811103 88.811103 0 0 1-4.8327 26.41603 13.719954 13.719954 0 0 1-1.781547 5.549414l-2.682558 7.658601a19.924649 19.924649 0 0 0 4.66888 26.436508l9.296804 13.187537a22.791505 22.791505 0 0 0 27.931369 4.402672 77.814662 77.814662 0 0 1 41.815142-13.208015 510.91469 510.91469 0 0 0 111.623085-26.41603l18.593609-8.825821a17.692597 17.692597 0 0 1 13.945206 4.361717c4.648402 4.423149 4.648402 4.423149 4.648403 8.825821a9.767788 9.767788 0 0 1-9.296805 8.82582 467.563732 467.563732 0 0 1-134.865096 35.200896 101.302404 101.302404 0 0 0-51.193857 17.610687l-4.689357 4.402672c0 4.402672-4.648402 4.402672-9.296804 8.784866l-162.75551 154.093508c-55.821781 48.429388-84.387953 68.825021-132.366836 105.664121a302.658081 302.658081 0 0 1-59.630604 41.671799c-8.191017 3.849778-10.648322 6.716634-17.569732 6.716634a28.66856 28.66856 0 0 1-24.777826-20.047514zM892.779906 61.739791v-4.382194c0-4.402672 4.66888-8.825821 4.66888-13.228492L906.745591 17.713074h4.689357a964.16462 964.16462 0 0 1 139.472543 132.080151v4.382194l-27.890413 8.805343c-4.66888 4.402672-9.317282 4.402672-18.614086 4.402672a1235.348718 1235.348718 0 0 0-111.623086-105.643643z m-53.487341-10.99644z" p-id="7909"></path></svg>
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 12 KiB |
|
@ -1,2 +1,2 @@
|
|||
<svg class="icon" style="width: 1em;height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5537" data-spm-anchor-id="a313x.search_index.i1.i2.30073a81HnVMdv">
|
||||
<path d="M768 42.666667H256C209.066667 42.666667 170.666667 81.066667 170.666667 128v682.666667c0 46.933333 38.4 85.333333 85.333333 85.333333v42.666667c0 23.466667 19.2 42.666667 42.666667 42.666666h85.333333c23.466667 0 42.666667-19.2 42.666667-42.666666v-42.666667h170.666666v42.666667c0 23.466667 19.2 42.666667 42.666667 42.666666h85.333333c23.466667 0 42.666667-19.2 42.666667-42.666666v-42.666667c46.933333 0 85.333333-38.4 85.333333-85.333333V128c0-46.933333-38.4-85.333333-85.333333-85.333333zM309.333333 170.666667h405.333334c17.066667 0 32 14.933333 32 32s-14.933333 32-32 32h-405.333334c-17.066667 0-32-14.933333-32-32S292.266667 170.666667 309.333333 170.666667z m0 554.666666c17.066667 0 32 14.933333 32 32s-14.933333 32-32 32-32-14.933333-32-32 14.933333-32 32-32z m106.666667 64c-17.066667 0-32-14.933333-32-32s14.933333-32 32-32 32 14.933333 32 32-14.933333 32-32 32z m106.666667 0c-17.066667 0-32-14.933333-32-32s14.933333-32 32-32 32 14.933333 32 32-14.933333 32-32 32z m-42.666667-115.2c-8.533333 12.8-25.6 8.533333-23.466667-6.4L469.333333 512h-72.533333c-14.933333 0-23.466667-17.066667-12.8-29.866667l136.533333-172.8c8.533333-12.8 25.6-8.533333 23.466667 6.4l-14.933333 155.733334h72.533333c14.933333 0 23.466667 17.066667 12.8 29.866666l-134.4 172.8z" p-id="5538"></path></svg>
|
||||
<path fill="#fff" d="M768 42.666667H256C209.066667 42.666667 170.666667 81.066667 170.666667 128v682.666667c0 46.933333 38.4 85.333333 85.333333 85.333333v42.666667c0 23.466667 19.2 42.666667 42.666667 42.666666h85.333333c23.466667 0 42.666667-19.2 42.666667-42.666666v-42.666667h170.666666v42.666667c0 23.466667 19.2 42.666667 42.666667 42.666666h85.333333c23.466667 0 42.666667-19.2 42.666667-42.666666v-42.666667c46.933333 0 85.333333-38.4 85.333333-85.333333V128c0-46.933333-38.4-85.333333-85.333333-85.333333zM309.333333 170.666667h405.333334c17.066667 0 32 14.933333 32 32s-14.933333 32-32 32h-405.333334c-17.066667 0-32-14.933333-32-32S292.266667 170.666667 309.333333 170.666667z m0 554.666666c17.066667 0 32 14.933333 32 32s-14.933333 32-32 32-32-14.933333-32-32 14.933333-32 32-32z m106.666667 64c-17.066667 0-32-14.933333-32-32s14.933333-32 32-32 32 14.933333 32 32-14.933333 32-32 32z m106.666667 0c-17.066667 0-32-14.933333-32-32s14.933333-32 32-32 32 14.933333 32 32-14.933333 32-32 32z m-42.666667-115.2c-8.533333 12.8-25.6 8.533333-23.466667-6.4L469.333333 512h-72.533333c-14.933333 0-23.466667-17.066667-12.8-29.866667l136.533333-172.8c8.533333-12.8 25.6-8.533333 23.466667 6.4l-14.933333 155.733334h72.533333c14.933333 0 23.466667 17.066667 12.8 29.866666l-134.4 172.8z" p-id="5538"></path></svg>
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 9.8 KiB |
|
@ -1,3 +1,3 @@
|
|||
<svg class="icon" style="width: 1em;height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3533">
|
||||
<path d="M905.5 363.9L357.2 143l-199 108.5v64.2h-65V212.9l260.4-142 577.2 233.2zM502.7 953.1H249.8V504.3h65v383.8h123V504.3h64.9zM835.7 777c-52.4 0-95.1-42.7-95.1-95.1 0-17.9 14.5-32.5 32.5-32.5s32.5 14.5 32.5 32.5c0 16.7 13.5 30.2 30.2 30.2s30.2-13.5 30.2-30.2-13.5-30.2-30.2-30.2h-32.5l-3.9-32.5V503.7c0-17.9 14.5-32.5 32.5-32.5 17.9 0 32.5 14.5 32.5 32.5v88.1c39.5 12.7 66.6 48.3 66.6 90.1-0.2 52.4-42.9 95.1-95.3 95.1z" p-id="3534"></path>
|
||||
<path d="M855.9 536.1H168.1c-41.3 0-74.9-33.6-74.9-74.9V304.1h837.6v157.1c0 41.4-33.6 74.9-74.9 74.9z m-697.7-167v92.2c0 5.5 4.5 9.9 10 9.9H856c5.5 0 10-4.4 10-9.9v-92.2H158.2zM177.2 888.1h412.1V953H177.2z" p-id="3535"></path></svg>
|
||||
<path fill="#fff" d="M905.5 363.9L357.2 143l-199 108.5v64.2h-65V212.9l260.4-142 577.2 233.2zM502.7 953.1H249.8V504.3h65v383.8h123V504.3h64.9zM835.7 777c-52.4 0-95.1-42.7-95.1-95.1 0-17.9 14.5-32.5 32.5-32.5s32.5 14.5 32.5 32.5c0 16.7 13.5 30.2 30.2 30.2s30.2-13.5 30.2-30.2-13.5-30.2-30.2-30.2h-32.5l-3.9-32.5V503.7c0-17.9 14.5-32.5 32.5-32.5 17.9 0 32.5 14.5 32.5 32.5v88.1c39.5 12.7 66.6 48.3 66.6 90.1-0.2 52.4-42.9 95.1-95.3 95.1z" p-id="3534"></path>
|
||||
<path fill="#fff" d="M855.9 536.1H168.1c-41.3 0-74.9-33.6-74.9-74.9V304.1h837.6v157.1c0 41.4-33.6 74.9-74.9 74.9z m-697.7-167v92.2c0 5.5 4.5 9.9 10 9.9H856c5.5 0 10-4.4 10-9.9v-92.2H158.2zM177.2 888.1h412.1V953H177.2z" p-id="3535"></path></svg>
|
Before Width: | Height: | Size: 873 B After Width: | Height: | Size: 897 B |
After Width: | Height: | Size: 13 KiB |
|
@ -69,3 +69,19 @@ export function devicePositionGet(data) {
|
|||
params: data,
|
||||
});
|
||||
}
|
||||
|
||||
export function devicePositionAddItems(data) {
|
||||
return request({
|
||||
url: "/manage/api/bim/devicePosition/addItems",
|
||||
method: "post",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
export function devicePositionUpdateItems(data) {
|
||||
return request({
|
||||
url: "/manage/api/bim/devicePosition/updatePosition",
|
||||
method: "post",
|
||||
data: data,
|
||||
});
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-dialog v-model="show" append-to-body :close-on-click-modal="false" :close-on-press-escape="false" :title="title" width="960px" modal-class="model-dialog-show">
|
||||
<el-dialog v-model="show" append-to-body :close-on-click-modal="false"
|
||||
:close-on-press-escape="false" :title="title" width="960px" modal-class="model-dialog-show">
|
||||
<div :id="elId"></div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
@ -15,8 +16,23 @@ export default {
|
|||
title: '',
|
||||
row: null,
|
||||
bimStore: null,
|
||||
sapi_1: null,
|
||||
elId: 'gis' + +new Date(),
|
||||
defaults: {
|
||||
serverIP: `model.jhncidg.com`, //服务IP地址 具体见引擎服务控制台
|
||||
port: 8000, //HTTP端口 具体见引擎服务控制台
|
||||
useHttps: true, //是否使用Https
|
||||
container: `UEgineContainer`, //[必须]引擎场景容器ID
|
||||
// Token 可从引擎工作站下载 (必须)不传入则无法加载模型
|
||||
secretKey:
|
||||
"cbe8c300dfb0280d71bf6546087c6d2fa49260085f53fca86c69755ac3a39199e08cb605efce617acfa509d5f3ee4d7f67a84d7c36cc175589405fde5d995a24258c47f45b34485a2edb350010e2f42cd5b388af45c6b070850288d284cbbbcd51e36f41b756a25f38d27dbe2e47e96b9eb56a96b59d61e02a467e881f70b21989b1a50685b6fc0265f528fc20b876d425a89c4bf6b33f829177fda27027e65b8a94867b381ae88ecd6668e8ca6b6d286dce7e5d799b0a1791905fc1eba1be4bd6b2a0d0983e9fd1184d8dbba49a8569257e195e636a849299be5a52d738b8218ae3e55ca95ec2999742c749dda98108ecfe0622c0e7fe1d76ad60b6c191c99adca5f9cf5e5f096c599f1874ee756fe16dce7e5d799b0a175d5afe5554a4332203e774bed8a045353e9bf5abfe83ffe0cca50ef6c618828a9d63dac2d06e44c19cc1e4d0220e60c6fb1ba2643538d1973ae24d1650ef196ed32b1cdbecb9bf3ae2651ff226b8a2383977aeaabb9225d76f8b62bd8891c29bfb1ba2643538d1973ae24d1650ef196ed32b1cdbecb9bf3aded264d2944b7de536ca05b5a67eccf9e531630520dbe46651d2e0212a534b5d37e40a524d2bbb8599a991777d21e7823e88c9264a91404ad3c355b1486472d2d33d2024825618176f3ca316f1c8864c67da113f439417e93a3a6e65f3b5b13e02b4cf797dd3ef437d453436628b776f17b592e82465766524d976e07cb995f7aeea64611acbe5c7afafd0506174e868b868cd5190eb2aca665e8d49164a81ede6cd674b6676107f753151533a277044030c6924517e4349b5024217bdf743a670fd5d571139e4f0e6cd674b6676107fc8b14b44ceeed441af4b194f05a9561933be0b316b16d035cf14829a5847f70377d6c12f1649400fcab44f4ff52989cf214f8b93be10da84253a49595b8ffa60e29586b86ee4d866c8ffcb81b934e9b51cd8670938da55d3ee5940a08809fab6f7c0a1702e2a8a95cc2ddffad05ffd7c7b7134e53eaa4f83b046182095e9d992f79b33aea9c3effbffbe7fd817b3e44233aa4802e15dfc49a29aa59c8f2497fa711bc068a62def563d8f10f7e48a08896850e0b312512643a819d6c108898dd8a2266bc2bd5ee75d866f1d98d020cafd7bd5f9c0972b08b652da3f7d8f2395dcf14e1860b5a41f63ca076947bd189a6df6b34a0d3b48e62299da383acb371030673a18f4f42a3e1ef21654bc56ed57d610df6c47a708c020420446a051fcfcfe2ec33e49302a9c7b920088012936f0e4972bd8f261f7b7345b2b4c07b28f439b8c363d561580eba60124eaa5aa0834e124254c2ea7e8b20334d705a519dd901833639d7019f49033c4bbb34a5481d3485125cdd7384aad1b3050717025af01dcfac91bea061f4ff485af667dd7ebaf4baeea64611acbe5c740e3c5229a33a810e6eb28a4163283ccebc424f09f933d0eb1a881ed05ca8d5c70958237eb5b91d4e574440ea0c9179a582dc966bcfc1f21cf3630a2823a9a2d22bd09a00b213aae3866768ae2f24dde59f3f21ab1f820a9d2bc9b9c79ecfe3a853fcb2bc95ee8056cd5b4826fa55926733ef859a5f169e6afafd0506174e86864d53d967da98ab0b0e08d14be6d452c753151533a2770444dc3bda33a30522cafafd0506174e868ad58c88e87a3bfc170e2ffb0f223e4e27d1f9f3c7343796941187054ec673ebdbd57ea3b34f9c6ccd2a3c00a7ba1a999546538785d7cc0b40a683a8bbd9cb842f96b87b99f2b3a0e241e69a6993bcca387380d5ea2d8e077753151533a277044c81e5b8a22ff6bdf23c4b6186d657cedfff99a50bc0729d1d320606a1d80beb0", //token
|
||||
openearth: false, //[可选]是否开启GIS场景
|
||||
bgcolor: "rgba(135 ,206 ,250,1)", //[可选]BIM模式场景背景色
|
||||
},
|
||||
// 此处传入模型访问地址 -可通过serverAPI接口获取该地址
|
||||
modelPath:
|
||||
"https://model.jhncidg.com:18086/Tools/output/model/4720827559401934284/root.glt",
|
||||
// 模型ID 由用户自定义
|
||||
modelID: "4720827559401934284",
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -34,6 +50,55 @@ export default {
|
|||
})
|
||||
},
|
||||
initCesium() {
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
window.api = new SAPI(
|
||||
{
|
||||
serverIP: `model.jhncidg.com`, //服务ip地址
|
||||
port: 8000, //HTTP端口
|
||||
useHttps: true, //使用Https
|
||||
container: this.elId, //[必须]容器id
|
||||
secretKey: "cbe8c300dfb0280d71bf6546087c6d2fa49260085f53fca86c69755ac3a39199e08cb605efce617acfa509d5f3ee4d7f67a84d7c36cc175589405fde5d995a24258c47f45b34485a2edb350010e2f42cd5b388af45c6b070850288d284cbbbcd51e36f41b756a25f38d27dbe2e47e96b9eb56a96b59d61e02a467e881f70b21989b1a50685b6fc0265f528fc20b876d425a89c4bf6b33f829177fda27027e65b8a94867b381ae88ecd6668e8ca6b6d286dce7e5d799b0a1791905fc1eba1be4bd6b2a0d0983e9fd1184d8dbba49a8569257e195e636a849299be5a52d738b8218ae3e55ca95ec2999742c749dda98108ecfe0622c0e7fe1d76ad60b6c191c99adca5f9cf5e5f096c599f1874ee756fe16dce7e5d799b0a175d5afe5554a4332203e774bed8a045353e9bf5abfe83ffe0cca50ef6c618828a9d63dac2d06e44c19cc1e4d0220e60c6fb1ba2643538d1973ae24d1650ef196ed32b1cdbecb9bf3ae2651ff226b8a2383977aeaabb9225d76f8b62bd8891c29bfb1ba2643538d1973ae24d1650ef196ed32b1cdbecb9bf3aded264d2944b7de536ca05b5a67eccf9e531630520dbe4663b2d265fe6a4c8877fcba7ce8189fbc216cdeb3ecbc1d365395fd220141d4e6d9fd317e3dac7bb223013404ec41c18c9cc748e652ce16fe7061c32d550edfda330c1555e0c08e51f698f96b91615d8229cf32d2e110ec91f1211e23c769b5bbe1aa9a9191a2d3da09800e6efdee12ee04fdc9df330134f94052efc320a8c1a143e939c0e3b1ad476cf3630a2823a9a2dc2a17ec077fd21bfa7550ed054853e32510f8a6ea5c1dff9c3d61f7cf5f649cb25f0dbad9f7f66e3b446946685cead0cfac91bea061f4ff49a2f853c245297edc3d61f7cf5f649cb0f9b84173857a7b67c27928b58b4a6a65f517a43f106335ecc43571d292f54baa4596f82cf86665b367e01045009c18a2b543696b93a5bd44ca8168b525235150ffadf3f628aa7e8a20b9e74d76bd3a1e26b026e5297005a780f011db11ddb55fbabdc0f876c1cdfa5ef7db74bbc52e19c6396ffcf10044da26ecd334722494fc515b205e9624a4468762f63f0143583d1eeaaa85ff95ee50d8f953f44140ab40f29957f914b2241fd1309b7be0d5f9e55207069d393244a5be14de83e99956e957e025b859c7dd3cebcdd4589bf15942a17f162a5b95af68b416632dbf24db069995334a82a49d6060f7a5b770b6e18ecf8cb01c0e21b608156b326e2f4461369f266ad62ac2edf64d1767ac6ea3d83c9ba33a4517541406791c384c597539cc1ffcdbe8f3563a125da5d3905c7f92abef0fe8b967e5bc2832940bf4230fe93bdd44267922427c4db140fd5cb164da87f17f480c39e9c1c17bd48d031e3ce8ab3a49456b48f3b49549c2da3f62d2a8da7d5f36e39ce04af5e3f8253971ef20b10b7b200fbc7c3d3f71e19f74e660313cf3630a2823a9a2d0acd9cb22f32e975d8b70082aab5ddbcb644d89a77efad286dee59796b124081510f8a6ea5c1dff9cb0f31d9a93422d1de95a0001376b8d685af667dd7ebaf4bdfc4840ac1126277417910a2ed0df6e3ca2026459a491059689206d702832f51afafd0506174e868c12cc462769b2e685be04514c976edd04ca2ef020dc56bee8321afe91a1dcbb1afafd0506174e8680f18f43fcd13957eef440c21db889c81888bce192514399191b48af868eda487753151533a27704469e5635404d6fdfb753151533a277044afdd825f7197f289753151533a27704484b9cf9eccaf749638930dbe9049f2ae36689b286e75a81e016aa63061505f57a8c1113b833628e3a18dff8ae8ac8eaae0e7c3406ae4dd4e10880b34c16e1b7405884ca1d5603015a7b0730878fafb08",
|
||||
openEarth: false, //[可选]开启Gis场景
|
||||
bgColor: 'rgba(135 ,206 ,250,1)', //[可选]bim场景背景色, 传值即为纯色天空盒
|
||||
tintColor: 'rgba(255,255,0,1)', //[可选]osgb单体化颜色
|
||||
sceneTime: ['13:00', '6:00', '18:00'], //[可选]分别为当前时间、日出时间、日落时间
|
||||
cadMode: false, // 是否是Cad图纸预览模式
|
||||
},
|
||||
() => {
|
||||
console.log(this.row)
|
||||
//this.row.modelAccessAddress
|
||||
console.log("场景初始化完成");
|
||||
window.api.Public.setSkyBoxState(0);
|
||||
this.addModels();
|
||||
|
||||
}
|
||||
)
|
||||
console.log('---->', api)
|
||||
},
|
||||
addModels() {
|
||||
let modelPath=this.row.modelAccessAddress;
|
||||
if(modelPath.indexOf("model.jhncidg.com")==-1){
|
||||
modelPath="https://model.jhncidg.com:18086"+modelPath
|
||||
}
|
||||
window.api.Model.add(
|
||||
// 此处传入模型访问地址 -可通过serverAPI接口获取该地址
|
||||
modelPath,
|
||||
// 模型ID 由用户自定义
|
||||
this.row.lightweightName,
|
||||
(res) => {
|
||||
console.log("模型开始加载");
|
||||
},
|
||||
(res) => {
|
||||
console.log("模型加载完毕");
|
||||
},
|
||||
{
|
||||
FlyTo: true,
|
||||
}
|
||||
);
|
||||
},
|
||||
initCesium2() {
|
||||
>>>>>>> Stashed changes
|
||||
// const defaults = { ...this.bimStore.defaults }
|
||||
let defaults = {
|
||||
container: 'cesiumContainer', //[必须]容器id
|
||||
|
@ -116,4 +181,10 @@ export default {
|
|||
}
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
<style lang="scss">
|
||||
.model-dialog-show{
|
||||
iframe{
|
||||
height: 800px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -85,6 +85,21 @@
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tools-bottom">
|
||||
<el-button type="primary" @click="doSave">保存</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="test-box">
|
||||
<div class="tag-box">
|
||||
<img :src="'images/2.png'" alt="" />
|
||||
<span class="tag-txt" style="color: #ffffff; font-size: 14px">
|
||||
<img
|
||||
:src="'images/videoMonitor.svg'"
|
||||
style="width: 20px; height: 20px"
|
||||
/>
|
||||
aaa</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -94,7 +109,7 @@ import useUserStore from "@/store/modules/user";
|
|||
import { listBimModel } from "@/api/bim/bimModel";
|
||||
import { ElMessage, ElMessageBox } from "element-plus";
|
||||
import { emitter } from "@/router/index.js";
|
||||
import { devicePositionGet } from "@/api/bim/bim.js";
|
||||
import { devicePositionGet,devicePositionAddItems, devicePositionUpdateItems} from "@/api/bim/bim.js";
|
||||
import icons from "./icons.js";
|
||||
export default {
|
||||
name: "SandTableSetting",
|
||||
|
@ -113,6 +128,7 @@ export default {
|
|||
positionByModalId: "",
|
||||
selItem: null,
|
||||
iconVideo: "",
|
||||
addLabels:[],
|
||||
};
|
||||
},
|
||||
created() {
|
||||
|
@ -137,46 +153,107 @@ export default {
|
|||
this.initEngine();
|
||||
},
|
||||
methods: {
|
||||
AddLable: function (e, t) {
|
||||
doSave() {
|
||||
this.$confirm("确认保存修改?", "提示", {
|
||||
type:"warning",
|
||||
confirmButtonText: "确 认",
|
||||
cancelButtonText: "取 消",
|
||||
}).then(() => {
|
||||
let adds=this.devices.filter((item)=>{
|
||||
return item.id==null
|
||||
}).map(item=>{
|
||||
return {
|
||||
deviceId:item.deviceId,
|
||||
deviceType:item.deviceType,
|
||||
position:JSON.stringify( item.position),
|
||||
enabled:item.show?1:0,
|
||||
currentUser:this.userStore.name,
|
||||
remark:'',
|
||||
}
|
||||
})
|
||||
let updates=this.devices.filter((item)=>{
|
||||
return item.id!=null
|
||||
}).map(item=>{
|
||||
return {
|
||||
id:item.id,
|
||||
position:JSON.stringify( item.position),
|
||||
currentUser:this.userStore.name,
|
||||
enabled:item.show?1:0,
|
||||
}
|
||||
})
|
||||
console.log("-->",adds,updates)
|
||||
let ajaxs=[];
|
||||
if(adds.length>0){
|
||||
ajaxs.push(devicePositionAddItems({items:adds}))
|
||||
}
|
||||
if(updates.length>0){
|
||||
ajaxs.push(devicePositionUpdateItems({items:updates}))
|
||||
}
|
||||
Promise.all(ajaxs).then((res)=>{
|
||||
ElMessage.success("保存成功")
|
||||
})
|
||||
});
|
||||
},
|
||||
clearLabels(){
|
||||
this.addLabels.forEach(id=>{
|
||||
window.sandSettingApi.Label.removeBalloon(id);
|
||||
})
|
||||
this.addLabels=[];
|
||||
},
|
||||
addDeviceLabel(){
|
||||
this.devices.forEach(d=>{
|
||||
if(d.position && d.position.length>0){
|
||||
this.AddLable(d)
|
||||
}
|
||||
});
|
||||
},
|
||||
AddLable: function (item) {
|
||||
let img = "videoMonitor";
|
||||
if (this.activeMenu == 1) {
|
||||
img = "videoMonitor";
|
||||
} else if (this.activeMenu == 2) {
|
||||
img = "pitMonitor";
|
||||
} else if (this.activeMenu == 3) {
|
||||
img = "towerMonitor";
|
||||
} else if (this.activeMenu == 4) {
|
||||
img = "power";
|
||||
}
|
||||
let html = `<style>
|
||||
.sp-svg svg{widht: 16px;height: 16px;fill: #ffffff; }
|
||||
.tag-box{position: relative}
|
||||
.tag-txt{position: absolute;top:30%;left: 50%;transform: translate(-50%, -50%);
|
||||
text-align: center;color: #ffffff;}</style>
|
||||
text-align: center;color: #ffffff;display: flex;font-size:12px;}</style>
|
||||
<div class='tag-box'>
|
||||
<img src='images/2.png' alt=''>
|
||||
<span class='tag-txt' style='color:#ffffff;font-size:14px'>
|
||||
<img src='images/videoMonitor.svg'>
|
||||
${this.selItem.name}</span></div>`;
|
||||
console.log(html);
|
||||
<img src='images/${img}.png' style="width:20px;height:20px;">
|
||||
${item.name}
|
||||
</span>
|
||||
</div>`;
|
||||
|
||||
window.sandSettingApi.Label.addBalloon({
|
||||
Html: html,
|
||||
ID: this.selItem.elId,
|
||||
ID: item.elId,
|
||||
Pivot: "2",
|
||||
Position: t,
|
||||
Title: this.selItem.name,
|
||||
Position: item.position,
|
||||
Title: item.name,
|
||||
MaxDistance: 1e6,
|
||||
|
||||
// ID: e,
|
||||
// Position: t,
|
||||
// Html: `<div><img src='images/red.svg' style='width: 20px; height: 20px'> ${this.selItem.name}</div>`,
|
||||
// Pivot: 8,
|
||||
// onClick: function (e) {
|
||||
// console.log(e);
|
||||
// },
|
||||
});
|
||||
this.addLabels.push(item.elId);
|
||||
},
|
||||
getPosition(item, index) {
|
||||
this.selItem = item;
|
||||
window.sandSettingApi && window.sandSettingApi.Public.clearHandler();
|
||||
ElMessage.info("请在场景中拾取坐标位置");
|
||||
window.sandSettingApi.Label.removeBalloon(item.elId);
|
||||
window.sandSettingApi.Public.pickupCoordinate(false);
|
||||
window.sandSettingApi.Public.event("LEFT_CLICK", (e) => {
|
||||
window.sandSettingApi.Feature.getByPosition([e.x, e.y], (n) => {
|
||||
if (n && n["id"]) {
|
||||
this.positionByModalId = n.id.split("^")[0];
|
||||
window.sandSettingApi.Public.pickupCoordinate(true, (e) => {
|
||||
this.AddLable("position_label", e);
|
||||
this.selItem.position = e;
|
||||
window.sandSettingApi.Label.removeBalloon(item.elId);
|
||||
this.AddLable(this.selItem);
|
||||
window.sandSettingApi.Public.pickupCoordinate(false);
|
||||
window.sandSettingApi.Public.clearHandler();
|
||||
});
|
||||
} else {
|
||||
|
@ -184,28 +261,16 @@ export default {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
// window.sandSettingApi.Public.event("LEFT_CLICK", (function(e) {
|
||||
// window.sandSettingApi.Feature.getByEvent(e.position, n=> {
|
||||
// this.positionByModalId = n.id.split("^")[0];
|
||||
// window.sandSettingApi.Public.pickupCoordinate(e.position, (function(e) {
|
||||
// window.sandSettingApi.Lable.DeleteCustomLabel("position_label"),
|
||||
// this.AddLable("position_label", e)
|
||||
// }
|
||||
// ))) : ElMessage.warning("请在模型上选点!")
|
||||
// }
|
||||
// ), !1)
|
||||
// }
|
||||
// ))
|
||||
},
|
||||
doToolsClose() {
|
||||
this.activeMenu = 0;
|
||||
this.resetScene();
|
||||
},
|
||||
resetScene() {
|
||||
api.Camera.stopImmersiveRoam();
|
||||
api.Model.location(api.m_model.keys().toArray()[0]);
|
||||
api.Plugin.deleteMiniMap();
|
||||
this.clearLabels();
|
||||
sandSettingApi.Camera.stopImmersiveRoam();
|
||||
sandSettingApi.Model.location(api.m_model.keys().toArray()[0]);
|
||||
sandSettingApi.Plugin.deleteMiniMap();
|
||||
},
|
||||
doMenu(n) {
|
||||
if (n == this.activeMenu) {
|
||||
|
@ -233,9 +298,12 @@ export default {
|
|||
.filter((item) => item.deviceType == this.activeMenu)
|
||||
.map((item) => {
|
||||
item.show = item.enabled != 0;
|
||||
item.position=this.$tryToJson(item.position,[]);
|
||||
item.elId = (item.id ? item.id : cnt++) + "-" + item.deviceType;
|
||||
return item;
|
||||
});
|
||||
this.clearLabels();
|
||||
this.addDeviceLabel();
|
||||
});
|
||||
},
|
||||
initEngine() {
|
||||
|
@ -387,7 +455,7 @@ export default {
|
|||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||
min-width: 300px;
|
||||
min-height: 400px;
|
||||
|
||||
padding-bottom: 50px;
|
||||
.tools-title {
|
||||
padding: 10px;
|
||||
color: #114c5f;
|
||||
|
@ -402,6 +470,8 @@ export default {
|
|||
}
|
||||
.device-list {
|
||||
padding: 0px 10px;
|
||||
max-height: 60vh;
|
||||
overflow-y: auto;
|
||||
.device-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
@ -419,6 +489,30 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
.tools-bottom{
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
width:100%;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.test-box {
|
||||
position: absolute;
|
||||
display: none;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
.tag-box {
|
||||
position: relative;
|
||||
}
|
||||
.tag-txt {
|
||||
position: absolute;
|
||||
top: 30%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
color: #ffffff;
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|