PatentLeft.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <div class="PatentLeft height_100" style="">
  3. <div
  4. style="display: flex;justify-content: space-evenly;height: 50px;line-height: 50px;border-bottom: 1px solid #ccc;">
  5. <div>总专利数量:{{ total }}</div>
  6. </div>
  7. <div class="list" v-if="[1,2,7].findIndex(item=>{return item == reportType}) == -1">
  8. <div class="left-patentNo" v-for="(item,index) in patentList" :key="item.patentNo" :style="{background:(item.patentNo == patentNo)? '#cdd7eb':''}" @click="$emit('getPatentLeft',item.patentNo,index)">
  9. <div>{{ item.patentNo }}</div>
  10. <my-tooltip :content="item.title.filter(item=> item.if_origin)[0].text_content" placement="bottom-start">
  11. <div style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{ item.title.filter(item=> item.if_origin)[0].text_content }}</div>
  12. </my-tooltip>
  13. </div>
  14. </div>
  15. <div class="list" v-else>
  16. <div class="left-patentNo" v-for="(item,index) in patentList" :key="item.name" :style="{background:(item.literatureNo == patentNo)? '#cdd7eb':''}" @click="$emit('getPatentLeft',item,index,true)">
  17. <div>{{ item.name }}</div>
  18. </div>
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. patentList: {
  26. type: Array,
  27. default: () => {
  28. return []
  29. }
  30. },
  31. total: {
  32. type: Number,
  33. default: 0
  34. },
  35. patentNo:{
  36. default:''
  37. },
  38. reportType:{
  39. default:0
  40. }
  41. },
  42. data() {
  43. return {
  44. }
  45. },
  46. mounted() {
  47. },
  48. methods: {
  49. },
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. .PatentLeft {
  54. .list{
  55. height: calc(100% - 50px);
  56. overflow-y: auto;
  57. }
  58. .list:empty::before{
  59. content:'无对比专利';
  60. color: #958b8b8c;
  61. font-size: 20px;
  62. display: flex;
  63. justify-content: center;
  64. }
  65. .left-patentNo {
  66. border-bottom: 1px solid #ccc;
  67. overflow: hidden;
  68. padding: 5px 10px;
  69. height: 60px;
  70. color: #333;
  71. font-size: 14px;
  72. padding-top: 10px;
  73. }
  74. .left-patentNo:hover {
  75. background: #cdd7eb;
  76. }
  77. }
  78. </style>