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.
- package/dist/chunks/CreateData.vue_vue_type_script_setup_true_lang-CJPUwPxC.js +1 -0
- 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
- package/dist/chunks/MapTools.vue_vue_type_style_index_0_lang-CAyDu7kx.js +3011 -0
- package/dist/chunks/MapTools.vue_vue_type_style_index_0_lang-pXJrMAxB.js +1 -0
- package/dist/chunks/MapView-DoXcDnvD.js +5 -0
- package/dist/chunks/{MapView-BCd8eP0n.js → MapView-k58LhCWD.js} +959 -996
- 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
- package/dist/chunks/RenderFilterItem.vue_vue_type_script_setup_true_lang-Db7eSKlY.js +1 -0
- 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
- package/dist/chunks/RenderFormItem.vue_vue_type_style_index_0_lang-aDfb1v1D.js +1 -0
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-BE7f7luj.js +5 -0
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-Cv8xkKoZ.js +1013 -0
- package/dist/chunks/{base-UUBeX2f5.js → base-C6ZR-g-3.js} +52 -57
- package/dist/chunks/base-CPjTxLkU.js +1 -0
- package/dist/chunks/{lerc-CmEFprL2.js → lerc-BMmHSF05.js} +1 -2
- package/dist/chunks/lerc-DCCXL5wE.js +1 -0
- package/dist/chunks/{utils-DpLgeZ2k.js → utils-Co-GE89c.js} +2 -3
- package/dist/chunks/utils-Dmrh4VQM.js +1 -0
- package/dist/components/HelloWorld.cjs +1 -1
- package/dist/components/HelloWorld.mjs +5 -5
- package/dist/manageTable/Block.cjs +1 -5
- package/dist/manageTable/Block.mjs +75 -92
- package/dist/manageTable/CreateData.cjs +1 -1
- package/dist/manageTable/CreateData.mjs +1 -1
- package/dist/manageTable/FilterItem.cjs +1 -1
- package/dist/manageTable/FilterItem.mjs +181 -195
- package/dist/manageTable/RenderFilterItem.cjs +1 -1
- package/dist/manageTable/RenderFilterItem.mjs +1 -1
- package/dist/manageTable/RenderFormItem.cjs +1 -1
- package/dist/manageTable/RenderFormItem.mjs +1 -1
- package/dist/manageTable/ReplaceSpeciesNameDialog.cjs +1 -1
- package/dist/manageTable/ReplaceSpeciesNameDialog.mjs +1 -1
- package/dist/manageTable/SortItem.cjs +1 -1
- package/dist/manageTable/SortItem.mjs +9 -12
- package/dist/manageTable/manageTable.cjs +1 -1
- package/dist/manageTable/manageTable.mjs +485 -495
- package/dist/mapbox/MapView.cjs +1 -1
- package/dist/mapbox/MapView.mjs +1 -1
- package/dist/mapbox/components/MapLegend.cjs +1 -1
- package/dist/mapbox/components/MapLegend.mjs +4 -4
- package/dist/mapbox/components/MapTools.cjs +1 -1
- package/dist/mapbox/components/MapTools.mjs +1 -1
- package/dist/mapbox/components/mapCompass.cjs +1 -1
- package/dist/mapbox/components/mapCompass.mjs +37 -42
- package/dist/mapbox/components/mapLayer.cjs +1 -1
- package/dist/mapbox/components/mapLayer.mjs +2 -2
- package/dist/mapbox/components/mapTopic.cjs +1 -1
- package/dist/mapbox/components/mapTopic.mjs +145 -155
- package/dist/mapbox/utils.cjs +1 -1
- package/dist/mapbox/utils.mjs +2 -3
- package/dist/mapbox/widgets/CustomShapeDialog.cjs +1 -1
- package/dist/mapbox/widgets/CustomShapeDialog.mjs +72 -74
- package/dist/mapbox/widgets/IconPicker.cjs +1 -1
- package/dist/mapbox/widgets/IconPicker.mjs +12 -13
- package/dist/mapbox/widgets/LayerAttributeDialog.cjs +2 -2
- package/dist/mapbox/widgets/LayerAttributeDialog.mjs +378 -351
- package/dist/mapbox/widgets/LayerDialog.cjs +1 -1
- package/dist/mapbox/widgets/LayerDialog.mjs +65 -68
- package/dist/mapbox/widgets/LegendDialogLine.cjs +1 -1
- package/dist/mapbox/widgets/LegendDialogLine.mjs +43 -46
- package/dist/mapbox/widgets/LegendDialogPoint.cjs +1 -1
- package/dist/mapbox/widgets/LegendDialogPoint.mjs +15 -17
- package/dist/mapbox/widgets/LegendLine.cjs +1 -1
- package/dist/mapbox/widgets/LegendLine.mjs +22 -22
- package/dist/mapbox/widgets/LegendPoint.cjs +1 -1
- package/dist/mapbox/widgets/LegendPoint.mjs +1 -1
- package/dist/mapbox/widgets/LegendPopLine.cjs +1 -1
- package/dist/mapbox/widgets/LegendPopLine.mjs +14 -16
- package/dist/mapbox/widgets/LegendPopPoint.cjs +1 -1
- package/dist/mapbox/widgets/LegendPopPoint.mjs +73 -79
- package/dist/mapbox/widgets/LegendShape.cjs +1 -1
- package/dist/mapbox/widgets/LegendShape.mjs +17 -18
- package/dist/mapbox/widgets/Point.cjs +1 -1
- package/dist/mapbox/widgets/Point.mjs +6 -6
- package/dist/mapbox/widgets/ShapeDialog.cjs +1 -1
- package/dist/mapbox/widgets/ShapeDialog.mjs +573 -598
- package/dist/mapbox/widgets/TopicItemPop.cjs +1 -1
- package/dist/mapbox/widgets/TopicItemPop.mjs +107 -117
- package/dist/mapbox/widgets/TopicPop.cjs +1 -1
- package/dist/mapbox/widgets/TopicPop.mjs +83 -90
- package/dist/mapbox.cjs +1 -1
- package/dist/mapbox.mjs +2 -2
- package/dist/qy-vue-plugins.css +1 -1
- package/dist/types/manageTable/components/CreateData.vue.d.ts +55 -1285
- package/dist/types/manageTable/components/RenderFilterItem.vue.d.ts +2 -2
- package/dist/types/manageTable/manageTable.vue.d.ts +1898 -0
- package/dist/types/manageTable-manageTable.d.ts +3 -0
- package/dist/types/mapbox/components/mapTopic.vue.d.ts +1385 -0
- package/dist/types/mapbox/widgets/CustomShapeDialog.vue.d.ts +57 -1287
- package/dist/types/mapbox/widgets/IconPicker.vue.d.ts +2 -2
- package/dist/types/mapbox/widgets/LayerDialog.vue.d.ts +55 -1285
- package/dist/types/mapbox/widgets/LegendDialogLine.vue.d.ts +55 -1285
- package/dist/types/mapbox/widgets/LegendDialogPoint.vue.d.ts +55 -1285
- package/dist/types/mapbox/widgets/LegendPopPoint.vue.d.ts +340 -0
- package/dist/types/mapbox/widgets/TopicPop.vue.d.ts +55 -1285
- package/dist/types/mapbox-components-mapTopic.d.ts +3 -0
- package/dist/types/mapbox-widgets-LegendPopPoint.d.ts +3 -0
- package/package.json +23 -23
- package/dist/chunks/CreateData.vue_vue_type_script_setup_true_lang-XAwFLbts.js +0 -1
- package/dist/chunks/MapTools.vue_vue_type_style_index_0_lang-BCTpccy6.js +0 -1
- package/dist/chunks/MapTools.vue_vue_type_style_index_0_lang-E7b9bd5o.js +0 -2798
- package/dist/chunks/MapView-CT8VdvbC.js +0 -5
- package/dist/chunks/RenderFilterItem.vue_vue_type_script_setup_true_lang-D9iAXHTO.js +0 -1
- package/dist/chunks/RenderFormItem.vue_vue_type_style_index_0_lang-DiJ0BtfN.js +0 -1
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-CZWZ8Fr_.js +0 -936
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-Dr79MAHt.js +0 -5
- package/dist/chunks/base-bs-t6MQh.js +0 -5
- package/dist/chunks/lerc-D_LNVsDX.js +0 -1
- 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
|
|
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([]),
|
|
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 &&
|
|
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,
|
|
71
|
-
l.layerName = b,
|
|
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.
|
|
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(
|
|
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,
|
|
152
|
-
k("span", oe,
|
|
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 &&
|
|
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(
|
|
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],
|