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
bb05f0fa
authored
2020-12-14 16:00:06 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(lpb):附件预览
1 parent
9ff93aac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
src/api/common.js
src/views/zd/fjcl/fjcl.vue
src/api/common.js
View file @
bb05f0f
...
...
@@ -166,12 +166,12 @@ export function getFileLis(glbsm) {
/**
* 获取文件预览地址
*/
export
function
loadFile
(
url
)
{
export
function
loadFile
(
id
)
{
return
request
({
url
:
"/file/loadImage"
,
method
:
'get'
,
params
:{
url
id
}
})
}
...
...
src/views/zd/fjcl/fjcl.vue
View file @
bb05f0f
...
...
@@ -33,7 +33,7 @@
<td
class=
"cz"
>
<span
@
click=
"downloadFile(item.fileurl)"
>
下载
</span>
<span>
/
</span>
<span
@
click=
"loadFile(item.
fileurl
)"
>
预览
</span>
<span
@
click=
"loadFile(item.
bsm
)"
>
预览
</span>
<span>
/
</span>
<span
@
click=
"deleteFile(item.bsm)"
>
删除
</span>
</td>
...
...
@@ -51,11 +51,6 @@
data
()
{
return
{
list
:
[
{
filename
:
'调查文档1'
,
filepostfix
:
'doc'
,
fileurl
:
''
}
],
filesData
:
{
dylx
:
""
,
...
...
@@ -64,7 +59,8 @@
{
filename
:
""
,
filepostfix
:
""
,
fileurl
:
""
fileurl
:
""
,
preViewUrl
:
""
}
]
},
...
...
@@ -94,8 +90,8 @@
});
});
},
loadFile
(
url
){
loadFile
(
url
).
then
(
res
=>
{
loadFile
(
bsm
){
loadFile
(
bsm
).
then
(
res
=>
{
if
(
res
.
success
)
{
window
.
open
(
res
.
message
)
}
...
...
Please
register
or
sign in
to post a comment