|
@@ -19,11 +19,18 @@
|
|
<template slot-scope='{row}'>{{row.matters||'--'}}</template>
|
|
<template slot-scope='{row}'>{{row.matters||'--'}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop label='现场照片' :show-overflow-tooltip='true'>
|
|
<el-table-column prop label='现场照片' :show-overflow-tooltip='true'>
|
|
- <template slot-scope='{row}'>{{row.pics ||'--'}}</template>
|
|
|
|
|
|
+ <template slot-scope='{row}'>
|
|
|
|
+ <div
|
|
|
|
+ style='cursor:pointer;color: #0091ff;'
|
|
|
|
+ @click='clickPic(row.glsmsImage)'
|
|
|
|
+ >{{row.glsmsImage?row.glsmsImage.length+'张':'--'}}</div>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop label='维保任务' align='center'>
|
|
<el-table-column prop label='维保任务' align='center'>
|
|
<el-table-column prop label='任务编号' :show-overflow-tooltip='true'>
|
|
<el-table-column prop label='任务编号' :show-overflow-tooltip='true'>
|
|
- <template slot-scope='{row}'>{{row.wb_gzglid||'--'}}</template>
|
|
|
|
|
|
+ <template slot-scope='{row}'>
|
|
|
|
+ <div style='cursor:pointer;color: #0091ff;'>{{row.wb_gzglid||'--'}}</div>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop label='维保任务名称' :show-overflow-tooltip='true' min-width='100'>
|
|
<el-table-column prop label='维保任务名称' :show-overflow-tooltip='true' min-width='100'>
|
|
<template slot-scope='{row}'>{{row.wbrwmc || '--'}}</template>
|
|
<template slot-scope='{row}'>{{row.wbrwmc || '--'}}</template>
|
|
@@ -70,6 +77,7 @@
|
|
@next-click='pageChanged'
|
|
@next-click='pageChanged'
|
|
@current-change='pageChanged'
|
|
@current-change='pageChanged'
|
|
></el-pagination>
|
|
></el-pagination>
|
|
|
|
+ <pic-large :imgUrl='imgUrl' ref='picLargeOpen'></pic-large>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -83,7 +91,8 @@ export default {
|
|
return {
|
|
return {
|
|
value1: '',
|
|
value1: '',
|
|
searVal: '',
|
|
searVal: '',
|
|
- dateVal: ''
|
|
|
|
|
|
+ dateVal: '',
|
|
|
|
+ imgUrl: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: { Select },
|
|
components: { Select },
|
|
@@ -95,6 +104,19 @@ export default {
|
|
},
|
|
},
|
|
formatter(date) {
|
|
formatter(date) {
|
|
return moment.unix(date / 1000).format('YYYY.MM.DD')
|
|
return moment.unix(date / 1000).format('YYYY.MM.DD')
|
|
|
|
+ },
|
|
|
|
+ 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)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|