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
aa4e2e55
authored
2020-12-15 14:21:59 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(sxdr):属性导入
1 parent
08c74968
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
36 deletions
src/components/sxdr/sxdr.vue
src/views/zd/zddcb/index.vue
src/components/sxdr/sxdr.vue
View file @
aa4e2e5
...
...
@@ -15,12 +15,12 @@
multiple
>
<el-button
type=
"primary"
>
上传
</el-button>
<el-button
type=
"primary"
@
click=
"downloadTemplate"
>
下载模板
</el-button>
<el-button
type=
"primary"
@
click=
"downloadTemplate"
>
下载模板
</el-button>
</el-upload>
</div>
<ul>
<li
v-for=
"(item,index) in errorData"
:key=
"index"
>
{{
item
}}
</li>
</ul>
<ul>
<li
v-for=
"(item,index) in errorData"
:key=
"index"
>
{{
item
}}
</li>
</ul>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"dialogVisible = false"
>
确 定
</el-button>
...
...
@@ -52,53 +52,37 @@
sxdrData
:
{
bsm
:
''
},
errorData
:[]
errorData
:
[]
}
},
mounted
(){
this
.
$store
.
state
.
sxdrType
=
''
;
mounted
()
{
this
.
$store
.
state
.
sxdrType
=
''
;
},
methods
:
{
loading
(){
debugger
switch
(
this
.
dylx
)
{
case
"zd"
:
this
.
$store
.
state
.
sxdrType
=
'zd'
;
break
;
case
"dz"
:
this
.
$store
.
state
.
sxdrType
=
'dz'
;
break
;
case
"zrz"
:
this
.
$store
.
state
.
sxdrType
=
'zrz'
;
break
;
case
"h"
:
this
.
$store
.
state
.
sxdrType
=
"h"
;
break
;
default
:
break
;
}
loading
()
{
this
.
$store
.
state
.
sxdrType
=
this
.
dylx
;
},
reset
(){
this
.
errorData
=
[];
this
.
uploadUrl
=
''
;
this
.
sxdrData
=
{
bsm
:
''
};
this
.
$store
.
state
.
sxdrType
=
''
;
reset
()
{
this
.
errorData
=
[];
this
.
uploadUrl
=
''
;
this
.
sxdrData
=
{
bsm
:
''
};
},
close
()
{
this
.
$emit
(
'close'
)
this
.
reset
();
},
downloadTemplate
()
{
window
.
open
(
`/api/tx/excelGeo/zdTemplate?type=`
+
this
.
dylx
);
window
.
open
(
`/api/tx/excelGeo/zdTemplate?type=`
+
this
.
dylx
);
},
uploadSuccess
(
res
,
file
,
fileList
)
{
if
(
res
.
success
)
{
this
.
$message
.
success
(
"上传成功"
)
debugger
this
.
loading
();
this
.
close
()
}
else
{
this
.
$message
.
error
(
"上传失败"
)
this
.
errorData
=
res
.
result
this
.
errorData
=
res
.
result
}
}
},
...
...
@@ -123,15 +107,16 @@
</
script
>
<
style
scoped
lang=
"less"
>
.main-button
{
.main-button
{
display
:
-webkit-flex
;
display
:
flex
;
flex-direction
:
column-reverse
;
flex-wrap
:
nowrap
;
flex-wrap
:
nowrap
;
}
ul
{
ul
{
margin-top
:
20px
;
li{
li
{
line-height
:
15px
;
color
:
red
;
}
...
...
src/views/zd/zddcb/index.vue
View file @
aa4e2e5
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment