sctj-components 1.0.49 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/sctj-components.es.js +18 -29
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1548,7 +1548,7 @@ const _sfc_main$l = {
|
|
|
1548
1548
|
};
|
|
1549
1549
|
}
|
|
1550
1550
|
};
|
|
1551
|
-
const
|
|
1551
|
+
const index_vue_vue_type_style_index_0_scoped_a098c8b6_lang = "";
|
|
1552
1552
|
const _hoisted_1$f = { class: "time-line-slider-container" };
|
|
1553
1553
|
const _hoisted_2$9 = { class: "time-line-slider-wrapper" };
|
|
1554
1554
|
const _sfc_main$k = {
|
|
@@ -1607,9 +1607,9 @@ const _sfc_main$k = {
|
|
|
1607
1607
|
}, 100);
|
|
1608
1608
|
};
|
|
1609
1609
|
const generateDateRange = (startTime, endTime) => {
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1610
|
+
let dates = [];
|
|
1611
|
+
let start = new Date(startTime);
|
|
1612
|
+
let end = new Date(endTime);
|
|
1613
1613
|
if (isNaN(start.getTime()) || isNaN(end.getTime())) {
|
|
1614
1614
|
return [];
|
|
1615
1615
|
}
|
|
@@ -1833,7 +1833,7 @@ const _sfc_main$k = {
|
|
|
1833
1833
|
};
|
|
1834
1834
|
}
|
|
1835
1835
|
};
|
|
1836
|
-
const SCTJTimeLineSelect = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
1836
|
+
const SCTJTimeLineSelect = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-a098c8b6"]]);
|
|
1837
1837
|
const index_vue_vue_type_style_index_0_scoped_0e809a5c_lang = "";
|
|
1838
1838
|
const _hoisted_1$e = { class: "table-container" };
|
|
1839
1839
|
const _sfc_main$j = {
|
|
@@ -9399,7 +9399,7 @@ const _sfc_main$2 = {
|
|
|
9399
9399
|
}
|
|
9400
9400
|
};
|
|
9401
9401
|
const SCTJBusinessMapDrawingDialog = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-d0bea808"]]);
|
|
9402
|
-
const
|
|
9402
|
+
const BimViewer_vue_vue_type_style_index_0_scoped_40d12144_lang = "";
|
|
9403
9403
|
const _sfc_main$1 = {
|
|
9404
9404
|
__name: "BimViewer",
|
|
9405
9405
|
props: {
|
|
@@ -9409,22 +9409,7 @@ const _sfc_main$1 = {
|
|
|
9409
9409
|
},
|
|
9410
9410
|
extraContextMenu: {
|
|
9411
9411
|
type: Array,
|
|
9412
|
-
default: () => [
|
|
9413
|
-
{
|
|
9414
|
-
label: "\u5176\u4ED6",
|
|
9415
|
-
key: "extraOther",
|
|
9416
|
-
children: [
|
|
9417
|
-
{
|
|
9418
|
-
label: "\u6DFB\u52A0\u517B\u62A4",
|
|
9419
|
-
key: "addMaintain"
|
|
9420
|
-
},
|
|
9421
|
-
{
|
|
9422
|
-
label: "\u517B\u62A4\u8BB0\u5F55",
|
|
9423
|
-
key: "maintainRecord"
|
|
9424
|
-
}
|
|
9425
|
-
]
|
|
9426
|
-
}
|
|
9427
|
-
]
|
|
9412
|
+
default: () => []
|
|
9428
9413
|
}
|
|
9429
9414
|
},
|
|
9430
9415
|
emits: ["contextMenuClick"],
|
|
@@ -9477,10 +9462,10 @@ const _sfc_main$1 = {
|
|
|
9477
9462
|
});
|
|
9478
9463
|
return menuContainer;
|
|
9479
9464
|
};
|
|
9480
|
-
const attachMenuItemEvents = (menuElement, item, selectedComponents) => {
|
|
9465
|
+
const attachMenuItemEvents = (menuElement, item, selectedComponents, selectedComponentsData) => {
|
|
9481
9466
|
if (item.children && item.children.length > 0) {
|
|
9482
9467
|
item.children.forEach((child) => {
|
|
9483
|
-
attachMenuItemEvents(menuElement, child, selectedComponents);
|
|
9468
|
+
attachMenuItemEvents(menuElement, child, selectedComponents, selectedComponentsData);
|
|
9484
9469
|
});
|
|
9485
9470
|
} else {
|
|
9486
9471
|
const menuItem = menuElement.querySelector(`#menu-${item.key}`);
|
|
@@ -9489,7 +9474,8 @@ const _sfc_main$1 = {
|
|
|
9489
9474
|
const handleClick = () => {
|
|
9490
9475
|
emit("contextMenuClick", {
|
|
9491
9476
|
...item,
|
|
9492
|
-
selectedComponents
|
|
9477
|
+
selectedComponents,
|
|
9478
|
+
selectedComponentsData
|
|
9493
9479
|
});
|
|
9494
9480
|
hideContextMenu();
|
|
9495
9481
|
menuItem.removeEventListener("click", handleClick);
|
|
@@ -9497,16 +9483,19 @@ const _sfc_main$1 = {
|
|
|
9497
9483
|
menuItem.addEventListener("click", handleClick);
|
|
9498
9484
|
}
|
|
9499
9485
|
};
|
|
9500
|
-
const attachContextMenuEvents = (menuElement, selectedComponents) => {
|
|
9486
|
+
const attachContextMenuEvents = (menuElement, selectedComponents, selectedComponentsData) => {
|
|
9501
9487
|
if (!selectedComponents.length || !app.value)
|
|
9502
9488
|
return;
|
|
9503
9489
|
props.extraContextMenu.forEach((item) => {
|
|
9504
|
-
attachMenuItemEvents(menuElement, item, selectedComponents);
|
|
9490
|
+
attachMenuItemEvents(menuElement, item, selectedComponents, selectedComponentsData);
|
|
9505
9491
|
});
|
|
9506
9492
|
};
|
|
9507
9493
|
const showContextMenu = (appInstance) => {
|
|
9508
9494
|
const viewer = appInstance.getViewer();
|
|
9509
9495
|
const selectedComponents = viewer.getModel().getSelectedComponents();
|
|
9496
|
+
const selectedComponentsData = selectedComponents.map((id) => {
|
|
9497
|
+
return viewer.getModel().getObjectDataById(id);
|
|
9498
|
+
});
|
|
9510
9499
|
if (!selectedComponents.length)
|
|
9511
9500
|
return;
|
|
9512
9501
|
console.log("\u5F53\u524D\u9009\u62E9\u7684\u6784\u5EFAId", selectedComponents);
|
|
@@ -9523,7 +9512,7 @@ const _sfc_main$1 = {
|
|
|
9523
9512
|
const menuElement = createContextMenu();
|
|
9524
9513
|
targetMenu.appendChild(menuElement);
|
|
9525
9514
|
nextTick(() => {
|
|
9526
|
-
attachContextMenuEvents(menuElement, selectedComponents);
|
|
9515
|
+
attachContextMenuEvents(menuElement, selectedComponents, selectedComponentsData);
|
|
9527
9516
|
});
|
|
9528
9517
|
};
|
|
9529
9518
|
const hideContextMenu = () => {
|
|
@@ -9707,7 +9696,7 @@ const _sfc_main$1 = {
|
|
|
9707
9696
|
};
|
|
9708
9697
|
}
|
|
9709
9698
|
};
|
|
9710
|
-
const SCTJBimViewer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
9699
|
+
const SCTJBimViewer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-40d12144"]]);
|
|
9711
9700
|
const DwgViewer_vue_vue_type_style_index_0_scoped_ab9c8ebd_lang = "";
|
|
9712
9701
|
const _sfc_main = {
|
|
9713
9702
|
__name: "DwgViewer",
|