Просмотр исходного кода

Merge branch 'product' of http://1.116.113.26:8088/zhuliu/xiaoshi_system into product

zhuhao 1 год назад
Родитель
Сommit
ed5f2bb0b6

+ 0 - 279
src/views/components/import/conditionImport/patentDetails/patentDetail.vue

@@ -1,279 +0,0 @@
-<template>
-    <div>
-        <div class="patent-articles" >
-            <el-container v-loading="loading">
-                <el-container >
-                    <el-header class="patent-articles-title">
-                        <div class="patent-articles-title-box">
-                            <div style="position:relative">
-                                <img src="@/assets/visual/fixed.png" width="20px" height="20px" v-if="fix===true" @click="qx" style="position:absolute;top:5px;left:5px"/>
-                                <img src="@/assets/visual/unfixed.png" width="20px" height="20px" v-if="fix===false"  @click="gd" style="position:absolute;top:5px;left:5px"/>
-                                <div>
-                                    <span v-html="getViewDom(patent.patentNo)"></span>
-                                    <el-tag type="primary" effect="dark" size="mini" class="margin-left_10">{{ patent.simpleStatus }}</el-tag>
-                                </div>
-                                <div style="color: #6b6868; font-size: 15px;border-bottom: 1px solid #e6e6e6;padding-bottom: 5px;">
-                                    <span v-html="getViewDom2(patent, 'name')"></span>
-                                    <el-link v-if="projectId" type="primary" @click.native="handleChange(patent, 'name')" style="margin-left: 10px;margin-top: -3px;">
-                                        <span v-if="!patent.change">切换译文</span>
-                                        <span v-else>切换原文</span>
-                                    </el-link>
-                                </div>
-                            </div>
-                            <div  style="  position: relative;">
-                                <el-link v-for="item in menuList" :type="activeMenu === item.value ? 'primary' : undefined" v-if="!item.show" @click.native="handleSelect(item.value)">
-                                {{ item.label }}
-                                <!-- <span v-if="item.value == 'PatentImage'|| item.value=='PatentPDF'" @click.stop="ending(item.value)">
-                                    <el-popover
-                                        placement="right"
-                                        width="400"
-                                        trigger="click">
-                                        <el-radio v-for="(item, index) in positionList" :key="index" v-model="radio" @input="changePosition"  :label="item.value">{{item.label}}</el-radio>
-                                        <i class="el-icon-setting" slot="reference"></i>
-                                    </el-popover>
-                                    </span> -->
-                                </el-link>
-                            </div>
-                        </div>
-                    </el-header>
-                    <el-main class="patent-articles-content" style="padding-left:30px">
-                        <div class="patent-articles-content-left">
-                            <!-- <div class="dom1 box1" v-dragControllerDiv1 style="display:flex;width:100%">
-                                <div class="component left1" style="width:100%;overflow-y:auto;overflow-x: hidden;" :style="{height:height}"> -->
-                                    <component style="width:100%;height:100%" :style="{height:height}" :is="componentName" :patent="patent" :patentNo="[patent.patentNo]" :domId="patent.patentNo + '1'"  :pdfType1="(patent.pdf && patent.pdf.length>0)?patent.pdf[0].type:2" @refresh="getPatent(applicationNo)"></component>
-                                <!-- </div> -->
-                                <!-- <div class="resize2" title="收缩侧边栏" v-show="(radio == 2 || radio == 3) && activeMenu != activeMenu2"><p><span>˙</span><span>˙</span><span>˙</span></p></div>
-                                <div class="resize1" title="收缩侧边栏" v-show="(radio == 4 || radio == 5) && activeMenu != activeMenu2"><span>⋮</span></div>
-                                <div v-show="radio != 1 && activeMenu != activeMenu2" class="mid1" :style="{height:(radio == 4 || radio == 5)?height:'280px'}" style="width:450px;height:280px;border:1px solid #E4E7ED;overflow-y:auto;overflow-x: hidden;">
-                                    <component :is="activeMenu2" :patent="patent" :patent-id="patentId" :pdfType1="(patent.pdf && patent.pdf.length>0)?patent.pdf[0].type:2" :sign="true"></component>
-                                </div> -->
-                            <!-- </div> -->
-                        </div>
-                    </el-main>
-                </el-container>
-            </el-container>
-            <div class="content-main" style="padding-left:40px"></div>
-        </div>
-    </div>
-</template>
-
-<script>
-import { changeTranslation, patentKeywordsHighlight } from '@/views/workspace/folder/components/mixins'
-
-import PatentField from '@/views/workspace/folder/articles/components/PatentField'
-import PatentAnnotation from '@/views/workspace/folder/articles/components/PatentAnnotation'
-import PatentBasic from "@/views/workspace/folder/articles/components/PatentBasic"
-import PatentPDF from "@/views/workspace/folder/articles/components/PatentPDF"
-import PatentImage from "@/views/workspace/folder/articles/components/PatentImage"
-import PatentRight from "@/views/workspace/folder/articles/components/PatentRight"
-import PatentInstruction from "@/views/workspace/folder/articles/components/PatentInstruction"
-import PatentFamily from "@/views/workspace/folder/articles/components/PatentFamily"
-import PatentStatus from "@/views/workspace/folder/articles/components/PatentStatus"
-
-export default {
-  components: {
-    PatentField,
-    PatentAnnotation,
-    PatentBasic,
-    PatentPDF,
-    PatentImage,
-    PatentRight,
-    PatentFamily,
-    PatentStatus,
-    PatentInstruction,
-  },
-  props: ['applicationNo','projectId'],
-  mixins: [patentKeywordsHighlight, changeTranslation],
-  data() {
-    return {
-        radio:1,
-        height:null,
-        loading:false,
-        fix:false,
-        activeMenu: 'PatentBasic',
-        activeMenu2:'',
-        componentName: 'PatentBasic',
-        menuList: [
-            {
-                value: 'PatentBasic',
-                label: '基础信息'
-            },
-            {
-                value: 'PatentRight',
-                label: '权利要求'
-            },
-            {
-                value: 'PatentImage' ,
-                label:'附图'
-            },
-            {
-                value: 'PatentInstruction',
-                label: '说明书文本'
-            },
-            {
-                value: 'PatentFamily',
-                label: '同族专利'
-            },
-            {
-                value: 'PatentStatus',
-                label: '事务数据'
-            },
-            {
-                value: 'PatentPDF',
-                label: '说明书'
-            },
-        ],
-        positionList:[
-            {
-                label:'tab展示',
-                value:1
-            },
-            {
-                label:'上边展示',
-                value:2
-            },
-            {
-                label:'下边展示',
-                value:3
-            },
-            {
-                label:'左边展示',
-                value:4
-            },
-            {
-                label:'右边展示',
-                value:5
-            },
-        ],
-        patent:{},
-    };
-  },
-  watch: {
-    applicationNo(val){
-        if(this.fix!=true){
-          this.getPatent(val)
-        }
-    },
-    fix(val){
-        this.$emit('on-change',val)
-    },
-  },
-  computed: {},
-  created() {},
-  async mounted() {
-   await this.getPatent(this.applicationNo)
-   this.changePageTitle()
-   this.$nextTick(()=>{
-        this.$set(this,'height',document.getElementsByClassName('el-main')[0].offsetHeight-200  + 'px')
-     })
-  },
-  methods: {
-     //修改title
-     changePageTitle() {
-      document.title = `${this.patent.patentNo} ${this.patent.name || ''}`
-    },
-    //解除定住,可以切换
-    qx(){
-      this.fix=false
-    },
-    //定住不能切换
-    gd(){
-      this.fix=true
-    },
-    //切换显示内容
-    handleSelect(index) {
-    //   if(index == this.activeMenu2){
-    //     this.activeMenu2 = ''
-    //     this.radio = 1
-    //     this.changePosition(this.radio)
-    //   }
-      this.activeMenu = index
-      this.componentName = index
-    },
-    //获取专利信息
-    async getPatent(applicationNo){
-        var params =this.$s.getSession('params').params
-        params.CurrentQuery = "(AN="+ applicationNo +")"
-        params.PageNum = 1
-        // params.retrieveRecordId = null
-        this.loading = true
-       await this.$api.patentSelectImport(params).then(response=>{
-          if(response.code == 200){
-            this.patent = response.data.records[0]
-            this.loading = false
-          }
-        }).catch(error=>{
-          this.loading = false
-        })
-    },
-  },
-};
-</script>
-<style lang="scss" scoped>
-.patent-articles {
-  width: 100%;
-  height: 100% !important;
-  padding: 0 !important;
-  .patent-articles-menu {
-
-  }
-  .el-menu-item.is-active {
-    background: #ecf5ff !important;
-    color: #409EFF!important;
-  }
-  .patent-articles-title {
-    padding: 0 !important;
-    height: 100px !important;
-    .el-link {
-      margin-right: 20px;
-    }
-    .patent-articles-title-box {
-      font-size: 20px;
-      width: 100%;
-      text-align: center;
-    }
-  }
-  .patent-articles-content {
-    background: #fff;
-    padding: 0;
-    height: 100%;
-    overflow: hidden;
-    .patent-articles-content-left {
-        width:100%;
-      float: left;
-      height: 100%;
-      overflow-y: auto;
-      overflow-x: hidden;
-      padding: 10px;
-    }
-    .patent-articles-content-right {
-      width: 300px;
-      border-left: 1px solid #e6e6e6;
-      float: right;
-      height: 100%;
-      .el-header {
-        height: 50px !important;
-        position: relative !important;
-      }
-      .el-main {
-        padding: 0 12px !important;
-      }
-      .el-container, .el-main {
-        height: 100%;
-      }
-      .patent-articles-option {
-        position: absolute;
-        bottom: 0;
-        height: 100%;
-        left: 50px;
-        .el-tabs {
-          margin-top: 9px;
-        }
-        .el-tabs__header {
-          margin-bottom: 0 !important;
-        }
-      }
-    }
-  }
-}
-</style>

