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
acb1ff8f
Commit
acb1ff8f
authored
Jan 15, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了入库管理照片管理
parent
0eaacf60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
9 deletions
+32
-9
FilesList.vue
components/file/entrust-file-manage/FilesList.vue
+3
-2
PhotoList.vue
components/file/photo-manage/PhotoList.vue
+29
-7
No files found.
components/file/entrust-file-manage/FilesList.vue
View file @
acb1ff8f
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<li
v-for=
"item in getPage.records"
:key=
"item.id"
>
<li
v-for=
"item in getPage.records"
:key=
"item.id"
>
<div
class=
"thumbnailStyleImg"
>
<div
class=
"thumbnailStyleImg"
>
<Tooltip
placement=
"top"
>
<Tooltip
placement=
"top"
>
<img
:
src=
"
bigUrl+item.type+'.png' "
/>
<img
:
class=
"item.type === 'jpg'||item.type === 'png'?'samllJpg':' ' "
:src=
" item.type==='jpg'||item.type === 'png'?imgUrl+item.id:
bigUrl+item.type+'.png' "
/>
<div
slot=
"content"
style=
"white-space: normal"
>
<div
slot=
"content"
style=
"white-space: normal"
>
<p>
名称:{{item.fileName}}
</p>
<p>
名称:{{item.fileName}}
</p>
</div>
</div>
...
@@ -193,7 +193,7 @@ export default {
...
@@ -193,7 +193,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
:
''
,
action
:
''
,
action
:
''
,
dataObj
:
{
dataObj
:
{
file
:
''
file
:
''
...
@@ -234,6 +234,7 @@ export default {
...
@@ -234,6 +234,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
()
...
...
components/file/photo-manage/PhotoList.vue
View file @
acb1ff8f
...
@@ -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>
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<li
v-for=
"item in getPage.records"
:key=
"item.id"
>
<li
v-for=
"item in getPage.records"
:key=
"item.id"
>
<div
class=
"thumbnailStyleImg"
>
<div
class=
"thumbnailStyleImg"
>
<Tooltip
placement=
"top"
>
<Tooltip
placement=
"top"
>
<img
:
src=
"
bigUrl+item.type+'.png' "
/>
<img
:
class=
"item.type === 'jpg'||item.type === 'png'?'samllJpg':' ' "
:src=
" item.type==='jpg'||item.type === 'png'?imgUrl+item.id:
bigUrl+item.type+'.png' "
/>
<div
slot=
"content"
style=
"white-space: normal"
>
<div
slot=
"content"
style=
"white-space: normal"
>
<p>
名称:{{item.fileName}}
</p>
<p>
名称:{{item.fileName}}
</p>
</div>
</div>
...
@@ -150,6 +150,10 @@ export default {
...
@@ -150,6 +150,10 @@ export default {
imgViewIndex
:
null
,
imgViewIndex
:
null
,
iconMsg
:
[
iconMsg
:
[
{
type
:
'md-remove-circle'
,
id
:
''
,
name
:
'删除'
},
{
type
:
'md-remove-circle'
,
id
:
''
,
name
:
'删除'
},
{
type
:
'ios-download'
,
id
:
''
,
name
:
'下载'
}
],
iconMsgJpg
:
[
{
type
:
'md-remove-circle'
,
id
:
''
,
name
:
'删除'
},
{
type
:
'ios-download'
,
id
:
''
,
name
:
'下载'
},
{
type
:
'ios-download'
,
id
:
''
,
name
:
'下载'
},
{
type
:
'ios-eye'
,
id
:
''
,
name
:
'预览'
}
{
type
:
'ios-eye'
,
id
:
''
,
name
:
'预览'
}
],
],
...
@@ -185,7 +189,7 @@ export default {
...
@@ -185,7 +189,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
:
''
,
action
:
''
,
action
:
''
,
dataObj
:
{
dataObj
:
{
file
:
''
file
:
''
...
@@ -223,6 +227,7 @@ export default {
...
@@ -223,6 +227,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
()
...
@@ -307,6 +312,23 @@ export default {
...
@@ -307,6 +312,23 @@ export default {
},
},
// 预览图片(该合同下所有的)
// 预览图片(该合同下所有的)
_viewImg
(
data
)
{
_viewImg
(
data
)
{
switch
(
data
.
type
)
{
case
'jpg'
:
const
imgViewList
=
[]
imgViewList
.
push
(
global
.
baseURL
+
this
.
downloadFileUrlFile
+
data
.
id
)
this
.
imgViewList
=
imgViewList
this
.
imgViewIndex
=
0
break
case
'pdf'
:
this
.
$pdfView
(
data
.
objectKey
)
break
case
'png'
:
const
pngViewList
=
[]
pngViewList
.
push
(
global
.
baseURL
+
this
.
downloadFileUrlFile
+
data
.
id
)
this
.
imgViewList
=
pngViewList
this
.
imgViewIndex
=
0
break
}
// _viewImg: async function(data) {
// _viewImg: async function(data) {
// console.log(data)
// console.log(data)
// const viewKey = {}
// const viewKey = {}
...
@@ -314,10 +336,10 @@ export default {
...
@@ -314,10 +336,10 @@ export default {
// console.log(viewKey)
// console.log(viewKey)
// const result = await soilEntrust.photoView(viewKey)
// const result = await soilEntrust.photoView(viewKey)
// console.log(result)
// console.log(result)
const
imgViewList
=
[]
//
const imgViewList = []
imgViewList
.
push
(
global
.
baseURL
+
this
.
downloadFileUrlFile
+
data
.
id
)
//
imgViewList.push(global.baseURL + this.downloadFileUrlFile + data.id)
this
.
imgViewList
=
imgViewList
//
this.imgViewList = imgViewList
this
.
imgViewIndex
=
0
//
this.imgViewIndex = 0
// if (this.urlData.viewUri === '/meter/v1/entrust_attachment/preview/') {
// if (this.urlData.viewUri === '/meter/v1/entrust_attachment/preview/') {
// const id = data.entrustId
// const id = data.entrustId
// const result = await meterEntrust.entrustPreview(id)
// const result = await meterEntrust.entrustPreview(id)
...
...
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