sctj-components 1.0.57 → 1.0.59
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 +71 -72
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
|
5034
|
+
const index_vue_vue_type_style_index_0_scoped_8c2ed7f7_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"
|
|
@@ -5104,23 +5096,35 @@ const _sfc_main$5 = {
|
|
|
5104
5096
|
type: String,
|
|
5105
5097
|
default: "",
|
|
5106
5098
|
required: true
|
|
5099
|
+
},
|
|
5100
|
+
showControlbar: {
|
|
5101
|
+
type: Boolean,
|
|
5102
|
+
default: true
|
|
5103
|
+
},
|
|
5104
|
+
showToolBar: {
|
|
5105
|
+
type: Boolean,
|
|
5106
|
+
default: true
|
|
5107
|
+
},
|
|
5108
|
+
showMapType: {
|
|
5109
|
+
type: Boolean,
|
|
5110
|
+
default: true
|
|
5107
5111
|
}
|
|
5108
5112
|
},
|
|
5109
5113
|
emits: ["loaded", "overlay-click", "overlay-mouseover", "overlay-mouseout"],
|
|
5110
5114
|
setup(__props, { expose, emit }) {
|
|
5111
5115
|
const props = __props;
|
|
5112
5116
|
useCssVars((_ctx) => ({
|
|
5113
|
-
"
|
|
5114
|
-
"
|
|
5117
|
+
"abb75a64": __props.width,
|
|
5118
|
+
"fed1e5c2": __props.height
|
|
5115
5119
|
}));
|
|
5116
5120
|
const mapContainer = ref$1(null);
|
|
5117
5121
|
const map = shallowRef(null);
|
|
5118
5122
|
const legend = ref$1([]);
|
|
5119
|
-
const isSatellite = ref$1(false);
|
|
5120
5123
|
const satelliteLayer = shallowRef(null);
|
|
5121
5124
|
shallowRef(null);
|
|
5122
5125
|
const controlBar = shallowRef(null);
|
|
5123
5126
|
const toolBar = shallowRef(null);
|
|
5127
|
+
const mapType = shallowRef(null);
|
|
5124
5128
|
const staticMarkerInstances = shallowRef([]);
|
|
5125
5129
|
const dynamicMarkerInstances = shallowRef([]);
|
|
5126
5130
|
const polylineInstances = shallowRef([]);
|
|
@@ -5308,6 +5312,12 @@ const _sfc_main$5 = {
|
|
|
5308
5312
|
toolBar.value = null;
|
|
5309
5313
|
}
|
|
5310
5314
|
};
|
|
5315
|
+
const clearMapType = () => {
|
|
5316
|
+
if (mapType.value) {
|
|
5317
|
+
map.value.removeControl(mapType.value);
|
|
5318
|
+
mapType.value = null;
|
|
5319
|
+
}
|
|
5320
|
+
};
|
|
5311
5321
|
onMounted$1(async () => {
|
|
5312
5322
|
await initMap();
|
|
5313
5323
|
handleMapEvents();
|
|
@@ -5328,6 +5338,7 @@ const _sfc_main$5 = {
|
|
|
5328
5338
|
clearMapEvents();
|
|
5329
5339
|
clearMapControlBar();
|
|
5330
5340
|
clearMapToolBar();
|
|
5341
|
+
clearMapType();
|
|
5331
5342
|
clearStaticMarkers();
|
|
5332
5343
|
clearDynamicMarkers();
|
|
5333
5344
|
clearPolylines();
|
|
@@ -5357,7 +5368,7 @@ const _sfc_main$5 = {
|
|
|
5357
5368
|
const AMap2 = await AMapLoader.load({
|
|
5358
5369
|
key: props.amapKey,
|
|
5359
5370
|
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"]
|
|
5371
|
+
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
5372
|
});
|
|
5362
5373
|
const mapConfig = {
|
|
5363
5374
|
viewMode: props.viewMode,
|
|
@@ -5373,31 +5384,41 @@ const _sfc_main$5 = {
|
|
|
5373
5384
|
satelliteLayer.value = new AMap2.TileLayer.Satellite({
|
|
5374
5385
|
zIndex: 1
|
|
5375
5386
|
});
|
|
5376
|
-
|
|
5377
|
-
if (!controlBar.value) {
|
|
5378
|
-
controlBar.value = new AMap2.ControlBar({
|
|
5379
|
-
position: {
|
|
5380
|
-
bottom: "120px",
|
|
5381
|
-
zIndex: 20
|
|
5382
|
-
}
|
|
5383
|
-
});
|
|
5384
|
-
map.value.addControl(controlBar.value);
|
|
5385
|
-
}
|
|
5386
|
-
}
|
|
5387
|
-
if (!toolBar.value) {
|
|
5388
|
-
toolBar.value = new AMap2.ToolBar({
|
|
5389
|
-
position: {
|
|
5390
|
-
top: "10px",
|
|
5391
|
-
left: "10px"
|
|
5392
|
-
}
|
|
5393
|
-
});
|
|
5394
|
-
map.value.addControl(toolBar.value);
|
|
5395
|
-
}
|
|
5387
|
+
setMapControls();
|
|
5396
5388
|
state.currentZoom = map.value.getZoom();
|
|
5397
5389
|
} catch (error) {
|
|
5398
5390
|
console.error("Failed to load AMap:", error);
|
|
5399
5391
|
}
|
|
5400
5392
|
};
|
|
5393
|
+
const setMapControls = () => {
|
|
5394
|
+
if (props.showToolBar && !toolBar.value) {
|
|
5395
|
+
toolBar.value = new AMap.ToolBar({
|
|
5396
|
+
position: {
|
|
5397
|
+
top: "initial",
|
|
5398
|
+
left: "initial"
|
|
5399
|
+
}
|
|
5400
|
+
});
|
|
5401
|
+
map.value.addControl(toolBar.value);
|
|
5402
|
+
}
|
|
5403
|
+
if (props.showControlbar && !controlBar.value) {
|
|
5404
|
+
controlBar.value = new AMap.ControlBar({
|
|
5405
|
+
position: {
|
|
5406
|
+
top: "initial",
|
|
5407
|
+
left: "initial"
|
|
5408
|
+
}
|
|
5409
|
+
});
|
|
5410
|
+
map.value.addControl(controlBar.value);
|
|
5411
|
+
}
|
|
5412
|
+
if (props.showMapType && !mapType.value) {
|
|
5413
|
+
mapType.value = new AMap.MapType({
|
|
5414
|
+
position: {
|
|
5415
|
+
top: "initial",
|
|
5416
|
+
left: "initial"
|
|
5417
|
+
}
|
|
5418
|
+
});
|
|
5419
|
+
map.value.addControl(mapType.value);
|
|
5420
|
+
}
|
|
5421
|
+
};
|
|
5401
5422
|
const parsePosition = (position) => {
|
|
5402
5423
|
if (typeof position === "string" && position.includes(",")) {
|
|
5403
5424
|
return position.split(",").map(Number);
|
|
@@ -5511,17 +5532,6 @@ const _sfc_main$5 = {
|
|
|
5511
5532
|
toggleOverlayGroupVisibility(type, isVisible);
|
|
5512
5533
|
});
|
|
5513
5534
|
};
|
|
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
5535
|
const drawStaticMarkers = (markers) => {
|
|
5526
5536
|
console.log("123213", markers);
|
|
5527
5537
|
markers.forEach((marker) => {
|
|
@@ -5941,11 +5951,9 @@ const _sfc_main$5 = {
|
|
|
5941
5951
|
expose({
|
|
5942
5952
|
fitView,
|
|
5943
5953
|
updateCenter,
|
|
5944
|
-
handleLayerChange,
|
|
5945
5954
|
setZoomAndCenter
|
|
5946
5955
|
});
|
|
5947
5956
|
return (_ctx, _cache) => {
|
|
5948
|
-
const _component_el_switch = resolveComponent("el-switch");
|
|
5949
5957
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
5950
5958
|
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
5951
5959
|
return openBlock(), createElementBlock("div", {
|
|
@@ -5955,19 +5963,10 @@ const _sfc_main$5 = {
|
|
|
5955
5963
|
ref: mapContainer
|
|
5956
5964
|
}, [
|
|
5957
5965
|
createElementVNode("div", _hoisted_1$4, [
|
|
5958
|
-
__props.
|
|
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, [
|
|
5966
|
+
__props.legendConfig.length ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
5968
5967
|
createVNode(_component_el_checkbox_group, {
|
|
5969
5968
|
modelValue: legend.value,
|
|
5970
|
-
"onUpdate:modelValue": _cache[
|
|
5969
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => legend.value = $event),
|
|
5971
5970
|
onChange: handleLegendChange
|
|
5972
5971
|
}, {
|
|
5973
5972
|
default: withCtx(() => [
|
|
@@ -5991,7 +5990,7 @@ const _sfc_main$5 = {
|
|
|
5991
5990
|
};
|
|
5992
5991
|
}
|
|
5993
5992
|
};
|
|
5994
|
-
const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
5993
|
+
const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-8c2ed7f7"]]);
|
|
5995
5994
|
const index_vue_vue_type_style_index_0_scoped_761d2ab4_lang = "";
|
|
5996
5995
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-761d2ab4"), n = n(), popScopeId(), n);
|
|
5997
5996
|
const _hoisted_1$3 = {
|