Commit 6cf23a4b by lichengming

修改了开土制备试样照片

parent c802171e
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
fixed="right"> fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<VXEIconList <VXEIconList
:msg="scope.row.type === 'jpg'||scope.row.type === 'pdf'||scope.row.type === 'png' ?iconMsgJpg:iconMsg" :msg="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>
...@@ -150,10 +150,6 @@ export default { ...@@ -150,10 +150,6 @@ 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: '预览' }
], ],
...@@ -312,23 +308,6 @@ export default { ...@@ -312,23 +308,6 @@ 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 = {}
...@@ -336,10 +315,10 @@ export default { ...@@ -336,10 +315,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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment