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
64ee56cf
Commit
64ee56cf
authored
Mar 19, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了附件打开文件和独立预检导出抽样单模板
parent
238b611b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
21 deletions
+65
-21
FilesList.vue
components/file/entrust-file-manage/FilesList.vue
+23
-1
FilesList.vue
components/file/file-manage/FilesList.vue
+31
-3
WaitReceive.vue
...e/sample-alone-keep/entrust-sample-manage/WaitReceive.vue
+11
-17
No files found.
components/file/entrust-file-manage/FilesList.vue
View file @
64ee56cf
...
...
@@ -61,7 +61,7 @@
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<VXEIconList
:msg=
"scope.row.type === 'jpg'||scope.row.type === 'pdf'||scope.row.type === 'png' ?iconMsgJpg:iconMsg"
:msg=
"scope.row.type === 'jpg'||scope.row.type === 'pdf'||scope.row.type === 'png'
||scope.row.type === 'xlsx'||scope.row.type === 'docx'||scope.row.type === 'bmp'
?iconMsgJpg:iconMsg"
@
on-result-change=
"_iconClick"
:rowData=
"scope.row"
></VXEIconList>
</
template
>
</vxe-table-column>
...
...
@@ -338,6 +338,28 @@ export default {
this
.
imgViewList
=
pngViewList
this
.
imgViewIndex
=
0
break
case
'bmp'
:
const
bmpViewList
=
[]
bmpViewList
.
push
(
global
.
baseURL
+
this
.
downloadFileUrlFile
+
data
.
id
)
this
.
imgViewList
=
bmpViewList
this
.
imgViewIndex
=
0
break
case
'xlsx'
:
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
break
case
'docx'
:
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
break
}
// console.log(data)
// if (this.urlData.viewUri === '/meter/v1/entrust_attachment/preview/') {
...
...
components/file/file-manage/FilesList.vue
View file @
64ee56cf
...
...
@@ -60,7 +60,7 @@
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<VXEIconList
:msg=
"scope.row.type === 'jpg'||scope.row.type === 'pdf'||scope.row.type === 'png' ?iconMsgJpg:iconMsg"
:msg=
"scope.row.type === 'jpg'||scope.row.type === 'pdf'||scope.row.type === 'png'
||scope.row.type === 'xlsx'||scope.row.type === 'docx'||scope.row.type === 'bmp'
?iconMsgJpg:iconMsg"
@
on-result-change=
"_iconClick"
:rowData=
"scope.row"
></VXEIconList>
</
template
>
</vxe-table-column>
...
...
@@ -127,8 +127,8 @@
</div>
<!--图片预览-->
<div>
<vue-gallery-slideshow
:images=
"imgViewList"
:index=
"imgViewIndex"
@
close=
"imgViewIndex = null
"
></vue-gallery-slideshow>
<vue-gallery-slideshow
:images=
"imgViewList"
:index=
"imgViewIndex"
@
close=
"imgViewIndex = null"
style=
"height: 100vh
"
></vue-gallery-slideshow>
</div>
</div>
...
...
@@ -335,6 +335,34 @@ export default {
this
.
imgViewList
=
pngViewList
this
.
imgViewIndex
=
0
break
case
'bmp'
:
const
bmpViewList
=
[]
bmpViewList
.
push
(
global
.
baseURL
+
this
.
downloadFileUrlFile
+
data
.
id
)
this
.
imgViewList
=
bmpViewList
this
.
imgViewIndex
=
0
break
case
'xlsx'
:
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
break
case
'docx'
:
this
.
$openWindowModeless
({
objectKey
:
data
.
objectKey
,
idType
:
10
,
id
:
data
.
id
,
isReport
:
4
})
break
case
'doc'
:
this
.
$Message
.
warning
(
'预览功能不支持doc格式'
)
break
case
'xls'
:
this
.
$Message
.
warning
(
'预览功能不支持xls格式'
)
break
}
// console.log(data)
// if (this.urlData.viewUri === '/meter/v1/entrust_attachment/preview/') {
...
...
pages/soil-sample-manage/sample-alone-keep/entrust-sample-manage/WaitReceive.vue
View file @
64ee56cf
...
...
@@ -361,24 +361,18 @@ export default {
})
},
_exportTemplate
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据'
)
}
else
{
const
data
=
{
downloadUrl
:
'/soil/v1/sample/export_sampling_list?ids='
+
this
.
selectIds
.
join
(
','
)
// downloadUrl: '/soil/v1/sample/export_sampling_list'
}
console
.
log
(
data
)
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定要导出该模板?'
,
onOk
:
()
=>
{
this
.
_download
(
data
)
}
})
const
data
=
{
downloadUrl
:
'/soil/v1/excel/template_soil/SamplingList.xlsx'
// downloadUrl: '/soil/v1/sample/export_sampling_list'
}
console
.
log
(
data
)
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定要导出该模板?'
,
onOk
:
()
=>
{
this
.
_download
(
data
)
}
})
},
_download
(
data
)
{
window
.
open
(
global
.
baseURL
+
data
.
downloadUrl
,
'_blank'
)
...
...
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