sctj-components 1.0.57 → 1.0.58

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.
@@ -134,7 +134,7 @@ const index_vue_vue_type_style_index_0_scoped_006fbc77_lang = "";
134
134
  const index_vue_vue_type_style_index_1_lang = "";
135
135
  const _hoisted_1$m = { class: "upload-file" };
136
136
  const _hoisted_2$d = { class: "el-upload__tip" };
137
- const _hoisted_3$a = { style: { "color": "#f56c6c" } };
137
+ const _hoisted_3$9 = { style: { "color": "#f56c6c" } };
138
138
  const _hoisted_4$8 = { style: { "color": "#f56c6c" } };
139
139
  const _hoisted_5$6 = ["title"];
140
140
  const _hoisted_6$3 = { class: "ele-upload-list__item-content-action" };
@@ -414,7 +414,7 @@ const _sfc_main$t = {
414
414
  createTextVNode(" \u8BF7\u4E0A\u4F20 "),
415
415
  __props.fileSize ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
416
416
  createTextVNode(" \u5927\u5C0F\u4E0D\u8D85\u8FC7 "),
417
- createElementVNode("b", _hoisted_3$a, toDisplayString(__props.fileSize) + "MB", 1)
417
+ createElementVNode("b", _hoisted_3$9, toDisplayString(__props.fileSize) + "MB", 1)
418
418
  ], 64)) : createCommentVNode("", true),
419
419
  __props.fileType ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
420
420
  createTextVNode(" \u683C\u5F0F\u4E3A "),
@@ -524,7 +524,7 @@ const _hoisted_2$c = {
524
524
  key: 0,
525
525
  class: "el-upload__tip"
526
526
  };
527
- const _hoisted_3$9 = { style: { "color": "#f56c6c" } };
527
+ const _hoisted_3$8 = { style: { "color": "#f56c6c" } };
528
528
  const _hoisted_4$7 = { style: { "color": "#f56c6c" } };
529
529
  const _hoisted_5$5 = ["src"];
530
530
  const _sfc_main$s = {
@@ -764,7 +764,7 @@ const _sfc_main$s = {
764
764
  createTextVNode(" \u8BF7\u4E0A\u4F20 "),
765
765
  props.fileSize ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
766
766
  createTextVNode(" \u5927\u5C0F\u4E0D\u8D85\u8FC7 "),
767
- createElementVNode("b", _hoisted_3$9, toDisplayString(props.fileSize) + "MB", 1)
767
+ createElementVNode("b", _hoisted_3$8, toDisplayString(props.fileSize) + "MB", 1)
768
768
  ], 64)) : createCommentVNode("", true),
769
769
  props.fileType ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
770
770
  createTextVNode(" \u683C\u5F0F\u4E3A "),
@@ -1019,7 +1019,7 @@ const icons = [
1019
1019
  const index_vue_vue_type_style_index_0_scoped_37029e19_lang = "";
1020
1020
  const _hoisted_1$j = { class: "icon-content" };
1021
1021
  const _hoisted_2$b = { class: "icon-list" };
1022
- const _hoisted_3$8 = ["onClick"];
1022
+ const _hoisted_3$7 = ["onClick"];
1023
1023
  const _sfc_main$q = {
1024
1024
  __name: "index",
1025
1025
  props: {
@@ -1149,7 +1149,7 @@ const _sfc_main$q = {
1149
1149
  style: { "height": "30px", "width": "16px", "flex-shrink": "0" }
1150
1150
  }, null, 8, ["icon-class"]),
1151
1151
  createElementVNode("span", null, toDisplayString(item), 1)
1152
- ], 8, _hoisted_3$8);
1152
+ ], 8, _hoisted_3$7);
1153
1153
  }), 128))
1154
1154
  ])
