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
ddfe447b
authored
2021-01-12 15:14:43 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(sxdr,fjcl):更改下载页面问题
1 parent
9b736d09
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
8 deletions
src/components/lineTree/lineTree.vue
src/components/sxdr/sxdr.vue
src/views/zd/fjcl/fjcl.vue
src/components/lineTree/lineTree.vue
View file @
ddfe447
...
...
@@ -16,7 +16,7 @@
}"
@click="itemClick(item)"
>
<div
class=
"layer_text nowrap"
@
contextmenu
.
prevent=
"openMenu($event, item)"
>
{{
item
.
mc
}}
</div><div
class=
"reTree_icon"
:style=
"
{
...
...
@@ -229,7 +229,12 @@ export default {
methods
:
{
dcsx
(){
console
.
log
(
this
.
zdData
,
'zdData'
)
window
.
open
(
`api/tx/excelGeo/export?bsm=
${
this
.
zdData
.
bsm
}
&type=
${
this
.
zdData
.
type
}
`
)
// window.open(`api/tx/excelGeo/export?bsm=${this.zdData.bsm}&type=${this.zdData.type}`)
let
url
=
`api/tx/excelGeo/export?bsm=
${
this
.
zdData
.
bsm
}
&type=
${
this
.
zdData
.
type
}
`
let
elemIF
=
document
.
createElement
(
"iframe"
);
elemIF
.
src
=
url
;
elemIF
.
style
.
display
=
"none"
;
document
.
body
.
appendChild
(
elemIF
)
},
drsx
(){
if
(
this
.
zdQszt
!=
'0'
)
{
...
...
src/components/sxdr/sxdr.vue
View file @
ddfe447
...
...
@@ -15,11 +15,8 @@
multiple
>
<el-button
type=
"primary"
icon=
"iconfont iconshangchuan"
>
上传
</el-button>
<el-button
type=
"primary"
@
click=
"downloadTemplate"
>
下载模板
</el-button>
<!--
<a
href=
`/api/tx/excelGeo/template?type=$
{dylx}`>下载模板
</a>
-->
</el-upload>
<el-button
type=
"primary"
@
click=
"downloadTemplate"
>
下载模板
</el-button>
</div>
<ul>
<li
v-for=
"(item,index) in errorData"
:key=
"index"
>
{{
item
}}
</li>
...
...
@@ -80,7 +77,11 @@
this
.
reset
();
},
downloadTemplate
()
{
window
.
open
(
`/api/tx/excelGeo/template?type=
${
this
.
dylx
}
`
);
let
url
=
`/api/tx/excelGeo/template?type=
${
this
.
dylx
}
`
let
elemIF
=
document
.
createElement
(
"iframe"
);
elemIF
.
src
=
url
;
elemIF
.
style
.
display
=
"none"
;
document
.
body
.
appendChild
(
elemIF
)
},
uploadSuccess
(
res
,
file
,
fileList
)
{
this
.
errorData
=
[];
...
...
src/views/zd/fjcl/fjcl.vue
View file @
ddfe447
...
...
@@ -100,7 +100,12 @@
})
},
downloadFile
(
url
)
{
window
.
open
(
`/api/file/download?url=`
+
url
);
// window.open(`/api/file/download?url=` + url);
let
downloadUrl
=
`/api/file/download?url=
${
url
}
`
let
elemIF
=
document
.
createElement
(
"iframe"
);
elemIF
.
src
=
downloadUrl
;
elemIF
.
style
.
display
=
"none"
;
document
.
body
.
appendChild
(
elemIF
)
},
getFileList
()
{
switch
(
this
.
$route
.
name
)
{
...
...
Please
register
or
sign in
to post a comment