Picture.vue 3.1 KB

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