Browse Source

专利详情

zhuliu 1 năm trước cách đây
mục cha
commit
a46cd42834

+ 4 - 3
src/views/project/patentCollection/components/mixins/index.js

@@ -49,7 +49,7 @@ export const projectData = {
         {
           path:'patentDetails/'+row.patentNo,
           query:{
-            projectId:row.id
+            projectId:this.projectId
           }
         }
       )
@@ -168,10 +168,11 @@ export const handleData = {
     handleChange(row, key) {
       switch (key) {
         case "title":
-          row.change = !row.change
+          this.$set(row,'change',!row.change)
           break
         case "abstractStr":
-          row.change2 = !row.change2
+          this.$set(row,'change2',!row.change2)
+          // row.change2 = !row.change2
           break
       }
     },

+ 4 - 4
src/views/project/patentDetails/components/patentDetails.vue

@@ -16,7 +16,7 @@
                   </div>
                   <div style="color: #6b6868; font-size: 15px;padding-bottom: 5px;">
                     <span v-html="getView(patent, 'title')"></span>
-                    <el-link v-if="projectId" type="primary" @click.native="handleChange(patent, 'name')"
+                    <el-link v-if="projectId" type="primary" @click.native="handleChange(patent, 'title')"
                       style="margin-left: 10px;margin-top: -3px;">
                       <span v-if="!patent.change">切换译文</span>
                       <span v-else>切换原文</span>
@@ -73,8 +73,8 @@
             </div>
         </el-header>
         <el-main>
-            <div>
-                <div class="patent-article-left" :style="{ width: showRight ? 'calc(100% - 321px)' : 'calc(100% - 21px)' }">
+            <div class="height_100">
+                <div class="height_100" :style="{ width: showRight ? 'calc(100% - 321px)' : 'calc(100% - 21px)' }">
                     <my-view :position="this.positionList.find(item=>item.value == radio).position" :showView="radio!=1 && activeMenu != activeMenu2">
                         <div slot="left">
                             <component :activeName="activeMenu" style="width:100%;padding-right: 10px;"
@@ -87,7 +87,7 @@
                         </div>
                     </my-view>
                 </div>
-                <div class="patent-article-right" v-if="showRight">
+                <div class="height_100" v-if="showRight">
                     <el-container>
                         <el-header>
                             <div class="patent-articles-option">

+ 10 - 10
src/views/project/patentDetails/components/patentMessage/PatentBasic.vue

@@ -62,7 +62,7 @@
       <el-col :span="6">
          <el-card shadow="never" class="text-align_center " style="margin-top:50px;" data-type="附图">
           <div style="height: 200px;" class="picture">
-            <el-image v-if="(!projectId && patent.abstractPath2)||projectId" :src="patent.abstractPath2?patent.abstractPath2:getImagePath1(patent)" :preview-src-list="[patent.abstractPath2]" :style="{width:patent.imgWidth?patent.imgWidth:'100%',height:patent.imgHeight?patent.imgHeight:'100%'}">
+            <el-image :src="$commonJS.checkViewer(patent.pictureGuid)" :preview-src-list="[$commonJS.checkViewer(patent.pictureGuid)]" :style="{width:patent.imgWidth?patent.imgWidth:'100%',height:patent.imgHeight?patent.imgHeight:'100%'}">
               <div slot="error" class="image-slot">
                 <img src="https://www.patentstar.com.cn/img/Common/nopic.jpg" alt="">
               </div>
@@ -79,12 +79,12 @@
             <el-tabs value="0">
               <el-tab-pane label="著录项目" name="0">
                 <el-descriptions :column=2>
-                  <el-descriptions-item label="申请号"><div class="patent-basic-value"  v-html="getViewDom(patent.applicationNo,'申请号')"></div></el-descriptions-item>
-                  <el-descriptions-item label="申请日"><div class="patent-basic-value"  v-html="getViewDom(patent.applicationDate,'申请日')"></div></el-descriptions-item>
+                  <el-descriptions-item label="申请号"><div class="patent-basic-value"  v-html="getViewDom(patent.appNo,'申请号')"></div></el-descriptions-item>
+                  <el-descriptions-item label="申请日"><div class="patent-basic-value"  v-html="getViewDom(patent.appDate,'申请日')"></div></el-descriptions-item>
                   <el-descriptions-item label="公开号"><div class="patent-basic-value" v-html="getViewDom(patent.publicNo,'公开号')"></div></el-descriptions-item>
                   <el-descriptions-item label="公开日"><div class="patent-basic-value"  v-html="getViewDom(patent.publicDate,'公开日')"></div></el-descriptions-item>
-                  <el-descriptions-item label="授权号" v-if="patent.publicAccreditNo"><div class="patent-basic-value"  v-html="getViewDom(patent.publicAccreditNo,'授权号')"></div></el-descriptions-item>
-                  <el-descriptions-item label="授权日" v-if="patent.publicAccreditDate"><div class="patent-basic-value"  v-html="getViewDom(patent.publicAccreditDate,'授权日')"></div></el-descriptions-item>
+                  <el-descriptions-item label="授权号" v-if="patent.publicAccreditNo"><div class="patent-basic-value"  v-html="getViewDom(patent.grantNo,'授权号')"></div></el-descriptions-item>
+                  <el-descriptions-item label="授权日" v-if="patent.publicAccreditDate"><div class="patent-basic-value"  v-html="getViewDom(patent.grantDate,'授权日')"></div></el-descriptions-item>
                   <el-descriptions-item label="优先权" v-if="patent.priorityNo"><div class="patent-basic-value"  v-html="getViewDom(patent.priorityNo,'优先权')+ '&nbsp;&nbsp;&nbsp;&nbsp;' +getViewDom(patent.priorityDate)"></div></el-descriptions-item>
                 </el-descriptions>
               </el-tab-pane>
@@ -127,7 +127,7 @@
                   <div class="patent-basic-value margin-right_10" v-for="item in patent.inventor" :key="item.name" v-html="getViewDom(item.name,'发明人')" ></div>
                 </el-descriptions-item>
                 <el-descriptions-item label="代理人" labelStyle="width:90px" v-if="patent.agent && patent.agent.length>0">
-                  <div class="patent-basic-value margin-right_10" v-for="item in patent.agent" :key="item.name"  v-html="getViewDom(item.name,'代理人')"></div>
+                  <div class="patent-basic-value margin-right_10" v-for="item in patent.agent" :key="item"  v-html="getViewDom(item,'代理人')"></div>
                 </el-descriptions-item>
                 <el-descriptions-item label="代理机构" labelStyle="width:90px" v-if="patent.agency">
                    <div v-if="patent.agency" class="patent-basic-value"  v-html="getViewDom(patent.agency.name,'代理机构')"></div>
@@ -146,10 +146,10 @@
         <el-row :gutter="24">
           <el-col :span="24">
             <el-tabs value="0">
-              <el-tab-pane label="分类号" name="0"  v-if="patent.ipcList">
+              <el-tab-pane label="分类号" name="0"  v-if="patent.ipc">
                 <el-descriptions :column=1>
                 <el-descriptions-item label="IPC分类号" contentStyle="display:flex;flex-direction: row;flex-wrap: wrap;justify-content: flex-start;">
-                  <div class="patent-basic-value margin-right_10" v-for="item in patent.ipcList" :key="item" v-html="getViewDom(item,'IPC分类号')"></div>
+                  <div class="patent-basic-value margin-right_10" v-for="item in patent.ipc" :key="item" v-html="getViewDom(item.level5,'IPC分类号')"></div>
                 </el-descriptions-item>
             </el-descriptions>
               </el-tab-pane>
@@ -264,8 +264,8 @@ export default {
 .patent-basic {
   // height: 500px;
   overflow: auto;
-  height:calc(100% + 30px) ;
-  padding-bottom: 10px;
+  // height:calc(100% + 30px) ;
+  // padding-bottom: 10px;
   .el-image {
     width: 100%;
   }