Picture.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <!-- 图片视图 -->
  3. <div class="pic">
  4. <div class="item">
  5. <el-card shadow="hover" v-for="(item, index) in tableData" style="width:200px;margin:5px" :key="index">
  6. <div slot="header"
  7. style="width: 100%; white-space: nowrap;overflow-x: hidden;text-overflow: ellipsis;font-size:12px;">
  8. <div>
  9. 序号:{{ (index + 1) + ((queryParams.current - 1) * queryParams.size) }}
  10. <el-tag class="margin-left_10" style="cursor: pointer;" type="primary" effect="plain" size="small" @click.native="openAddRemark(item)" v-if="noveltySearch && !noveltyIsRemark(item)">添加查新标注</el-tag>
  11. <el-tag class="margin-left_10" style="cursor: pointer;" type="primary" effect="plain" size="small" v-if="noveltySearch && noveltyIsRemark(item)" @click.native="openAddRemark(item)">已标注</el-tag>
  12. </div>
  13. <el-divider></el-divider>
  14. <span v-if="refresh">
  15. <el-checkbox-group :value="patentNoList" >
  16. <el-checkbox :label="item.patentNo" @change="changeSelect(item)">
  17. <el-link v-if="item.ifSearch" :type="item.read === 1 ? 'success' : 'danger'"
  18. @click.native.prevent="handleClick(item, index)">
  19. <span v-html="getView(item, 'patentNo')"></span>
  20. </el-link>
  21. <template v-else>
  22. <span v-html="getView(item, 'patentNo')"></span>
  23. <span>(未匹配到专利)</span>
  24. </template>
  25. </el-checkbox>
  26. </el-checkbox-group>
  27. </span>
  28. <myTooltip :content="getView(item, 'title')">
  29. <div class="noWrap" v-html="getView(item, 'title')"></div>
  30. </myTooltip>
  31. <div v-if="noveltySearch && $c.env == 'development'">
  32. <span>相关度</span><span v-if="!item.score"><i class="el-icon-loading"></i></span><el-progress v-else style="display:inline-block;width:calc(100% - 50px);margin-left:10px;" :text-inside="true" :stroke-width="20" :percentage="item.score" :color="customColors" ></el-progress>
  33. </div>
  34. </div>
  35. <div class="picture text-align_center" style="height: 200px;width:100%;line-height:200px;">
  36. <el-image fit="contain" :src="outside?item.pictureGuid:$commonJS.checkViewer(item.pictureGuid)"
  37. :preview-src-list="[outside?item.pictureGuid:$commonJS.checkViewer(item.pictureGuid)]" style="margin:0 auto;vertical-align:middle;"
  38. :style="{ width: item.imgWidth ? item.imgWidth : '100%', height: item.imgHeight ? item.imgHeight : '100%' }">
  39. <div slot="error" class="image-slot">
  40. <img src="https://www.patentstar.com.cn/img/Common/nopic.jpg" alt="" style="">
  41. </div>
  42. </el-image>
  43. <!-- <el-image v-if="(!projectId && item.abstractPath2) || projectId"
  44. :src="item.abstractPath2 ? item.abstractPath2 : getImagePath1(item)" :preview-src-list="[item.abstractPath2]"
  45. style="margin:0 auto;vertical-align:middle;"
  46. :style="{ width: item.imgWidth ? item.imgWidth : '100%', height: item.imgHeight ? item.imgHeight : '100%' }">
  47. <div slot="error" class="image-slot">
  48. <el-image :src="getErrorImage(item)" :preview-src-list="[getErrorImage(item)]">
  49. <div slot="error" class="image-slot">
  50. <img src="https://www.patentstar.com.cn/img/Common/nopic.jpg" alt="" style="">
  51. </div>
  52. </el-image>
  53. </div>
  54. </el-image> -->
  55. </div>
  56. </el-card>
  57. <!--
  58. </el-col>
  59. </el-row> -->
  60. </div>
  61. <addRemark ref="addRemark" :projectId="projectId" v-on="$listeners"></addRemark>
  62. </div>
  63. </template>
  64. <script>
  65. // import { commonMixins } from "../../articles/components/mixins"
  66. // import { patentViewList, patentKeywordsHighlight } from '../mixins'
  67. import { projectData, handleData } from '../mixins/index'
  68. export default {
  69. mixins: [projectData, handleData],
  70. props: [],
  71. // mixins:[commonMixins,patentViewList, patentKeywordsHighlight ],
  72. data() {
  73. return {
  74. }
  75. },
  76. computed: {
  77. // records() {
  78. // return this.$store.state.patent.records
  79. // }
  80. },
  81. watch: {
  82. records(val, oldval) {
  83. if (val != oldval) {
  84. this.$nextTick(() => {
  85. this.addRecords()
  86. this.refreshCheckBox()
  87. })
  88. }
  89. }
  90. },
  91. mounted() {
  92. },
  93. methods: {
  94. },
  95. }
  96. </script>
  97. <style lang="scss" scoped>
  98. .item{
  99. padding:10px;
  100. display: flex;
  101. flex-wrap: wrap;
  102. }
  103. .item:empty{
  104. padding: 0;
  105. display: block;
  106. height: 100%;
  107. width: 100%;
  108. text-align: center;
  109. line-height: 80px;
  110. &::after{
  111. content: '暂无数据';
  112. color: #909399;
  113. }
  114. }
  115. </style>
  116. <style lang="scss">
  117. .pic {
  118. .el-divider {
  119. margin: 5px 0px;
  120. }
  121. .el-card__header {
  122. padding: 5px !important
  123. }
  124. .el-card__body {
  125. padding: 0px !important
  126. }
  127. }
  128. </style>