qy-vue-plugins 1.0.2-beta → 1.0.2
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/dist/apply-element-plus-theme.cjs +1 -0
- package/dist/apply-element-plus-theme.mjs +22 -0
- package/dist/beijihua-map-icon/hiper-map-icon-1.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-10.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-11.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-12.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-13.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-14.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-15.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-16.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-17.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-18.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-19.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-2.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-20.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-21.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-22.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-23.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-24.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-25.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-26.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-27.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-28.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-29.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-3.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-30.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-31.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-32.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-33.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-34.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-35.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-36.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-37.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-38.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-39.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-4.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-40.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-41.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-42.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-43.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-44.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-45.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-46.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-47.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-48.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-49.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-5.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-50.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-51.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-52.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-53.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-54.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-55.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-56.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-57.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-58.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-59.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-6.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-60.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-61.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-62.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-63.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-64.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-65.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-7.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-8.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-9.png +0 -0
- package/dist/chunks/{EventKeys-1aL9cgT0.js → EventKeys-DZ_Hahro.js} +4 -4
- package/dist/chunks/{MapTools.vue_vue_type_style_index_0_lang-C3__NQXN.js → MapTools.vue_vue_type_style_index_0_lang-C0C9opKY.js} +1 -1
- package/dist/chunks/{MapTools.vue_vue_type_style_index_0_lang-BJi8BdV8.js → MapTools.vue_vue_type_style_index_0_lang-CZ_dEmHg.js} +2 -2
- package/dist/chunks/{ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-C8wD6gZS.js → ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-CjJ3e53H.js} +12 -13
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-m9hkScAC.js +1 -0
- package/dist/chunks/apply-element-plus-theme-DdN9KOhk.js +1 -0
- package/dist/chunks/apply-element-plus-theme-UHVxP4VN.js +22 -0
- package/dist/chunks/aria-B5rZ0WFy.js +5 -0
- package/dist/chunks/aria-BEkkcjlH.js +115 -0
- package/dist/chunks/constant-Bq4ASE9Q.js +1 -0
- package/dist/chunks/{constant-BqK1UnfT.js → constant-E83OJqPQ.js} +17 -36
- package/dist/chunks/debounce-CHS-N31c.js +1 -0
- package/dist/chunks/debounce-DBq5TVsN.js +55 -0
- package/dist/chunks/{el-loading-CBXyo6la.js → directive-C-4KkhaM.js} +2 -2
- package/dist/chunks/directive-DRO4tFsQ.js +1 -0
- package/dist/chunks/index-03UF6hCZ.js +14 -0
- package/dist/chunks/index-B6SD5IcP.js +1 -0
- package/dist/chunks/{index-DHO_7w-5.js → index-BCQYbM-I.js} +22 -22
- package/dist/chunks/{el-input-DCpRXscw.js → index-BdloQTv1.js} +171 -175
- package/dist/chunks/{el-overlay-BJQjrf5W.js → index-BeskO4C8.js} +76 -75
- package/dist/chunks/index-BoFuR9-k.js +2 -0
- package/dist/chunks/index-Bs9zhLlD.js +1 -0
- package/dist/chunks/index-C-WIOEu8.js +1 -0
- package/dist/chunks/index-CD-vLVPt.js +1 -0
- package/dist/chunks/index-CD4bijv7.js +1 -0
- package/dist/chunks/index-CHRyd-8X.js +1 -0
- package/dist/chunks/{el-button-Dh7ROB0R.js → index-CgKiWbxR.js} +110 -117
- package/dist/chunks/{el-popper-zUql4Vp-.js → index-Cv_K9rbv.js} +47 -46
- package/dist/chunks/{el-select-Dil0JEvg.js → index-Cyrc4mj-.js} +467 -492
- package/dist/chunks/index-DLBjU25P.js +3 -0
- package/dist/chunks/index-DgwQEHlD.js +12 -0
- package/dist/chunks/index-LWCtnbZP.js +13 -0
- package/dist/chunks/index-OtE8c8y9.js +1 -0
- package/dist/chunks/index-Qzqd5jTh.js +1 -0
- package/dist/chunks/index-VbRYJz2E.js +1 -0
- package/dist/chunks/index-YiSmXvH8.js +975 -0
- package/dist/chunks/{index-Dq3Y5qiS.js → index-_At9ftZd.js} +35 -35
- package/dist/chunks/{index-Cw_w6CLf.js → index-ieQ_IULW.js} +11 -11
- package/dist/chunks/{el-form-item-CXLLocXw.js → index-mDs-Bipv.js} +151 -150
- package/dist/chunks/mapSetting-B1a88k-v.js +635 -0
- package/dist/chunks/mapSetting-Ba76lOJd.js +1 -0
- package/dist/chunks/{base-DfCoKyyG.js → style-COMeMpO8.js} +81 -80
- package/dist/chunks/{base-DK_JFP90.js → style-DiDWGUIe.js} +1 -1
- package/dist/chunks/toNumber-CCcOx5KD.js +1 -0
- package/dist/chunks/toNumber-CDwzVyqL.js +30 -0
- package/dist/chunks/use-form-common-props-BQtZKazE.js +66 -0
- package/dist/chunks/use-form-common-props-SdGVhyVk.js +1 -0
- package/dist/chunks/{use-global-config-DXAWJFeA.js → use-global-config-Ba3i7fKX.js} +18 -17
- package/dist/chunks/use-global-config-PaSl-b_9.js +1 -0
- package/dist/chunks/utils-BJ8Lu8TY.js +516 -0
- package/dist/chunks/utils-CrwGKkIz.js +1 -0
- package/dist/chunks/vnode-CvqQoLhR.js +1 -0
- package/dist/chunks/vnode-DpjFDm4v.js +70 -0
- package/dist/element-plus-style.cjs +1 -0
- package/dist/element-plus-style.mjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +13 -10
- package/dist/manageTable/ReplaceSpeciesNameDialog.cjs +1 -1
- package/dist/manageTable/ReplaceSpeciesNameDialog.mjs +1 -1
- package/dist/manageTable/index.cjs +1 -1
- package/dist/manageTable/index.mjs +10 -8
- package/dist/manageTable/manageTable.cjs +1 -1
- package/dist/manageTable/manageTable.mjs +1 -1
- package/dist/mapbox/components/VideoDialog.cjs +1 -1
- package/dist/mapbox/components/VideoDialog.mjs +16 -17
- package/dist/mapbox/widgets/LayerAttributeDialog.cjs +1 -1
- package/dist/mapbox/widgets/LayerAttributeDialog.mjs +30 -31
- package/dist/mapbox.cjs +1 -1
- package/dist/mapbox.mjs +22 -20
- package/dist/mapboxV2/MapView.cjs +1 -1
- package/dist/mapboxV2/MapView.mjs +3728 -1256
- package/dist/mapboxV2/components/MapLegend.cjs +1 -1
- package/dist/mapboxV2/components/MapLegend.mjs +51 -167
- package/dist/mapboxV2/components/MapTools.cjs +1 -1
- package/dist/mapboxV2/components/MapTools.mjs +1 -1
- package/dist/mapboxV2/components/VideoDialog.cjs +1 -1
- package/dist/mapboxV2/components/VideoDialog.mjs +12 -13
- package/dist/mapboxV2/components/mapSetting.cjs +1 -1
- package/dist/mapboxV2/components/mapSetting.mjs +1 -1
- package/dist/mapboxV2/components/mapTopic.cjs +1 -1
- package/dist/mapboxV2/components/mapTopic.mjs +349 -446
- package/dist/mapboxV2/constant.cjs +1 -1
- package/dist/mapboxV2/constant.mjs +13 -17
- package/dist/mapboxV2/useTif.cjs +1 -1
- package/dist/mapboxV2/useTif.mjs +86 -86
- package/dist/mapboxV2/utils.cjs +1 -1
- package/dist/mapboxV2/utils.mjs +362 -279
- package/dist/mapboxV2/widgets/CustomShapeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/CustomShapeDialog.mjs +87 -67
- package/dist/mapboxV2/widgets/IconPicker.cjs +1 -1
- package/dist/mapboxV2/widgets/IconPicker.mjs +59 -48
- package/dist/mapboxV2/widgets/LayerAttributeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/LayerAttributeDialog.mjs +17 -18
- package/dist/mapboxV2/widgets/LayerDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/LayerDialog.mjs +94 -86
- package/dist/mapboxV2/widgets/LegendDialogLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendDialogLine.mjs +95 -90
- package/dist/mapboxV2/widgets/LegendDialogPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendDialogPoint.mjs +90 -85
- package/dist/mapboxV2/widgets/LegendLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendLine.mjs +28 -61
- package/dist/mapboxV2/widgets/LegendPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPoint.mjs +52 -66
- package/dist/mapboxV2/widgets/LegendPopInterestPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopInterestPoint.mjs +16 -18
- package/dist/mapboxV2/widgets/LegendPopLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopLine.mjs +72 -73
- package/dist/mapboxV2/widgets/LegendPopPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopPoint.mjs +113 -112
- package/dist/mapboxV2/widgets/LegendShape.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendShape.mjs +17 -14
- package/dist/mapboxV2/widgets/LegendSymbol.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendSymbol.mjs +5 -5
- package/dist/mapboxV2/widgets/ShapeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/ShapeDialog.mjs +1663 -1422
- package/dist/mapboxV2/widgets/TopicItemPop.cjs +1 -1
- package/dist/mapboxV2/widgets/TopicItemPop.mjs +2 -2
- package/dist/mapboxV2/widgets/TopicPop.mjs +1 -1
- package/dist/mapboxV2.cjs +3 -3
- package/dist/mapboxV2.mjs +673 -824
- package/dist/qy-vue-plugins.css +1 -1
- package/dist/types/apply-element-plus-theme.d.ts +1 -0
- package/dist/types/element-plus-style.d.ts +0 -0
- package/dist/types/manageTable/manageTable.vue.d.ts +2 -2
- package/dist/types/mapboxV2/MapView.vue.d.ts +130 -3
- package/dist/types/mapboxV2/components/mapTopic.vue.d.ts +10 -591
- package/dist/types/mapboxV2/types/map-layer.d.ts +185 -3
- package/dist/types/mapboxV2/useTif.d.ts +2 -2
- package/dist/types/mapboxV2/utils/geojsonRenderer.d.ts +123 -0
- package/dist/types/mapboxV2/utils.d.ts +5 -0
- package/dist/types/mapboxV2/widgets/IconPicker.vue.d.ts +8 -10
- package/dist/types/mapboxV2/widgets/index.d.ts +3 -0
- package/dist/types/mapboxV2/widgets/track/TrackImageDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/TrackTextDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/TrackVoiceDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/index.d.ts +3 -0
- package/dist/types/store/mapStore.d.ts +122 -0
- package/dist/types/types/map.d.ts +111 -7
- package/package/apply-element-plus-theme.ts +23 -0
- package/package/css/common.scss +33 -0
- package/package/css/element-plus-theme.scss +30 -0
- package/package/css/map.scss +42 -0
- package/package/element-plus-style.ts +48 -0
- package/package/manageTable/index.ts +5 -0
- package/package/mapbox/index.ts +5 -0
- package/package/mapboxV2/constant.ts +4 -12
- package/package/mapboxV2/index.ts +5 -0
- package/package/mapboxV2/useTif.ts +18 -13
- package/package/mapboxV2/utils.ts +303 -143
- package/package/mapboxV2/widgets/index.ts +5 -0
- package/package/types/map.ts +129 -32
- package/package.json +27 -3
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-DnYed7Kh.js +0 -1
- package/dist/chunks/aria-B-Cm8P6h.js +0 -5
- package/dist/chunks/aria-GiGFrmP1.js +0 -175
- package/dist/chunks/constant-mXEWtcQf.js +0 -1
- package/dist/chunks/el-button-w9UOZkmd.js +0 -3
- package/dist/chunks/el-color-picker-panel-BWjyXHBz.js +0 -1
- package/dist/chunks/el-color-picker-panel-BfOVWDkH.js +0 -1024
- package/dist/chunks/el-form-item-ECXS8pAs.js +0 -12
- package/dist/chunks/el-input-tAiZBp5N.js +0 -1
- package/dist/chunks/el-loading-BDhLUhme.js +0 -1
- package/dist/chunks/el-overlay-BEd31jh6.js +0 -1
- package/dist/chunks/el-popper-C6hJmTeX.js +0 -1
- package/dist/chunks/el-select-BXP0YqqB.js +0 -1
- package/dist/chunks/index-BIPr63lF.js +0 -1
- package/dist/chunks/index-BIaoqnN4.js +0 -1
- package/dist/chunks/index-D9eecDRK.js +0 -2
- package/dist/chunks/mapSetting-BRasGCqk.js +0 -597
- package/dist/chunks/mapSetting-CfE-5SCc.js +0 -1
- package/dist/chunks/use-global-config-y6gk28OO.js +0 -1
- package/dist/chunks/utils-CZxmwfl_.js +0 -1
- package/dist/chunks/utils-n1i0zWzc.js +0 -454
- package/dist/chunks/vnode-CyTnPoXJ.js +0 -47
- package/dist/chunks/vnode-eKMqbqaC.js +0 -1
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-BRUTHTNe.js +0 -12
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-CksusXxb.js +0 -28
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-DchJeGnp.js +0 -1
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-yXKDlNvO.js +0 -17
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import { defineComponent as w, ref as s, reactive as
|
|
2
|
-
import { p as
|
|
3
|
-
import { c as T } from "../../chunks/EventKeys-
|
|
4
|
-
import { storeToRefs as
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import { ElDialog as
|
|
8
|
-
import { _ as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as w, ref as s, reactive as c, computed as L, createBlock as v, openBlock as f, unref as o, withCtx as i, createVNode as t, createElementBlock as U, Fragment as _, renderList as q, createElementVNode as p, createTextVNode as V } from "vue";
|
|
2
|
+
import { p as B } from "../../chunks/utils-BJ8Lu8TY.js";
|
|
3
|
+
import { c as T } from "../../chunks/EventKeys-DZ_Hahro.js";
|
|
4
|
+
import { storeToRefs as D } from "pinia";
|
|
5
|
+
import { u as I } from "../../chunks/mapStore-Eu13mnJg.js";
|
|
6
|
+
import { m as W } from "../../chunks/constant-E83OJqPQ.js";
|
|
7
|
+
import { ElDialog as F, ElForm as R, ElFormItem as d, ElSelect as k, ElOption as g, ElInput as b, ElInputNumber as O, ElColorPicker as J, ElSwitch as M, ElButton as P } from "element-plus";
|
|
8
|
+
import { _ as $ } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const j = { class: "width-input-container" }, z = { class: "dialog-footer" }, A = /* @__PURE__ */ w({
|
|
10
10
|
__name: "LegendDialogLine",
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
11
|
+
setup(G, { expose: N }) {
|
|
12
|
+
const u = s(!1), m = s(), y = I(), { topTopicList: x } = D(y), e = c({
|
|
13
13
|
pid: "",
|
|
14
14
|
layerName: "",
|
|
15
15
|
defaultChecked: 0,
|
|
16
|
-
|
|
17
|
-
}),
|
|
16
|
+
layerPaintConfig: {}
|
|
17
|
+
}), C = L({
|
|
18
|
+
get: () => e.defaultChecked === 1,
|
|
19
|
+
set: (r) => {
|
|
20
|
+
e.defaultChecked = r ? 1 : 0;
|
|
21
|
+
}
|
|
22
|
+
}), S = c({
|
|
18
23
|
pid: [{ required: !0, message: "请选择所属专题", trigger: "change" }],
|
|
19
24
|
layerName: [
|
|
20
25
|
{ required: !0, message: "请输入图层名称", trigger: "blur" },
|
|
@@ -24,89 +29,89 @@ const M = { class: "width-input-container" }, $ = { class: "dialog-footer" }, j
|
|
|
24
29
|
lineShape: [
|
|
25
30
|
{ required: !1, message: "请选择线条形状", trigger: "change" }
|
|
26
31
|
]
|
|
27
|
-
}),
|
|
28
|
-
if (
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
}), n = s(), h = (r, l) => {
|
|
33
|
+
if (u.value = !0, n.value = r, r) {
|
|
34
|
+
const a = B(
|
|
35
|
+
r.layerPaintConfig,
|
|
36
|
+
r.layerType
|
|
32
37
|
);
|
|
33
|
-
|
|
38
|
+
a.lineStyle || (a.lineStyle = "solid"), e.pid = r.pid ?? "", e.layerName = r.layerName || "", e.defaultChecked = Number(r.defaultChecked) || 0, e.layerPaintConfig = a || {};
|
|
34
39
|
} else
|
|
35
|
-
e.pid = "", e.layerName = "", e.defaultChecked = 0, e.
|
|
40
|
+
e.pid = "", e.layerName = "", e.defaultChecked = 0, e.layerPaintConfig = {};
|
|
36
41
|
setTimeout(() => {
|
|
37
42
|
m.value?.clearValidate();
|
|
38
43
|
});
|
|
39
44
|
}, E = async () => {
|
|
40
45
|
if (m.value)
|
|
41
46
|
try {
|
|
42
|
-
await m.value.validate((
|
|
43
|
-
|
|
44
|
-
e.
|
|
45
|
-
),
|
|
47
|
+
await m.value.validate((r, l) => {
|
|
48
|
+
r ? (console.log("保存数据:", e), n.value.pid = e.pid, n.value.layerName = e.layerName, n.value.defaultChecked = e.defaultChecked, n.value.layerPaintConfig = JSON.stringify(
|
|
49
|
+
e.layerPaintConfig
|
|
50
|
+
), n.value.targetScreen = "normal", T.emit(n.value), u.value = !1) : console.error("表单验证失败", l);
|
|
46
51
|
});
|
|
47
|
-
} catch (
|
|
48
|
-
console.error("表单验证出错",
|
|
52
|
+
} catch (r) {
|
|
53
|
+
console.error("表单验证出错", r);
|
|
49
54
|
}
|
|
50
55
|
};
|
|
51
|
-
return
|
|
52
|
-
open:
|
|
53
|
-
}), (
|
|
56
|
+
return N({
|
|
57
|
+
open: h
|
|
58
|
+
}), (r, l) => (f(), v(o(F), {
|
|
54
59
|
title: "图层配置",
|
|
55
|
-
modelValue:
|
|
56
|
-
"onUpdate:modelValue": l[8] || (l[8] = (
|
|
60
|
+
modelValue: u.value,
|
|
61
|
+
"onUpdate:modelValue": l[8] || (l[8] = (a) => u.value = a),
|
|
57
62
|
width: "600px",
|
|
58
|
-
center:
|
|
63
|
+
center: o(y).dialogConfig.center,
|
|
59
64
|
"close-on-click-modal": !1,
|
|
60
65
|
class: "legend-dialog"
|
|
61
66
|
}, {
|
|
62
|
-
footer:
|
|
63
|
-
|
|
64
|
-
t(
|
|
65
|
-
onClick: l[7] || (l[7] = (
|
|
67
|
+
footer: i(() => [
|
|
68
|
+
p("span", z, [
|
|
69
|
+
t(o(P), {
|
|
70
|
+
onClick: l[7] || (l[7] = (a) => u.value = !1)
|
|
66
71
|
}, {
|
|
67
|
-
default:
|
|
72
|
+
default: i(() => [...l[10] || (l[10] = [
|
|
68
73
|
V("关闭", -1)
|
|
69
74
|
])]),
|
|
70
75
|
_: 1
|
|
71
76
|
}),
|
|
72
|
-
t(
|
|
77
|
+
t(o(P), {
|
|
73
78
|
type: "primary",
|
|
74
79
|
onClick: E
|
|
75
80
|
}, {
|
|
76
|
-
default:
|
|
81
|
+
default: i(() => [...l[11] || (l[11] = [
|
|
77
82
|
V("确认保存", -1)
|
|
78
83
|
])]),
|
|
79
84
|
_: 1
|
|
80
85
|
})
|
|
81
86
|
])
|
|
82
87
|
]),
|
|
83
|
-
default:
|
|
84
|
-
t(
|
|
88
|
+
default: i(() => [
|
|
89
|
+
t(o(R), {
|
|
85
90
|
model: e,
|
|
86
91
|
ref_key: "formRef",
|
|
87
92
|
ref: m,
|
|
88
|
-
rules:
|
|
93
|
+
rules: S,
|
|
89
94
|
"label-width": "80px"
|
|
90
95
|
}, {
|
|
91
|
-
default:
|
|
92
|
-
t(
|
|
96
|
+
default: i(() => [
|
|
97
|
+
t(o(d), {
|
|
93
98
|
label: "所属专题",
|
|
94
99
|
prop: "pid",
|
|
95
100
|
required: ""
|
|
96
101
|
}, {
|
|
97
|
-
default:
|
|
98
|
-
t(
|
|
102
|
+
default: i(() => [
|
|
103
|
+
t(o(k), {
|
|
99
104
|
modelValue: e.pid,
|
|
100
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
105
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => e.pid = a),
|
|
101
106
|
placeholder: "请选择专题",
|
|
102
107
|
clearable: "",
|
|
103
108
|
class: "full-width"
|
|
104
109
|
}, {
|
|
105
|
-
default:
|
|
106
|
-
(
|
|
107
|
-
key:
|
|
108
|
-
label:
|
|
109
|
-
value:
|
|
110
|
+
default: i(() => [
|
|
111
|
+
(f(!0), U(_, null, q(o(x), (a) => (f(), v(o(g), {
|
|
112
|
+
key: a.id,
|
|
113
|
+
label: a.layerName,
|
|
114
|
+
value: a.id
|
|
110
115
|
}, null, 8, ["label", "value"]))), 128))
|
|
111
116
|
]),
|
|
112
117
|
_: 1
|
|
@@ -114,55 +119,55 @@ const M = { class: "width-input-container" }, $ = { class: "dialog-footer" }, j
|
|
|
114
119
|
]),
|
|
115
120
|
_: 1
|
|
116
121
|
}),
|
|
117
|
-
t(
|
|
122
|
+
t(o(d), {
|
|
118
123
|
label: "图层名称",
|
|
119
124
|
prop: "layerName",
|
|
120
125
|
required: ""
|
|
121
126
|
}, {
|
|
122
|
-
default:
|
|
123
|
-
t(
|
|
127
|
+
default: i(() => [
|
|
128
|
+
t(o(b), {
|
|
124
129
|
modelValue: e.layerName,
|
|
125
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
130
|
+
"onUpdate:modelValue": l[1] || (l[1] = (a) => e.layerName = a),
|
|
126
131
|
placeholder: "请输入图层名称"
|
|
127
132
|
}, null, 8, ["modelValue"])
|
|
128
133
|
]),
|
|
129
134
|
_: 1
|
|
130
135
|
}),
|
|
131
|
-
t(
|
|
136
|
+
t(o(d), {
|
|
132
137
|
label: "线条宽度",
|
|
133
|
-
prop: "
|
|
138
|
+
prop: "layerPaintConfig.lineWidth"
|
|
134
139
|
}, {
|
|
135
|
-
default:
|
|
136
|
-
|
|
137
|
-
t(
|
|
138
|
-
modelValue: e.
|
|
139
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
140
|
+
default: i(() => [
|
|
141
|
+
p("div", j, [
|
|
142
|
+
t(o(O), {
|
|
143
|
+
modelValue: e.layerPaintConfig.lineWidth,
|
|
144
|
+
"onUpdate:modelValue": l[2] || (l[2] = (a) => e.layerPaintConfig.lineWidth = a),
|
|
140
145
|
min: 1,
|
|
141
146
|
max: 20,
|
|
142
147
|
class: "line-width-input"
|
|
143
148
|
}, null, 8, ["modelValue"]),
|
|
144
|
-
l[9] || (l[9] =
|
|
149
|
+
l[9] || (l[9] = p("div", { class: "unit-label" }, "像素", -1))
|
|
145
150
|
])
|
|
146
151
|
]),
|
|
147
152
|
_: 1
|
|
148
153
|
}),
|
|
149
|
-
t(
|
|
154
|
+
t(o(d), {
|
|
150
155
|
label: "线条形状",
|
|
151
156
|
prop: "lineShape"
|
|
152
157
|
}, {
|
|
153
|
-
default:
|
|
154
|
-
t(
|
|
155
|
-
modelValue: e.
|
|
156
|
-
"onUpdate:modelValue": l[3] || (l[3] = (
|
|
158
|
+
default: i(() => [
|
|
159
|
+
t(o(k), {
|
|
160
|
+
modelValue: e.layerPaintConfig.lineStyle,
|
|
161
|
+
"onUpdate:modelValue": l[3] || (l[3] = (a) => e.layerPaintConfig.lineStyle = a),
|
|
157
162
|
placeholder: "请选择线条形状",
|
|
158
163
|
class: "full-width"
|
|
159
164
|
}, {
|
|
160
|
-
default:
|
|
161
|
-
t(
|
|
165
|
+
default: i(() => [
|
|
166
|
+
t(o(g), {
|
|
162
167
|
label: "实线",
|
|
163
168
|
value: "solid"
|
|
164
169
|
}),
|
|
165
|
-
t(
|
|
170
|
+
t(o(g), {
|
|
166
171
|
label: "虚线",
|
|
167
172
|
value: "dotted"
|
|
168
173
|
})
|
|
@@ -172,42 +177,42 @@ const M = { class: "width-input-container" }, $ = { class: "dialog-footer" }, j
|
|
|
172
177
|
]),
|
|
173
178
|
_: 1
|
|
174
179
|
}),
|
|
175
|
-
t(
|
|
180
|
+
t(o(d), {
|
|
176
181
|
label: "线条颜色",
|
|
177
182
|
prop: "lineColor"
|
|
178
183
|
}, {
|
|
179
|
-
default:
|
|
180
|
-
t(
|
|
181
|
-
modelValue: e.
|
|
182
|
-
"onUpdate:modelValue": l[4] || (l[4] = (
|
|
184
|
+
default: i(() => [
|
|
185
|
+
t(o(J), {
|
|
186
|
+
modelValue: e.layerPaintConfig.lineColor,
|
|
187
|
+
"onUpdate:modelValue": l[4] || (l[4] = (a) => e.layerPaintConfig.lineColor = a),
|
|
183
188
|
"show-alpha": "",
|
|
184
|
-
predefine:
|
|
189
|
+
predefine: o(W)
|
|
185
190
|
}, null, 8, ["modelValue", "predefine"])
|
|
186
191
|
]),
|
|
187
192
|
_: 1
|
|
188
193
|
}),
|
|
189
|
-
t(
|
|
194
|
+
t(o(d), {
|
|
190
195
|
label: "默认加载",
|
|
191
196
|
prop: "defaultLoad"
|
|
192
197
|
}, {
|
|
193
|
-
default:
|
|
194
|
-
t(
|
|
195
|
-
modelValue:
|
|
196
|
-
"onUpdate:modelValue": l[5] || (l[5] = (
|
|
198
|
+
default: i(() => [
|
|
199
|
+
t(o(M), {
|
|
200
|
+
modelValue: C.value,
|
|
201
|
+
"onUpdate:modelValue": l[5] || (l[5] = (a) => C.value = a),
|
|
197
202
|
"active-text": "是",
|
|
198
203
|
"inactive-text": "否"
|
|
199
204
|
}, null, 8, ["modelValue"])
|
|
200
205
|
]),
|
|
201
206
|
_: 1
|
|
202
207
|
}),
|
|
203
|
-
t(
|
|
208
|
+
t(o(d), {
|
|
204
209
|
label: "备注",
|
|
205
210
|
prop: "remark"
|
|
206
211
|
}, {
|
|
207
|
-
default:
|
|
208
|
-
t(
|
|
209
|
-
modelValue: e.
|
|
210
|
-
"onUpdate:modelValue": l[6] || (l[6] = (
|
|
212
|
+
default: i(() => [
|
|
213
|
+
t(o(b), {
|
|
214
|
+
modelValue: e.layerPaintConfig.remark,
|
|
215
|
+
"onUpdate:modelValue": l[6] || (l[6] = (a) => e.layerPaintConfig.remark = a),
|
|
211
216
|
type: "textarea",
|
|
212
217
|
rows: 4,
|
|
213
218
|
placeholder: "请输入备注"
|
|
@@ -222,7 +227,7 @@ const M = { class: "width-input-container" }, $ = { class: "dialog-footer" }, j
|
|
|
222
227
|
_: 1
|
|
223
228
|
}, 8, ["modelValue", "center"]));
|
|
224
229
|
}
|
|
225
|
-
}),
|
|
230
|
+
}), ae = /* @__PURE__ */ $(A, [["__scopeId", "data-v-52f05d83"]]);
|
|
226
231
|
export {
|
|
227
|
-
|
|
232
|
+
ae as default
|
|
228
233
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../../chunks/constant-Bq4ASE9Q.js"),N=require("../../chunks/utils-CrwGKkIz.js"),v=require("../../chunks/EventKeys-BvyQ87Zy.js"),k=require("../../chunks/mapStore-dFPYwvXT.js"),x=require("pinia"),a=require("element-plus"),h=require("../../chunks/_plugin-vue_export-helper-BHFhmbuH.js"),E={class:"icons-container"},_={class:"icons-grid"},w=["onClick"],P=["src","alt"],b={class:"dialog-footer"},B=e.defineComponent({__name:"LegendDialogPoint",setup(S,{expose:c}){const d=k.useMapStore(),f=e.inject("iconOptions",e.ref([])),m=e.computed(()=>{const r=e.unref(f);return Array.isArray(r)&&r.length>0?r:[]}),n=e.ref(!1),u=e.ref(),{topTopicList:p}=x.storeToRefs(d),l=e.reactive({pid:"",layerName:"",defaultChecked:0,layerPaintConfig:{}}),s=e.computed({get:()=>l.defaultChecked===1,set:r=>{l.defaultChecked=r?1:0}}),g=e.reactive({pid:[{required:!0,message:"请选择所属专题",trigger:"change"}],layerName:[{required:!0,message:"请输入图层名称",trigger:"blur"},{min:2,max:50,message:"长度在 2 到 50 个字符",trigger:"blur"}]}),i=e.ref(),C=(r,o)=>{if(n.value=!0,i.value=r,console.log("data-----------",r),console.log("_topicList-----------",o),r){const t=N.parseLayerPaintConfig(r.layerPaintConfig,r.layerType);console.log("config----------",t),l.pid=r.pid??"",l.layerName=r.layerName||"",l.defaultChecked=Number(r.defaultChecked)||0,l.layerPaintConfig=t||{}}else l.pid=0,l.layerName="",l.defaultChecked=0,l.layerPaintConfig={}},V=async()=>{u.value&&await u.value.validate((r,o)=>{r?(console.log("保存数据:",l),i.value={...i.value,targetScreen:"normal",pid:l.pid,layerName:l.layerName,defaultChecked:l.defaultChecked,layerPaintConfig:JSON.stringify(l.layerPaintConfig)},console.log("topic.value----------",i.value),v.createTopicBus.emit(i.value),n.value=!1):console.error("表单验证失败",o)})};return c({open:C}),(r,o)=>(e.openBlock(),e.createBlock(e.unref(a.ElDialog),{title:"图层配置",modelValue:n.value,"onUpdate:modelValue":o[6]||(o[6]=t=>n.value=t),width:"600px",center:e.unref(d).dialogConfig.center,"close-on-click-modal":!1,class:"legend-dialog"},{footer:e.withCtx(()=>[e.createElementVNode("span",b,[e.createVNode(e.unref(a.ElButton),{onClick:o[5]||(o[5]=t=>n.value=!1)},{default:e.withCtx(()=>[...o[7]||(o[7]=[e.createTextVNode("关闭",-1)])]),_:1}),e.createVNode(e.unref(a.ElButton),{type:"primary",onClick:V},{default:e.withCtx(()=>[...o[8]||(o[8]=[e.createTextVNode("确认保存",-1)])]),_:1})])]),default:e.withCtx(()=>[e.createVNode(e.unref(a.ElForm),{model:l,ref_key:"formRef",ref:u,rules:g,"label-position":"right","label-width":"100px",size:"default"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElFormItem),{label:"所属专题",prop:"pid"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElSelect),{modelValue:l.pid,"onUpdate:modelValue":o[0]||(o[0]=t=>l.pid=t),placeholder:"请选择专题",class:"full-width",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),t=>(e.openBlock(),e.createBlock(e.unref(a.ElOption),{key:t.id,label:t.layerName,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"图层名称",prop:"layerName"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElInput),{modelValue:l.layerName,"onUpdate:modelValue":o[1]||(o[1]=t=>l.layerName=t),placeholder:"请输入图层名称"},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"文本颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElColorPicker),{modelValue:l.layerPaintConfig.textColor,"onUpdate:modelValue":o[2]||(o[2]=t=>l.layerPaintConfig.textColor=t),"show-alpha":"",predefine:e.unref(y.mapPointsColors)},null,8,["modelValue","predefine"])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"展示图标"},{default:e.withCtx(()=>[e.createElementVNode("div",E,[e.createVNode(e.unref(a.ElScrollbar),{height:"300px"},{default:e.withCtx(()=>[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id,class:e.normalizeClass(["icon-item",{active:l.layerPaintConfig.iconName===t.id}]),onClick:q=>l.layerPaintConfig.iconName=t.id},[e.createElementVNode("img",{src:t.url,alt:t.name},null,8,P)],10,w))),128))])]),_:1})])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"默认加载"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElSwitch),{modelValue:s.value,"onUpdate:modelValue":o[3]||(o[3]=t=>s.value=t),"active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"备注"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElInput),{modelValue:l.layerPaintConfig.remark,"onUpdate:modelValue":o[4]||(o[4]=t=>l.layerPaintConfig.remark=t),type:"textarea",rows:3,placeholder:"请输入备注"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","center"]))}}),I=h._export_sfc(B,[["__scopeId","data-v-05f40574"]]);exports.default=I;
|
|
@@ -1,105 +1,110 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { p as
|
|
4
|
-
import { c as
|
|
1
|
+
import { defineComponent as L, inject as U, ref as m, computed as C, unref as a, reactive as v, createBlock as k, openBlock as u, withCtx as n, createVNode as r, createElementBlock as c, Fragment as V, renderList as _, createElementVNode as f, normalizeClass as O, createTextVNode as N } from "vue";
|
|
2
|
+
import { m as T } from "../../chunks/constant-E83OJqPQ.js";
|
|
3
|
+
import { p as D } from "../../chunks/utils-BJ8Lu8TY.js";
|
|
4
|
+
import { c as j } from "../../chunks/EventKeys-DZ_Hahro.js";
|
|
5
5
|
import { u as F } from "../../chunks/mapStore-Eu13mnJg.js";
|
|
6
6
|
import { storeToRefs as R } from "pinia";
|
|
7
|
-
import { ElDialog as q, ElForm as z, ElFormItem as
|
|
8
|
-
import { _ as
|
|
9
|
-
const
|
|
7
|
+
import { ElDialog as q, ElForm as z, ElFormItem as i, ElSelect as A, ElOption as $, ElInput as P, ElColorPicker as J, ElScrollbar as M, ElSwitch as G, ElButton as b } from "element-plus";
|
|
8
|
+
import { _ as H } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const K = { class: "icons-container" }, Q = { class: "icons-grid" }, W = ["onClick"], X = ["src", "alt"], Y = { class: "dialog-footer" }, Z = /* @__PURE__ */ L({
|
|
10
10
|
__name: "LegendDialogPoint",
|
|
11
|
-
setup(
|
|
12
|
-
const g = F(),
|
|
11
|
+
setup(ee, { expose: x }) {
|
|
12
|
+
const g = F(), h = U("iconOptions", m([])), E = C(() => {
|
|
13
|
+
const t = a(h);
|
|
14
|
+
return Array.isArray(t) && t.length > 0 ? t : [];
|
|
15
|
+
}), d = m(!1), p = m(), { topTopicList: w } = R(g), e = v({
|
|
13
16
|
pid: "",
|
|
14
17
|
// 专题ID,默认为0
|
|
15
18
|
layerName: "",
|
|
16
19
|
defaultChecked: 0,
|
|
17
|
-
//
|
|
20
|
+
// 默认加载,0或1
|
|
18
21
|
layerPaintConfig: {}
|
|
19
|
-
}),
|
|
22
|
+
}), y = C({
|
|
23
|
+
get: () => e.defaultChecked === 1,
|
|
24
|
+
set: (t) => {
|
|
25
|
+
e.defaultChecked = t ? 1 : 0;
|
|
26
|
+
}
|
|
27
|
+
}), S = v({
|
|
20
28
|
pid: [{ required: !0, message: "请选择所属专题", trigger: "change" }],
|
|
21
29
|
layerName: [
|
|
22
30
|
{ required: !0, message: "请输入图层名称", trigger: "blur" },
|
|
23
31
|
{ min: 2, max: 50, message: "长度在 2 到 50 个字符", trigger: "blur" }
|
|
24
32
|
]
|
|
25
|
-
}),
|
|
26
|
-
if (
|
|
27
|
-
const l =
|
|
28
|
-
|
|
29
|
-
i.layerType
|
|
30
|
-
);
|
|
31
|
-
console.log("config----------", l), e.pid = i.pid ?? "", e.layerName = i.layerName || "", e.layerPaintConfig = l || {};
|
|
33
|
+
}), s = m(), B = (t, o) => {
|
|
34
|
+
if (d.value = !0, s.value = t, console.log("data-----------", t), console.log("_topicList-----------", o), t) {
|
|
35
|
+
const l = D(t.layerPaintConfig, t.layerType);
|
|
36
|
+
console.log("config----------", l), e.pid = t.pid ?? "", e.layerName = t.layerName || "", e.defaultChecked = Number(t.defaultChecked) || 0, e.layerPaintConfig = l || {};
|
|
32
37
|
} else
|
|
33
|
-
e.pid = 0, e.layerName = "", e.layerPaintConfig = {};
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
...
|
|
38
|
+
e.pid = 0, e.layerName = "", e.defaultChecked = 0, e.layerPaintConfig = {};
|
|
39
|
+
}, I = async () => {
|
|
40
|
+
p.value && await p.value.validate((t, o) => {
|
|
41
|
+
t ? (console.log("保存数据:", e), s.value = {
|
|
42
|
+
...s.value,
|
|
38
43
|
targetScreen: "normal",
|
|
39
44
|
pid: e.pid,
|
|
40
45
|
layerName: e.layerName,
|
|
41
|
-
defaultChecked: e.defaultChecked
|
|
46
|
+
defaultChecked: e.defaultChecked,
|
|
42
47
|
layerPaintConfig: JSON.stringify(e.layerPaintConfig)
|
|
43
|
-
}, console.log("topic.value----------",
|
|
48
|
+
}, console.log("topic.value----------", s.value), j.emit(s.value), d.value = !1) : console.error("表单验证失败", o);
|
|
44
49
|
});
|
|
45
50
|
};
|
|
46
|
-
return
|
|
47
|
-
open:
|
|
48
|
-
}), (
|
|
51
|
+
return x({
|
|
52
|
+
open: B
|
|
53
|
+
}), (t, o) => (u(), k(a(q), {
|
|
49
54
|
title: "图层配置",
|
|
50
|
-
modelValue:
|
|
51
|
-
"onUpdate:modelValue":
|
|
55
|
+
modelValue: d.value,
|
|
56
|
+
"onUpdate:modelValue": o[6] || (o[6] = (l) => d.value = l),
|
|
52
57
|
width: "600px",
|
|
53
|
-
center:
|
|
58
|
+
center: a(g).dialogConfig.center,
|
|
54
59
|
"close-on-click-modal": !1,
|
|
55
60
|
class: "legend-dialog"
|
|
56
61
|
}, {
|
|
57
|
-
footer:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
onClick:
|
|
62
|
+
footer: n(() => [
|
|
63
|
+
f("span", Y, [
|
|
64
|
+
r(a(b), {
|
|
65
|
+
onClick: o[5] || (o[5] = (l) => d.value = !1)
|
|
61
66
|
}, {
|
|
62
|
-
default:
|
|
67
|
+
default: n(() => [...o[7] || (o[7] = [
|
|
63
68
|
N("关闭", -1)
|
|
64
69
|
])]),
|
|
65
70
|
_: 1
|
|
66
71
|
}),
|
|
67
|
-
|
|
72
|
+
r(a(b), {
|
|
68
73
|
type: "primary",
|
|
69
|
-
onClick:
|
|
74
|
+
onClick: I
|
|
70
75
|
}, {
|
|
71
|
-
default:
|
|
76
|
+
default: n(() => [...o[8] || (o[8] = [
|
|
72
77
|
N("确认保存", -1)
|
|
73
78
|
])]),
|
|
74
79
|
_: 1
|
|
75
80
|
})
|
|
76
81
|
])
|
|
77
82
|
]),
|
|
78
|
-
default:
|
|
79
|
-
|
|
83
|
+
default: n(() => [
|
|
84
|
+
r(a(z), {
|
|
80
85
|
model: e,
|
|
81
86
|
ref_key: "formRef",
|
|
82
|
-
ref:
|
|
83
|
-
rules:
|
|
87
|
+
ref: p,
|
|
88
|
+
rules: S,
|
|
84
89
|
"label-position": "right",
|
|
85
90
|
"label-width": "100px",
|
|
86
91
|
size: "default"
|
|
87
92
|
}, {
|
|
88
|
-
default:
|
|
89
|
-
|
|
93
|
+
default: n(() => [
|
|
94
|
+
r(a(i), {
|
|
90
95
|
label: "所属专题",
|
|
91
96
|
prop: "pid"
|
|
92
97
|
}, {
|
|
93
|
-
default:
|
|
94
|
-
|
|
98
|
+
default: n(() => [
|
|
99
|
+
r(a(A), {
|
|
95
100
|
modelValue: e.pid,
|
|
96
|
-
"onUpdate:modelValue":
|
|
101
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.pid = l),
|
|
97
102
|
placeholder: "请选择专题",
|
|
98
103
|
class: "full-width",
|
|
99
104
|
clearable: ""
|
|
100
105
|
}, {
|
|
101
|
-
default:
|
|
102
|
-
(
|
|
106
|
+
default: n(() => [
|
|
107
|
+
(u(!0), c(V, null, _(a(w), (l) => (u(), k(a($), {
|
|
103
108
|
key: l.id,
|
|
104
109
|
label: l.layerName,
|
|
105
110
|
value: l.id
|
|
@@ -110,48 +115,48 @@ const G = { class: "icons-container" }, H = { class: "icons-grid" }, K = ["onCli
|
|
|
110
115
|
]),
|
|
111
116
|
_: 1
|
|
112
117
|
}),
|
|
113
|
-
|
|
118
|
+
r(a(i), {
|
|
114
119
|
label: "图层名称",
|
|
115
120
|
prop: "layerName"
|
|
116
121
|
}, {
|
|
117
|
-
default:
|
|
118
|
-
|
|
122
|
+
default: n(() => [
|
|
123
|
+
r(a(P), {
|
|
119
124
|
modelValue: e.layerName,
|
|
120
|
-
"onUpdate:modelValue":
|
|
125
|
+
"onUpdate:modelValue": o[1] || (o[1] = (l) => e.layerName = l),
|
|
121
126
|
placeholder: "请输入图层名称"
|
|
122
127
|
}, null, 8, ["modelValue"])
|
|
123
128
|
]),
|
|
124
129
|
_: 1
|
|
125
130
|
}),
|
|
126
|
-
|
|
127
|
-
default:
|
|
128
|
-
|
|
131
|
+
r(a(i), { label: "文本颜色" }, {
|
|
132
|
+
default: n(() => [
|
|
133
|
+
r(a(J), {
|
|
129
134
|
modelValue: e.layerPaintConfig.textColor,
|
|
130
|
-
"onUpdate:modelValue":
|
|
135
|
+
"onUpdate:modelValue": o[2] || (o[2] = (l) => e.layerPaintConfig.textColor = l),
|
|
131
136
|
"show-alpha": "",
|
|
132
|
-
predefine:
|
|
137
|
+
predefine: a(T)
|
|
133
138
|
}, null, 8, ["modelValue", "predefine"])
|
|
134
139
|
]),
|
|
135
140
|
_: 1
|
|
136
141
|
}),
|
|
137
|
-
|
|
138
|
-
default:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
default:
|
|
142
|
-
|
|
143
|
-
(
|
|
144
|
-
key:
|
|
145
|
-
class:
|
|
146
|
-
active: e.layerPaintConfig.iconName === l.
|
|
142
|
+
r(a(i), { label: "展示图标" }, {
|
|
143
|
+
default: n(() => [
|
|
144
|
+
f("div", K, [
|
|
145
|
+
r(a(M), { height: "300px" }, {
|
|
146
|
+
default: n(() => [
|
|
147
|
+
f("div", Q, [
|
|
148
|
+
(u(!0), c(V, null, _(E.value, (l) => (u(), c("div", {
|
|
149
|
+
key: l.id,
|
|
150
|
+
class: O(["icon-item", {
|
|
151
|
+
active: e.layerPaintConfig.iconName === l.id
|
|
147
152
|
}]),
|
|
148
|
-
onClick: (
|
|
153
|
+
onClick: (le) => e.layerPaintConfig.iconName = l.id
|
|
149
154
|
}, [
|
|
150
|
-
|
|
151
|
-
src:
|
|
155
|
+
f("img", {
|
|
156
|
+
src: l.url,
|
|
152
157
|
alt: l.name
|
|
153
|
-
}, null, 8,
|
|
154
|
-
], 10,
|
|
158
|
+
}, null, 8, X)
|
|
159
|
+
], 10, W))), 128))
|
|
155
160
|
])
|
|
156
161
|
]),
|
|
157
162
|
_: 1
|
|
@@ -160,22 +165,22 @@ const G = { class: "icons-container" }, H = { class: "icons-grid" }, K = ["onCli
|
|
|
160
165
|
]),
|
|
161
166
|
_: 1
|
|
162
167
|
}),
|
|
163
|
-
|
|
164
|
-
default:
|
|
165
|
-
|
|
166
|
-
modelValue:
|
|
167
|
-
"onUpdate:modelValue":
|
|
168
|
+
r(a(i), { label: "默认加载" }, {
|
|
169
|
+
default: n(() => [
|
|
170
|
+
r(a(G), {
|
|
171
|
+
modelValue: y.value,
|
|
172
|
+
"onUpdate:modelValue": o[3] || (o[3] = (l) => y.value = l),
|
|
168
173
|
"active-text": "是",
|
|
169
174
|
"inactive-text": "否"
|
|
170
175
|
}, null, 8, ["modelValue"])
|
|
171
176
|
]),
|
|
172
177
|
_: 1
|
|
173
178
|
}),
|
|
174
|
-
|
|
175
|
-
default:
|
|
176
|
-
|
|
179
|
+
r(a(i), { label: "备注" }, {
|
|
180
|
+
default: n(() => [
|
|
181
|
+
r(a(P), {
|
|
177
182
|
modelValue: e.layerPaintConfig.remark,
|
|
178
|
-
"onUpdate:modelValue":
|
|
183
|
+
"onUpdate:modelValue": o[4] || (o[4] = (l) => e.layerPaintConfig.remark = l),
|
|
179
184
|
type: "textarea",
|
|
180
185
|
rows: 3,
|
|
181
186
|
placeholder: "请输入备注"
|
|
@@ -190,7 +195,7 @@ const G = { class: "icons-container" }, H = { class: "icons-grid" }, K = ["onCli
|
|
|
190
195
|
_: 1
|
|
191
196
|
}, 8, ["modelValue", "center"]));
|
|
192
197
|
}
|
|
193
|
-
}),
|
|
198
|
+
}), ue = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-05f40574"]]);
|
|
194
199
|
export {
|
|
195
|
-
|
|
200
|
+
ue as default
|
|
196
201
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),t=require("../../chunks/utils-CrwGKkIz.js"),i=require("../../chunks/constant-Bq4ASE9Q.js"),d=require("../../chunks/_plugin-vue_export-helper-BHFhmbuH.js"),p={class:"qy-flex-col legend-icon-container"},y=n.defineComponent({__name:"LegendLine",props:{topic:{}},setup(f){const u=f,a=n.computed(()=>{if(!u.topic)return{};const{topic:o}=u;if(["sample-group","track","geojson","kml","kmz","shp"].includes(o.layerType)){const e=t.parseLayerPaintConfig(o.layerPaintConfig,o.layerType);if("outlineConfigList"in e&&e.outlineConfigList&&e.outlineConfigList.length>0){const l=e.outlineConfigList.find(s=>s.type==="custom");if(l)return t.getLineLegendStyle(l.lineStyle||"solid",l.outlineColor||i.DefaultColor);const r=e.outlineConfigList.find(s=>s.type==="default");if(r)return t.getLineLegendStyle(r.lineStyle||"solid",r.outlineColor||i.DefaultColor);const c=e.outlineConfigList[0];return t.getLineLegendStyle(c.lineStyle||"solid",c.outlineColor||i.DefaultColor)}if("lineColor"in e)return t.getLineLegendStyle(e.lineStyle||"solid",e.lineColor||i.DefaultColor)}return{}});return(o,g)=>(n.openBlock(),n.createElementBlock("div",p,[n.createElementVNode("div",{class:"legend-icon-line",style:n.normalizeStyle(a.value)},null,4)]))}}),C=d._export_sfc(y,[["__scopeId","data-v-6feeb988"]]);exports.default=C;
|