@yimou6/common-ui 1.14.5 → 1.14.6

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.
Files changed (31) hide show
  1. package/cdn/index.cdn.js +14 -14
  2. package/cdn/index.cdn.js.map +1 -1
  3. package/cdn/index.cdn.mjs +14 -14
  4. package/cdn/index.cdn.mjs.map +1 -1
  5. package/es/components/geoMark/index.d.ts +3 -77
  6. package/es/components/geoMark/src/geoMark.d.ts +1 -8
  7. package/es/components/geoMark/src/geoMark.mjs.map +1 -1
  8. package/es/components/geoMark/src/geoMark.vue.d.ts +4 -78
  9. package/es/components/geoMark/src/geoMark.vue2.mjs +694 -689
  10. package/es/components/geoMark/src/geoMark.vue2.mjs.map +1 -1
  11. package/es/components/geoMark/src/openMap.vue2.mjs +2 -1
  12. package/es/components/geoMark/src/openMap.vue2.mjs.map +1 -1
  13. package/lib/components/geoMark/index.d.ts +3 -77
  14. package/lib/components/geoMark/src/geoMark.d.ts +1 -8
  15. package/lib/components/geoMark/src/geoMark.js.map +1 -1
  16. package/lib/components/geoMark/src/geoMark.vue.d.ts +4 -78
  17. package/lib/components/geoMark/src/geoMark.vue2.js +693 -688
  18. package/lib/components/geoMark/src/geoMark.vue2.js.map +1 -1
  19. package/lib/components/geoMark/src/openMap.vue2.js +1 -0
  20. package/lib/components/geoMark/src/openMap.vue2.js.map +1 -1
  21. package/package.json +1 -1
  22. package/es/components/geoMark/src/DragIcon.vue.d.ts +0 -77
  23. package/es/components/geoMark/src/DragIcon.vue.mjs +0 -6
  24. package/es/components/geoMark/src/DragIcon.vue.mjs.map +0 -1
  25. package/es/components/geoMark/src/DragIcon.vue2.mjs +0 -67
  26. package/es/components/geoMark/src/DragIcon.vue2.mjs.map +0 -1
  27. package/lib/components/geoMark/src/DragIcon.vue.d.ts +0 -77
  28. package/lib/components/geoMark/src/DragIcon.vue.js +0 -10
  29. package/lib/components/geoMark/src/DragIcon.vue.js.map +0 -1
  30. package/lib/components/geoMark/src/DragIcon.vue2.js +0 -71
  31. package/lib/components/geoMark/src/DragIcon.vue2.js.map +0 -1
@@ -24,52 +24,47 @@ var ___$1 = require('./assets/新弹框.png.js');
24
24
  var ___ = require('./assets/灭火器.png.js');
25
25
  var __$1 = require('./assets/编辑.png.js');
26
26
  var __$2 = require('./assets/颜色.png.js');
27
- require('./DragIcon.vue.js');
28
27
  require('./floor.vue.js');
29
28
  var geoMark = require('./geoMark.js');
30
29
  require('./openMap.vue.js');
31
30
  var floor_vue_vue_type_script_setup_true_lang = require('./floor.vue2.js');
32
- var DragIcon_vue_vue_type_script_setup_true_lang = require('./DragIcon.vue2.js');
33
31
  var openMap_vue_vue_type_script_setup_true_lang = require('./openMap.vue2.js');
34
32
 
35
33
  var __defProp = Object.defineProperty;
36
34
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
37
- const _hoisted_1 = {
38
- id: "ypc-map-container",
39
- class: "relative w-full h-full overflow-hidden t-geo-mark"
40
- };
41
- const _hoisted_2 = { class: "flex items-center justify-between h-full" };
42
- const _hoisted_3 = {
35
+ const _hoisted_1 = { class: "flex items-center justify-between h-full" };
36
+ const _hoisted_2 = {
43
37
  key: 0,
44
38
  class: "t-top-bar__value"
45
39
  };
46
- const _hoisted_4 = { class: "t-bottom-bar__inner" };
40
+ const _hoisted_3 = { class: "t-bottom-bar__inner" };
41
+ const _hoisted_4 = ["onClick"];
47
42
  const _hoisted_5 = ["onClick"];
48
43
  const _hoisted_6 = ["onClick"];
49
44
  const _hoisted_7 = ["onClick"];
50
- const _hoisted_8 = ["onClick"];
51
- const _hoisted_9 = { class: "grid grid-cols-3 gap-2 p-1" };
52
- const _hoisted_10 = ["onClick"];
53
- const _hoisted_11 = { class: "text-xs mt-1" };
54
- const _hoisted_12 = { class: "t-info-panel__header" };
55
- const _hoisted_13 = { class: "t-info-panel__tabs" };
56
- const _hoisted_14 = { class: "t-info-panel__filters" };
57
- const _hoisted_15 = {
45
+ const _hoisted_8 = { class: "grid grid-cols-3 gap-2 p-1" };
46
+ const _hoisted_9 = ["onClick"];
47
+ const _hoisted_10 = { class: "text-xs mt-1" };
48
+ const _hoisted_11 = { class: "t-info-panel__header" };
49
+ const _hoisted_12 = { class: "t-info-panel__tabs" };
50
+ const _hoisted_13 = { class: "t-info-panel__filters" };
51
+ const _hoisted_14 = {
58
52
  key: 0,
59
53
  class: "grid gap-1 mt-4 px-3.5 w-full grid-cols-12"
60
54
  };
61
- const _hoisted_16 = { class: "col-span-4" };
62
- const _hoisted_17 = {
55
+ const _hoisted_15 = { class: "col-span-4" };
56
+ const _hoisted_16 = {
63
57
  key: 1,
64
58
  class: "grid gap-1 mt-4 px-3.5 w-full grid-cols-12"
65
59
  };
66
- const _hoisted_18 = {
60
+ const _hoisted_17 = {
67
61
  key: 2,
68
62
  style: { "height": "calc(100% - 100px)" },
69
63
  class: "w-full mt-4 pb-5 overflow-x-hidden overflow-y-auto panel"
70
64
  };
71
- const _hoisted_19 = ["title"];
72
- const _hoisted_20 = { class: "col-span-1 cursor-pointer" };
65
+ const _hoisted_18 = ["title"];
66
+ const _hoisted_19 = { class: "col-span-1 cursor-pointer" };
67
+ const _hoisted_20 = ["src", "onDragstart"];
73
68
  const _hoisted_21 = { class: "col-span-4 break-words" };
74
69
  const _hoisted_22 = ["title"];
75
70
  const _hoisted_23 = ["title"];
@@ -198,8 +193,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
198
193
  const center = vue.ref([0, 0]);
199
194
  const zoom = vue.ref(1);
200
195
  const projection = vue.ref("EPSG:3857");
201
- const size = vue.ref([800, 600]);
202
- const extent = vue.ref([0, 0, 800, 600]);
196
+ const size = vue.ref([1024, 968]);
197
+ const extent = vue.ref([0, 0, 1024, 968]);
203
198
  const configOptionsDeviceType = vue.ref([]);
204
199
  const configOptionsDeviceModel = vue.ref([]);
205
200
  const configOptionsManufacturer = vue.ref([]);
@@ -296,13 +291,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
296
291
  const open = /* @__PURE__ */ __name(async (params = {
297
292
  listFloor: [],
298
293
  listDevice: [],
299
- mode: "edit",
300
294
  defaultFloor: null,
301
295
  waring: null,
302
296
  listTitle: "\u8BBE\u5907\u4FE1\u606F\u5217\u8868",
303
297
  configIcon: {},
304
298
  configTopBar: [],
305
- type: "edit",
306
299
  featureType: ["Areas"],
307
300
  useRealImageSize: true
308
301
  }) => {
@@ -424,9 +417,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
424
417
  activatedPropertiesOverlay.value = feature.getProperties();
425
418
  }
426
419
  } else {
427
- if (activatedMode.value === "edit") {
428
- activatedPositionOverlay.value = [];
429
- }
420
+ activatedPositionOverlay.value = [];
430
421
  }
431
422
  });
432
423
  (_c = rrefMap.value) == null ? void 0 : _c.getMap().on("contextmenu", (event) => {
@@ -442,11 +433,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
442
433
  const features = ((_a2 = rrefMap.value) == null ? void 0 : _a2.getVectorSource().getFeatures()) || [];
443
434
  activatedArrayFeatures.value = features;
444
435
  });
445
- vue.nextTick(() => {
446
- initAdvancedModify();
447
- initTranslate();
448
- initDraw(currentDrawType.value);
449
- });
436
+ if (activatedMode.value !== "view") {
437
+ vue.nextTick(() => {
438
+ initAdvancedModify();
439
+ initTranslate();
440
+ initDraw(currentDrawType.value);
441
+ });
442
+ }
450
443
  }
451
444
  __name(initMap, "initMap");
452
445
  const imageDimensionsCache = /* @__PURE__ */ new Map();
@@ -464,17 +457,18 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
464
457
  img.src = imageUrl;
465
458
  });
