Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangweidong
patzn-cloud-web-back-soil
Commits
0eaacf60
Commit
0eaacf60
authored
Jan 15, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了附件图片预览
parent
e788fe57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
FileManageCont.vue
components/file/file-manage/FileManageCont.vue
+1
-1
FilesList.vue
components/file/file-manage/FilesList.vue
+11
-3
No files found.
components/file/file-manage/FileManageCont.vue
View file @
0eaacf60
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</Col>
</Col>
<!--列表-->
<!--列表-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<FilesList
ref=
"fileModal"
:fileName=
"fileName"
@
on-result-change=
"_fileData"
></FilesList>
<FilesList
ref=
"fileModal"
:fileName=
"fileName"
:viewUrl=
"urlData.downloadFileUrl"
@
on-result-change=
"_fileData"
></FilesList>
</Col>
</Col>
</Row>
</Row>
<!--删除提示框-->
<!--删除提示框-->
...
...
components/file/file-manage/FilesList.vue
View file @
0eaacf60
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
fixed=
"right"
>
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<VXEIconList
<VXEIconList
:msg=
"iconMsg"
:msg=
"
scope.row.type === 'jpg'||scope.row.type === 'pdf'||scope.row.type === 'png' ?iconMsgJpg:
iconMsg"
@
on-result-change=
"_iconClick"
:rowData=
"scope.row"
></VXEIconList>
@
on-result-change=
"_iconClick"
:rowData=
"scope.row"
></VXEIconList>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
...
@@ -145,7 +145,8 @@ import BatchUploadSample from './BatchUploadSample'
...
@@ -145,7 +145,8 @@ import BatchUploadSample from './BatchUploadSample'
export
default
{
export
default
{
components
:
{
BatchUpload
,
BatchUploadSample
},
components
:
{
BatchUpload
,
BatchUploadSample
},
props
:
{
props
:
{
fileName
:
null
fileName
:
null
,
viewUrl
:
null
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -193,7 +194,7 @@ export default {
...
@@ -193,7 +194,7 @@ export default {
Ids
:
[],
Ids
:
[],
smallUrl
:
global
.
staticURL
+
'/img/smallfile/'
,
smallUrl
:
global
.
staticURL
+
'/img/smallfile/'
,
bigUrl
:
global
.
staticURL
+
'/img/bigfile/'
,
bigUrl
:
global
.
staticURL
+
'/img/bigfile/'
,
imgUrl
:
global
.
baseURL
+
'/soil/v1/entrust_annex/download/
'
,
imgUrl
:
'
'
,
action
:
''
,
action
:
''
,
dataObj
:
{
dataObj
:
{
file
:
''
file
:
''
...
@@ -234,6 +235,7 @@ export default {
...
@@ -234,6 +235,7 @@ export default {
this
.
idsObj
=
idsObj
this
.
idsObj
=
idsObj
this
.
urlData
=
data
this
.
urlData
=
data
this
.
action
=
global
.
baseURL
+
data
.
uploadFileUrl
+
data
.
id
this
.
action
=
global
.
baseURL
+
data
.
uploadFileUrl
+
data
.
id
this
.
imgUrl
=
global
.
baseURL
+
data
.
downloadFileUrl
this
.
downloadFileUrlFile
=
data
.
downloadFileUrl
this
.
downloadFileUrlFile
=
data
.
downloadFileUrl
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
_page
()
this
.
_page
()
...
@@ -328,6 +330,12 @@ export default {
...
@@ -328,6 +330,12 @@ export default {
case
'pdf'
:
case
'pdf'
:
this
.
$pdfView
(
data
.
objectKey
)
this
.
$pdfView
(
data
.
objectKey
)
break
break
case
'png'
:
const
pngViewList
=
[]
pngViewList
.
push
(
global
.
baseURL
+
this
.
downloadFileUrlFile
+
data
.
id
)
this
.
imgViewList
=
pngViewList
this
.
imgViewIndex
=
0
break
}
}
// console.log(data)
// console.log(data)
// if (this.urlData.viewUri === '/meter/v1/entrust_attachment/preview/') {
// if (this.urlData.viewUri === '/meter/v1/entrust_attachment/preview/') {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment