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,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as w, ref as c, inject as x, reactive as
|
|
2
|
-
import { ElDialog as
|
|
3
|
-
import { UploadFilled as
|
|
4
|
-
import { d as
|
|
5
|
-
import { c as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as w, ref as c, inject as x, reactive as h, computed as j, createElementBlock as C, openBlock as k, Fragment as v, createVNode as d, unref as a, withCtx as r, renderList as B, createElementVNode as u, createTextVNode as i } from "vue";
|
|
2
|
+
import { ElDialog as L, ElForm as O, ElFormItem as p, ElDatePicker as M, ElInput as P, ElSelect as Y, ElOption as q, ElSwitch as J, ElUpload as R, ElIcon as G, ElAlert as W, ElButton as y, ElMessage as Z } from "element-plus";
|
|
3
|
+
import { UploadFilled as $ } from "@element-plus/icons-vue";
|
|
4
|
+
import { d as H } from "../../chunks/constant-E83OJqPQ.js";
|
|
5
|
+
import { c as V } from "../../chunks/EventKeys-DZ_Hahro.js";
|
|
6
|
+
import { u as K } from "../../chunks/mapStore-Eu13mnJg.js";
|
|
7
|
+
import Q from "../components/VideoDialog.mjs";
|
|
8
|
+
import { _ as X } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const ee = { class: "upload-area" }, le = { class: "shp-hint" }, oe = /* @__PURE__ */ w({
|
|
10
10
|
__name: "LayerDialog",
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
const e =
|
|
11
|
+
setup(ae, { expose: S }) {
|
|
12
|
+
const s = c(!1), m = c(), b = c([]), N = x("shpUploadUrl"), I = K();
|
|
13
|
+
let n;
|
|
14
|
+
const e = h({
|
|
15
15
|
id: 0,
|
|
16
16
|
decade: null,
|
|
17
17
|
layerName: "",
|
|
@@ -23,32 +23,40 @@ const Q = { class: "upload-area" }, X = { class: "shp-hint" }, ee = /* @__PURE__
|
|
|
23
23
|
sourceId: 0,
|
|
24
24
|
url: "",
|
|
25
25
|
targetScreen: "normal",
|
|
26
|
-
layerPaintConfig: JSON.stringify(
|
|
26
|
+
layerPaintConfig: JSON.stringify(H),
|
|
27
27
|
projectId: ""
|
|
28
|
-
}),
|
|
28
|
+
}), g = j({
|
|
29
|
+
get: () => {
|
|
30
|
+
const t = e.defaultChecked === 1;
|
|
31
|
+
return console.log("计算属性 get - form.defaultChecked:", e.defaultChecked, "返回:", t), t;
|
|
32
|
+
},
|
|
33
|
+
set: (t) => {
|
|
34
|
+
e.defaultChecked = t ? 1 : 0, console.log("计算属性 set - 接收:", t, "设置 form.defaultChecked:", e.defaultChecked);
|
|
35
|
+
}
|
|
36
|
+
}), E = [
|
|
29
37
|
{ value: "point", label: "点" },
|
|
30
38
|
{ value: "line", label: "线" },
|
|
31
39
|
{ value: "shape", label: "面" }
|
|
32
|
-
],
|
|
40
|
+
], T = h({
|
|
33
41
|
decade: [{ required: !0, message: "请选择年份", trigger: "change" }],
|
|
34
42
|
layerName: [{ required: !0, message: "请输入图层名称", trigger: "blur" }],
|
|
35
43
|
layerType: [{ required: !0, message: "请选择图层类型", trigger: "change" }]
|
|
36
44
|
});
|
|
37
|
-
function
|
|
38
|
-
console.log("onFileSuccess---->",
|
|
45
|
+
function U(t) {
|
|
46
|
+
console.log("onFileSuccess---->", t), t.errcode == 200 ? (e.url = t.data.geo_json_url, e.sourceId = t.data.source_id, e.columnSet = JSON.parse(t.data.column_set)) : (Z.error("shp文件解析失败,请检查格式是否正确,或直接联系管理员"), b.value = []);
|
|
39
47
|
}
|
|
40
|
-
function
|
|
41
|
-
console.log("onShpFilesChange---->",
|
|
48
|
+
function _(t, l) {
|
|
49
|
+
console.log("onShpFilesChange---->", t), e.layerName = t.name.split(".")[0];
|
|
42
50
|
}
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
},
|
|
51
|
+
const z = () => {
|
|
52
|
+
s.value = !1;
|
|
53
|
+
}, F = async () => {
|
|
46
54
|
if (m.value)
|
|
47
55
|
try {
|
|
48
|
-
await m.value.validate(), console.log("准备提交的数据:", e),
|
|
49
|
-
...
|
|
56
|
+
await m.value.validate(), console.log("准备提交的数据:", e), n ? (n.decade = e.decade, n.layerName = e.layerName, n.layerType = e.layerType, n.defaultChecked = e.defaultChecked, n.synchronizeApp = e.synchronizeApp, n.id = e.id, n.projectId = e.projectId, n.pid = e.pid, n.columnSet = e.columnSet, n.sourceId = e.sourceId, e.url && (n.url = e.url), V.emit({
|
|
57
|
+
...n,
|
|
50
58
|
targetScreen: "normal"
|
|
51
|
-
})) :
|
|
59
|
+
})) : V.emit({
|
|
52
60
|
layerType: e.layerType,
|
|
53
61
|
layerName: e.layerName,
|
|
54
62
|
id: e.id,
|
|
@@ -62,71 +70,71 @@ const Q = { class: "upload-area" }, X = { class: "shp-hint" }, ee = /* @__PURE__
|
|
|
62
70
|
columnSet: e.columnSet,
|
|
63
71
|
sourceId: e.sourceId,
|
|
64
72
|
url: e.url
|
|
65
|
-
}),
|
|
66
|
-
} catch (
|
|
67
|
-
console.error("表单验证失败",
|
|
73
|
+
}), s.value = !1;
|
|
74
|
+
} catch (t) {
|
|
75
|
+
console.error("表单验证失败", t);
|
|
68
76
|
}
|
|
69
|
-
},
|
|
70
|
-
|
|
77
|
+
}, A = (t, l, o) => {
|
|
78
|
+
console.log("=== LayerDialog.open 被调用 ==="), console.log("action:", t, "pid:", l, "layer:", o), s.value = !0, e.pid = l, console.log(
|
|
71
79
|
"打开对话框,操作类型:",
|
|
72
|
-
|
|
80
|
+
t,
|
|
73
81
|
"父ID:",
|
|
74
82
|
l,
|
|
75
83
|
"图层信息:",
|
|
76
|
-
|
|
77
|
-
),
|
|
78
|
-
}, f = c(!1),
|
|
84
|
+
o
|
|
85
|
+
), o ? (n = o, e.decade = (o?.decade || "2024") + "", e.layerName = o?.layerName || "", e.layerType = o?.layerType, e.defaultChecked = Number(o?.defaultChecked) || 0, e.synchronizeApp = Number(o?.synchronizeApp) || 0, e.id = o.id, console.log("打开编辑对话框 - layer.defaultChecked:", o.defaultChecked, "类型:", typeof o.defaultChecked), console.log("打开编辑对话框 - form.defaultChecked:", e.defaultChecked, "类型:", typeof e.defaultChecked)) : (console.log("新建图层,初始化默认值"), e.id = void 0, e.decade = null, e.layerName = "", e.layerType = void 0, e.defaultChecked = 0, e.synchronizeApp = 0);
|
|
86
|
+
}, f = c(!1), D = () => {
|
|
79
87
|
f.value = !0;
|
|
80
88
|
};
|
|
81
89
|
return S({
|
|
82
|
-
open:
|
|
83
|
-
}), (
|
|
84
|
-
|
|
90
|
+
open: A
|
|
91
|
+
}), (t, l) => (k(), C(v, null, [
|
|
92
|
+
d(a(L), {
|
|
85
93
|
title: "导入地理图层数据",
|
|
86
|
-
modelValue:
|
|
87
|
-
"onUpdate:modelValue": l[5] || (l[5] = (
|
|
94
|
+
modelValue: s.value,
|
|
95
|
+
"onUpdate:modelValue": l[5] || (l[5] = (o) => s.value = o),
|
|
88
96
|
width: "480",
|
|
89
|
-
center:
|
|
90
|
-
"before-close":
|
|
97
|
+
center: a(I).dialogConfig.center,
|
|
98
|
+
"before-close": z
|
|
91
99
|
}, {
|
|
92
100
|
footer: r(() => [
|
|
93
101
|
u("span", null, [
|
|
94
|
-
|
|
95
|
-
onClick: l[4] || (l[4] = (
|
|
102
|
+
d(a(y), {
|
|
103
|
+
onClick: l[4] || (l[4] = (o) => s.value = !1)
|
|
96
104
|
}, {
|
|
97
105
|
default: r(() => [...l[11] || (l[11] = [
|
|
98
|
-
|
|
106
|
+
i("取消", -1)
|
|
99
107
|
])]),
|
|
100
108
|
_: 1
|
|
101
109
|
}),
|
|
102
|
-
|
|
110
|
+
d(a(y), {
|
|
103
111
|
type: "primary",
|
|
104
|
-
onClick:
|
|
112
|
+
onClick: F
|
|
105
113
|
}, {
|
|
106
114
|
default: r(() => [...l[12] || (l[12] = [
|
|
107
|
-
|
|
115
|
+
i("确认", -1)
|
|
108
116
|
])]),
|
|
109
117
|
_: 1
|
|
110
118
|
})
|
|
111
119
|
])
|
|
112
120
|
]),
|
|
113
121
|
default: r(() => [
|
|
114
|
-
|
|
122
|
+
d(a(O), {
|
|
115
123
|
model: e,
|
|
116
|
-
rules:
|
|
124
|
+
rules: T,
|
|
117
125
|
ref_key: "formRef",
|
|
118
126
|
ref: m,
|
|
119
127
|
"label-width": "80px"
|
|
120
128
|
}, {
|
|
121
129
|
default: r(() => [
|
|
122
|
-
|
|
130
|
+
d(a(p), {
|
|
123
131
|
label: "所属年份",
|
|
124
132
|
prop: "decade"
|
|
125
133
|
}, {
|
|
126
134
|
default: r(() => [
|
|
127
|
-
|
|
135
|
+
d(a(M), {
|
|
128
136
|
modelValue: e.decade,
|
|
129
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
137
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => e.decade = o),
|
|
130
138
|
type: "year",
|
|
131
139
|
placeholder: "请选择年份",
|
|
132
140
|
style: { width: "100%" },
|
|
@@ -135,35 +143,35 @@ const Q = { class: "upload-area" }, X = { class: "shp-hint" }, ee = /* @__PURE__
|
|
|
135
143
|
]),
|
|
136
144
|
_: 1
|
|
137
145
|
}),
|
|
138
|
-
|
|
146
|
+
d(a(p), {
|
|
139
147
|
label: "图层名称",
|
|
140
148
|
prop: "layerName"
|
|
141
149
|
}, {
|
|
142
150
|
default: r(() => [
|
|
143
|
-
|
|
151
|
+
d(a(P), {
|
|
144
152
|
modelValue: e.layerName,
|
|
145
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
153
|
+
"onUpdate:modelValue": l[1] || (l[1] = (o) => e.layerName = o),
|
|
146
154
|
placeholder: "请输入图层名称(默认使用文件名)"
|
|
147
155
|
}, null, 8, ["modelValue"])
|
|
148
156
|
]),
|
|
149
157
|
_: 1
|
|
150
158
|
}),
|
|
151
|
-
|
|
159
|
+
d(a(p), {
|
|
152
160
|
label: "图层类型",
|
|
153
161
|
prop: "layerType"
|
|
154
162
|
}, {
|
|
155
163
|
default: r(() => [
|
|
156
|
-
|
|
164
|
+
d(a(Y), {
|
|
157
165
|
modelValue: e.layerType,
|
|
158
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
166
|
+
"onUpdate:modelValue": l[2] || (l[2] = (o) => e.layerType = o),
|
|
159
167
|
placeholder: "请选择图层类型",
|
|
160
168
|
style: { width: "100%" }
|
|
161
169
|
}, {
|
|
162
170
|
default: r(() => [
|
|
163
|
-
(
|
|
164
|
-
key:
|
|
165
|
-
label:
|
|
166
|
-
value:
|
|
171
|
+
(k(), C(v, null, B(E, (o) => d(a(q), {
|
|
172
|
+
key: o.value,
|
|
173
|
+
label: o.label,
|
|
174
|
+
value: o.value
|
|
167
175
|
}, null, 8, ["label", "value"])), 64))
|
|
168
176
|
]),
|
|
169
177
|
_: 1
|
|
@@ -171,28 +179,28 @@ const Q = { class: "upload-area" }, X = { class: "shp-hint" }, ee = /* @__PURE__
|
|
|
171
179
|
]),
|
|
172
180
|
_: 1
|
|
173
181
|
}),
|
|
174
|
-
|
|
182
|
+
d(a(p), { label: "默认加载" }, {
|
|
175
183
|
default: r(() => [
|
|
176
|
-
|
|
177
|
-
modelValue:
|
|
178
|
-
"onUpdate:modelValue": l[3] || (l[3] = (
|
|
184
|
+
d(a(J), {
|
|
185
|
+
modelValue: g.value,
|
|
186
|
+
"onUpdate:modelValue": l[3] || (l[3] = (o) => g.value = o)
|
|
179
187
|
}, null, 8, ["modelValue"])
|
|
180
188
|
]),
|
|
181
189
|
_: 1
|
|
182
190
|
}),
|
|
183
|
-
|
|
191
|
+
d(a(p), { label: "shp文件" }, {
|
|
184
192
|
default: r(() => [
|
|
185
|
-
u("div",
|
|
186
|
-
|
|
193
|
+
u("div", ee, [
|
|
194
|
+
d(a(R), {
|
|
187
195
|
class: "upload-demo",
|
|
188
196
|
drag: "",
|
|
189
|
-
action:
|
|
190
|
-
"on-success":
|
|
191
|
-
"on-change":
|
|
197
|
+
action: a(N),
|
|
198
|
+
"on-success": U,
|
|
199
|
+
"on-change": _,
|
|
192
200
|
accept: ".zip"
|
|
193
201
|
}, {
|
|
194
202
|
tip: r(() => [
|
|
195
|
-
|
|
203
|
+
d(a(W), {
|
|
196
204
|
title: "上传文件支持 zip 格式,单个文件大小不超过50MB,且文件数量不超过 1 个",
|
|
197
205
|
type: "info",
|
|
198
206
|
effect: "light",
|
|
@@ -201,29 +209,29 @@ const Q = { class: "upload-area" }, X = { class: "shp-hint" }, ee = /* @__PURE__
|
|
|
201
209
|
})
|
|
202
210
|
]),
|
|
203
211
|
default: r(() => [
|
|
204
|
-
|
|
212
|
+
d(a(G), { class: "el-icon--upload" }, {
|
|
205
213
|
default: r(() => [
|
|
206
|
-
|
|
214
|
+
d(a($))
|
|
207
215
|
]),
|
|
208
216
|
_: 1
|
|
209
217
|
}),
|
|
210
218
|
l[7] || (l[7] = u("div", { class: "el-upload__text" }, [
|
|
211
|
-
|
|
219
|
+
i(" 将文件拖到此处,或 "),
|
|
212
220
|
u("em", null, "点击上传")
|
|
213
221
|
], -1))
|
|
214
222
|
]),
|
|
215
223
|
_: 1
|
|
216
224
|
}, 8, ["action"]),
|
|
217
|
-
u("div",
|
|
225
|
+
u("div", le, [
|
|
218
226
|
u("p", null, [
|
|
219
|
-
l[9] || (l[9] =
|
|
220
|
-
|
|
227
|
+
l[9] || (l[9] = i(" 1. 请将 shp 数据压缩为 zip 格式后上传,", -1)),
|
|
228
|
+
d(a(y), {
|
|
221
229
|
type: "primary",
|
|
222
230
|
link: "",
|
|
223
|
-
onClick:
|
|
231
|
+
onClick: D
|
|
224
232
|
}, {
|
|
225
233
|
default: r(() => [...l[8] || (l[8] = [
|
|
226
|
-
|
|
234
|
+
i("查看教程", -1)
|
|
227
235
|
])]),
|
|
228
236
|
_: 1
|
|
229
237
|
})
|
|
@@ -240,15 +248,15 @@ const Q = { class: "upload-area" }, X = { class: "shp-hint" }, ee = /* @__PURE__
|
|
|
240
248
|
]),
|
|
241
249
|
_: 1
|
|
242
250
|
}, 8, ["modelValue", "center"]),
|
|
243
|
-
|
|
251
|
+
d(Q, {
|
|
244
252
|
modelValue: f.value,
|
|
245
|
-
"onUpdate:modelValue": l[6] || (l[6] = (
|
|
253
|
+
"onUpdate:modelValue": l[6] || (l[6] = (o) => f.value = o),
|
|
246
254
|
type: "MakeShpZip",
|
|
247
255
|
title: "上传文件制作流程视频"
|
|
248
256
|
}, null, 8, ["modelValue"])
|
|
249
257
|
], 64));
|
|
250
258
|
}
|
|
251
|
-
}),
|
|
259
|
+
}), ce = /* @__PURE__ */ X(oe, [["__scopeId", "data-v-052527b4"]]);
|
|
252
260
|
export {
|
|
253
|
-
|
|
261
|
+
ce as default
|
|
254
262
|
};
|
|
@@ -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"),V=require("../../chunks/utils-CrwGKkIz.js"),C=require("../../chunks/EventKeys-BvyQ87Zy.js"),y=require("pinia"),N=require("../../chunks/mapStore-dFPYwvXT.js"),v=require("../../chunks/constant-Bq4ASE9Q.js"),a=require("element-plus"),x=require("../../chunks/_plugin-vue_export-helper-BHFhmbuH.js"),E={class:"width-input-container"},h={class:"dialog-footer"},k=e.defineComponent({__name:"LegendDialogLine",setup(b,{expose:s}){const i=e.ref(!1),u=e.ref(),d=N.useMapStore(),{topTopicList:m}=y.storeToRefs(d),l=e.reactive({pid:"",layerName:"",defaultChecked:0,layerPaintConfig:{}}),f=e.computed({get:()=>l.defaultChecked===1,set:o=>{l.defaultChecked=o?1:0}}),p=e.reactive({pid:[{required:!0,message:"请选择所属专题",trigger:"change"}],layerName:[{required:!0,message:"请输入图层名称",trigger:"blur"},{min:2,max:50,message:"长度在 2 到 50 个字符",trigger:"blur"}],lineWidth:[{required:!0,message:"请输入线条宽度",trigger:"blur"}],lineShape:[{required:!1,message:"请选择线条形状",trigger:"change"}]}),n=e.ref(),c=(o,t)=>{if(i.value=!0,n.value=o,o){const r=V.parseLayerPaintConfig(o.layerPaintConfig,o.layerType);r.lineStyle||(r.lineStyle="solid"),l.pid=o.pid??"",l.layerName=o.layerName||"",l.defaultChecked=Number(o.defaultChecked)||0,l.layerPaintConfig=r||{}}else l.pid="",l.layerName="",l.defaultChecked=0,l.layerPaintConfig={};setTimeout(()=>{u.value?.clearValidate()})},g=async()=>{if(u.value)try{await u.value.validate((o,t)=>{o?(console.log("保存数据:",l),n.value.pid=l.pid,n.value.layerName=l.layerName,n.value.defaultChecked=l.defaultChecked,n.value.layerPaintConfig=JSON.stringify(l.layerPaintConfig),n.value.targetScreen="normal",C.createTopicBus.emit(n.value),i.value=!1):console.error("表单验证失败",t)})}catch(o){console.error("表单验证出错",o)}};return s({open:c}),(o,t)=>(e.openBlock(),e.createBlock(e.unref(a.ElDialog),{title:"图层配置",modelValue:i.value,"onUpdate:modelValue":t[8]||(t[8]=r=>i.value=r),width:"600px",center:e.unref(d).dialogConfig.center,"close-on-click-modal":!1,class:"legend-dialog"},{footer:e.withCtx(()=>[e.createElementVNode("span",h,[e.createVNode(e.unref(a.ElButton),{onClick:t[7]||(t[7]=r=>i.value=!1)},{default:e.withCtx(()=>[...t[10]||(t[10]=[e.createTextVNode("关闭",-1)])]),_:1}),e.createVNode(e.unref(a.ElButton),{type:"primary",onClick:g},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("确认保存",-1)])]),_:1})])]),default:e.withCtx(()=>[e.createVNode(e.unref(a.ElForm),{model:l,ref_key:"formRef",ref:u,rules:p,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElFormItem),{label:"所属专题",prop:"pid",required:""},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElSelect),{modelValue:l.pid,"onUpdate:modelValue":t[0]||(t[0]=r=>l.pid=r),placeholder:"请选择专题",clearable:"",class:"full-width"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),r=>(e.openBlock(),e.createBlock(e.unref(a.ElOption),{key:r.id,label:r.layerName,value:r.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"图层名称",prop:"layerName",required:""},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElInput),{modelValue:l.layerName,"onUpdate:modelValue":t[1]||(t[1]=r=>l.layerName=r),placeholder:"请输入图层名称"},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"线条宽度",prop:"layerPaintConfig.lineWidth"},{default:e.withCtx(()=>[e.createElementVNode("div",E,[e.createVNode(e.unref(a.ElInputNumber),{modelValue:l.layerPaintConfig.lineWidth,"onUpdate:modelValue":t[2]||(t[2]=r=>l.layerPaintConfig.lineWidth=r),min:1,max:20,class:"line-width-input"},null,8,["modelValue"]),t[9]||(t[9]=e.createElementVNode("div",{class:"unit-label"},"像素",-1))])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"线条形状",prop:"lineShape"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElSelect),{modelValue:l.layerPaintConfig.lineStyle,"onUpdate:modelValue":t[3]||(t[3]=r=>l.layerPaintConfig.lineStyle=r),placeholder:"请选择线条形状",class:"full-width"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElOption),{label:"实线",value:"solid"}),e.createVNode(e.unref(a.ElOption),{label:"虚线",value:"dotted"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"线条颜色",prop:"lineColor"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElColorPicker),{modelValue:l.layerPaintConfig.lineColor,"onUpdate:modelValue":t[4]||(t[4]=r=>l.layerPaintConfig.lineColor=r),"show-alpha":"",predefine:e.unref(v.mapPointsColors)},null,8,["modelValue","predefine"])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"默认加载",prop:"defaultLoad"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElSwitch),{modelValue:f.value,"onUpdate:modelValue":t[5]||(t[5]=r=>f.value=r),"active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"备注",prop:"remark"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElInput),{modelValue:l.layerPaintConfig.remark,"onUpdate:modelValue":t[6]||(t[6]=r=>l.layerPaintConfig.remark=r),type:"textarea",rows:4,placeholder:"请输入备注"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","center"]))}}),w=x._export_sfc(k,[["__scopeId","data-v-52f05d83"]]);exports.default=w;
|