| | |
| | | class="showContent" /> |
| | | <img v-if="scope.row.contentType === 'img'" :src="'/api/files/' + scope.row.contentUrl.url" |
| | | class="showContent" /> |
| | | <el-link type="primary" v-if="scope.row.contentType === 'pdf'" :src="'/api/files/' + scope.row.contentUrl.url" |
| | | class="showContent" @click="checkPdf">点击查看</el-link> |
| | | <el-link type="primary" v-if="scope.row.contentType === 'pdf'" |
| | | class="showContent" @click="checkPdf('/api/files/' + scope.row.contentUrl.url)">点击查看</el-link> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="attachment" label="附件"> |
| | |
| | | typeList: [], |
| | | searchForm: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | pageSize: 5, |
| | | typeName: '' |
| | | }, |
| | | total: 0, |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | checkPdf() { |
| | | this.pdf = 'http://static.shanhuxueyuan.com/test.pdf'; |
| | | checkPdf(url) { |
| | | this.pdf = url; |
| | | this.pdfDialog = true; |
| | | }, |
| | | closePdfDialog() { |