466
459
  }, "getImageDimensions");
460
+ let loadSeq = 0;
467
461
  const loadingSource = /* @__PURE__ */ __name(async (data, centerOnWarning = true) => {
468
462
  var _a, _b, _c;
463
+ const token = ++loadSeq;
469
464
  activatedPositionOverlay.value = [];
470
465
  activatedPositionOverlayWaring.value = [];
471
466
  activatedPropertiesOverlay.value = {};
472
467
  activatedFeature.value = null;
473
- (_a = rrefMap.value) == null ? void 0 : _a.calculateAutoZoom();
474
468
  if (!data) {
475
469
  listDevice.value = [];
476
470
  activatedFloor.value = void 0;
477
- (_b = rrefMap.value) == null ? void 0 : _b.getVectorSource().clear();
471
+ (_a = rrefMap.value) == null ? void 0 : _a.getVectorSource().clear();
478
472
  imgUrl.value = "";
479
473
  return;
480
474
  }
@@ -482,22 +476,25 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
482
476
  return item.floor === data.floor;
483
477
  });
484
478
  activatedFloor.value = data;
485
- (_c = rrefMap.value) == null ? void 0 : _c.getVectorSource().clear();
479
+ (_b = rrefMap.value) == null ? void 0 : _b.getVectorSource().clear();
486
480
  const url = data.bucketName || _default.default;
487
481
  let dims;
