|
@@ -64,7 +64,11 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop label='附件' width='80'>
|
|
<el-table-column prop label='附件' width='80'>
|
|
<template slot-scope='{row}'>
|
|
<template slot-scope='{row}'>
|
|
- <div v-if='row.glsmsImage' style='cursor:pointer;color: #0091ff;' @click='clickPic(row.glsmsImage)'>{{row.glsmsImage.length+'张'}}</div>
|
|
|
|
|
|
+ <div
|
|
|
|
+ v-if='row.glsmsZhsxfj'
|
|
|
|
+ style='cursor:pointer;color: #0091ff;'
|
|
|
|
+ @click='clickPic(row.glsmsZhsxfj)'
|
|
|
|
+ >{{row.glsmsZhsxfj.length+'张'}}</div>
|
|
<!-- <div style='cursor:pointer;color: #0091ff;' @click='clickPic'>{{5+'张'}}</div> -->
|
|
<!-- <div style='cursor:pointer;color: #0091ff;' @click='clickPic'>{{5+'张'}}</div> -->
|
|
<div v-else>{{'--'}}</div>
|
|
<div v-else>{{'--'}}</div>
|
|
</template>
|
|
</template>
|
|
@@ -142,10 +146,18 @@ export default {
|
|
},
|
|
},
|
|
components: { Select },
|
|
components: { Select },
|
|
methods: {
|
|
methods: {
|
|
- clickPic() {
|
|
|
|
- if (this.imgUrls.length > 0) {
|
|
|
|
- this.$refs.picLargeOpen.open(this.imgUrls)
|
|
|
|
|
|
+ clickPic(row) {
|
|
|
|
+ this.imgUrl = []
|
|
|
|
+ if (row) {
|
|
|
|
+ row.forEach(el => {
|
|
|
|
+ let obj = {
|
|
|
|
+ name: el.description,
|
|
|
|
+ url: el.urlname
|
|
|
|
+ }
|
|
|
|
+ this.imgUrl.push(obj)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
+ this.$refs.picLargeOpen.open(this.imgUrl)
|
|
/* this.imgUrl = []
|
|
/* this.imgUrl = []
|
|
this.imgUrl2 = []
|
|
this.imgUrl2 = []
|
|
var patternFileExtension = /\.([0-9a-z]+)(?:[\?#]|$)/i
|
|
var patternFileExtension = /\.([0-9a-z]+)(?:[\?#]|$)/i
|