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