qy-vue-plugins 0.2.2 → 0.2.4
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/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-BFusb3rd.js +880 -0
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-C0OTINr4.js +1 -0
- package/dist/chunks/aria-CU11fhFG.js +5 -0
- package/dist/chunks/aria-Lnh-oIIU.js +173 -0
- package/dist/chunks/{base-C6ZR-g-3.js → base-BBPoamOf.js} +180 -168
- package/dist/chunks/base-Dbw4YzZq.js +1 -0
- package/dist/chunks/use-global-config-D_HRwVvW.js +301 -0
- package/dist/chunks/use-global-config-Wtw3ujWW.js +2 -0
- 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 +42 -39
- package/dist/manageTable/manageTable.cjs +1 -1
- package/dist/manageTable/manageTable.mjs +155 -108
- package/dist/mapbox/components/VideoDialog.cjs +3 -0
- package/dist/mapbox/components/VideoDialog.mjs +1741 -0
- package/dist/mapbox/widgets/LayerAttributeDialog.cjs +1 -2
- package/dist/mapbox/widgets/LayerAttributeDialog.mjs +264 -551
- package/dist/mapbox/widgets/LayerDialog.cjs +1 -1
- package/dist/mapbox/widgets/LayerDialog.mjs +201 -167
- package/dist/qy-vue-plugins.css +1 -1
- package/dist/types/manageTable/components/SortItem.vue.d.ts +1 -0
- package/dist/types/manageTable/manageTable.vue.d.ts +4 -0
- package/dist/types/mapbox/components/VideoDialog.vue.d.ts +58 -0
- package/dist/types/mapbox-components-VideoDialog.d.ts +4 -0
- package/package.json +1 -1
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-BsMK0hpE.js +0 -1014
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-Crqsopo0.js +0 -5
- package/dist/chunks/base-CPjTxLkU.js +0 -1
|
@@ -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"),a=require("element-plus"),x=require("@element-plus/icons-vue"),S=require("../../chunks/constant-Bc8XErtI.js"),s=require("../../chunks/EventKeys-BLmCVdTJ.js"),k=require("../../chunks/mapStore-D57AyFNX.js"),w=require("../components/VideoDialog.cjs"),T=require("../../chunks/_plugin-vue_export-helper-BHFhmbuH.js"),b={class:"upload-area"},I={class:"shp-hint"},F=e.defineComponent({__name:"LayerDialog",setup(U,{expose:c}){const n=e.ref(!1),u=e.ref(),p=e.ref([]),f=e.inject("shpUploadUrl"),m=k.useMapStore();let r;const l=e.reactive({id:0,decade:null,layerName:"",layerType:void 0,defaultChecked:0,synchronizeApp:0,pid:0,columnSet:[],sourceId:0,url:"",targetScreen:"normal",layerPaintConfig:JSON.stringify(S.defaultStyleConfig),projectId:""}),y=[{value:"point",label:"点"},{value:"line",label:"线"},{value:"shape",label:"面"}],V=e.reactive({decade:[{required:!0,message:"请选择年份",trigger:"change"}],layerName:[{required:!0,message:"请输入图层名称",trigger:"blur"}],layerType:[{required:!0,message:"请选择图层类型",trigger:"change"}]});function N(d){console.log("onFileSuccess---->",d),d.errcode==200?(l.url=d.data.geo_json_url,l.sourceId=d.data.source_id,l.columnSet=JSON.parse(d.data.column_set)):(a.ElMessage.error("shp文件解析失败,请检查格式是否正确,或直接联系管理员"),p.value=[])}function g(d,t){console.log("onShpFilesChange---->",d),l.layerName=d.name.split(".")[0]}const h=()=>{n.value=!1},C=async()=>{if(u.value)try{await u.value.validate(),console.log("准备提交的数据:",l),r?(r.decade=l.decade,r.layerName=l.layerName,r.layerType=l.layerType,r.defaultChecked=l.defaultChecked,r.synchronizeApp=l.synchronizeApp,r.id=l.id,r.projectId=l.projectId,r.pid=l.pid,r.columnSet=l.columnSet,r.sourceId=l.sourceId,l.url&&(r.url=l.url),s.createTopicBus.emit({...r,targetScreen:"normal"})):s.createTopicBus.emit({layerType:l.layerType,layerName:l.layerName,id:l.id,layerPaintConfig:l.layerPaintConfig,projectId:l.projectId,decade:l.decade,defaultChecked:l.defaultChecked,synchronizeApp:l.synchronizeApp,pid:l.pid,targetScreen:"normal",columnSet:l.columnSet,sourceId:l.sourceId,url:l.url}),n.value=!1}catch(d){console.error("表单验证失败",d)}},v=(d,t,o)=>{n.value=!0,l.pid=t,console.log("打开对话框,操作类型:",d,"父ID:",t,"图层信息:",o),o?(r=o,l.decade=(o?.decade||"2024")+"",l.layerName=o?.layerName||"",l.layerType=o?.layerType,l.defaultChecked=o?.defaultChecked||0,l.synchronizeApp=o?.synchronizeApp||0,l.id=o.id):(l.id=void 0,l.decade=null,l.layerName="",l.layerType=void 0,l.defaultChecked=0,l.synchronizeApp=0)},i=e.ref(!1),E=()=>{i.value=!0};return c({open:v}),(d,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(a.ElDialog),{title:"导入地理图层数据",modelValue:n.value,"onUpdate:modelValue":t[5]||(t[5]=o=>n.value=o),width:"480",center:e.unref(m).dialogConfig.center,"before-close":h},{footer:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(e.unref(a.ElButton),{onClick:t[4]||(t[4]=o=>n.value=!1)},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(a.ElButton),{type:"primary",onClick:C},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("确认",-1)])]),_:1})])]),default:e.withCtx(()=>[e.createVNode(e.unref(a.ElForm),{model:l,rules:V,ref_key:"formRef",ref:u,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElFormItem),{label:"所属年份",prop:"decade"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElDatePicker),{modelValue:l.decade,"onUpdate:modelValue":t[0]||(t[0]=o=>l.decade=o),type:"year",placeholder:"请选择年份",style:{width:"100%"},"value-format":"YYYY"},null,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":t[1]||(t[1]=o=>l.layerName=o),placeholder:"请输入图层名称(默认使用文件名)"},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"图层类型",prop:"layerType"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElSelect),{modelValue:l.layerType,"onUpdate:modelValue":t[2]||(t[2]=o=>l.layerType=o),placeholder:"请选择图层类型",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(y,o=>e.createVNode(e.unref(a.ElOption),{key:o.value,label:o.label,value:o.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"默认加载"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElSwitch),{modelValue:l.defaultChecked,"onUpdate:modelValue":t[3]||(t[3]=o=>l.defaultChecked=o)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(a.ElFormItem),{label:"shp文件"},{default:e.withCtx(()=>[e.createElementVNode("div",b,[e.createVNode(e.unref(a.ElUpload),{class:"upload-demo",drag:"",action:e.unref(f),"on-success":N,"on-change":g,accept:".zip"},{tip:e.withCtx(()=>[e.createVNode(e.unref(a.ElAlert),{title:"上传文件支持 zip 格式,单个文件大小不超过50MB,且文件数量不超过 1 个",type:"info",effect:"light","show-icon":"",closable:""})]),default:e.withCtx(()=>[e.createVNode(e.unref(a.ElIcon),{class:"el-icon--upload"},{default:e.withCtx(()=>[e.createVNode(e.unref(x.UploadFilled))]),_:1}),t[7]||(t[7]=e.createElementVNode("div",{class:"el-upload__text"},[e.createTextVNode(" 将文件拖到此处,或 "),e.createElementVNode("em",null,"点击上传")],-1))]),_:1},8,["action"]),e.createElementVNode("div",I,[e.createElementVNode("p",null,[t[9]||(t[9]=e.createTextVNode(" 1. 请将 shp 数据压缩为 zip 格式后上传,",-1)),e.createVNode(e.unref(a.ElButton),{type:"primary",link:"",onClick:E},{default:e.withCtx(()=>[...t[8]||(t[8]=[e.createTextVNode("查看教程",-1)])]),_:1})]),t[10]||(t[10]=e.createElementVNode("p",null,"2. 确保 shp 数据的坐标系为 WGS84 坐标系",-1))])])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","center"]),e.createVNode(w.default,{modelValue:i.value,"onUpdate:modelValue":t[6]||(t[6]=o=>i.value=o),type:"MakeShpZip",title:"上传文件制作流程视频"},null,8,["modelValue"])],64))}}),_=T._export_sfc(F,[["__scopeId","data-v-d8759291"]]);exports.default=_;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElDialog as
|
|
3
|
-
import { UploadFilled as
|
|
4
|
-
import { d as
|
|
5
|
-
import { c as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
import { defineComponent as w, ref as c, inject as x, reactive as g, createElementBlock as v, openBlock as h, Fragment as V, createVNode as t, unref as o, withCtx as r, renderList as D, createElementVNode as u, createTextVNode as p } from "vue";
|
|
2
|
+
import { ElDialog as j, ElForm as B, ElFormItem as s, ElDatePicker as O, ElInput as L, ElSelect as M, ElOption as P, ElSwitch as Y, ElUpload as q, ElIcon as J, ElAlert as R, ElButton as y, ElMessage as G } from "element-plus";
|
|
3
|
+
import { UploadFilled as W } from "@element-plus/icons-vue";
|
|
4
|
+
import { d as Z } from "../../chunks/constant-sg1_DRTW.js";
|
|
5
|
+
import { c as C } from "../../chunks/EventKeys-CXd5zco-.js";
|
|
6
|
+
import { u as $ } from "../../chunks/mapStore-oFrNzlQO.js";
|
|
7
|
+
import H from "../components/VideoDialog.mjs";
|
|
8
|
+
import { _ as K } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const Q = { class: "upload-area" }, X = { class: "shp-hint" }, ee = /* @__PURE__ */ w({
|
|
9
10
|
__name: "LayerDialog",
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
const e =
|
|
11
|
+
setup(le, { expose: S }) {
|
|
12
|
+
const i = c(!1), m = c(), k = c([]), N = x("shpUploadUrl"), b = $();
|
|
13
|
+
let d;
|
|
14
|
+
const e = g({
|
|
14
15
|
id: 0,
|
|
15
16
|
decade: null,
|
|
16
17
|
layerName: "",
|
|
@@ -22,32 +23,32 @@ const K = { class: "upload-area" }, Q = /* @__PURE__ */ T({
|
|
|
22
23
|
sourceId: 0,
|
|
23
24
|
url: "",
|
|
24
25
|
targetScreen: "normal",
|
|
25
|
-
layerPaintConfig: JSON.stringify(
|
|
26
|
+
layerPaintConfig: JSON.stringify(Z),
|
|
26
27
|
projectId: ""
|
|
27
|
-
}),
|
|
28
|
+
}), I = [
|
|
28
29
|
{ value: "point", label: "点" },
|
|
29
30
|
{ value: "line", label: "线" },
|
|
30
31
|
{ value: "shape", label: "面" }
|
|
31
|
-
],
|
|
32
|
+
], E = g({
|
|
32
33
|
decade: [{ required: !0, message: "请选择年份", trigger: "change" }],
|
|
33
34
|
layerName: [{ required: !0, message: "请输入图层名称", trigger: "blur" }],
|
|
34
35
|
layerType: [{ required: !0, message: "请选择图层类型", trigger: "change" }]
|
|
35
36
|
});
|
|
36
|
-
function
|
|
37
|
-
console.log("onFileSuccess---->", n), n.errcode == 200 ? (e.url = n.data.geo_json_url, e.sourceId = n.data.source_id, e.columnSet = JSON.parse(n.data.column_set)) : (
|
|
37
|
+
function T(n) {
|
|
38
|
+
console.log("onFileSuccess---->", n), n.errcode == 200 ? (e.url = n.data.geo_json_url, e.sourceId = n.data.source_id, e.columnSet = JSON.parse(n.data.column_set)) : (G.error("shp文件解析失败,请检查格式是否正确,或直接联系管理员"), k.value = []);
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function U(n, l) {
|
|
40
41
|
console.log("onShpFilesChange---->", n), e.layerName = n.name.split(".")[0];
|
|
41
42
|
}
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
if (
|
|
43
|
+
const _ = () => {
|
|
44
|
+
i.value = !1;
|
|
45
|
+
}, z = async () => {
|
|
46
|
+
if (m.value)
|
|
46
47
|
try {
|
|
47
|
-
await
|
|
48
|
-
...
|
|
48
|
+
await m.value.validate(), console.log("准备提交的数据:", e), d ? (d.decade = e.decade, d.layerName = e.layerName, d.layerType = e.layerType, d.defaultChecked = e.defaultChecked, d.synchronizeApp = e.synchronizeApp, d.id = e.id, d.projectId = e.projectId, d.pid = e.pid, d.columnSet = e.columnSet, d.sourceId = e.sourceId, e.url && (d.url = e.url), C.emit({
|
|
49
|
+
...d,
|
|
49
50
|
targetScreen: "normal"
|
|
50
|
-
})) :
|
|
51
|
+
})) : C.emit({
|
|
51
52
|
layerType: e.layerType,
|
|
52
53
|
layerName: e.layerName,
|
|
53
54
|
id: e.id,
|
|
@@ -61,160 +62,193 @@ const K = { class: "upload-area" }, Q = /* @__PURE__ */ T({
|
|
|
61
62
|
columnSet: e.columnSet,
|
|
62
63
|
sourceId: e.sourceId,
|
|
63
64
|
url: e.url
|
|
64
|
-
}),
|
|
65
|
+
}), i.value = !1;
|
|
65
66
|
} catch (n) {
|
|
66
67
|
console.error("表单验证失败", n);
|
|
67
68
|
}
|
|
69
|
+
}, F = (n, l, a) => {
|
|
70
|
+
i.value = !0, e.pid = l, console.log(
|
|
71
|
+
"打开对话框,操作类型:",
|
|
72
|
+
n,
|
|
73
|
+
"父ID:",
|
|
74
|
+
l,
|
|
75
|
+
"图层信息:",
|
|
76
|
+
a
|
|
77
|
+
), a ? (d = a, e.decade = (a?.decade || "2024") + "", e.layerName = a?.layerName || "", e.layerType = a?.layerType, e.defaultChecked = a?.defaultChecked || 0, e.synchronizeApp = a?.synchronizeApp || 0, e.id = a.id) : (e.id = void 0, e.decade = null, e.layerName = "", e.layerType = void 0, e.defaultChecked = 0, e.synchronizeApp = 0);
|
|
78
|
+
}, f = c(!1), A = () => {
|
|
79
|
+
f.value = !0;
|
|
68
80
|
};
|
|
69
|
-
return
|
|
70
|
-
open:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
onClick: a[4] || (a[4] = (l) => u.value = !1)
|
|
85
|
-
}, {
|
|
86
|
-
default: d(() => [...a[7] || (a[7] = [
|
|
87
|
-
m("取消", -1)
|
|
88
|
-
])]),
|
|
89
|
-
_: 1
|
|
90
|
-
}),
|
|
91
|
-
r(o(g), {
|
|
92
|
-
type: "primary",
|
|
93
|
-
onClick: E
|
|
94
|
-
}, {
|
|
95
|
-
default: d(() => [...a[8] || (a[8] = [
|
|
96
|
-
m("确认", -1)
|
|
97
|
-
])]),
|
|
98
|
-
_: 1
|
|
99
|
-
})
|
|
100
|
-
])
|
|
101
|
-
]),
|
|
102
|
-
default: d(() => [
|
|
103
|
-
r(o(j), {
|
|
104
|
-
model: e,
|
|
105
|
-
rules: N,
|
|
106
|
-
ref_key: "formRef",
|
|
107
|
-
ref: s,
|
|
108
|
-
"label-width": "80px"
|
|
109
|
-
}, {
|
|
110
|
-
default: d(() => [
|
|
111
|
-
r(o(i), {
|
|
112
|
-
label: "所属年份",
|
|
113
|
-
prop: "decade"
|
|
81
|
+
return S({
|
|
82
|
+
open: F
|
|
83
|
+
}), (n, l) => (h(), v(V, null, [
|
|
84
|
+
t(o(j), {
|
|
85
|
+
title: "导入地理图层数据",
|
|
86
|
+
modelValue: i.value,
|
|
87
|
+
"onUpdate:modelValue": l[5] || (l[5] = (a) => i.value = a),
|
|
88
|
+
width: "480",
|
|
89
|
+
center: o(b).dialogConfig.center,
|
|
90
|
+
"before-close": _
|
|
91
|
+
}, {
|
|
92
|
+
footer: r(() => [
|
|
93
|
+
u("span", null, [
|
|
94
|
+
t(o(y), {
|
|
95
|
+
onClick: l[4] || (l[4] = (a) => i.value = !1)
|
|
114
96
|
}, {
|
|
115
|
-
default:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
"onUpdate:modelValue": a[0] || (a[0] = (l) => e.decade = l),
|
|
119
|
-
type: "year",
|
|
120
|
-
placeholder: "请选择年份",
|
|
121
|
-
style: { width: "100%" },
|
|
122
|
-
"value-format": "YYYY"
|
|
123
|
-
}, null, 8, ["modelValue"])
|
|
124
|
-
]),
|
|
97
|
+
default: r(() => [...l[11] || (l[11] = [
|
|
98
|
+
p("取消", -1)
|
|
99
|
+
])]),
|
|
125
100
|
_: 1
|
|
126
101
|
}),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
102
|
+
t(o(y), {
|
|
103
|
+
type: "primary",
|
|
104
|
+
onClick: z
|
|
130
105
|
}, {
|
|
131
|
-
default:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"onUpdate:modelValue": a[1] || (a[1] = (l) => e.layerName = l),
|
|
135
|
-
placeholder: "请输入图层名称(默认使用文件名)"
|
|
136
|
-
}, null, 8, ["modelValue"])
|
|
137
|
-
]),
|
|
138
|
-
_: 1
|
|
139
|
-
}),
|
|
140
|
-
r(o(i), {
|
|
141
|
-
label: "图层类型",
|
|
142
|
-
prop: "layerType"
|
|
143
|
-
}, {
|
|
144
|
-
default: d(() => [
|
|
145
|
-
r(o(O), {
|
|
146
|
-
modelValue: e.layerType,
|
|
147
|
-
"onUpdate:modelValue": a[2] || (a[2] = (l) => e.layerType = l),
|
|
148
|
-
placeholder: "请选择图层类型",
|
|
149
|
-
style: { width: "100%" }
|
|
150
|
-
}, {
|
|
151
|
-
default: d(() => [
|
|
152
|
-
(y(), F(A, null, w(V, (l) => r(o(L), {
|
|
153
|
-
key: l.value,
|
|
154
|
-
label: l.label,
|
|
155
|
-
value: l.value
|
|
156
|
-
}, null, 8, ["label", "value"])), 64))
|
|
157
|
-
]),
|
|
158
|
-
_: 1
|
|
159
|
-
}, 8, ["modelValue"])
|
|
160
|
-
]),
|
|
161
|
-
_: 1
|
|
162
|
-
}),
|
|
163
|
-
r(o(i), { label: "默认加载" }, {
|
|
164
|
-
default: d(() => [
|
|
165
|
-
r(o(P), {
|
|
166
|
-
modelValue: e.defaultChecked,
|
|
167
|
-
"onUpdate:modelValue": a[3] || (a[3] = (l) => e.defaultChecked = l)
|
|
168
|
-
}, null, 8, ["modelValue"])
|
|
169
|
-
]),
|
|
106
|
+
default: r(() => [...l[12] || (l[12] = [
|
|
107
|
+
p("确认", -1)
|
|
108
|
+
])]),
|
|
170
109
|
_: 1
|
|
171
|
-
})
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
110
|
+
})
|
|
111
|
+
])
|
|
112
|
+
]),
|
|
113
|
+
default: r(() => [
|
|
114
|
+
t(o(B), {
|
|
115
|
+
model: e,
|
|
116
|
+
rules: E,
|
|
117
|
+
ref_key: "formRef",
|
|
118
|
+
ref: m,
|
|
119
|
+
"label-width": "80px"
|
|
120
|
+
}, {
|
|
121
|
+
default: r(() => [
|
|
122
|
+
t(o(s), {
|
|
123
|
+
label: "所属年份",
|
|
124
|
+
prop: "decade"
|
|
125
|
+
}, {
|
|
126
|
+
default: r(() => [
|
|
127
|
+
t(o(O), {
|
|
128
|
+
modelValue: e.decade,
|
|
129
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => e.decade = a),
|
|
130
|
+
type: "year",
|
|
131
|
+
placeholder: "请选择年份",
|
|
132
|
+
style: { width: "100%" },
|
|
133
|
+
"value-format": "YYYY"
|
|
134
|
+
}, null, 8, ["modelValue"])
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
}),
|
|
138
|
+
t(o(s), {
|
|
139
|
+
label: "图层名称",
|
|
140
|
+
prop: "layerName"
|
|
141
|
+
}, {
|
|
142
|
+
default: r(() => [
|
|
143
|
+
t(o(L), {
|
|
144
|
+
modelValue: e.layerName,
|
|
145
|
+
"onUpdate:modelValue": l[1] || (l[1] = (a) => e.layerName = a),
|
|
146
|
+
placeholder: "请输入图层名称(默认使用文件名)"
|
|
147
|
+
}, null, 8, ["modelValue"])
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}),
|
|
151
|
+
t(o(s), {
|
|
152
|
+
label: "图层类型",
|
|
153
|
+
prop: "layerType"
|
|
154
|
+
}, {
|
|
155
|
+
default: r(() => [
|
|
156
|
+
t(o(M), {
|
|
157
|
+
modelValue: e.layerType,
|
|
158
|
+
"onUpdate:modelValue": l[2] || (l[2] = (a) => e.layerType = a),
|
|
159
|
+
placeholder: "请选择图层类型",
|
|
160
|
+
style: { width: "100%" }
|
|
182
161
|
}, {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
closable: ""
|
|
190
|
-
})
|
|
191
|
-
]),
|
|
192
|
-
default: d(() => [
|
|
193
|
-
r(o(q), { class: "el-icon--upload" }, {
|
|
194
|
-
default: d(() => [
|
|
195
|
-
r(o(R))
|
|
196
|
-
]),
|
|
197
|
-
_: 1
|
|
198
|
-
}),
|
|
199
|
-
a[6] || (a[6] = p("div", { class: "el-upload__text" }, [
|
|
200
|
-
m("将文件拖到此处,或 "),
|
|
201
|
-
p("em", null, "点击上传")
|
|
202
|
-
], -1))
|
|
162
|
+
default: r(() => [
|
|
163
|
+
(h(), v(V, null, D(I, (a) => t(o(P), {
|
|
164
|
+
key: a.value,
|
|
165
|
+
label: a.label,
|
|
166
|
+
value: a.value
|
|
167
|
+
}, null, 8, ["label", "value"])), 64))
|
|
203
168
|
]),
|
|
204
169
|
_: 1
|
|
205
|
-
}, 8, ["
|
|
206
|
-
])
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
170
|
+
}, 8, ["modelValue"])
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
}),
|
|
174
|
+
t(o(s), { label: "默认加载" }, {
|
|
175
|
+
default: r(() => [
|
|
176
|
+
t(o(Y), {
|
|
177
|
+
modelValue: e.defaultChecked,
|
|
178
|
+
"onUpdate:modelValue": l[3] || (l[3] = (a) => e.defaultChecked = a)
|
|
179
|
+
}, null, 8, ["modelValue"])
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}),
|
|
183
|
+
t(o(s), { label: "shp文件" }, {
|
|
184
|
+
default: r(() => [
|
|
185
|
+
u("div", Q, [
|
|
186
|
+
t(o(q), {
|
|
187
|
+
class: "upload-demo",
|
|
188
|
+
drag: "",
|
|
189
|
+
action: o(N),
|
|
190
|
+
"on-success": T,
|
|
191
|
+
"on-change": U,
|
|
192
|
+
accept: ".zip"
|
|
193
|
+
}, {
|
|
194
|
+
tip: r(() => [
|
|
195
|
+
t(o(R), {
|
|
196
|
+
title: "上传文件支持 zip 格式,单个文件大小不超过50MB,且文件数量不超过 1 个",
|
|
197
|
+
type: "info",
|
|
198
|
+
effect: "light",
|
|
199
|
+
"show-icon": "",
|
|
200
|
+
closable: ""
|
|
201
|
+
})
|
|
202
|
+
]),
|
|
203
|
+
default: r(() => [
|
|
204
|
+
t(o(J), { class: "el-icon--upload" }, {
|
|
205
|
+
default: r(() => [
|
|
206
|
+
t(o(W))
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}),
|
|
210
|
+
l[7] || (l[7] = u("div", { class: "el-upload__text" }, [
|
|
211
|
+
p(" 将文件拖到此处,或 "),
|
|
212
|
+
u("em", null, "点击上传")
|
|
213
|
+
], -1))
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
}, 8, ["action"]),
|
|
217
|
+
u("div", X, [
|
|
218
|
+
u("p", null, [
|
|
219
|
+
l[9] || (l[9] = p(" 1. 请将 shp 数据压缩为 zip 格式后上传,", -1)),
|
|
220
|
+
t(o(y), {
|
|
221
|
+
type: "primary",
|
|
222
|
+
link: "",
|
|
223
|
+
onClick: A
|
|
224
|
+
}, {
|
|
225
|
+
default: r(() => [...l[8] || (l[8] = [
|
|
226
|
+
p("查看教程", -1)
|
|
227
|
+
])]),
|
|
228
|
+
_: 1
|
|
229
|
+
})
|
|
230
|
+
]),
|
|
231
|
+
l[10] || (l[10] = u("p", null, "2. 确保 shp 数据的坐标系为 WGS84 坐标系", -1))
|
|
232
|
+
])
|
|
233
|
+
])
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
})
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
}, 8, ["model", "rules"])
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["modelValue", "center"]),
|
|
243
|
+
t(H, {
|
|
244
|
+
modelValue: f.value,
|
|
245
|
+
"onUpdate:modelValue": l[6] || (l[6] = (a) => f.value = a),
|
|
246
|
+
type: "MakeShpZip",
|
|
247
|
+
title: "上传文件制作流程视频"
|
|
248
|
+
}, null, 8, ["modelValue"])
|
|
249
|
+
], 64));
|
|
216
250
|
}
|
|
217
|
-
}),
|
|
251
|
+
}), pe = /* @__PURE__ */ K(ee, [["__scopeId", "data-v-d8759291"]]);
|
|
218
252
|
export {
|
|
219
|
-
|
|
253
|
+
pe as default
|
|
220
254
|
};
|