1155
1155
  ], 512), [
@@ -2380,7 +2380,7 @@ const _hoisted_1$d = {
2380
2380
  class: "search-container"
2381
2381
  };
2382
2382
  const _hoisted_2$9 = { class: "table-box" };
2383
- const _hoisted_3$7 = ["onClick"];
2383
+ const _hoisted_3$6 = ["onClick"];
2384
2384
  const _hoisted_4$6 = {
2385
2385
  slot: "header",
2386
2386
  class: "clearfix"
@@ -2806,7 +2806,7 @@ const _sfc_main$g = {
2806
2806
  createElementVNode("span", {
2807
2807
  onClick: ($event) => handleClick(item.action, item.prop, scope),
2808
2808
  class: normalizeClass({ "linkStyle": item.action || false })
2809
- }, toDisplayString(item.format ? item.format(scope.row, scope.$index) : scope.row[item.prop]), 11, _hoisted_3$7)
2809
+ }, toDisplayString(item.format ? item.format(scope.row, scope.$index) : scope.row[item.prop]), 11, _hoisted_3$6)
2810
2810
  ]),
2811
2811
  _: 2
2812
2812
  }, 1040))
@@ -3510,7 +3510,7 @@ const _hoisted_2$6 = {
3510
3510
  key: 1,
3511
3511
  class: "empty-wrapper"
3512
3512
  };
3513
- const _hoisted_3$6 = ["src"];
3513
+ const _hoisted_3$5 = ["src"];
3514
3514
  const _hoisted_4$5 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { class: "empty-text" }, "\u6682\u65E0\u6570\u636E", -1));
3515
3515
  const _sfc_main$a = {
3516
3516
  __name: "CommonChart",
@@ -4048,7 +4048,7 @@ const _sfc_main$a = {
4048
4048
  src: unref(emptyImg),
4049
4049
  alt: "empty",
4050
4050
  class: "empty-image"
4051
- }, null, 8, _hoisted_3$6),
4051
+ }, null, 8, _hoisted_3$5),
4052
4052
  _hoisted_4$5
4053
4053
  ]))
4054
4054
  ], 12, _hoisted_1$9)), [
@@ -4354,7 +4354,7 @@ const _hoisted_2$5 = {
4354
4354
  key: 0,
4355
4355
  class: "error-content"
4356
4356
  };
4357
- const _hoisted_3$5 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "error-icon" }, "!", -1));
4357
+ const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "error-icon" }, "!", -1));
4358
4358
  const _hoisted_4$4 = {
4359
4359
  key: 1,
4360
4360
  class: "loading-overlay"
@@ -4647,7 +4647,7 @@ const _sfc_main$8 = {
4647
4647
  }, null, 512)
4648
4648
  ], 8, _hoisted_1$7),
4649
4649
  errorMessage.value ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
4650
- _hoisted_3$5,
4650
+ _hoisted_3$4,
4651
4651
  createElementVNode("p", null, toDisplayString(errorMessage.value), 1),
