Picture.vue 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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">
  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. >
  12. <el-link :disabled="!$permission('/workspace/details')"
  13. :class="$permission('/workspace/details') ? '' : 'jinzhi'" :type="item.read === 1 ? 'success' : 'danger'"
  14. @click.native.prevent="handleLink(item)">
  15. <span v-html="getViewDom(item,'patentNo')"></span>
  16. </el-link>
  17. </el-checkbox> </span>
  18. <el-tooltip effect="dark" :content="getViewDom2(item,'title')" placement="left">
  19. <span style="" v-html="getViewDom2(item,'title')"></span>
  20. </el-tooltip>
  21. </div>
  22. <div class="picture text-align_center" style="height: 200px;width:100%;line-height:200px;">
  23. <el-image v-if="(!projectId && item.abstractPath2) || projectId"
  24. :src="item.abstractPath2 ? item.abstractPath2 : getImagePath1(item)" :preview-src-list="[item.abstractPath2]"
  25. style="margin:0 auto;vertical-align:middle;"
  26. :style="{ width: item.imgWidth ? item.imgWidth : '100%', height: item.imgHeight ? item.imgHeight : '100%' }">
  27. <div slot="error" class="image-slot">
  28. <el-image :src="getErrorImage(item)" :preview-src-list="[getErrorImage(item)]">
  29. <div slot="error" class="image-slot">
  30. <img src="https://www.patentstar.com.cn/img/Common/nopic.jpg" alt="" style="">
  31. </div>
  32. </el-image>
  33. </div>
  34. </el-image>
  35. </div>
  36. </el-card>
  37. <!--
  38. </el-col>
  39. </el-row> -->
  40. </div>
  41. </div>
  42. </template>
  43. <script>
  44. // import { commonMixins } from "../../articles/components/mixins"
  45. // import { patentViewList, patentKeywordsHighlight } from '../mixins'
  46. import { projectData, handleData } from '../mixins/index'
  47. export default {
  48. mixins: [projectData, handleData],
  49. props: [],
  50. // mixins:[commonMixins,patentViewList, patentKeywordsHighlight ],
  51. data() {
  52. return {
  53. }
  54. },
  55. computed: {
  56. // records() {
  57. // return this.$store.state.patent.records
  58. // }
  59. },
  60. watch: {
  61. records(val, oldval) {
  62. if (val != oldval) {
  63. this.$nextTick(() => {
  64. this.addRecords()
  65. this.refreshCheckBox()
  66. })
  67. }
  68. }
  69. },
  70. mounted() {
  71. },
  72. methods: {
  73. },
  74. }
  75. </script>
  76. <style lang="scss">
  77. .pic {
  78. .el-divider {
  79. margin: 5px 0px;
  80. }
  81. .el-card__header {
  82. padding: 5px !important
  83. }
  84. .el-card__body {
  85. padding: 0px !important
  86. }
  87. }</style>