Picture.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <!-- 图片视图 -->
  3. <div class="pic">
  4. <div class="item" style="padding:10px;display: flex;flex-wrap: wrap;">
  5. <el-card shadow="hover" v-for="(item, index) in tableData" style="width:200px" :key="index">
  6. <div slot="header"
  7. style="width: 100%; white-space: nowrap;overflow-x: hidden;text-overflow: ellipsis;font-size:12px;">
  8. <div>序号:{{ (index + 1) + ((queryParams.current - 1) * queryParams.size) }}</div>
  9. <el-divider></el-divider>
  10. <span v-if="refresh"> <el-checkbox :label="item.id" @change="changeSelect(item)">
  11. <el-link :disabled="!$permission('/workspace/details')"
  12. :class="$permission('/workspace/details') ? '' : 'jinzhi'" :type="item.read === 1 ? 'success' : 'danger'"
  13. @click.native.prevent="handleClick(item, index)">
  14. <span v-html="getView(item, 'patentNo')"></span>
  15. </el-link>
  16. </el-checkbox> </span>
  17. <el-tooltip effect="dark" :content="getView(item, 'title')" placement="left">
  18. <span style="" v-html="getView(item, 'title')"></span>
  19. </el-tooltip>
  20. </div>
  21. <div class="picture text-align_center" style="height: 200px;width:100%;line-height:200px;">
  22. <el-image :src="$commonJS.checkViewer(item.pictureGuid)"
  23. :preview-src-list="$commonJS.checkViewer(item.pictureGuid)" style="margin:0 auto;vertical-align:middle;"
  24. :style="{ width: item.imgWidth ? item.imgWidth : '100%', height: item.imgHeight ? item.imgHeight : '100%' }">
  25. <div slot="error" class="image-slot">
  26. <img src="https://www.patentstar.com.cn/img/Common/nopic.jpg" alt="" style="">
  27. </div>
  28. </el-image>
  29. <!-- <el-image v-if="(!projectId && item.abstractPath2) || projectId"
  30. :src="item.abstractPath2 ? item.abstractPath2 : getImagePath1(item)" :preview-src-list="[item.abstractPath2]"
  31. style="margin:0 auto;vertical-align:middle;"
  32. :style="{ width: item.imgWidth ? item.imgWidth : '100%', height: item.imgHeight ? item.imgHeight : '100%' }">
  33. <div slot="error" class="image-slot">
  34. <el-image :src="getErrorImage(item)" :preview-src-list="[getErrorImage(item)]">
  35. <div slot="error" class="image-slot">
  36. <img src="https://www.patentstar.com.cn/img/Common/nopic.jpg" alt="" style="">
  37. </div>
  38. </el-image>
  39. </div>
  40. </el-image> -->
  41. </div>
  42. </el-card>
  43. <!--
  44. </el-col>
  45. </el-row> -->
  46. </div>
  47. </div>
  48. </template>
  49. <script>
  50. // import { commonMixins } from "../../articles/components/mixins"
  51. // import { patentViewList, patentKeywordsHighlight } from '../mixins'
  52. import { projectData, handleData } from '../mixins/index'
  53. export default {
  54. mixins: [projectData, handleData],
  55. props: [],
  56. // mixins:[commonMixins,patentViewList, patentKeywordsHighlight ],
  57. data() {
  58. return {
  59. }
  60. },
  61. computed: {
  62. // records() {
  63. // return this.$store.state.patent.records
  64. // }
  65. },
  66. watch: {
  67. records(val, oldval) {
  68. if (val != oldval) {
  69. this.$nextTick(() => {
  70. this.addRecords()
  71. this.refreshCheckBox()
  72. })
  73. }
  74. }
  75. },
  76. mounted() {
  77. },
  78. methods: {
  79. },
  80. }
  81. </script>
  82. <style lang="scss">
  83. .pic {
  84. .el-divider {
  85. margin: 5px 0px;
  86. }
  87. .el-card__header {
  88. padding: 5px !important
  89. }
  90. .el-card__body {
  91. padding: 0px !important
  92. }
  93. }
  94. </style>