4652
4652
  createVNode(unref(ElButton), {
4653
4653
  type: "primary",
@@ -4719,7 +4719,7 @@ const _hoisted_1$5 = /* @__PURE__ */ createElementVNode("div", { class: "el-uplo
4719
4719
  /* @__PURE__ */ createElementVNode("em", null, "\u70B9\u51FB\u4E0A\u4F20")
4720
4720
  ], -1);
4721
4721
  const _hoisted_2$4 = { class: "el-upload__tip text-center" };
4722
- const _hoisted_3$4 = {
4722
+ const _hoisted_3$3 = {
4723
4723
  key: 0,
4724
4724
  class: "el-upload__tip"
4725
4725
  };
@@ -4951,7 +4951,7 @@ const _sfc_main$6 = {
4951
4951
  }, {
4952
4952
  tip: withCtx(() => [
4953
4953
  createElementVNode("div", _hoisted_2$4, [
4954
- __props.showCheckBox ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
4954
+ __props.showCheckBox ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
4955
4955
  createVNode(_component_el_checkbox, {
4956
4956
  modelValue: params.updateSupport,
4957
4957
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => params.updateSupport = $event)
@@ -5031,14 +5031,10 @@ const _sfc_main$6 = {
5031
5031
  };
5032
5032
  }
5033
5033
  };
5034
- const index_vue_vue_type_style_index_0_scoped_0946936d_lang = "";
5034
+ const index_vue_vue_type_style_index_0_scoped_976b8061_lang = "";
5035
5035
  const _hoisted_1$4 = { class: "action-container" };
5036
5036
  const _hoisted_2$3 = {
5037
5037
  key: 0,
5038
- class: "layer-switch"
5039
- };
5040
- const _hoisted_3$3 = {
5041
- key: 1,
5042
5038
  class: "legendContainer"
5043
5039
  };
5044
5040
  const _sfc_main$5 = {
@@ -5092,10 +5088,6 @@ const _sfc_main$5 = {
5092
5088
  type: Boolean,
5093
5089
  default: true
5094
5090
  },
5095
- changeMapType: {
5096
- type: Boolean,
5097
- default: true
5098
- },
5099
5091
  viewMode: {
5100
5092
  type: String,
5101
5093
  default: "2D"
@@ -5110,17 +5102,17 @@ const _sfc_main$5 = {
5110
5102
  setup(__props, { expose, emit }) {
5111
5103
  const props = __props;
5112
5104
  useCssVars((_ctx) => ({
5113
- "1dd03d1d": __props.width,
5114
- "fb2f26a0": __props.height
5105
+ "7481e673": __props.width,
5106
+ "01ebee1a": __props.height
5115
5107
  }));
5116
5108
  const mapContainer = ref$1(null);
5117
5109
  const map = shallowRef(null);
5118
5110
  const legend = ref$1([]);
5119
- const isSatellite = ref$1(false);
5120
5111
  const satelliteLayer = shallowRef(null);
5121
5112
  shallowRef(null);
5122
5113
  const controlBar = shallowRef(null);
5123
5114
  const toolBar = shallowRef(null);
5115
+ const mapType = shallowRef(null);
5124
5116
  const staticMarkerInstances = shallowRef([]);
5125
5117
  const dynamicMarkerInstances = shallowRef([]);
5126
5118
  const polylineInstances = shallowRef([]);
@@ -5308,6 +5300,12 @@ const _sfc_main$5 = {
5308
5300
  toolBar.value = null;
5309
5301
  }
5310
5302
  };
5303
+ const clearMapType = () => {
5304
+ if (mapType.value) {
5305
+ map.value.removeControl(mapType.value);
5306
+ mapType.value = null;
5307
+ }
5308
+ };
5311
5309
  onMounted$1(async () => {
5312
5310
  await initMap();
5313
5311
  handleMapEvents();
@@ -5328,6 +5326,7 @@ const _sfc_main$5 = {
5328
5326
  clearMapEvents();
5329
5327
  clearMapControlBar();
5330
5328
  clearMapToolBar();
5329
+ clearMapType();
5331
5330
  clearStaticMarkers();
5332
5331
  clearDynamicMarkers();
5333
5332
  clearPolylines();
@@ -5357,7 +5356,7 @@ const _sfc_main$5 = {
5357
5356
  const AMap2 = await AMapLoader.load({
5358
5357
  key: props.amapKey,
5359
5358
  version: "2.0",
5360
- plugins: ["AMap.Marker", "AMap.Polyline", "AMap.Polygon", "AMap.BezierCurve", "AMap.Circle", "AMap.Text", "AMap.LabelMarker", "AMap.BezierCurveEditor", "AMap.TileLayer.Satellite", "AMap.ControlBar", "AMap.OverlayGroup", "AMap.ToolBar"]
5359
+ plugins: ["AMap.Marker", "AMap.Polyline", "AMap.Polygon", "AMap.BezierCurve", "AMap.Circle", "AMap.Text", "AMap.LabelMarker", "AMap.BezierCurveEditor", "AMap.TileLayer.Satellite", "AMap.ControlBar", "AMap.OverlayGroup", "AMap.ToolBar", "AMap.MapType"]
5361
5360
  });
5362
5361
  const mapConfig = {
5363
5362
  viewMode: props.viewMode,
@@ -5377,8 +5376,8 @@ const _sfc_main$5 = {
5377
5376
  if (!controlBar.value) {
5378
5377
  controlBar.value = new AMap2.ControlBar({
5379
5378
  position: {
5380
- bottom: "120px",
5381
- zIndex: 20
5379
+ bottom: "10px",
5380
+ right: "10px"
5382
5381
  }
5383
5382
  });
5384
5383
  map.value.addControl(controlBar.value);
@@ -5387,12 +5386,22 @@ const _sfc_main$5 = {
5387
5386
  if (!toolBar.value) {
5388
5387
  toolBar.value = new AMap2.ToolBar({
5389
5388
  position: {
5390
- top: "10px",
5391
- left: "10px"
5389
+ top: "25px",
5390
+ left: "20px"
5392
5391
  }
5393
5392
  });
5394
5393
  map.value.addControl(toolBar.value);
5395
5394
  }
5395
+ if (!mapType.value) {
5396
+ mapType.value = new AMap2.MapType({
5397
+ defaultType: 0,
5398
+ position: {
5399
+ bottom: "120px",
5400
+ left: "100px"
5401
+ }
5402
+ });
5403
+ map.value.addControl(mapType.value);
5404
+ }
5396
5405
  state.currentZoom = map.value.getZoom();
5397
5406
  } catch (error) {
5398
5407
  console.error("Failed to load AMap:", error);
@@ -5511,17 +5520,6 @@ const _sfc_main$5 = {
5511
5520
  toggleOverlayGroupVisibility(type, isVisible);
5512
5521
  });
5513
5522
  };
5514
- const handleLayerChange = (value) => {
5515
- if (value) {
5516
- map.value.setMapStyle(null);
5517
- satelliteLayer.value.setMap(map.value);
5518
- map.value.setFeatures(["bg"]);
5519
- } else {
5520
- map.value.setMapStyle(props.mapStyle);
5521
- satelliteLayer.value.setMap(null);
5522
- map.value.setFeatures(["bg", "building", "point", "road", "land", "poi"]);
5523
- }
5524
- };
5525
5523
  const drawStaticMarkers = (markers) => {
5526
5524
  console.log("123213", markers);
5527
5525
  markers.forEach((marker) => {
@@ -5941,11 +5939,9 @@ const _sfc_main$5 = {
5941
5939
  expose({
5942
5940
  fitView,
5943
5941
  updateCenter,
5944
- handleLayerChange,
5945
5942
  setZoomAndCenter
5946
5943
  });
5947
5944
  return (_ctx, _cache) => {
5948
- const _component_el_switch = resolveComponent("el-switch");
5949
5945
  const _component_el_checkbox = resolveComponent("el-checkbox");
5950
5946
  const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
5951
5947
  return openBlock(), createElementBlock("div", {
@@ -5955,19 +5951,10 @@ const _sfc_main$5 = {
5955
5951
  ref: mapContainer
5956
5952
  }, [
5957
5953
  createElementVNode("div", _hoisted_1$4, [
5958
- __props.changeMapType ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
5959
- createVNode(_component_el_switch, {
5960
- modelValue: isSatellite.value,
5961
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isSatellite.value = $event),
5962
- "active-text": "\u536B\u661F\u56FE",
5963
- "inactive-text": "\u6807\u51C6\u56FE",
5964
- onChange: handleLayerChange
5965
- }, null, 8, ["modelValue"])
5966
- ])) : createCommentVNode("", true),
5967
- __props.legendConfig.length ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
5954
+ __props.legendConfig.length ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
5968
5955
  createVNode(_component_el_checkbox_group, {
5969
5956
  modelValue: legend.value,
5970
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => legend.value = $event),
5957
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => legend.value = $event),
5971
5958
  onChange: handleLegendChange
5972
5959
  }, {
5973
5960
  default: withCtx(() => [
@@ -5991,7 +5978,7 @@ const _sfc_main$5 = {
5991
5978
  };
5992
5979
  }
5993
5980
  };
5994
- const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-0946936d"]]);
5981
+ const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-976b8061"]]);
5995
5982
  const index_vue_vue_type_style_index_0_scoped_761d2ab4_lang = "";
5996
5983
  const _withScopeId$2 = (n) => (pushScopeId("data-v-761d2ab4"), n = n(), popScopeId(), n);
5997
5984
  const _hoisted_1$3 = {