+ 2 - 1
src/views/components/import/conditionImport/searchResult.vue

@@ -28,6 +28,7 @@
             ref="patentViewList"
             :is="viewSelected"
             :column="columnList"
+            :tableData="tableData"
             @select-change="handleSelect"
             :selected.sync="queryParams.selected"
             :patentNoList.sync="patentNoList"
@@ -245,7 +246,7 @@ export default {
             this.total = response.data.total;
             this.$set(this.queryParams,'startNumber',this.endNumber > 0 ? this.startNumber : 1)
               this.$set(this.queryParams,'endNumber',this.endNumber > 0 ? this.endNumber : this.total)
-            let records = response.data.records;
+            let records = response.data.data
             this.tableData = records
             params.retrieveRecordId = response.data.retrieveRecordId
             this.queryParams.retrieveRecordId = response.data.retrieveRecordId

+ 0 - 373
src/views/components/import/conditionImport/view/Abstract.vue

@@ -1,373 +0,0 @@
-<template>
-  <div class="patent-abstract-list-view">
-    <div class="patent-abstract-card" v-for="(patent, index) in records">
-      <div class="patent-abstract-card-wrapper">
-        <table class="patent-abstract-card-table">
-          <tbody>
-            <tr>
-              <td v-if="refresh"><el-checkbox :label="patent.id" @change="changeSelect(patent)" :checked="selected.indexOf(patent.id) !== -1 || patentNoList.indexOf(patent.patentNo)!== -1"></el-checkbox></td>
-              <td>
-                <div class="patent-abstract-index-container">
-                  <span>{{ (index + 1) + ((params.current - 1) * params.size) }}</span>
-                  <span v-if="reportId">
-                    <el-tag :type="patent.read === 0 ? 'danger' : 'success'" v-if="$permission('/workspace/folder/isRead')" effect="dark" size="small" @click="handleChangeRead(patent)">{{ readType[patent.read] }}</el-tag>
-                    <el-tag type="info" v-else effect="dark" size="small" >{{ readType[patent.read] }}</el-tag>
-                  </span>
-                  
-                </div>
-                <!-- <el-popover placement="right-start" width="600" trigger="hover">
-                  <img :src="getPatentAbstractImage(patent.abstractPath)" height="400" width="100%">
-                  <div class="patent-abstract-image-container" slot="reference">
-                    <img :src="getPatentAbstractImage(patent.abstractPath)">
-                  </div>
-                </el-popover> -->
-                <div class="picture text-align_center patent-abstract-image-container" style="">
-                    <el-image v-if="(!reportId && patent.abstractPath2)||reportId" :src="patent.abstractPath2?patent.abstractPath2:getImagePath1(patent)" :preview-src-list="[patent.abstractPath2]" style="margin:0 auto;vertical-align:middle;" :style="{width:patent.imgWidth?patent.imgWidth:'100%',height:patent.imgHeight?patent.imgHeight:'100%'}">
-                    <div slot="error" class="image-slot">
-                      <el-image :src="getErrorImage(patent)" :preview-src-list="[getErrorImage(patent)]">
-                        <div slot="error" class="image-slot">
-                          <img src="https://www.patentstar.com.cn/img/Common/nopic.jpg" alt="" style="">
-                        </div>
-                      </el-image>
-                    </div>
-                  </el-image>
-
-                </div>
-                <div class="patent-abstract-pdf-button-container">
-                  <el-button :disabled="!$permission('/workspace/folder/PDFdownload')" class="width_100" size="small" type="primary" @click="handleDownload(patent)">PDF 下载</el-button>
-                </div>
-              </td>
-              <td width="850px">
-                <div class="patent-abstract-title">
-                  <el-link :disabled="!$permission('/workspace/details')" :class="$permission('/workspace/details')?'':'jinzhi'" type="success" @click.native="handleLink(patent)">
-                    <span v-html="getViewDom(patent.patentNo)"></span>
-                  </el-link>
-                  <el-tag class="margin-left_10" type="primary" effect="dark" size="small" v-if="patent.simpleStatus">{{ patent.simpleStatus }}</el-tag>
-                </div>
-                <div style="font-size: 13px;">
-                  <el-row>
-                    <el-col :span="24" v-if="t()">
-                      <span class="patent-abstract_label">标题:</span>
-                      <span class="patent-abstract_text">
-                        <span v-html="getViewDom2(patent, 'name')"></span>
-                        <el-link v-if="reportId" type="primary" @click.native="handleChange(patent, 'name')" style="margin-left: 10px;">
-                          <span v-if="!patent.change">切换译文</span>
-                          <span v-else>切换原文</span>
-                        </el-link>
-                      </span>
-                    </el-col>
-                  </el-row>
-                  <el-row>
-                    <el-col :span="8" v-if="t()">
-                      <span class="patent-abstract_label">申请日:</span>
-                      <span class="patent-abstract_text">
-                        <span v-html="getViewDom(patent.applicationDate)"></span>
-                      </span>
-                    </el-col>
-                    <el-col :span="8" v-if="t()">
-                      <span class="patent-abstract_label">公开日:</span>
-                      <span class="patent-abstract_text">
-                        <span v-html="getViewDom(patent.publicDate)"></span>
-                      </span>
-                    </el-col>
-                    <el-col :span="8" v-if="t()">
-                      <span class="patent-abstract_label">申请号:</span>
-                      <span class="patent-abstract_text">
-                        <span v-html="getViewDom(patent.applicationNo)"></span>
-                      </span>
-                    </el-col>
-                  </el-row>
-                  <el-row v-if="t()">
-                    <el-col :span="24">
-                      <span class="patent-abstract_label">权利人:</span>
-                      <span class="patent-abstract_text" v-if="patent.applicant">
-                        <template v-for="(item, index) in patent.applicant.filter(a => a.dataType === 1)">
-                          <el-link type="primary">
-                            <span v-html="getViewDom(item.name)"></span>
-                          </el-link>
-                          <span class="patent-abstract_semicolon">;</span>
-                        </template>
-                      </span>
-                    </el-col>
-                  </el-row>
-                  <el-row v-if="t()">
-                    <el-col :span="24">
-                      <span class="patent-abstract_label">申请人:</span>
-                      <span class="patent-abstract_text" v-if="patent.applicant">
-                        <template v-for="(item, index) in patent.applicant.filter(a => a.dataType === 2)">
-                          <el-link type="primary">
-                            <span v-html="getViewDom(item.name)"></span>
-                          </el-link>
-                          <span class="patent-abstract_semicolon">;</span>
-                        </template>
-                      </span>
-                    </el-col>
-                  </el-row>
-                  <el-row v-if="t()">
-                    <el-col :span="24">
-                      <span class="patent-abstract_label">发明人:</span>
-                      <span class="patent-abstract_text">
-                        <template v-for="(item, index) in patent.inventor">
-                          <el-link type="primary">
-                            <span v-html="getViewDom(item.name)"></span>
-                          </el-link>
-                          <span class="patent-abstract_semicolon">;</span>
-                        </template>
-                      </span>
-                    </el-col>
-                  </el-row>
-                  <el-row v-if="t()">
-                    <el-col :span="24">
-                      <span class="patent-abstract_label">IPC分类号:</span>
-                      <span class="patent-abstract_text">
-                        <template v-for="(item, index) in patent.ipcList">
-                          <el-link type="primary">
-                            <span v-html="getViewDom(item)"></span>
-                          </el-link>
-                          <span class="patent-abstract_semicolon">;</span>
-                        </template>
-                      </span>
-                    </el-col>
-                  </el-row>
-                  <el-row v-if="t('simpleFamily')">
-                    <el-col :span="24">
-                      <span class="patent-abstract_label">简单同族:</span>
-                      <span class="patent-abstract_text">
-                        <template v-for="(item, index) in patent.family.simple">
-                          <el-link type="primary" @click.native="handleFamily(item)">
-                            <span v-html="getViewDom(item)"></span>
-                          </el-link>
-                          <span class="patent-abstract_semicolon">;</span>
-                        </template>
-                      </span>
-                    </el-col>
-                  </el-row>
-                  <el-row v-if="t('inpadocFamily')">
-                    <el-col :span="24">
-                      <span class="patent-abstract_label">INPADOC同族:</span>
-                      <span class="patent-abstract_text">
-                        <template v-for="(item, index) in patent.family.inpadoc">
-                          <el-link type="primary" @click.native="handleFamily(item)">
-                            <span v-html="getViewDom(item)"></span>
-                          </el-link>
-                          <span class="patent-abstract_semicolon">;</span>
-                        </template>
-                      </span>
-                    </el-col>
-                  </el-row>
-                  <el-row v-if="t('patSnapFamily')">
-                    <el-col :span="24">
-                      <span class="patent-abstract_label">PatSnap同族:</span>
-                      <span class="patent-abstract_text">
-                        <template v-for="(item, index) in patent.family.patSnap">
-                          <el-link type="primary" @click.native="handleFamily(item)">
-                            <span v-html="getViewDom(item)"></span>
-                          </el-link>
-                          <span class="patent-abstract_semicolon">;</span>
-                        </template>
-                      </span>
-                    </el-col>
-                  </el-row>
-                  <el-row v-if="t()">
-                    <el-col :span="24">
-                      <span class="patent-abstract_label">摘要:</span>
-                      <div>
-                        <span v-html="getViewDom2(patent, 'abstractStr')"></span>
-                        <el-link v-if="reportId" type="primary" @click.native="handleChange(patent, 'abstractStr')">
-                          <span v-if="!patent.change2">切换译文</span>
-                          <span v-else>切换原文</span>
-                        </el-link>
-                      </div>
-                    </el-col>
-                  </el-row>
-                </div>
-              </td>
-            </tr>
-          </tbody>
-        </table>
-      </div>
-    </div>
-  </div>
-</template>
-
-<script>
-import { commonMixins } from "@/views/workspace/folder/articles/components/mixins"
-import { patentViewList, patentKeywordsHighlight } from '@/views/workspace/folder/components/mixins.js'
-
-export default {
-  props: ['viewField'],
-  mixins: [patentViewList, patentKeywordsHighlight,commonMixins],
-  data() {
-    return {
-      checkList: [],
-      readType: {
-        1: '已读',
-        0: '未读'
-      },
-      statusType: {
-
-      },
-      row: {}
-    }
-  },
-  watch: {
-    records(val,oldval) {
-      if(val != oldval){
-        this.$nextTick(() => {
-          this.addRecords()
-          this.refreshCheckBox()
-        })
-      }
-      
-    }
-  },
-  computed: {
-    columnList() {
-      return this.viewField.filter(item => !item.hidden)
-    },
-    customField() {
-      return this.viewField.filter(item => !item.hidden && (item.type !== 'list' || item.key === 'label'))
-    },
-  },
-  mounted() {
-
-  },
-  methods: {
-    handleFamily(item) {
-      this.$api.getPatentIdByPatentNo({ patentNo: item }).then(response => {
-        if (response.data === 0) {
-          this.$alert('专利暂未收录', '请求错误', {
-            confirmButtonText: '确定',
-            type: 'error',
-            callback: action => {}
-          });
-        } else {
-          this.handleLink({ id: response.data })
-        }
-      })
-    },
-    getColumnValue(patent, column) {
-      if (column.key !== 'label') {
-        const field = patent.field.find(item => item.id === parseInt(column.key))
-        if (field) {
-          return field.selected
-        }
-      } else {
-        return patent.label.map(item => item.name)
-      }
-      return []
-    },
-    handleIndexSetting(row, field) {
-      this.$emit('index-setting', row, field)
-    },
-    t(key) {
-      if (key) {
-        return this.columnList.map(item => item.key).indexOf(key) !== -1
-      }
-      return true
-    },
-    getPatentAbstractImage(path) {
-      if (!path) {
-        return ''
-      }
-      return this.$p + path
-    },
-    openPatentAbstractImage(abstractPath) {
-      // console.log(abstractPath)
-    },
-    handleDownload(patent) {
-      this.$emit('download', patent)
-    },
-    handleChangeRead(patent) {
-      const status = patent.read === 1 ? 0 : 1
-      this.$emit('change-read', [patent.id], status)
-    }
-  }
-}
-</script>
-
-<style lang="scss">
-.patent-abstract-list-view {
-  .patent-abstract-card {
-    width: 100%;
-    border-bottom: 1px solid #e5e5e5;
-    .patent-abstract-card-wrapper {
-      padding: 10px;
-      min-height: 200px;
-      .patent-abstract-card-table {
-        height: 100%;
-        .patent-abstract-index-container {
-          font-size: 13px;
-          padding-left: 10px;
-          margin-bottom: 10px;
-          .el-tag {
-            margin-left: 10px;
-            cursor: pointer;
-          }
-        }
-        .patent-abstract-image-container {
-          // padding: 10px;
-          border: 1px solid #bcc2cc;
-          border-radius: 4px;
-          width: 120px;
-          height: 150px;
-          line-height: 150px;
-          // img {
-          //   width: 100%;
-          //   height: 100%;
-          // }
-        }
-        .patent-abstract-pdf-button-container {
-          text-align: center;
-          margin-top: 10px;
-        }
-        .patent-abstract-title {
-          margin-bottom: 5px;
-        }
-        .patent-custom-field {
-          line-height: 35px;
-          font-size: 14px;
-          border-bottom: 1px solid #ebecf0;
-          .name {
-            width: 200px;
-            float: left;
-          }
-          .data {
-            width: calc(100% - 200px);
-            float: right;
-          }
-        }
-        .patent-abstract_label {
-          color: #495973;
-          padding-right: 8px;
-        }
-        .patent-abstract_text {
-          .el-link {
-            position: relative;
-            top: -2px;
-          }
-        }
-        .patent-abstract_semicolon {
-          padding-left: 5px;
-          padding-right: 5px;
-          display: inline-block;
-          color: #495973;
-        }
-        tbody, tr, td {
-          height: 100%;
-          vertical-align: top;
-        }
-      }
-      .el-checkbox__label {
-        display: none;
-      }
-    }
-  }
-  .el-card__header {
-    font-weight: normal;
-    font-size: 14px;
-    padding: 18px 20px;
-    border-bottom: 1px solid #EBEEF5;
-  }
-}
-</style>

+ 0 - 89
src/views/components/import/conditionImport/view/Picture.vue

@@ -1,89 +0,0 @@
-<template>
-  <div class="pic">
-    <div class="item" style="padding:10px;display: flex;flex-wrap: wrap;">
-      <!-- <el-row :gutter="24" style="padding: 10px;display: flex;flex-wrap: wrap;">
-      <el-col :span="6" v-for="(item,index) in records" class="c"> -->
-        <el-card  shadow="hover" v-for="(item,index) in records" style="width:200px" >
-          <div slot="header" style="width: 100%; white-space: nowrap;overflow-x: hidden;text-overflow: ellipsis;font-size:12px;" >
-            <div>序号:{{ (index + 1) + ((params.current - 1) * params.size) }}</div>
-            <el-divider></el-divider>
-            <!-- <hr style="background-color: #DCDFE6;"> -->
-           <span v-if="refresh"> <el-checkbox :label="item.id" @change="changeSelect(item)" :checked="selected.indexOf(item.id) !== -1 || patentNoList.indexOf(item.patentNo)!== -1">
-              
-                <el-link  :disabled="!$permission('/workspace/details')" :class="$permission('/workspace/details')?'':'jinzhi'" :type="item.read === 1 ? 'success' : 'danger'" @click.native.prevent="handleLink(item)">
-                  <span v-html="getViewDom(item.patentNo)"></span>
-                </el-link>
-              
-            </el-checkbox>  </span>
-            <el-tooltip effect="dark" :content="item.name" placement="top">
-                <span style="" v-html="getViewDom(item.name)"></span>
-              </el-tooltip>
-          </div>
-          <div class="picture text-align_center" style="height: 200px;width:100%;line-height:200px;">
-              <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%'}">
-              <div slot="error" class="image-slot">
-                <el-image :src="getErrorImage(item)" :preview-src-list="[getErrorImage(item)]">
-                  <div slot="error" class="image-slot">
-                    <img src="https://www.patentstar.com.cn/img/Common/nopic.jpg" alt="" style="">
-                  </div>
-                </el-image>
-              </div>
-            </el-image>
-
-          </div>
-        </el-card>
-<!--      
-      </el-col>
-    </el-row> -->
-    </div>
-  </div>
-</template>
-
-<script>
-import { commonMixins } from "@/views/workspace/folder/articles/components/mixins.js"
-import { patentViewList, patentKeywordsHighlight } from '@/views/workspace/folder/components/mixins.js'
-export default {
-  props: [],
-  mixins:[commonMixins,patentViewList, patentKeywordsHighlight ],
-  data() {
-    return {
-
-    }
-  },
-  computed: {
-    // records() {
-    //   return this.$store.state.patent.records
-    // }
-  },
-  watch: {
-    records(val,oldval) {
-      if(val != oldval){
-        this.$nextTick(() => {
-          this.addRecords()
-          this.refreshCheckBox()
-        })
-      }
-    }
-  },
-  mounted() {
-
-  },
-  methods: {
-
-  },
-}
-</script>
-
-<style lang="scss">
- .pic{
-  .el-divider{
-    margin: 5px 0px;
-  }
-  .el-card__header{
-    padding:5px !important
-  }
-  .el-card__body{
-    padding:0px !important
-  }
- }
-</style>

+ 0 - 302
src/views/components/import/conditionImport/view/Table.vue

@@ -1,302 +0,0 @@
-<template>
-  <div class="patent-table-list-view">
-    <el-table
-        v-if="refreshData"
-        ref="table"
-        class="view-table"
-        :data="records"
-        style=""
-        border
-        :height="tableHeight"
-        header-row-class-name="custom-table-header"
-        @cell-click="handleClick"
-        :cell-class-name="cellClassName"
-    >
-      <el-table-column width="80" align="center">
-        <template slot="header">
-          <patent-table-view-sort prop="id" @on-sort="onSort" />
-        </template>
-        <template slot-scope="scope">
-          <div v-if="refresh">
-            <el-checkbox :label="scope.row.id" @change="changeSelect(scope.row)" :checked="selected.indexOf(scope.row.id) !== -1 || patentNoList.indexOf(scope.row.patentNo)!== -1 || patentNoList.indexOf(scope.row.applicationNo)!== -1 ">
-              <span>{{ (scope.$index + 1) + ((params.current - 1) * params.size) }}</span>
-            </el-checkbox>
-          </div>
-        </template>
-      </el-table-column>
-      <el-table-column label="专利号" show-overflow-tooltip align="center" width="180">
-        <template slot="header">
-          <!-- <patent-table-view-sort title="专利号" prop="patentNo" @on-sort="onSort" /> -->
-        </template>
-        <template slot-scope="scope">
-          <el-popover placement="right-start" width="500" trigger="hover" >
-            <table class="patent-popover-table" >
-              <tr>  
-                <td>
-                  <div class="patent-abstract-image text-align_center" >
-                    <!-- <img :src="getPatentAbstractImage(scope.row.abstractPath)"> -->
-                    <!-- <img :src="getImagePath1(scope.row)"> -->
-                    <el-image v-if="(!reportId && scope.row.abstractPath2)||reportId" :src="scope.row.abstractPath2?scope.row.abstractPath2:getImagePath1(scope.row)" :preview-src-list="[scope.row.abstractPath2]" style="vertical-align:middle;" :style="{width:scope.row.imgWidth?scope.row.imgWidth:'100%',height:scope.row.imgHeight?scope.row.imgHeight:'100%'}">
-                      <div slot="error" class="image-slot">
-                        <el-image :src="getErrorImage(scope.row)" :preview-src-list="[getErrorImage(scope.row)]">
-                          <div slot="error" class="image-slot">
-                            <img src="https://www.patentstar.com.cn/img/Common/nopic.jpg" alt="" style="">
-                          </div>
-                        </el-image>
-                      </div>
-                    </el-image>
-                  </div>
-                </td>
-                <td>
-                  <p v-html="getViewDom2(scope.row, 'abstractStr')"></p>
-                  <el-link v-if="reportId" type="primary" @click.native="handleChange(scope.row, 'abstractStr')">
-                    <span v-if="!scope.row.change2">切换译文</span>
-                    <span v-else>切换原文</span>
-                  </el-link>
-                </td>
-              </tr>
-            </table>
-            <el-link slot="reference" :disabled="!$permission('/workspace/details')" :class="$permission('/workspace/details')?'':'jinzhi'" :type="scope.row.read === 1 ? 'success' : 'danger'" @click.native="handleLink(scope.row,scope.$index)">
-              <span v-html="getViewDom(scope.row.patentNo)"></span>
-            </el-link>
-          </el-popover>
-        </template>
-      </el-table-column>
-      <el-table-column v-for="column in columnList" :label="column.name" show-overflow-tooltip align="center">
-        <template slot="header">
-          <!-- <patent-table-view-sort :title="column.name" :prop="column.key" :reportId="reportId" @on-sort="onSort" /> -->
-        </template>
-        <template slot-scope="scope">
-          <div style="" v-for="data in getColumnValue(scope.row, column)">
-            <template v-if="column.key === 'name'">
-              <span v-html="getViewDom2(scope.row, 'name')"></span>
-              <br>
-              <el-link v-if="reportId" type="primary" @click.native="handleChange(scope.row, 'name')">
-                <span v-if="!scope.row.change">切换译文</span>
-                <span v-else>切换原文</span>
-              </el-link>
-            </template>
-            <template v-else-if="column.key === 'abstractStr'">
-              <span v-html="getViewDom2(scope.row, 'abstractStr')"></span>
-              <br>
-              <el-link v-if="reportId" type="primary" @click.native="handleChange(scope.row, 'abstractStr')">
-                <span v-if="!scope.row.change2">切换译文</span>
-                <span v-else>切换原文</span>
-              </el-link>
-            </template>
-            <template v-else>
-              <span v-html="getViewDom(data)"></span>
-            </template>
-          </div>
-        </template>
-      </el-table-column>
-    </el-table>
-  </div>
-</template>
-
-<script>
-// import { commonMixins } from "@/views/workspace/folder/articles/components/mixins.js"
-// import { patentViewList, patentKeywordsHighlight } from '@/views/workspace/folder/components/mixins.js'
-// import PatentTableViewSort from "./TableSort";
-
-export default {
-  props: ['viewField'],
-  // mixins: [patentViewList, patentKeywordsHighlight,commonMixins],
-  components: {
-    // PatentTableViewSort
-  },
-  data() {
-    return {
-      tableData: [],
-      tableHeight: null,
-      refreshData: false
-    }
-  },
-  watch: {
-    viewField: {
-      handler(n, o) {
-        this.refreshTable()
-      },
-      deep: true
-    },
-    records(val,oldval) {
-      
-      if(val != oldval){
-        this.$nextTick(() => {
-          this.addRecords()
-          this.refreshCheckBox()
-          this.setHeight()
-        })
-      }
-      
-    },
-    refreshData(val){
-      if(val){
-        this.$nextTick(()=>{
-          this.setHeight()
-        })
-        
-      }
-    }
-  },
-  activated() {
-    // this.refreshTable()
-  },
-  computed: {
-    columnList() {
-      return this.viewField.filter(item => !item.hidden)
-    }
-  },
-  created(){
-
-  },
-  mounted() {
-    if(this.viewField.length>0){
-      this.refreshTable()
-    }
-    this.$nextTick(()=>{
-      this.addRecords()
-    })
-    // console.log(this.columnList);
-  },
-  methods: {
-    getPatentAbstractImage(path) {
-      if (!path) {
-        return ''
-      }
-      return this.$p + path
-    },
-    onSort(data) {
-      this.$emit('on-sort', data)
-    },
-    setHeight() {
-      const offsetTop = window.innerHeight -250
-      const body = document.querySelector('.el-table__body')
-      if (!body) {
-        return false
-      }
-      const offsetBodyHeight = body.offsetHeight
-      if (this.records.length && offsetBodyHeight < offsetTop) {
-        this.tableHeight = offsetBodyHeight + 75
-      } else if (!this.records.length) {
-        this.tableHeight = null
-      } else {
-        this.tableHeight = offsetTop
-      }
-    },
-    refreshTable() {
-      this.refreshData = false
-      this.$nextTick(() => {
-        this.refreshData = true
-      })
-    },
-    getColumnValue(row, column) {
-      if (column.type !== 'list') {
-        const field = row.field.find(item => item.id === parseInt(column.key))
-        if (field) {
-          return field.selected
-        }
-      } else if (column.key === 'label') {
-        if(row.label)
-        return row.label.map(item => item.name)
-      } else {
-        const value = row[column.key]
-        if (column.key === 'inventor' || column.key === 'agent') {
-          if(value)
-          return value.map(item => item.name)
-        }
-        if (column.key === 'applicant1') {
-          if(row.applicant)
-          return row.applicant.filter(a => a.dataType === 1).map(item => item.shortName)
-        }
-        if (column.key === 'applicant2') {
-          if(row.applicant)
-          return row.applicant.filter(a => a.dataType === 1).map(item => item.name)
-        }
-        if (column.key === 'applicant3') {
-          if(row.applicant)
-          return row.applicant.filter(a => a.dataType === 2).map(item => item.shortName)
-        }
-        if (column.key === 'applicant4') {
-          if(row.applicant)
-          return row.applicant.filter(a => a.dataType === 2).map(item => item.name)
-        }
-        if (column.key === 'simpleFamily') {
-          return [row.family.simple.length]
-        }
-        if (column.key === 'inpadocFamily') {
-          return [row.family.inpadoc.length]
-        }
-        if (column.key === 'patSnapFamily') {
-          return [row.family.patSnap.length]
-        }
-        if (column.key === 'agency' && value) {
-          return [value.name]
-        }
-        if (value instanceof Array) {
-          return value
-        } else if (typeof value === 'string' || typeof value === 'number') {
-          return [value]
-        }
-        return ''
-      }
-    },
-    cellClassName({ row, column, rowIndex, columnIndex }) {
-      if (this.validationCustomField(column.label)) {
-        return 'custom-field-cell'
-      }
-    },
-    validationCustomField(label) {
-      const customField = this.viewField.filter(item => item.type !== 'list' || item.key === 'label')
-      const field = customField.find(item => item.name === label)
-      if (field) {
-        return field
-      }
-      return false
-    },
-    handleClick(row, column, cell,event) {
-
-      const field = this.validationCustomField(column.label)
-      if (field) {
-        this.$emit('index-setting', row, field)
-      }
-    },
-  }
-}
-</script>
-
-<style lang="scss">
-.patent-popover-table {
-  tbody, tr, td {
-    height: 100%;
-    vertical-align: top;
-  }
-  p {
-    padding: 0 !important;
-    margin: 0 !important;
-  }
-  .patent-abstract-image {
-    padding: 10px;
-    border: 1px solid #bcc2cc;
-    border-radius: 4px;
-    width: 120px;
-    height: 150px;
-    line-height: 150px;
-    img {
-      width: 100%;
-      height: 100%;
-    }
-  }
-}
-.patent-table-list-view {
-  .view-table {
-    width: 100%;
-  }
-  .el-table .cell {
-    white-space: pre-line !important;
-  }
-  .custom-field-cell {
-    cursor: pointer;
-  }
-}
-</style>

+ 0 - 117
src/views/components/import/conditionImport/view/TableSort.vue

@@ -1,117 +0,0 @@
-<template>
-  <div>
-    <span>{{ title }}</span>
-    <template v-if="showList.indexOf(prop) !== -1">
-      <el-dropdown size="small" :class="{ 'float_right' : title !== '' }">
-        <div class="el-dropdown-link">
-          <i class="el-icon-arrow-down el-icon--right"></i>
-        </div>
-        <el-dropdown-menu slot="dropdown">
-          <el-dropdown-item v-for="item in dropdown[type]" @click.native="handleClick(item)">
-            <i :class="item.icon"></i>
-            <span>{{ item.label }}</span>
-          </el-dropdown-item>
-        </el-dropdown-menu>
-      </el-dropdown>
-    </template>
-  </div>
-</template>
-
-<script>
-export default {
-  props: {
-    title: {
-      type: String,
-      default: ''
-    },
-    prop: {
-      type: String,
-      default: null
-    },
-    projectId: {
-      // type: Number,
-      default: null
-    }
-  },
-  data() {
-    return {
-      type: 1,
-      dropdown: [[
-        {
-          label: '最旧 -> 最新',
-          value: 'asc',
-          icon: 'el-icon-top'
-        },
-        {
-          label: '最新 -> 最旧',
-          value: 'desc',
-          icon: 'el-icon-bottom'
-        },
-      ], [
-        {
-          label: 'A -> Z',
-          value: 'asc',
-          icon: 'el-icon-top'
-        },
-        {
-          label: 'Z -> A',
-          value: 'desc',
-          icon: 'el-icon-bottom'
-        },
-      ], [
-        {
-          label: '0 -> 9',
-          value: 'asc',
-          icon: 'el-icon-top'
-        },
-        {
-          label: '9 -> 0',
-          value: 'desc',
-          icon: 'el-icon-bottom'
-        },
-      ]],
-      showList: [
-        'id',
-        'publicAccreditDate',
-        'publicDate',
-        'applicationDate',
-        'rightNum',
-        'quoteNum',
-        'quotedNum',
-        'name',
-        'patentNo',
-        'applicationNo',
-        '',
-        '',
-      ]
-    }
-  },
-  mounted() {
-    if (['id', 'publicAccreditDate', 'publicDate', 'applicationDate'].indexOf(this.prop) !== -1) {
-      this.type = 0
-    }
-    if (['rightNum', 'quoteNum', 'quotedNum'].indexOf(this.prop) !== -1) {
-      this.type = 2
-    }
-    if(!this.projectId){
-      this.showList= [
-        'publicAccreditDate',
-        'publicDate',
-        'applicationDate',
-      ]
-    }
-  },
-  methods: {
-    handleClick(item) {
-      this.$emit('on-sort', {
-        prop: this.prop,
-        order: item.value
-      })
-    }
-  }
-}
-</script>
-
-<style lang="scss">
-
-</style>