Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f43aad33
authored
2020-12-02 09:10:47 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
gis前端excel上传图形功能
1 parent
a9de72a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
src/components/lineTree/tx/importGeo.vue
src/views/zd/jzd/index.vue
src/components/lineTree/tx/importGeo.vue
View file @
f43aad3
...
...
@@ -149,9 +149,33 @@ export default {
debugger
},
excelFileSuccess
(
response
,
file
,
fileList
){
var
self
=
this
;
if
(
response
.
success
){
var
result
=
response
.
result
;
var
points
=
[];
for
(
var
i
=
0
;
i
<
result
.
length
;
i
++
){
var
point
=
[];
point
[
0
]
=
parseFloat
(
result
[
i
].
x
);
point
[
1
]
=
parseFloat
(
result
[
i
].
y
);
points
.
push
(
point
);
}
var
wkt
=
"PROJCS[\"XADFZBX\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]"
;
var
geometry
=
{
rings
:[[
points
]],
spatialReference
:{
wkt
:
wkt
},
type
:
"polygon"
}
var
graphic
=
{
attributes
:
null
,
geometry
:
geometry
}
if
(
self
.
propertyInfo
.
type
==
"zd"
){
self
.
saveZd
(
graphic
);
}
else
{
self
.
saveZRZ
(
graphic
);
}
}
else
{
this
.
$message
.
warning
(
response
.
message
);
}
...
...
src/views/zd/jzd/index.vue
View file @
f43aad3
...
...
@@ -171,7 +171,7 @@
},
methods
:
{
getData
(
bsm
)
{
queryjzd
(
bsm
).
then
(
res
=>
{
queryjzd
(
{
glBsm
:
bsm
}
).
then
(
res
=>
{
for
(
let
i
=
0
;
i
<
res
.
result
.
length
;
i
++
)
{
res
.
result
[
i
][
'isCheck'
]
=
false
;
res
.
result
[
i
][
'iszb'
]
=
'readonly'
;
...
...
Please
register
or
sign in
to post a comment