sctj-components 1.0.56 → 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.
- package/lib/sctj-components.es.js +60 -55
- 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_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,16 +5102,17 @@ const _sfc_main$5 = {
|
|
|
5110
5102
|
setup(__props, { expose, emit }) {
|
|
5111
5103
|
const props = __props;
|
|
5112
5104
|
useCssVars((_ctx) => ({
|
|
5113
|
-
"
|
|
5114
|
-
"
|
|
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);
|
|
5114
|
+
const toolBar = shallowRef(null);
|
|
5115
|
+
const mapType = shallowRef(null);
|
|
5123
5116
|
const staticMarkerInstances = shallowRef([]);
|
|
5124
5117
|
const dynamicMarkerInstances = shallowRef([]);
|
|
5125
5118
|
const polylineInstances = shallowRef([]);
|
|
@@ -5301,6 +5294,18 @@ const _sfc_main$5 = {
|
|
|
5301
5294
|
controlBar.value = null;
|
|
5302
5295
|
}
|
|
5303
5296
|
};
|
|
5297
|
+
const clearMapToolBar = () => {
|
|
5298
|
+
if (toolBar.value) {
|
|
5299
|
+
map.value.removeControl(toolBar.value);
|
|
5300
|
+
toolBar.value = null;
|
|
5301
|
+
}
|
|
5302
|
+
};
|
|
5303
|
+
const clearMapType = () => {
|
|
5304
|
+
if (mapType.value) {
|
|
5305
|
+
map.value.removeControl(mapType.value);
|
|
5306
|
+
mapType.value = null;
|
|
5307
|
+
}
|
|
5308
|
+
};
|
|
5304
5309
|
onMounted$1(async () => {
|
|
5305
5310
|
await initMap();
|
|
5306
5311
|
handleMapEvents();
|
|
@@ -5320,6 +5325,8 @@ const _sfc_main$5 = {
|
|
|
5320
5325
|
if (map.value) {
|
|
5321
5326
|
clearMapEvents();
|
|
5322
5327
|
clearMapControlBar();
|
|
5328
|
+
clearMapToolBar();
|
|
5329
|
+
clearMapType();
|
|
5323
5330
|
clearStaticMarkers();
|
|
5324
5331
|
clearDynamicMarkers();
|
|
5325
5332
|
clearPolylines();
|
|
@@ -5349,13 +5356,14 @@ const _sfc_main$5 = {
|
|
|
5349
5356
|
const AMap2 = await AMapLoader.load({
|
|
5350
5357
|
key: props.amapKey,
|
|
5351
5358
|
version: "2.0",
|
|
5352
|
-
plugins: ["AMap.Marker", "AMap.Polyline", "AMap.Polygon", "AMap.BezierCurve", "AMap.Circle", "AMap.Text", "AMap.LabelMarker", "AMap.BezierCurveEditor", "AMap.TileLayer.Satellite", "AMap.ControlBar", "AMap.OverlayGroup"]
|
|
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"]
|
|
5353
5360
|
});
|
|
5354
5361
|
const mapConfig = {
|
|
5355
5362
|
viewMode: props.viewMode,
|
|
5356
5363
|
zoom: 15,
|
|
5357
5364
|
mapStyle: props.mapStyle,
|
|
5358
|
-
center: parsePosition(props.center) || [116.397428, 39.90923]
|
|
5365
|
+
center: parsePosition(props.center) || [116.397428, 39.90923],
|
|
5366
|
+
zooms: [3, 25]
|
|
5359
5367
|
};
|
|
5360
5368
|
if (props.viewMode === "3D") {
|
|
5361
5369
|
mapConfig.pitch = 45;
|
|
@@ -5368,13 +5376,32 @@ const _sfc_main$5 = {
|
|
|
5368
5376
|
if (!controlBar.value) {
|
|
5369
5377
|
controlBar.value = new AMap2.ControlBar({
|
|
5370
5378
|
position: {
|
|
5371
|
-
bottom: "
|
|
5372
|
-
|
|
5379
|
+
bottom: "10px",
|
|
5380
|
+
right: "10px"
|
|
5373
5381
|
}
|
|
5374
5382
|
});
|
|
5375
5383
|
map.value.addControl(controlBar.value);
|
|
5376
5384
|
}
|
|
5377
5385
|
}
|
|
5386
|
+
if (!toolBar.value) {
|
|
5387
|
+
toolBar.value = new AMap2.ToolBar({
|
|
5388
|
+
position: {
|
|
5389
|
+
top: "25px",
|
|
5390
|
+
left: "20px"
|
|
5391
|
+
}
|
|
5392
|
+
});
|
|
5393
|
+
map.value.addControl(toolBar.value);
|
|
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
|
+
}
|
|
5378
5405
|
state.currentZoom = map.value.getZoom();
|
|
5379
5406
|
} catch (error) {
|
|
5380
5407
|
console.error("Failed to load AMap:", error);
|
|
@@ -5493,17 +5520,6 @@ const _sfc_main$5 = {
|
|
|
5493
5520
|
toggleOverlayGroupVisibility(type, isVisible);
|
|
5494
5521
|
});
|
|
5495
5522
|
};
|
|
5496
|
-
const handleLayerChange = (value) => {
|
|
5497
|
-
if (value) {
|
|
5498
|
-
map.value.setMapStyle(null);
|
|
5499
|
-
satelliteLayer.value.setMap(map.value);
|
|
5500
|
-
map.value.setFeatures(["bg"]);
|
|
5501
|
-
} else {
|
|
5502
|
-
map.value.setMapStyle(props.mapStyle);
|
|
5503
|
-
satelliteLayer.value.setMap(null);
|
|
5504
|
-
map.value.setFeatures(["bg", "building", "point", "road", "land", "poi"]);
|
|
5505
|
-
}
|
|
5506
|
-
};
|
|
5507
5523
|
const drawStaticMarkers = (markers) => {
|
|
5508
5524
|
console.log("123213", markers);
|
|
5509
5525
|
markers.forEach((marker) => {
|
|
@@ -5923,11 +5939,9 @@ const _sfc_main$5 = {
|
|
|
5923
5939
|
expose({
|
|
5924
5940
|
fitView,
|
|
5925
5941
|
updateCenter,
|
|
5926
|
-
handleLayerChange,
|
|
5927
5942
|
setZoomAndCenter
|
|
5928
5943
|
});
|
|
5929
5944
|
return (_ctx, _cache) => {
|
|
5930
|
-
const _component_el_switch = resolveComponent("el-switch");
|
|
5931
5945
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
5932
5946
|
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
5933
5947
|
return openBlock(), createElementBlock("div", {
|
|
@@ -5937,19 +5951,10 @@ const _sfc_main$5 = {
|
|
|
5937
5951
|
ref: mapContainer
|
|
5938
5952
|
}, [
|
|
5939
5953
|
createElementVNode("div", _hoisted_1$4, [
|
|
5940
|
-
__props.
|
|
5941
|
-
createVNode(_component_el_switch, {
|
|
5942
|
-
modelValue: isSatellite.value,
|
|
5943
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isSatellite.value = $event),
|
|
5944
|
-
"active-text": "\u536B\u661F\u56FE",
|
|
5945
|
-
"inactive-text": "\u6807\u51C6\u56FE",
|
|
5946
|
-
onChange: handleLayerChange
|
|
5947
|
-
}, null, 8, ["modelValue"])
|
|
5948
|
-
])) : createCommentVNode("", true),
|
|
5949
|
-
__props.legendConfig.length ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
5954
|
+
__props.legendConfig.length ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
5950
5955
|
createVNode(_component_el_checkbox_group, {
|
|
5951
5956
|
modelValue: legend.value,
|
|
5952
|
-
"onUpdate:modelValue": _cache[
|
|
5957
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => legend.value = $event),
|
|
5953
5958
|
onChange: handleLegendChange
|
|
5954
5959
|
}, {
|
|
5955
5960
|
default: withCtx(() => [
|
|
@@ -5973,7 +5978,7 @@ const _sfc_main$5 = {
|
|
|
5973
5978
|
};
|
|
5974
5979
|
}
|
|
5975
5980
|
};
|
|
5976
|
-
const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
5981
|
+
const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-976b8061"]]);
|
|
5977
5982
|
const index_vue_vue_type_style_index_0_scoped_761d2ab4_lang = "";
|
|
5978
5983
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-761d2ab4"), n = n(), popScopeId(), n);
|
|
5979
5984
|
const _hoisted_1$3 = {
|