qy-vue-plugins 0.1.32 → 0.1.34

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 (109) hide show
  1. package/dist/chunks/CreateData.vue_vue_type_script_setup_true_lang-CJPUwPxC.js +1 -0
  2. package/dist/chunks/{CreateData.vue_vue_type_script_setup_true_lang-D-eyHIr6.js → CreateData.vue_vue_type_script_setup_true_lang-adnTDvi9.js} +19 -21
  3. package/dist/chunks/MapTools.vue_vue_type_style_index_0_lang-CAyDu7kx.js +3011 -0
  4. package/dist/chunks/MapTools.vue_vue_type_style_index_0_lang-pXJrMAxB.js +1 -0
  5. package/dist/chunks/MapView-DoXcDnvD.js +5 -0
  6. package/dist/chunks/{MapView-BCd8eP0n.js → MapView-k58LhCWD.js} +959 -996
  7. package/dist/chunks/{RenderFilterItem.vue_vue_type_script_setup_true_lang-BI19IA2e.js → RenderFilterItem.vue_vue_type_script_setup_true_lang-BzV4WQOb.js} +31 -33
  8. package/dist/chunks/RenderFilterItem.vue_vue_type_script_setup_true_lang-Db7eSKlY.js +1 -0
  9. package/dist/chunks/{RenderFormItem.vue_vue_type_style_index_0_lang-D0DvBwFO.js → RenderFormItem.vue_vue_type_style_index_0_lang-CfG9qPEQ.js} +97 -103
  10. package/dist/chunks/RenderFormItem.vue_vue_type_style_index_0_lang-aDfb1v1D.js +1 -0
  11. package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-BE7f7luj.js +5 -0
  12. package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-Cv8xkKoZ.js +1013 -0
  13. package/dist/chunks/{base-UUBeX2f5.js → base-C6ZR-g-3.js} +52 -57
  14. package/dist/chunks/base-CPjTxLkU.js +1 -0
  15. package/dist/chunks/{lerc-CmEFprL2.js → lerc-BMmHSF05.js} +1 -2
  16. package/dist/chunks/lerc-DCCXL5wE.js +1 -0
  17. package/dist/chunks/{utils-DpLgeZ2k.js → utils-Co-GE89c.js} +2 -3
  18. package/dist/chunks/utils-Dmrh4VQM.js +1 -0
  19. package/dist/components/HelloWorld.cjs +1 -1
  20. package/dist/components/HelloWorld.mjs +5 -5
  21. package/dist/manageTable/Block.cjs +1 -5
  22. package/dist/manageTable/Block.mjs +75 -92
  23. package/dist/manageTable/CreateData.cjs +1 -1
  24. package/dist/manageTable/CreateData.mjs +1 -1
  25. package/dist/manageTable/FilterItem.cjs +1 -1
  26. package/dist/manageTable/FilterItem.mjs +181 -195
  27. package/dist/manageTable/RenderFilterItem.cjs +1 -1
  28. package/dist/manageTable/RenderFilterItem.mjs +1 -1
  29. package/dist/manageTable/RenderFormItem.cjs +1 -1
  30. package/dist/manageTable/RenderFormItem.mjs +1 -1
  31. package/dist/manageTable/ReplaceSpeciesNameDialog.cjs +1 -1
  32. package/dist/manageTable/ReplaceSpeciesNameDialog.mjs +1 -1
  33. package/dist/manageTable/SortItem.cjs +1 -1
  34. package/dist/manageTable/SortItem.mjs +9 -12
  35. package/dist/manageTable/manageTable.cjs +1 -1
  36. package/dist/manageTable/manageTable.mjs +485 -495
  37. package/dist/mapbox/MapView.cjs +1 -1
  38. package/dist/mapbox/MapView.mjs +1 -1
  39. package/dist/mapbox/components/MapLegend.cjs +1 -1
  40. package/dist/mapbox/components/MapLegend.mjs +4 -4
  41. package/dist/mapbox/components/MapTools.cjs +1 -1
  42. package/dist/mapbox/components/MapTools.mjs +1 -1
  43. package/dist/mapbox/components/mapCompass.cjs +1 -1
  44. package/dist/mapbox/components/mapCompass.mjs +37 -42
  45. package/dist/mapbox/components/mapLayer.cjs +1 -1
  46. package/dist/mapbox/components/mapLayer.mjs +2 -2
  47. package/dist/mapbox/components/mapTopic.cjs +1 -1
  48. package/dist/mapbox/components/mapTopic.mjs +145 -155
  49. package/dist/mapbox/utils.cjs +1 -1
  50. package/dist/mapbox/utils.mjs +2 -3
  51. package/dist/mapbox/widgets/CustomShapeDialog.cjs +1 -1
  52. package/dist/mapbox/widgets/CustomShapeDialog.mjs +72 -74
  53. package/dist/mapbox/widgets/IconPicker.cjs +1 -1
  54. package/dist/mapbox/widgets/IconPicker.mjs +12 -13
  55. package/dist/mapbox/widgets/LayerAttributeDialog.cjs +2 -2
  56. package/dist/mapbox/widgets/LayerAttributeDialog.mjs +378 -351
  57. package/dist/mapbox/widgets/LayerDialog.cjs +1 -1
  58. package/dist/mapbox/widgets/LayerDialog.mjs +65 -68
  59. package/dist/mapbox/widgets/LegendDialogLine.cjs +1 -1
  60. package/dist/mapbox/widgets/LegendDialogLine.mjs +43 -46
  61. package/dist/mapbox/widgets/LegendDialogPoint.cjs +1 -1
  62. package/dist/mapbox/widgets/LegendDialogPoint.mjs +15 -17
  63. package/dist/mapbox/widgets/LegendLine.cjs +1 -1
  64. package/dist/mapbox/widgets/LegendLine.mjs +22 -22
  65. package/dist/mapbox/widgets/LegendPoint.cjs +1 -1
  66. package/dist/mapbox/widgets/LegendPoint.mjs +1 -1
  67. package/dist/mapbox/widgets/LegendPopLine.cjs +1 -1
  68. package/dist/mapbox/widgets/LegendPopLine.mjs +14 -16
  69. package/dist/mapbox/widgets/LegendPopPoint.cjs +1 -1
  70. package/dist/mapbox/widgets/LegendPopPoint.mjs +73 -79
  71. package/dist/mapbox/widgets/LegendShape.cjs +1 -1
  72. package/dist/mapbox/widgets/LegendShape.mjs +17 -18
  73. package/dist/mapbox/widgets/Point.cjs +1 -1
  74. package/dist/mapbox/widgets/Point.mjs +6 -6
  75. package/dist/mapbox/widgets/ShapeDialog.cjs +1 -1
  76. package/dist/mapbox/widgets/ShapeDialog.mjs +573 -598
  77. package/dist/mapbox/widgets/TopicItemPop.cjs +1 -1
  78. package/dist/mapbox/widgets/TopicItemPop.mjs +107 -117
  79. package/dist/mapbox/widgets/TopicPop.cjs +1 -1
  80. package/dist/mapbox/widgets/TopicPop.mjs +83 -90
  81. package/dist/mapbox.cjs +1 -1
  82. package/dist/mapbox.mjs +2 -2
  83. package/dist/qy-vue-plugins.css +1 -1
  84. package/dist/types/manageTable/components/CreateData.vue.d.ts +55 -1285
  85. package/dist/types/manageTable/components/RenderFilterItem.vue.d.ts +2 -2
  86. package/dist/types/manageTable/manageTable.vue.d.ts +1898 -0
  87. package/dist/types/manageTable-manageTable.d.ts +3 -0
  88. package/dist/types/mapbox/components/mapTopic.vue.d.ts +1385 -0
  89. package/dist/types/mapbox/widgets/CustomShapeDialog.vue.d.ts +57 -1287
  90. package/dist/types/mapbox/widgets/IconPicker.vue.d.ts +2 -2
  91. package/dist/types/mapbox/widgets/LayerDialog.vue.d.ts +55 -1285
  92. package/dist/types/mapbox/widgets/LegendDialogLine.vue.d.ts +55 -1285
  93. package/dist/types/mapbox/widgets/LegendDialogPoint.vue.d.ts +55 -1285
  94. package/dist/types/mapbox/widgets/LegendPopPoint.vue.d.ts +340 -0
  95. package/dist/types/mapbox/widgets/TopicPop.vue.d.ts +55 -1285
  96. package/dist/types/mapbox-components-mapTopic.d.ts +3 -0
  97. package/dist/types/mapbox-widgets-LegendPopPoint.d.ts +3 -0
  98. package/package.json +23 -23
  99. package/dist/chunks/CreateData.vue_vue_type_script_setup_true_lang-XAwFLbts.js +0 -1
  100. package/dist/chunks/MapTools.vue_vue_type_style_index_0_lang-BCTpccy6.js +0 -1
  101. package/dist/chunks/MapTools.vue_vue_type_style_index_0_lang-E7b9bd5o.js +0 -2798
  102. package/dist/chunks/MapView-CT8VdvbC.js +0 -5
  103. package/dist/chunks/RenderFilterItem.vue_vue_type_script_setup_true_lang-D9iAXHTO.js +0 -1
  104. package/dist/chunks/RenderFormItem.vue_vue_type_style_index_0_lang-DiJ0BtfN.js +0 -1
  105. package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-CZWZ8Fr_.js +0 -936
  106. package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-Dr79MAHt.js +0 -5
  107. package/dist/chunks/base-bs-t6MQh.js +0 -5
  108. package/dist/chunks/lerc-D_LNVsDX.js +0 -1
  109. package/dist/chunks/utils-7p2Zpotx.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),a=require("element-plus"),D=require("../manageTable/Block.cjs"),c=require("./ProvideKeys-BPenLFlD.js"),I={style:{float:"left"}},R={style:{float:"right",color:"var(--el-text-color-secondary)","font-size":"13px"}},_={key:1},O=e.defineComponent({__name:"CreateData",emits:["closed"],setup(S,{expose:k,emit:x}){const v=e.inject(c.apiRowDataOptionsKey),h=e.inject(c.queryResearchDataOptionsKey),C=e.inject(c.projectIdKey),V=e.inject(c.researchStandardKey),u=e.ref(!1),i=e.ref([]),r=e.reactive({researchId:void 0,addCount:1,layerName:"",tableIndex:"0",blockId:null,type:"1",projectId:C}),s=e.ref([]),y=["forestResearchPlot","shrubResearchPlot","grassResearchPlot","wetlandResearchPlot"],f=["plantResearchCollect","fungusResearchCollect","speciesDistribution","waterResearchCollect","soilResearchCollect","humanActivity","naturalDisaster"],p=e.ref(!1),E=x,o=e.ref(),w=async()=>{if(o.value&&f.indexOf(o.value)==-1&&r.researchId==null){a.ElMessage.error("请选择样地或样线数据");return}if(o.value&&y.indexOf(o.value)>-1&&r.blockId==null){a.ElMessage.error("请选择样方号");return}if(r.addCount==null){a.ElMessage.error("请选择单次增加条数");return}if(r.addCount<1){a.ElMessage.error("单次增加条数不能小于1");return}if(r.addCount>100){a.ElMessage.error("单次增加条数不能大于100");return}if(!o.value){a.ElMessage.error("请选择调查类型");return}if(v){p.value=!0;try{var n=[];for(let t=0;t<r.addCount;t++){var l={createDate:a.dayjs().unix(),...e.toRaw(r)};o.value=="speciesDistribution"&&(l.speciesName="待鉴定",l.speciesType="plant"),["humanActivity","naturalDisaster"].includes(o.value)&&(console.log(s.value[t]),l.title=s.value[t]),n.push(l)}await v(n),a.ElMessage.success("添加成功")}catch(t){console.log(t)}E("closed"),p.value=!1}else a.ElMessage.warning("该调查不支持添加");u.value=!1},b=async(n,l)=>{if(o.value=n,u.value=!0,i.value=[],r.researchId=void 0,r.addCount=1,d.value={id:null},l){let[m,g]=l.split(",");r.layerName=m,g&&(r.tableIndex=`0-${g}`)}if(["naturalDisaster","humanActivity","speciesDistribution"].indexOf(o.value)!=-1&&(r.type=o.value),f.indexOf(n)==-1&&h){var t=await h({pageSize:99999,pageNum:1,projectId:C,researchStandard:V});i.value=t.data?.list||t.data}},d=e.ref({id:null}),N=n=>{d.value=i.value.find(l=>l.id==n)},B=n=>{r.blockId=n};return k({showDialog:b}),(n,l)=>(e.openBlock(),e.createBlock(e.unref(a.ElDialog),{center:"",title:"添加数据",modelValue:u.value,"onUpdate:modelValue":l[4]||(l[4]=t=>u.value=t),width:"800px"},{footer:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(e.unref(a.ElButton),{onClick:l[3]||(l[3]=t=>u.value=!1)},{default:e.withCtx(()=>[...l[5]||(l[5]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(a.ElButton),{type:"primary",onClick:w,loading:p.value,plain:""},{default:e.withCtx(()=>[...l[6]||(l[6]=[e.createTextVNode("创建",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.createVNode(e.unref(a.ElForm),{model:r,ref:"form","label-width":"auto",inline:!1},{default:e.withCtx(()=>[o.value&&f.indexOf(o.value)==-1?(e.openBlock(),e.createBlock(e.unref(a.ElFormItem),{key:0,label:"样地或样线数据:"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElSelect),{modelValue:r.researchId,"onUpdate:modelValue":l[0]||(l[0]=t=>r.researchId=t),"value-key":"",placeholder:"选择样地或样线数据",filterable:"",onChange:N},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,t=>(e.openBlock(),e.createBlock(e.unref(a.ElOption),{key:t.id,label:t.serialNumberAndCode,value:t.id},{default:e.withCtx(()=>[e.createElementVNode("span",I,e.toDisplayString(t.serialNumberAndCode),1),e.createElementVNode("span",R,e.toDisplayString(t.researchArea),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),o.value&&y.indexOf(o.value)>-1&&d.value.id?(e.openBlock(),e.createBlock(e.unref(a.ElFormItem),{key:1,label:"选择样方号:"},{default:e.withCtx(()=>[d.value.id?(e.openBlock(),e.createBlock(D.default,{key:0,data:d.value,"show-code":!1,"select-mode":!0,onSelected:B},null,8,["data"])):(e.openBlock(),e.createElementBlock("div",_,"尚未选择样地数据"))]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(a.ElFormItem),{label:"单次增加条数:"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElInputNumber),{modelValue:r.addCount,"onUpdate:modelValue":l[1]||(l[1]=t=>r.addCount=t),min:1,max:100,step:2,onChange:l[2]||(l[2]=t=>s.value.length=r.addCount)},null,8,["modelValue"])]),_:1}),o.value&&["humanActivity","naturalDisaster"].includes(o.value)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(r.addCount,t=>(e.openBlock(),e.createBlock(e.unref(a.ElFormItem),{label:"标题:"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElInput),{modelValue:s.value[t-1],"onUpdate:modelValue":m=>s.value[t-1]=m,placeholder:"请输入标题"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024))),256)):e.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"]))}});exports._sfc_main=O;
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, inject as y, ref as i, reactive as z, createBlock as c, openBlock as u, unref as o, withCtx as r, createVNode as d, createCommentVNode as D, createElementBlock as x, Fragment as E, renderList as N, createElementVNode as k, toDisplayString as O, createTextVNode as S, toRaw as L } from "vue";
1
+ import { defineComponent as T, inject as y, ref as i, reactive as z, createBlock as c, openBlock as u, unref as o, withCtx as r, createVNode as d, createCommentVNode as D, createElementBlock as x, Fragment as N, renderList as O, createElementVNode as k, toDisplayString as _, createTextVNode as S, toRaw as L } from "vue";
2
2
  import { ElDialog as M, ElForm as G, ElFormItem as h, ElSelect as H, ElOption as J, ElInputNumber as Q, ElInput as W, ElButton as A, ElMessage as s, dayjs as X } from "element-plus";
3
3
  import Y from "../manageTable/Block.mjs";
4
4
  import { a as Z, q as ee, p as ae, r as le } from "./ProvideKeys-jhgDnhL_.js";
@@ -14,7 +14,7 @@ const te = { style: { float: "left" } }, oe = { style: { float: "right", color:
14
14
  blockId: null,
15
15
  type: "1",
16
16
  projectId: R
17
- }), p = i([]), _ = ["forestResearchPlot", "shrubResearchPlot", "grassResearchPlot", "wetlandResearchPlot"], C = [
17
+ }), p = i([]), w = ["forestResearchPlot", "shrubResearchPlot", "grassResearchPlot", "wetlandResearchPlot"], C = [
18
18
  "plantResearchCollect",
19
19
  "fungusResearchCollect",
20
20
  "speciesDistribution",
@@ -27,7 +27,7 @@ const te = { style: { float: "left" } }, oe = { style: { float: "right", color:
27
27
  s.error("请选择样地或样线数据");
28
28
  return;
29
29
  }
30
- if (t.value && _.indexOf(t.value) > -1 && l.blockId == null) {
30
+ if (t.value && w.indexOf(t.value) > -1 && l.blockId == null) {
31
31
  s.error("请选择样方号");
32
32
  return;
33
33
  }
@@ -67,8 +67,8 @@ const te = { style: { float: "left" } }, oe = { style: { float: "right", color:
67
67
  if (t.value = n, f.value = !0, m.value = [], l.researchId = void 0, l.addCount = 1, v.value = {
68
68
  id: null
69
69
  }, a) {
70
- let [b, w] = a.split(",");
71
- l.layerName = b, w && (l.tableIndex = `0-${w}`);
70
+ let [b, E] = a.split(",");
71
+ l.layerName = b, E && (l.tableIndex = `0-${E}`);
72
72
  }
73
73
  if (["naturalDisaster", "humanActivity", "speciesDistribution"].indexOf(t.value) != -1 && (l.type = t.value), C.indexOf(n) == -1 && I) {
74
74
  var e = await I({
@@ -77,7 +77,7 @@ const te = { style: { float: "left" } }, oe = { style: { float: "right", color:
77
77
  projectId: R,
78
78
  researchStandard: j
79
79
  });
80
- m.value = e.data.list;
80
+ m.value = e.data?.list || e.data;
81
81
  }
82
82
  }, v = i({
83
83
  id: null
@@ -100,11 +100,10 @@ const te = { style: { float: "left" } }, oe = { style: { float: "right", color:
100
100
  d(o(A), {
101
101
  onClick: a[3] || (a[3] = (e) => f.value = !1)
102
102
  }, {
103
- default: r(() => a[5] || (a[5] = [
104
- S("取消")
105
- ])),
106
- _: 1,
107
- __: [5]
103
+ default: r(() => [...a[5] || (a[5] = [
104
+ S("取消", -1)
105
+ ])]),
106
+ _: 1
108
107
  }),
109
108
  d(o(A), {
110
109
  type: "primary",
@@ -112,11 +111,10 @@ const te = { style: { float: "left" } }, oe = { style: { float: "right", color:
112
111
  loading: g.value,
113
112
  plain: ""
114
113
  }, {
115
- default: r(() => a[6] || (a[6] = [
116
- S("创建")
117
- ])),
118
- _: 1,
119
- __: [6]
114
+ default: r(() => [...a[6] || (a[6] = [
115
+ S("创建", -1)
116
+ ])]),
117
+ _: 1
120
118
  }, 8, ["loading"])
121
119
  ])
122
120
  ]),
@@ -142,14 +140,14 @@ const te = { style: { float: "left" } }, oe = { style: { float: "right", color:
142
140
  onChange: q
143
141
  }, {
144
142
  default: r(() => [
145
- (u(!0), x(E, null, N(m.value, (e) => (u(), c(o(J), {
143
+ (u(!0), x(N, null, O(m.value, (e) => (u(), c(o(J), {
146
144
  key: e.id,
147
145
  label: e.serialNumberAndCode,
148
146
  value: e.id
149
147
  }, {
150
148
  default: r(() => [
151
- k("span", te, O(e.serialNumberAndCode), 1),
152
- k("span", oe, O(e.researchArea), 1)
149
+ k("span", te, _(e.serialNumberAndCode), 1),
150
+ k("span", oe, _(e.researchArea), 1)
153
151
  ]),
154
152
  _: 2
155
153
  }, 1032, ["label", "value"]))), 128))
@@ -159,7 +157,7 @@ const te = { style: { float: "left" } }, oe = { style: { float: "right", color:
159
157
  ]),
160
158
  _: 1
161
159
  })) : D("", !0),
162
- t.value && _.indexOf(t.value) > -1 && v.value.id ? (u(), c(o(h), {
160
+ t.value && w.indexOf(t.value) > -1 && v.value.id ? (u(), c(o(h), {
163
161
  key: 1,
164
162
  label: "选择样方号:"
165
163
  }, {
@@ -187,7 +185,7 @@ const te = { style: { float: "left" } }, oe = { style: { float: "right", color:
187
185
  ]),
188
186
  _: 1
189
187
  }),
190
- t.value && ["humanActivity", "naturalDisaster"].includes(t.value) ? (u(!0), x(E, { key: 2 }, N(l.addCount, (e) => (u(), c(o(h), { label: "标题:" }, {
188
+ t.value && ["humanActivity", "naturalDisaster"].includes(t.value) ? (u(!0), x(N, { key: 2 }, O(l.addCount, (e) => (u(), c(o(h), { label: "标题:" }, {
191
189
  default: r(() => [
192
190
  d(o(W), {
193
191
  modelValue: p.value[e - 1],