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
b0894a3d
authored
2021-02-05 09:54:55 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
属性导入和楼盘表上传功能loading
1 parent
bb9ff632
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
src/components/sxdr/sxdr.vue
src/views/zrz/lpb/bjlp/index.vue
src/components/sxdr/sxdr.vue
View file @
b0894a3
...
...
@@ -12,6 +12,7 @@
action=
"/api/tx/excelGeo/import"
:data=
"sxdrData"
:on-success=
"uploadSuccess"
:before-upload=
"uploadProgress"
:show-file-list=
"false"
multiple
>
...
...
@@ -92,17 +93,21 @@
elemIF
.
style
.
display
=
"none"
;
document
.
body
.
appendChild
(
elemIF
)
},
uploadProgress
(){
vm
.
loadingShow
(
'正在导入中'
)
},
uploadSuccess
(
res
,
file
,
fileList
)
{
this
.
errorData
=
[];
vm
.
loadingHide
();
if
(
res
.
success
)
{
this
.
$message
.
success
(
"
上传
成功"
)
this
.
$message
.
success
(
"
导入
成功"
)
this
.
loading
();
this
.
close
()
}
else
{
if
(
res
.
result
==
null
)
{
this
.
$message
.
error
(
res
.
message
)
}
else
{
this
.
$message
.
error
(
"
上传
失败"
)
this
.
$message
.
error
(
"
导入
失败"
)
this
.
errorData
=
res
.
result
;
}
}
...
...
src/views/zrz/lpb/bjlp/index.vue
View file @
b0894a3
...
...
@@ -330,6 +330,7 @@
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:before-remove=
"beforeRemove"
:before-upload=
"uploadProgress"
:on-success=
"uploadSuccess"
:on-error=
"uploadError"
:show-file-list=
"false"
...
...
@@ -564,7 +565,11 @@ export default {
Message
.
error
(
"上传文件失败"
)
console
.
log
(
"上传文件失败"
,
err
)
},
uploadProgress
(){
vm
.
loadingShow
(
'正在上传中'
)
},
uploadSuccess
(
res
,
file
,
fileList
)
{
vm
.
loadingHide
();
Message
.
success
(
"上传成功"
)
this
.
uploadVisible
=
false
;
},
...
...
Please
register
or
sign in
to post a comment