488
482
  if (!useRealImageSize.value) {
489
- dims = { width: 800, height: 600 };
483
+ dims = { width: 1024, height: 968 };
490
484
  imgUrl.value = url;
491
485
  } else {
492
486
  try {
493
487
  dims = await getImageDimensions(url);
488
+ if (token !== loadSeq) return;
494
489
  imgUrl.value = url;
495
490
  } catch {
496
491
  try {
497
492
  dims = await getImageDimensions(_default.default);
493
+ if (token !== loadSeq) return;
498
494
  imgUrl.value = _default.default;
499
495
  } catch {
500
- dims = { width: 800, height: 600 };
496
+ if (token !== loadSeq) return;
497
+ dims = { width: 1024, height: 968 };
501
498
  imgUrl.value = "";
502
499
  }
503
500
  }
@@ -505,14 +502,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
505
502
  size.value = [dims.width, dims.height];
506
503
  extent.value = [0, 0, dims.width, dims.height];
507
504
  center.value = [dims.width / 2, dims.height / 2];
508
- if (rrefMap.value) {
509
- const view = rrefMap.value.getView();
510
- if (view) {
511
- view.setCenter(center.value);
512
- view.setZoom(zoom.value);
513
- }
514
- rrefMap.value.calculateAutoZoom && rrefMap.value.calculateAutoZoom();
515
- }
505
+ await vue.nextTick();
506
+ if (token !== loadSeq) return;
507
+ (_c = rrefMap.value) == null ? void 0 : _c.calculateAutoZoom();
516
508
  if (data == null ? void 0 : data.bucketName) {
517
509
  if (filtrationType.value && filtrationType.value.length > 0) {
518
510
  const geoConfig = {
@@ -670,7 +662,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
670
662
  const dragStart = /* @__PURE__ */ __name((item) => {
671
663
  activatedDragItem.value = item;
672
664
  }, "dragStart");
673
- const dragEnd = /* @__PURE__ */ __name((evt) => {
665
+ const dragEnd = /* @__PURE__ */ __name(() => {
674
666
  setTimeout(() => {
675
667
  var _a;
676
668
  const viewCoordinate = move1.value;
@@ -761,6 +753,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
761
753
  }, "callback")
762
754
  }
763
755
  ]);
756
+ const clearHoverOverlay = /* @__PURE__ */ __name(() => {
757
+ activatedPositionOverlay.value = [];
758
+ }, "clearHoverOverlay");
764
759
  __expose({
765
760
  open
766
761
  });
@@ -770,674 +765,684 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
770
765
  const _component_el_option = vue.resolveComponent("el-option");
771
766
  const _component_el_select = vue.resolveComponent("el-select");
772
767
  const _component_el_input = vue.resolveComponent("el-input");
773
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
774
- vue.createVNode(
775
- floor_vue_vue_type_script_setup_true_lang.default,
776
- {
777
- ref_key: "refFloor",
778
- ref: refFloor,
779
- onChangeFloor: FnUpdateFloor
780
- },
781
- null,
782
- 512
783
- /* NEED_PATCH */
784
- ),
785
- activatedMode.value === "edit" ? (vue.openBlock(), vue.createBlock(_component_el_card, {
786
- key: 0,
787
- class: "t-top-bar"
788
- }, {
789
- default: vue.withCtx(() => [
790
- vue.createElementVNode("div", _hoisted_2, [
791
- (vue.openBlock(true), vue.createElementBlock(
792
- vue.Fragment,
793
- null,
794
- vue.renderList(configTopBar.value, (o) => {
795
- return vue.openBlock(), vue.createElementBlock(
796
- "div",
797
- {
798
- key: o.name,
799
- class: vue.normalizeClass(["t-top-bar__item", { "t-top-bar__item--exit": o.name === "\u9000\u51FA" }]),
800
- onClick: _cache[0] || (_cache[0] = ($event) => FnCloseMain())
801
- },
802
- [
803
- vue.createElementVNode(
804
- "i",
805
- {
806
- class: vue.normalizeClass(["iconfont", [o.icon]])
807
- },
808
- null,
809
- 2
810
- /* CLASS */
811
- ),
812
- vue.createTextVNode(
813
- " " + vue.toDisplayString(o.name) + " ",
814
- 1
815
- /* TEXT */
816
- ),
817
- o.name !== "\u9000\u51FA" ? (vue.openBlock(), vue.createElementBlock(
818
- "span",
819
- _hoisted_3,
820
- vue.toDisplayString(o.value),
821
- 1
822
- /* TEXT */
823
- )) : vue.createCommentVNode("v-if", true)
824
- ],
825
- 2
826
- /* CLASS */
827
- );
828
- }),
829
- 128
830
- /* KEYED_FRAGMENT */
831
- ))
832
- ])
833
- ]),
834
- _: 1
835
- /* STABLE */
836
- })) : vue.createCommentVNode("v-if", true),
837
- activatedMode.value === "edit" ? (vue.openBlock(), vue.createBlock(_component_el_card, {
838
- key: 1,
839
- class: "t-bottom-bar"
840
- }, {
841
- default: vue.withCtx(() => [
842
- vue.createElementVNode("div", _hoisted_4, [
843
- (vue.openBlock(true), vue.createElementBlock(
844
- vue.Fragment,
845
- null,
846
- vue.renderList(configBottomBar.value, (o) => {
847
- return vue.openBlock(), vue.createElementBlock(
848
- vue.Fragment,
849
- {
850
- key: o.name
851
- },
852
- [
853
- o.name !== "\u989C\u8272" && o.name !== "\u533A\u57DF\u8BBE\u7F6E" ? (vue.openBlock(), vue.createElementBlock("div", {
854
- key: 0,
855
- class: vue.normalizeClass(["t-bottom-bar__item", [activatedBottomBar.value === o.name ? "t-bbar-active" : ""]]),
856
- onClick: /* @__PURE__ */ __name(($event) => handlerChecked(o.name), "onClick")
857
- }, [
858
- vue.createElementVNode("span", null, [
859
- vue.createElementVNode(
860
- "i",
861
- {
862
- class: vue.normalizeClass(["iconfont", [o.icon]])
863
- },
864
- null,
865
- 2
866
- /* CLASS */
867
- ),
868
- vue.createTextVNode(
869
- " " + vue.toDisplayString(o.name),
870
- 1
871
- /* TEXT */
872
- )
873
- ])
874
- ], 10, _hoisted_5)) : o.name === "\u533A\u57DF\u8BBE\u7F6E" ? (vue.openBlock(), vue.createBlock(
875
- _component_el_popover,
876
- {
877
- key: 1,
878
- width: 250,
879
- style: { "height": "350px !important" },
880
- placement: "top",
881
- trigger: "click",
882
- "popper-class": "t-popper"
883
- },
884
- {
885
- reference: vue.withCtx(() => [
886
- vue.createElementVNode("div", {
887
- class: vue.normalizeClass(["t-bottom-bar__item", [activatedBottomBar.value === o.name ? "t-bbar-active" : ""]]),
888
- onClick: /* @__PURE__ */ __name(($event) => handlerChecked(o.name), "onClick")
889
- }, [
890
- vue.createElementVNode("span", null, [
891
- vue.createElementVNode(
892
- "i",
893
- {
894
- class: vue.normalizeClass(["iconfont", [o.icon]])
895
- },
896
- null,
897
- 2
898
- /* CLASS */
899
- ),
900
- vue.createTextVNode(
901
- " " + vue.toDisplayString(o.name),
902
- 1
903
- /* TEXT */
904
- )
905
- ])
906
- ], 10, _hoisted_6)
907
- ]),
908
- default: vue.withCtx(() => [
909
- (vue.openBlock(true), vue.createElementBlock(
910
- vue.Fragment,
768
+ return vue.openBlock(), vue.createElementBlock(
769
+ "div",
770
+ {
771
+ id: "ypc-map-container",
772
+ class: "relative w-full h-full overflow-hidden t-geo-mark",
773
+ onPointerleave: clearHoverOverlay
774
+ },
775
+ [
776
+ vue.createVNode(
777
+ floor_vue_vue_type_script_setup_true_lang.default,
778
+ {
779
+ ref_key: "refFloor",
780
+ ref: refFloor,
781
+ onChangeFloor: FnUpdateFloor
782
+ },
783
+ null,
784
+ 512
785
+ /* NEED_PATCH */
786
+ ),
787
+ activatedMode.value === "edit" ? (vue.openBlock(), vue.createBlock(_component_el_card, {
788
+ key: 0,
789
+ class: "t-top-bar"
790
+ }, {
791
+ default: vue.withCtx(() => [
792
+ vue.createElementVNode("div", _hoisted_1, [
793
+ (vue.openBlock(true), vue.createElementBlock(
794
+ vue.Fragment,
795
+ null,
796
+ vue.renderList(configTopBar.value, (o) => {
797
+ return vue.openBlock(), vue.createElementBlock(
798
+ "div",
799
+ {
800
+ key: o.name,
801
+ class: vue.normalizeClass(["t-top-bar__item", { "t-top-bar__item--exit": o.name === "\u9000\u51FA" }]),
802
+ onClick: _cache[0] || (_cache[0] = ($event) => FnCloseMain())
803
+ },
804
+ [
805
+ vue.createElementVNode(
806
+ "i",
807
+ {
808
+ class: vue.normalizeClass(["iconfont", [o.icon]])
809
+ },
810
+ null,
811
+ 2
812
+ /* CLASS */
813
+ ),
814
+ vue.createTextVNode(
815
+ " " + vue.toDisplayString(o.name) + " ",
816
+ 1
817
+ /* TEXT */
818
+ ),
819
+ o.name !== "\u9000\u51FA" ? (vue.openBlock(), vue.createElementBlock(
820
+ "span",
821
+ _hoisted_2,
822
+ vue.toDisplayString(o.value),
823
+ 1
824
+ /* TEXT */
825
+ )) : vue.createCommentVNode("v-if", true)
826
+ ],
827
+ 2
828
+ /* CLASS */
829
+ );
830
+ }),
831
+ 128
832
+ /* KEYED_FRAGMENT */
833
+ ))
834
+ ])
835
+ ]),
836
+ _: 1
837
+ /* STABLE */
838
+ })) : vue.createCommentVNode("v-if", true),
839
+ activatedMode.value === "edit" ? (vue.openBlock(), vue.createBlock(_component_el_card, {
840
+ key: 1,
841
+ class: "t-bottom-bar"
842
+ }, {
843
+ default: vue.withCtx(() => [
844
+ vue.createElementVNode("div", _hoisted_3, [
845
+ (vue.openBlock(true), vue.createElementBlock(
846
+ vue.Fragment,
847
+ null,
848
+ vue.renderList(configBottomBar.value, (o) => {
849
+ return vue.openBlock(), vue.createElementBlock(
850
+ vue.Fragment,
851
+ {
852
+ key: o.name
853
+ },
854
+ [
855
+ o.name !== "\u989C\u8272" && o.name !== "\u533A\u57DF\u8BBE\u7F6E" ? (vue.openBlock(), vue.createElementBlock("div", {
856
+ key: 0,
857
+ class: vue.normalizeClass(["t-bottom-bar__item", [activatedBottomBar.value === o.name ? "t-bbar-active" : ""]]),
858
+ onClick: /* @__PURE__ */ __name(($event) => handlerChecked(o.name), "onClick")
859
+ }, [
860
+ vue.createElementVNode("span", null, [
861
+ vue.createElementVNode(
862
+ "i",
863
+ {
864
+ class: vue.normalizeClass(["iconfont", [o.icon]])
865
+ },
911
866
  null,
912
- vue.renderList(configBottomBar2.value, (o2) => {
913
- return vue.openBlock(), vue.createElementBlock("div", {
914
- key: o2.name,
915
- class: vue.normalizeClass(["t-bottom-bar__item", [activatedBottomBar.value === o2.name ? "t-bbar-active" : ""]]),
916
- onClick: /* @__PURE__ */ __name(($event) => handlerChecked(o2.name), "onClick")
917
- }, [
918
- vue.createElementVNode("span", null, [
919
- vue.createElementVNode(
920
- "i",
921
- {
922
- class: vue.normalizeClass(["iconfont", [o2.icon]])
923
- },
924
- null,
925
- 2
926
- /* CLASS */
927
- ),
928
- vue.createTextVNode(
929
- " " + vue.toDisplayString(o2.name),
930
- 1
931
- /* TEXT */
932
- )
933
- ])
934
- ], 10, _hoisted_7);
935
- }),
936
- 128
937
- /* KEYED_FRAGMENT */
938
- ))
939
- ]),
940
- _: 2
941
- /* DYNAMIC */
942
- },
943
- 1024
944
- /* DYNAMIC_SLOTS */
945
- )) : (vue.openBlock(), vue.createBlock(
946
- _component_el_popover,
947
- {
948
- key: 2,
949
- width: 250,
950
- style: { "height": "350px !important" },
951
- placement: "top",
952
- trigger: "click",
953
- "popper-class": "t-popper"
954
- },
955
- {
956
- reference: vue.withCtx(() => [
957
- vue.createElementVNode("div", {
958
- class: vue.normalizeClass(["t-bottom-bar__item", [activatedBottomBar.value === o.name ? "t-bbar-active" : ""]]),
959
- onClick: /* @__PURE__ */ __name(($event) => handlerChecked(o.name), "onClick")
960
- }, [
961
- vue.createElementVNode("span", null, [
962
- vue.createElementVNode(
963
- "i",
964
- {
965
- class: vue.normalizeClass(["iconfont", [o.icon]])
966
- },
967
- null,
968
- 2
969
- /* CLASS */
970
- ),
971
- vue.createTextVNode(
972
- " " + vue.toDisplayString(o.name),
973
- 1
974
- /* TEXT */
975
- )
976
- ])
977
- ], 10, _hoisted_8)
978
- ]),
979
- default: vue.withCtx(() => [
980
- vue.createElementVNode("div", _hoisted_9, [
867
+ 2
868
+ /* CLASS */
869
+ ),
870
+ vue.createTextVNode(
871
+ " " + vue.toDisplayString(o.name),
872
+ 1
873
+ /* TEXT */
874
+ )
875
+ ])
876
+ ], 10, _hoisted_4)) : o.name === "\u533A\u57DF\u8BBE\u7F6E" ? (vue.openBlock(), vue.createBlock(
877
+ _component_el_popover,
878
+ {
879
+ key: 1,
880
+ width: 250,
881
+ style: { "height": "350px !important" },
882
+ placement: "top",
883
+ trigger: "click",
884
+ "popper-class": "t-popper"
885
+ },
886
+ {
887
+ reference: vue.withCtx(() => [
888
+ vue.createElementVNode("div", {
889
+ class: vue.normalizeClass(["t-bottom-bar__item", [activatedBottomBar.value === o.name ? "t-bbar-active" : ""]]),
890
+ onClick: /* @__PURE__ */ __name(($event) => handlerChecked(o.name), "onClick")
891
+ }, [
892
+ vue.createElementVNode("span", null, [
893
+ vue.createElementVNode(
894
+ "i",
895
+ {
896
+ class: vue.normalizeClass(["iconfont", [o.icon]])
897
+ },
898
+ null,
899
+ 2
900
+ /* CLASS */
901
+ ),
902
+ vue.createTextVNode(
903
+ " " + vue.toDisplayString(o.name),
904
+ 1
905
+ /* TEXT */
906
+ )
907
+ ])
908
+ ], 10, _hoisted_5)
909
+ ]),
910
+ default: vue.withCtx(() => [
981
911
  (vue.openBlock(true), vue.createElementBlock(
982
912
  vue.Fragment,
983
913
  null,
984
- vue.renderList(colorList.value, (c) => {
914
+ vue.renderList(configBottomBar2.value, (o2) => {
985
915
  return vue.openBlock(), vue.createElementBlock("div", {
986
- key: c.value,
987
- class: "flex flex-col items-center cursor-pointer",
988
- onClick: /* @__PURE__ */ __name(($event) => FnSetColor(c.value), "onClick")
916
+ key: o2.name,
917
+ class: vue.normalizeClass(["t-bottom-bar__item", [activatedBottomBar.value === o2.name ? "t-bbar-active" : ""]]),
918
+ onClick: /* @__PURE__ */ __name(($event) => handlerChecked(o2.name), "onClick")
989
919
  }, [
990
- vue.createElementVNode(
991
- "span",
992
- {
993
- class: "w-8 h-8 rounded border border-gray-300",
994
- style: vue.normalizeStyle({ backgroundColor: c.value })
995
- },
996
- null,
997
- 4
998
- /* STYLE */
999
- ),
1000
- vue.createElementVNode(
1001
- "span",
1002
- _hoisted_11,
1003
- vue.toDisplayString(c.name),
1004
- 1
1005
- /* TEXT */
1006
- )
1007
- ], 8, _hoisted_10);
920
+ vue.createElementVNode("span", null, [
921
+ vue.createElementVNode(
922
+ "i",
923
+ {
924
+ class: vue.normalizeClass(["iconfont", [o2.icon]])
925
+ },
926
+ null,
927
+ 2
928
+ /* CLASS */
929
+ ),
930
+ vue.createTextVNode(
931
+ " " + vue.toDisplayString(o2.name),
932
+ 1
933
+ /* TEXT */
934
+ )
935
+ ])
936
+ ], 10, _hoisted_6);
1008
937
  }),
1009
938
  128
1010
939
  /* KEYED_FRAGMENT */
1011
940
  ))
1012
- ])
1013
- ]),
1014
- _: 2
1015
- /* DYNAMIC */
1016
- },
1017
- 1024
1018
- /* DYNAMIC_SLOTS */
1019
- ))
1020
- ],
1021
- 64
1022
- /* STABLE_FRAGMENT */
1023
- );
1024
- }),
1025
- 128
1026
- /* KEYED_FRAGMENT */
1027
- ))
1028
- ])
1029
- ]),
1030
- _: 1
1031
- /* STABLE */
1032
- })) : vue.createCommentVNode("v-if", true),
1033
- activatedMode.value === "edit" ? (vue.openBlock(), vue.createBlock(_component_el_card, {
1034
- key: 2,
1035
- class: vue.normalizeClass(["t-info-panel", [activatedFold.value === true ? "t-fold" : "t-unfold"]])
1036
- }, {
1037
- default: vue.withCtx(() => [
1038
- vue.createElementVNode("div", _hoisted_12, [
1039
- vue.createElementVNode("div", _hoisted_13, [
1040
- vue.createElementVNode(
1041
- "span",
1042
- {
1043
- class: vue.normalizeClass(["t-info-panel__tab", { "t-info-panel__tab--active": activatedList.value }]),
1044
- onClick: _cache[1] || (_cache[1] = ($event) => activatedList.value = true)
1045
- },
1046
- vue.toDisplayString(listTitle.value),
1047
- 3
1048
- /* TEXT, CLASS */
1049
- ),
941
+ ]),
942
+ _: 2
943
+ /* DYNAMIC */
944
+ },
945
+ 1024
946
+ /* DYNAMIC_SLOTS */
947
+ )) : (vue.openBlock(), vue.createBlock(
948
+ _component_el_popover,
949
+ {
950
+ key: 2,
951
+ width: 250,
952
+ style: { "height": "350px !important" },
953
+ placement: "top",
954
+ trigger: "click",
955
+ "popper-class": "t-popper"
956
+ },
957
+ {
958
+ reference: vue.withCtx(() => [
959
+ vue.createElementVNode("div", {
960
+ class: vue.normalizeClass(["t-bottom-bar__item", [activatedBottomBar.value === o.name ? "t-bbar-active" : ""]]),
961
+ onClick: /* @__PURE__ */ __name(($event) => handlerChecked(o.name), "onClick")
962
+ }, [
963
+ vue.createElementVNode("span", null, [
964
+ vue.createElementVNode(
965
+ "i",
966
+ {
967
+ class: vue.normalizeClass(["iconfont", [o.icon]])
968
+ },
969
+ null,
970
+ 2
971
+ /* CLASS */
972
+ ),
973
+ vue.createTextVNode(
974
+ " " + vue.toDisplayString(o.name),
975
+ 1
976
+ /* TEXT */
977
+ )
978
+ ])
979
+ ], 10, _hoisted_7)
980
+ ]),
981
+ default: vue.withCtx(() => [
982
+ vue.createElementVNode("div", _hoisted_8, [
983
+ (vue.openBlock(true), vue.createElementBlock(
984
+ vue.Fragment,
985
+ null,
986
+ vue.renderList(colorList.value, (c) => {
987
+ return vue.openBlock(), vue.createElementBlock("div", {
988
+ key: c.value,
989
+ class: "flex flex-col items-center cursor-pointer",
990
+ onClick: /* @__PURE__ */ __name(($event) => FnSetColor(c.value), "onClick")
991
+ }, [
992
+ vue.createElementVNode(
993
+ "span",
994
+ {
995
+ class: "w-8 h-8 rounded border border-gray-300",
996
+ style: vue.normalizeStyle({ backgroundColor: c.value })
997
+ },
998
+ null,
999
+ 4
1000
+ /* STYLE */
1001
+ ),
1002
+ vue.createElementVNode(
1003
+ "span",
1004
+ _hoisted_10,
1005
+ vue.toDisplayString(c.name),
1006
+ 1
1007
+ /* TEXT */
1008
+ )
1009
+ ], 8, _hoisted_9);
1010
+ }),
1011
+ 128
1012
+ /* KEYED_FRAGMENT */
1013
+ ))
1014
+ ])
1015
+ ]),
1016
+ _: 2
1017
+ /* DYNAMIC */
1018
+ },
1019
+ 1024
1020
+ /* DYNAMIC_SLOTS */
1021
+ ))
1022
+ ],
1023
+ 64
1024
+ /* STABLE_FRAGMENT */
1025
+ );
1026
+ }),
1027
+ 128
1028
+ /* KEYED_FRAGMENT */
1029
+ ))
1030
+ ])
1031
+ ]),
1032
+ _: 1
1033
+ /* STABLE */
1034
+ })) : vue.createCommentVNode("v-if", true),
1035
+ activatedMode.value === "edit" ? (vue.openBlock(), vue.createBlock(_component_el_card, {
1036
+ key: 2,
1037
+ class: vue.normalizeClass(["t-info-panel", [activatedFold.value === true ? "t-fold" : "t-unfold"]])
1038
+ }, {
1039
+ default: vue.withCtx(() => [
1040
+ vue.createElementVNode("div", _hoisted_11, [
1041
+ vue.createElementVNode("div", _hoisted_12, [
1042
+ vue.createElementVNode(
1043
+ "span",
1044
+ {
1045
+ class: vue.normalizeClass(["t-info-panel__tab", { "t-info-panel__tab--active": activatedList.value }]),
1046
+ onClick: _cache[1] || (_cache[1] = ($event) => activatedList.value = true)
1047
+ },
1048
+ vue.toDisplayString(listTitle.value),
1049
+ 3
1050
+ /* TEXT, CLASS */
1051
+ ),
1052
+ vue.createElementVNode(
1053
+ "span",
1054
+ {
1055
+ class: vue.normalizeClass(["t-info-panel__tab", { "t-info-panel__tab--active": !activatedList.value }]),
1056
+ onClick: _cache[2] || (_cache[2] = ($event) => activatedList.value = false)
1057
+ },
1058
+ " \u6807\u6CE8\u4FE1\u606F\u5217\u8868 ",
1059
+ 2
1060
+ /* CLASS */
1061
+ )
1062
+ ]),
1050
1063
  vue.createElementVNode(
1051
1064
  "span",
1052
1065
  {
1053
- class: vue.normalizeClass(["t-info-panel__tab", { "t-info-panel__tab--active": !activatedList.value }]),
1054
- onClick: _cache[2] || (_cache[2] = ($event) => activatedList.value = false)
1066
+ class: "t-info-panel__fold",
1067
+ onClick: FnUpdateActivatedFold
1055
1068
  },
1056
- " \u6807\u6CE8\u4FE1\u606F\u5217\u8868 ",
1057
- 2
1058
- /* CLASS */
1059
- )
1060
- ]),
1061
- vue.createElementVNode(
1062
- "span",
1063
- {
1064
- class: "t-info-panel__fold",
1065
- onClick: FnUpdateActivatedFold
1066
- },
1067
- vue.toDisplayString(activatedFold.value ? "\u5C55\u5F00" : "\u6536\u8D77"),
1068
- 1
1069
- /* TEXT */
1070
- )
1071
- ]),
1072
- vue.createElementVNode("div", _hoisted_14, [
1073
- vue.createVNode(_component_el_select, {
1074
- modelValue: queryDeviceList.value.activatedDeviceType,
1075
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => queryDeviceList.value.activatedDeviceType = $event),
1076
- clearable: "",
1077
- style: { "width": "32%" },
1078
- class: "mr-2",
1079
- placeholder: "\u8BF7\u9009\u62E9\u7C7B\u578B",
1080
- teleported: false
1081
- }, {
1082
- default: vue.withCtx(() => [
1083
- (vue.openBlock(true), vue.createElementBlock(
1084
- vue.Fragment,
1085
- null,
1086
- vue.renderList(configOptionsDeviceType.value, (item) => {
1087
- return vue.openBlock(), vue.createBlock(_component_el_option, {
1088
- key: item.value,
1089
- label: item.label,
1090
- value: item.value
1091
- }, null, 8, ["label", "value"]);
1092
- }),
1093
- 128
1094
- /* KEYED_FRAGMENT */
1095
- ))
1096
- ]),
1097
- _: 1
1098
- /* STABLE */
1099
- }, 8, ["modelValue"]),
1100
- vue.createVNode(_component_el_select, {
1101
- modelValue: queryDeviceList.value.activatedDeviceModel,
1102
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => queryDeviceList.value.activatedDeviceModel = $event),
1103
- clearable: "",
1104
- style: { "width": "32%" },
1105
- class: "mr-2",
1106
- placeholder: "\u8BF7\u9009\u62E9\u578B\u53F7",
1107
- teleported: false
1108
- }, {
1109
- default: vue.withCtx(() => [
1110
- (vue.openBlock(true), vue.createElementBlock(
1111
- vue.Fragment,
1112
- null,
1113
- vue.renderList(configOptionsDeviceModel.value, (item) => {
1114
- return vue.openBlock(), vue.createBlock(_component_el_option, {
1115
- key: item.value,
1116
- label: item.label,
1117
- value: item.value
1118
- }, null, 8, ["label", "value"]);
1119
- }),
1120
- 128
1121
- /* KEYED_FRAGMENT */
1122
- ))
1123
- ]),
1124
- _: 1
1125
- /* STABLE */
1126
- }, 8, ["modelValue"]),
1127
- vue.createVNode(_component_el_select, {
1128
- modelValue: queryDeviceList.value.activatedManufacturer,
1129
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => queryDeviceList.value.activatedManufacturer = $event),
1130
- clearable: "",
1131
- style: { "width": "32%" },
1132
- placeholder: "\u8BF7\u9009\u62E9\u5382\u5546",
1133
- teleported: false
1134
- }, {
1135
- default: vue.withCtx(() => [
1136
- (vue.openBlock(true), vue.createElementBlock(
1137
- vue.Fragment,
1138
- null,
1139
- vue.renderList(configOptionsManufacturer.value, (item) => {
1140
- return vue.openBlock(), vue.createBlock(_component_el_option, {
1141
- key: item.value,
1142
- label: item.label,
1143
- value: item.value
1144
- }, null, 8, ["label", "value"]);
1145
- }),
1146
- 128
1147
- /* KEYED_FRAGMENT */
1148
- ))
1149
- ]),
1150
- _: 1
1151
- /* STABLE */
1152
- }, 8, ["modelValue"])
1153
- ]),
1154
- activatedList.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_15, [
1155
- _cache[6] || (_cache[6] = vue.createElementVNode(
1156
- "span",
1157
- { class: "col-span-1" },
1158
- "\u56FE\u6807",
1159
- -1
1160
- /* CACHED */
1161
- )),
1162
- _cache[7] || (_cache[7] = vue.createElementVNode(
1163
- "span",
1164
- { class: "col-span-4" },
1165
- "\u7F16\u53F7",
1166
- -1
1167
- /* CACHED */
1168
- )),
1169
- vue.createCommentVNode(' <span class="col-span-2 text-center">\u697C\u5C42</span> '),
1170
- vue.createElementVNode(
1171
- "span",
1172
- _hoisted_16,
1173
- vue.toDisplayString(listTitle.value === "\u8BBE\u5907\u4FE1\u606F\u5217\u8868" ? "\u8BBE\u5907\u7C7B\u578B" : "\u8BBE\u65BD\u7C7B\u578B"),
1174
- 1
1175
- /* TEXT */
1176
- ),
1177
- _cache[8] || (_cache[8] = vue.createElementVNode(
1178
- "span",
1179
- { class: "col-span-3" },
1180
- "\u4F4D\u7F6E",
1181
- -1
1182
- /* CACHED */
1183
- ))
1184
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, _cache[9] || (_cache[9] = [
1185
- vue.createElementVNode(
1186
- "span",
1187
- { class: "col-span-1" },
1188
- "\u5E8F\u53F7",
1189
- -1
1190
- /* CACHED */
1191
- ),
1192
- vue.createElementVNode(
1193
- "span",
1194
- { class: "col-span-1" },
1195
- "\u56FE\u6807",
1196
- -1
1197
- /* CACHED */
1198
- ),
1199
- vue.createElementVNode(
1200
- "span",
1201
- { class: "col-span-8" },
1202
- "\u540D\u79F0",
1203
- -1
1204
- /* CACHED */
1205
- ),
1206
- vue.createElementVNode(
1207
- "span",
1208
- { class: "col-span-2" },
1209
- "\u64CD\u4F5C",
1210
- -1
1211
- /* CACHED */
1212
- )
1213
- ]))),
1214
- activatedList.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, [
1215
- vue.createCommentVNode(" {{ listUnitDevice.length }} "),
1216
- (vue.openBlock(true), vue.createElementBlock(
1217
- vue.Fragment,
1218
- null,
1219
- vue.renderList(listUnitDevice.value, (item, index) => {
1220
- return vue.openBlock(), vue.createElementBlock("div", {
1221
- key: index,
1222
- class: "t-info-panel__row grid gap-1 mt-4 px-3.5 w-full grid-cols-12",
1223
- title: item.deviceTypeName
1224
- }, [
1225
- vue.createElementVNode("span", _hoisted_20, [
1226
- vue.createVNode(DragIcon_vue_vue_type_script_setup_true_lang.default, {
1227
- icon: configIcon.value[item.code] || vue.unref(___.default),
1228
- item,
1229
- "map-ref": rrefMap.value,
1230
- move1: move1.value,
1231
- onDragstart: dragStart,
1232
- onDragend: dragEnd
1233
- }, null, 8, ["icon", "item", "map-ref", "move1"])
1234
- ]),
1235
- vue.createElementVNode(
1236
- "span",
1237
- _hoisted_21,
1238
- vue.toDisplayString(item.code),
1239
- 1
1240
- /* TEXT */
1241
- ),
1242
- vue.createElementVNode("span", {
1243
- class: "col-span-4 break-words",
1244
- title: item.remark || item.deviceTypeName || item.videoName
1245
- }, vue.toDisplayString(item.remark || item.deviceTypeName || item.videoName), 9, _hoisted_22),
1246
- vue.createElementVNode("span", {
1247
- class: "col-span-3 break-words",
1248
- title: item.locationDesc
1249
- }, vue.toDisplayString(item.locationDesc || item.addressDesc), 9, _hoisted_23)
1250
- ], 8, _hoisted_19);
1251
- }),
1252
- 128
1253
- /* KEYED_FRAGMENT */
1254
- ))
1255
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_24, [
1256
- (vue.openBlock(true), vue.createElementBlock(
1257
- vue.Fragment,
1258
- null,
1259
- vue.renderList(activatedArrayFeatures.value, (item, index) => {
1260
- return vue.openBlock(), vue.createElementBlock("div", {
1261
- key: item,
1262
- class: "t-info-panel__row grid gap-1 mt-4 px-3.5 w-full grid-cols-12"
1263
- }, [
1264
- vue.createElementVNode(
1265
- "span",
1266
- _hoisted_25,
1267
- vue.toDisplayString(index + 1),
1268
- 1
1269
- /* TEXT */
1270
- ),
1271
- vue.createElementVNode("span", _hoisted_26, [
1272
- item.values_.geometry.getType() === "Point" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_27)) : (vue.openBlock(), vue.createElementBlock(
1273
- "div",
1274
- {
1275
- key: 1,
1276
- class: "!w-8 h-full",
1277
- style: vue.normalizeStyle(`background-color:${item.values_.color}`)
1278
- },
1279
- null,
1280
- 4
1281
- /* STYLE */
1282
- ))
1283
- ]),
1284
- vue.createElementVNode("span", _hoisted_28, [
1285
- item.values_.geometry.getType() === "Point" ? (vue.openBlock(), vue.createBlock(_component_el_input, {
1286
- key: 0,
1287
- modelValue: item.values_.type,
1288
- "onUpdate:modelValue": /* @__PURE__ */ __name(($event) => item.values_.type = $event, "onUpdate:modelValue"),
1289
- size: "large",
1290
- clearable: ""
1291
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (vue.openBlock(), vue.createBlock(_component_el_input, {
1292
- key: 1,
1293
- modelValue: item.values_.text,
1294
- "onUpdate:modelValue": /* @__PURE__ */ __name(($event) => item.values_.text = $event, "onUpdate:modelValue"),
1295
- size: "large",
1296
- clearable: "",
1297
- onChange: /* @__PURE__ */ __name(($event) => updateFeatureStyle(item), "onChange")
1298
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]))
1299
- ]),
1300
- vue.createElementVNode("span", {
1301
- class: "flex items-center justify-center col-span-2 cursor-pointer",
1302
- onClick: /* @__PURE__ */ __name(($event) => deleteFeature(item), "onClick")
1303
- }, _cache[10] || (_cache[10] = [
1304
- vue.createElementVNode(
1305
- "i",
1306
- { class: "iconfont icon-shanchu" },
1307
- null,
1308
- -1
1309
- /* CACHED */
1310
- )
1311
- ]), 8, _hoisted_29)
1312
- ]);
1313
- }),
1314
- 128
1315
- /* KEYED_FRAGMENT */
1316
- ))
1317
- ]))
1318
- ]),
1319
- _: 1
1320
- /* STABLE */
1321
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
1322
- listFloor.value.length > 0 && activatedFloor.value ? (vue.openBlock(), vue.createBlock(openMap_vue_vue_type_script_setup_true_lang.default, {
1323
- key: 3,
1324
- ref_key: "rrefMap",
1325
- ref: rrefMap,
1326
- "api-key": "AjtUzWJBHlI3Ma_Ke6Qv2fGRXEs0ua5hUQi54ECwfXTiWsitll4AkETZDihjcfeI",
1327
- center: center.value,
1328
- zoom: zoom.value,
1329
- projection: projection.value,
1330
- "img-url": imgUrl.value,
1331
- size: size.value,
1332
- extent: extent.value,
1333
- "config-menu-items": configMenuItems.value,
1334
- "activated-bottom-bar": activatedBottomBar.value,
1335
- waring: hasWaring.value ? waring$1.value : null,
1336
- "activated-position-overlay-waring": activatedPositionOverlayWaring.value,
1337
- "activated-position-overlay": activatedPositionOverlay.value,
1338
- "activated-properties-overlay": activatedPropertiesOverlay.value,
1339
- "list-title": listTitle.value,
1340
- "alarm-type": alarmType.value,
1341
- "svg-overlay": vue.unref(___$1.default),
1342
- "waring-icon": vue.unref(waring.default),
1343
- "fn-update-draw-feature": fnUpdateDrawFeature,
1344
- "fn-update-draw-feature2": fnUpdateDrawFeature2,
1345
- "fn-override-style": fnOverrideStyle,
1346
- onReady: handleMapReady
1347
- }, {
1348
- overlay: vue.withCtx(() => {
1349
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
1350
- return [
1351
- activatedPropertiesOverlay.value.type && listTitle.value === "\u8BBE\u5907\u4FE1\u606F\u5217\u8868" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_30, [
1352
- vue.createElementVNode("img", {
1353
- src: vue.unref(___$1.default),
1354
- alt: "",
1355
- class: "absolute w-full h-full"
1356
- }, null, 8, _hoisted_31),
1357
- vue.createElementVNode(
1358
- "div",
1359
- _hoisted_32,
1360
- " \u8BBE\u5907\u7F16\u7801\uFF1A " + vue.toDisplayString((_a = activatedPropertiesOverlay.value.other) == null ? void 0 : _a.code),
1069
+ vue.toDisplayString(activatedFold.value ? "\u5C55\u5F00" : "\u6536\u8D77"),
1361
1070
  1
1362
1071
  /* TEXT */
1363
- ),
1072
+ )
1073
+ ]),
1074
+ vue.createElementVNode("div", _hoisted_13, [
1075
+ vue.createVNode(_component_el_select, {
1076
+ modelValue: queryDeviceList.value.activatedDeviceType,
1077
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => queryDeviceList.value.activatedDeviceType = $event),
1078
+ clearable: "",
1079
+ style: { "width": "32%" },
1080
+ class: "mr-2",
1081
+ placeholder: "\u8BF7\u9009\u62E9\u7C7B\u578B",
1082
+ teleported: false
1083
+ }, {
1084
+ default: vue.withCtx(() => [
1085
+ (vue.openBlock(true), vue.createElementBlock(
1086
+ vue.Fragment,
1087
+ null,
1088
+ vue.renderList(configOptionsDeviceType.value, (item) => {
1089
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
1090
+ key: item.value,
1091
+ label: item.label,
1092
+ value: item.value
1093
+ }, null, 8, ["label", "value"]);
1094
+ }),
1095
+ 128
1096
+ /* KEYED_FRAGMENT */
1097
+ ))
1098
+ ]),
1099
+ _: 1
1100
+ /* STABLE */
1101
+ }, 8, ["modelValue"]),
1102
+ vue.createVNode(_component_el_select, {
1103
+ modelValue: queryDeviceList.value.activatedDeviceModel,
1104
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => queryDeviceList.value.activatedDeviceModel = $event),
1105
+ clearable: "",
1106
+ style: { "width": "32%" },
1107
+ class: "mr-2",
1108
+ placeholder: "\u8BF7\u9009\u62E9\u578B\u53F7",
1109
+ teleported: false
1110
+ }, {
1111
+ default: vue.withCtx(() => [
1112
+ (vue.openBlock(true), vue.createElementBlock(
1113
+ vue.Fragment,
1114
+ null,
1115
+ vue.renderList(configOptionsDeviceModel.value, (item) => {
1116
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
1117
+ key: item.value,
1118
+ label: item.label,
1119
+ value: item.value
1120
+ }, null, 8, ["label", "value"]);
1121
+ }),
1122
+ 128
1123
+ /* KEYED_FRAGMENT */
1124
+ ))
1125
+ ]),
1126
+ _: 1
1127
+ /* STABLE */
1128
+ }, 8, ["modelValue"]),
1129
+ vue.createVNode(_component_el_select, {
1130
+ modelValue: queryDeviceList.value.activatedManufacturer,
1131
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => queryDeviceList.value.activatedManufacturer = $event),
1132
+ clearable: "",
1133
+ style: { "width": "32%" },
1134
+ placeholder: "\u8BF7\u9009\u62E9\u5382\u5546",
1135
+ teleported: false
1136
+ }, {
1137
+ default: vue.withCtx(() => [
1138
+ (vue.openBlock(true), vue.createElementBlock(
1139
+ vue.Fragment,
1140
+ null,
1141
+ vue.renderList(configOptionsManufacturer.value, (item) => {
1142
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
1143
+ key: item.value,
1144
+ label: item.label,
1145
+ value: item.value
1146
+ }, null, 8, ["label", "value"]);
1147
+ }),
1148
+ 128
1149
+ /* KEYED_FRAGMENT */
1150
+ ))
1151
+ ]),
1152
+ _: 1
1153
+ /* STABLE */
1154
+ }, 8, ["modelValue"])
1155
+ ]),
1156
+ activatedList.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
1157
+ _cache[6] || (_cache[6] = vue.createElementVNode(
1158
+ "span",
1159
+ { class: "col-span-1" },
1160
+ "\u56FE\u6807",
1161
+ -1
1162
+ /* CACHED */
1163
+ )),
1164
+ _cache[7] || (_cache[7] = vue.createElementVNode(
1165
+ "span",
1166
+ { class: "col-span-4" },
1167
+ "\u7F16\u53F7",
1168
+ -1
1169
+ /* CACHED */
1170
+ )),
1171
+ vue.createCommentVNode(' <span class="col-span-2 text-center">\u697C\u5C42</span> '),
1364
1172
  vue.createElementVNode(
1365
- "div",
1366
- _hoisted_33,
1367
- " \u521B\u5EFA\u65E5\u671F\uFF1A " + vue.toDisplayString((_b = activatedPropertiesOverlay.value.other) == null ? void 0 : _b.createTime),
1173
+ "span",
1174
+ _hoisted_15,
1175
+ vue.toDisplayString(listTitle.value === "\u8BBE\u5907\u4FE1\u606F\u5217\u8868" ? "\u8BBE\u5907\u7C7B\u578B" : "\u8BBE\u65BD\u7C7B\u578B"),
1368
1176
  1
1369
1177
  /* TEXT */
1370
1178
  ),
1371
- vue.createElementVNode("div", _hoisted_34, [
1372
- _cache[11] || (_cache[11] = vue.createTextVNode(
1373
- " \u8BBE\u5907\u4F4D\u7F6E\uFF1A ",
1374
- -1
1375
- /* CACHED */
1376
- )),
1377
- vue.createElementVNode("div", {
1378
- class: "w-52 flex justify-start items-center text-gradient2 truncate ...",
1379
- title: ((_c = activatedPropertiesOverlay.value.other) == null ? void 0 : _c.videoName) || ((_d = activatedPropertiesOverlay.value.other) == null ? void 0 : _d.addressDesc)
1380
- }, vue.toDisplayString(alarmType.value === "video" ? (_e = activatedPropertiesOverlay.value.other) == null ? void 0 : _e.videoName : (_f = activatedPropertiesOverlay.value.other) == null ? void 0 : _f.addressDesc), 9, _hoisted_35)
1381
- ]),
1382
- vue.createElementVNode("div", _hoisted_36, [
1383
- _cache[12] || (_cache[12] = vue.createTextVNode(
1384
- " \u8BBE\u5907\u7C7B\u578B\uFF1A ",
1385
- -1
1386
- /* CACHED */
1387
- )),
1388
- vue.createElementVNode("div", {
1389
- class: "w-52 flex justify-start items-center text-gradient2 truncate ...",
1390
- title: ((_g = activatedPropertiesOverlay.value.other) == null ? void 0 : _g.remark) || ((_h = activatedPropertiesOverlay.value.other) == null ? void 0 : _h.deviceTypeName) || ((_i = activatedPropertiesOverlay.value.other) == null ? void 0 : _i.facilityTypeName)
1391
- }, vue.toDisplayString(alarmType.value === "video" ? "\u6444\u50CF\u5934" : ((_j = activatedPropertiesOverlay.value.other) == null ? void 0 : _j.remark) || ((_k = activatedPropertiesOverlay.value.other) == null ? void 0 : _k.facilityTypeName) || ((_l = activatedPropertiesOverlay.value.other) == null ? void 0 : _l.deviceTypeName)), 9, _hoisted_37)
1392
- ])
1393
- ])) : vue.createCommentVNode("v-if", true),
1394
- vue.createCommentVNode(" \u8BBE\u65BD\u4FE1\u606F\u5F39\u7A97 "),
1395
- activatedPropertiesOverlay.value.type && listTitle.value === "\u8BBE\u65BD\u4FE1\u606F\u5217\u8868" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_38, [
1396
- vue.createElementVNode("img", {
1397
- src: vue.unref(___$1.default),
1398
- alt: "",
1399
- class: "absolute w-full h-full"
1400
- }, null, 8, _hoisted_39),
1179
+ _cache[8] || (_cache[8] = vue.createElementVNode(
1180
+ "span",
1181
+ { class: "col-span-3" },
1182
+ "\u4F4D\u7F6E",
1183
+ -1
1184
+ /* CACHED */
1185
+ ))
1186
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, _cache[9] || (_cache[9] = [
1401
1187
  vue.createElementVNode(
1402
- "div",
1403
- _hoisted_40,
1404
- " \u8BBE\u65BD\u7F16\u7801\uFF1A " + vue.toDisplayString((_m = activatedPropertiesOverlay.value.other) == null ? void 0 : _m.code),
1405
- 1
1406
- /* TEXT */
1188
+ "span",
1189
+ { class: "col-span-1" },
1190
+ "\u5E8F\u53F7",
1191
+ -1
1192
+ /* CACHED */
1407
1193
  ),
1408
1194
  vue.createElementVNode(
1409
- "div",
1410
- _hoisted_41,
1411
- " \u521B\u5EFA\u65E5\u671F\uFF1A " + vue.toDisplayString((_n = activatedPropertiesOverlay.value.other) == null ? void 0 : _n.createTime),
1412
- 1
1413
- /* TEXT */
1195
+ "span",
1196
+ { class: "col-span-1" },
1197
+ "\u56FE\u6807",
1198
+ -1
1199
+ /* CACHED */
1414
1200
  ),
1415
1201
  vue.createElementVNode(
1416
- "div",
1417
- _hoisted_42,
1418
- " \u8BBE\u65BD\u578B\u53F7\uFF1A " + vue.toDisplayString((_o = activatedPropertiesOverlay.value.other) == null ? void 0 : _o.deviceModelName),
1419
- 1
1420
- /* TEXT */
1202
+ "span",
1203
+ { class: "col-span-8" },
1204
+ "\u540D\u79F0",
1205
+ -1
1206
+ /* CACHED */
1421
1207
  ),
1422
1208
  vue.createElementVNode(
1423
- "div",
1424
- _hoisted_43,
1425
- " \u8BBE\u65BD\u5382\u5546\uFF1A " + vue.toDisplayString((_p = activatedPropertiesOverlay.value.other) == null ? void 0 : _p.manufacturerName),
1426
- 1
1427
- /* TEXT */
1209
+ "span",
1210
+ { class: "col-span-2" },
1211
+ "\u64CD\u4F5C",
1212
+ -1
1213
+ /* CACHED */
1428
1214
  )
1429
- ])) : vue.createCommentVNode("v-if", true)
1430
- ];
1431
- }),
1432
- _: 1
1433
- /* STABLE */
1434
- }, 8, ["center", "zoom", "projection", "img-url", "size", "extent", "config-menu-items", "activated-bottom-bar", "waring", "activated-position-overlay-waring", "activated-position-overlay", "activated-properties-overlay", "list-title", "alarm-type", "svg-overlay", "waring-icon"])) : (vue.openBlock(), vue.createElementBlock("img", {
1435
- key: 4,
1436
- src: vue.unref(_default.default),
1437
- alt: "\u9ED8\u8BA4\u5E95\u56FE",
1438
- style: vue.normalizeStyle({ width: `${size.value[0]}px`, height: `${size.value[1]}px` })
1439
- }, null, 12, _hoisted_44))
1440
- ]);
1215
+ ]))),
1216
+ activatedList.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
1217
+ vue.createCommentVNode(" {{ listUnitDevice.length }} "),
1218
+ (vue.openBlock(true), vue.createElementBlock(
1219
+ vue.Fragment,
1220
+ null,
1221
+ vue.renderList(listUnitDevice.value, (item, index) => {
1222
+ return vue.openBlock(), vue.createElementBlock("div", {
1223
+ key: index,
1224
+ class: "t-info-panel__row grid gap-1 mt-4 px-3.5 w-full grid-cols-12",
1225
+ title: item.deviceTypeName
1226
+ }, [
1227
+ vue.createElementVNode("span", _hoisted_19, [
1228
+ vue.createCommentVNode(" \u53EF\u62D6\u62FD\u8BBE\u5907\u56FE\u6807\uFF1Adragstart \u76F4\u63A5\u5E26\u51FA\u8BBE\u5907\u9879\uFF0Cdragend \u89E6\u53D1\u653E\u7F6E\u903B\u8F91 "),
1229
+ vue.createElementVNode("img", {
1230
+ src: configIcon.value[item.code] || vue.unref(___.default),
1231
+ draggable: "true",
1232
+ class: "!w-8",
1233
+ onDragstart: /* @__PURE__ */ __name(($event) => dragStart(item), "onDragstart"),
1234
+ onDragend: dragEnd
1235
+ }, null, 40, _hoisted_20)
1236
+ ]),
1237
+ vue.createElementVNode(
1238
+ "span",
1239
+ _hoisted_21,
1240
+ vue.toDisplayString(item.code),
1241
+ 1
1242
+ /* TEXT */
1243
+ ),
1244
+ vue.createElementVNode("span", {
1245
+ class: "col-span-4 break-words",
1246
+ title: item.remark || item.deviceTypeName || item.videoName
1247
+ }, vue.toDisplayString(item.remark || item.deviceTypeName || item.videoName), 9, _hoisted_22),
1248
+ vue.createElementVNode("span", {
1249
+ class: "col-span-3 break-words",
1250
+ title: item.locationDesc
1251
+ }, vue.toDisplayString(item.locationDesc || item.addressDesc), 9, _hoisted_23)
1252
+ ], 8, _hoisted_18);
1253
+ }),
1254
+ 128
1255
+ /* KEYED_FRAGMENT */
1256
+ ))
1257
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_24, [
1258
+ (vue.openBlock(true), vue.createElementBlock(
1259
+ vue.Fragment,
1260
+ null,
1261
+ vue.renderList(activatedArrayFeatures.value, (item, index) => {
1262
+ return vue.openBlock(), vue.createElementBlock("div", {
1263
+ key: item,
1264
+ class: "t-info-panel__row grid gap-1 mt-4 px-3.5 w-full grid-cols-12"
1265
+ }, [
1266
+ vue.createElementVNode(
1267
+ "span",
1268
+ _hoisted_25,
1269
+ vue.toDisplayString(index + 1),
1270
+ 1
1271
+ /* TEXT */
1272
+ ),
1273
+ vue.createElementVNode("span", _hoisted_26, [
1274
+ item.values_.geometry.getType() === "Point" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_27)) : (vue.openBlock(), vue.createElementBlock(
1275
+ "div",
1276
+ {
1277
+ key: 1,
1278
+ class: "!w-8 h-full",
1279
+ style: vue.normalizeStyle(`background-color:${item.values_.color}`)
1280
+ },
1281
+ null,
1282
+ 4
1283
+ /* STYLE */
1284
+ ))
1285
+ ]),
1286
+ vue.createElementVNode("span", _hoisted_28, [
1287
+ item.values_.geometry.getType() === "Point" ? (vue.openBlock(), vue.createBlock(_component_el_input, {
1288
+ key: 0,
1289
+ modelValue: item.values_.type,
1290
+ "onUpdate:modelValue": /* @__PURE__ */ __name(($event) => item.values_.type = $event, "onUpdate:modelValue"),
1291
+ size: "large",
1292
+ clearable: ""
1293
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (vue.openBlock(), vue.createBlock(_component_el_input, {
1294
+ key: 1,
1295
+ modelValue: item.values_.text,
1296
+ "onUpdate:modelValue": /* @__PURE__ */ __name(($event) => item.values_.text = $event, "onUpdate:modelValue"),
1297
+ size: "large",
1298
+ clearable: "",
1299
+ onChange: /* @__PURE__ */ __name(($event) => updateFeatureStyle(item), "onChange")
1300
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]))
1301
+ ]),
1302
+ vue.createElementVNode("span", {
1303
+ class: "flex items-center justify-center col-span-2 cursor-pointer",
1304
+ onClick: /* @__PURE__ */ __name(($event) => deleteFeature(item), "onClick")
1305
+ }, _cache[10] || (_cache[10] = [
1306
+ vue.createElementVNode(
1307
+ "i",
1308
+ { class: "iconfont icon-shanchu" },
1309
+ null,
1310
+ -1
1311
+ /* CACHED */
1312
+ )
1313
+ ]), 8, _hoisted_29)
1314
+ ]);
1315
+ }),
1316
+ 128
1317
+ /* KEYED_FRAGMENT */
1318
+ ))
1319
+ ]))
1320
+ ]),
1321
+ _: 1
1322
+ /* STABLE */
1323
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
1324
+ listFloor.value.length > 0 && activatedFloor.value ? (vue.openBlock(), vue.createBlock(openMap_vue_vue_type_script_setup_true_lang.default, {
1325
+ key: 3,
1326
+ ref_key: "rrefMap",
1327
+ ref: rrefMap,
1328
+ "api-key": "AjtUzWJBHlI3Ma_Ke6Qv2fGRXEs0ua5hUQi54ECwfXTiWsitll4AkETZDihjcfeI",
1329
+ center: center.value,
1330
+ zoom: zoom.value,
1331
+ projection: projection.value,
1332
+ "img-url": imgUrl.value,
1333
+ size: size.value,
1334
+ extent: extent.value,
1335
+ "config-menu-items": configMenuItems.value,
1336
+ "activated-bottom-bar": activatedBottomBar.value,
1337
+ waring: hasWaring.value ? waring$1.value : null,
1338
+ "activated-position-overlay-waring": activatedPositionOverlayWaring.value,
1339
+ "activated-position-overlay": activatedPositionOverlay.value,
1340
+ "activated-properties-overlay": activatedPropertiesOverlay.value,
1341
+ "list-title": listTitle.value,
1342
+ "alarm-type": alarmType.value,
1343
+ "svg-overlay": vue.unref(___$1.default),
1344
+ "waring-icon": vue.unref(waring.default),
1345
+ "fn-update-draw-feature": fnUpdateDrawFeature,
1346
+ "fn-update-draw-feature2": fnUpdateDrawFeature2,
1347
+ "fn-override-style": fnOverrideStyle,
1348
+ onReady: handleMapReady
1349
+ }, {
1350
+ overlay: vue.withCtx(() => {
1351
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
1352
+ return [
1353
+ activatedPropertiesOverlay.value.type && listTitle.value === "\u8BBE\u5907\u4FE1\u606F\u5217\u8868" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_30, [
1354
+ vue.createElementVNode("img", {
1355
+ src: vue.unref(___$1.default),
1356
+ alt: "",
1357
+ class: "absolute w-full h-full"
1358
+ }, null, 8, _hoisted_31),
1359
+ vue.createElementVNode(
1360
+ "div",
1361
+ _hoisted_32,
1362
+ " \u8BBE\u5907\u7F16\u7801\uFF1A " + vue.toDisplayString((_a = activatedPropertiesOverlay.value.other) == null ? void 0 : _a.code),
1363
+ 1
1364
+ /* TEXT */
1365
+ ),
1366
+ vue.createElementVNode(
1367
+ "div",
1368
+ _hoisted_33,
1369
+ " \u521B\u5EFA\u65E5\u671F\uFF1A " + vue.toDisplayString((_b = activatedPropertiesOverlay.value.other) == null ? void 0 : _b.createTime),
1370
+ 1
1371
+ /* TEXT */
1372
+ ),
1373
+ vue.createElementVNode("div", _hoisted_34, [
1374
+ _cache[11] || (_cache[11] = vue.createTextVNode(
1375
+ " \u8BBE\u5907\u4F4D\u7F6E\uFF1A ",
1376
+ -1
1377
+ /* CACHED */
1378
+ )),
1379
+ vue.createElementVNode("div", {
1380
+ class: "w-52 flex justify-start items-center text-gradient2 truncate ...",
1381
+ title: ((_c = activatedPropertiesOverlay.value.other) == null ? void 0 : _c.videoName) || ((_d = activatedPropertiesOverlay.value.other) == null ? void 0 : _d.addressDesc)
1382
+ }, vue.toDisplayString(alarmType.value === "video" ? (_e = activatedPropertiesOverlay.value.other) == null ? void 0 : _e.videoName : (_f = activatedPropertiesOverlay.value.other) == null ? void 0 : _f.addressDesc), 9, _hoisted_35)
1383
+ ]),
1384
+ vue.createElementVNode("div", _hoisted_36, [
1385
+ _cache[12] || (_cache[12] = vue.createTextVNode(
1386
+ " \u8BBE\u5907\u7C7B\u578B\uFF1A ",
1387
+ -1
1388
+ /* CACHED */
1389
+ )),
1390
+ vue.createElementVNode("div", {
1391
+ class: "w-52 flex justify-start items-center text-gradient2 truncate ...",
1392
+ title: ((_g = activatedPropertiesOverlay.value.other) == null ? void 0 : _g.remark) || ((_h = activatedPropertiesOverlay.value.other) == null ? void 0 : _h.deviceTypeName) || ((_i = activatedPropertiesOverlay.value.other) == null ? void 0 : _i.facilityTypeName)
1393
+ }, vue.toDisplayString(alarmType.value === "video" ? "\u6444\u50CF\u5934" : ((_j = activatedPropertiesOverlay.value.other) == null ? void 0 : _j.remark) || ((_k = activatedPropertiesOverlay.value.other) == null ? void 0 : _k.facilityTypeName) || ((_l = activatedPropertiesOverlay.value.other) == null ? void 0 : _l.deviceTypeName)), 9, _hoisted_37)
1394
+ ])
1395
+ ])) : vue.createCommentVNode("v-if", true),
1396
+ vue.createCommentVNode(" \u8BBE\u65BD\u4FE1\u606F\u5F39\u7A97 "),
1397
+ activatedPropertiesOverlay.value.type && listTitle.value === "\u8BBE\u65BD\u4FE1\u606F\u5217\u8868" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_38, [
1398
+ vue.createElementVNode("img", {
1399
+ src: vue.unref(___$1.default),
1400
+ alt: "",
1401
+ class: "absolute w-full h-full"
1402
+ }, null, 8, _hoisted_39),
1403
+ vue.createElementVNode(
1404
+ "div",
1405
+ _hoisted_40,
1406
+ " \u8BBE\u65BD\u7F16\u7801\uFF1A " + vue.toDisplayString((_m = activatedPropertiesOverlay.value.other) == null ? void 0 : _m.code),
1407
+ 1
1408
+ /* TEXT */
1409
+ ),
1410
+ vue.createElementVNode(
1411
+ "div",
1412
+ _hoisted_41,
1413
+ " \u521B\u5EFA\u65E5\u671F\uFF1A " + vue.toDisplayString((_n = activatedPropertiesOverlay.value.other) == null ? void 0 : _n.createTime),
1414
+ 1
1415
+ /* TEXT */
1416
+ ),
1417
+ vue.createElementVNode(
1418
+ "div",
1419
+ _hoisted_42,
1420
+ " \u8BBE\u65BD\u578B\u53F7\uFF1A " + vue.toDisplayString((_o = activatedPropertiesOverlay.value.other) == null ? void 0 : _o.deviceModelName),
1421
+ 1
1422
+ /* TEXT */
1423
+ ),
1424
+ vue.createElementVNode(
1425
+ "div",
1426
+ _hoisted_43,
1427
+ " \u8BBE\u65BD\u5382\u5546\uFF1A " + vue.toDisplayString((_p = activatedPropertiesOverlay.value.other) == null ? void 0 : _p.manufacturerName),
1428
+ 1
1429
+ /* TEXT */
1430
+ )
1431
+ ])) : vue.createCommentVNode("v-if", true)
1432
+ ];
1433
+ }),
1434
+ _: 1
1435
+ /* STABLE */
1436
+ }, 8, ["center", "zoom", "projection", "img-url", "size", "extent", "config-menu-items", "activated-bottom-bar", "waring", "activated-position-overlay-waring", "activated-position-overlay", "activated-properties-overlay", "list-title", "alarm-type", "svg-overlay", "waring-icon"])) : (vue.openBlock(), vue.createElementBlock("img", {
1437
+ key: 4,
1438
+ src: vue.unref(_default.default),
1439
+ alt: "\u9ED8\u8BA4\u5E95\u56FE",
1440
+ style: vue.normalizeStyle({ width: `${size.value[0]}px`, height: `${size.value[1]}px` })
1441
+ }, null, 12, _hoisted_44))
1442
+ ],
1443
+ 32
1444
+ /* NEED_HYDRATION */
1445
+ );
1441
1446
  };
1442
1447
  }
1443
1448
  });