|
@@ -63,6 +63,9 @@
|
|
<span v-else>切换原文</span>
|
|
<span v-else>切换原文</span>
|
|
</el-link>
|
|
</el-link>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div style="position: absolute;right: 0;top:0;">
|
|
|
|
+ <PatentMark :patentNo="patent.patentNo" @biaozhu="getBiaoZhu"></PatentMark>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div style=" position: relative;">
|
|
<div style=" position: relative;">
|
|
@@ -89,7 +92,7 @@
|
|
<div class="patent-articles-content-left" :style="{ width: showRight ? 'calc(100% - 321px)' : 'calc(100% - 21px)' }">
|
|
<div class="patent-articles-content-left" :style="{ width: showRight ? 'calc(100% - 321px)' : 'calc(100% - 21px)' }">
|
|
<div class="dom box1" v-dragControllerDiv1 style="display:flex;width:100%">
|
|
<div class="dom box1" v-dragControllerDiv1 style="display:flex;width:100%">
|
|
<div class="component left1" style="width:100%;overflow-y:auto;overflow-x: hidden;padding-bottom:10px" :style="{height:height}">
|
|
<div class="component left1" style="width:100%;overflow-y:auto;overflow-x: hidden;padding-bottom:10px" :style="{height:height}">
|
|
- <component :is="componentName" :reportType="reportType" @getVisible="getVisible" :project-id="projectId" @isTrues="getIsTrue" :isTrue="isTrue" :type1="type" :patent="patent" :patentNo="[patent.patentNo]" :domId="patent.patentNo + '1'" :reportId="reportId" :patent-id="patentId" @openContrast='openContrast' @refresh="getPatent(patent.patentNo)" ></component>
|
|
|
|
|
|
+ <component :is="componentName" :activeName="activeName" :reportType="reportType" @getVisible="getVisible" :project-id="projectId" @isTrues="getIsTrue" :isTrue="isTrue" :type1="type" :patent="patent" :patentNo="[patent.patentNo]" :domId="patent.patentNo + '1'" :reportId="reportId" :patent-id="patentId" @openContrast='openContrast' @refresh="getPatent(patent.patentNo)" ></component>
|
|
</div>
|
|
</div>
|
|
<div class="resize2" title="收缩侧边栏" v-show="(radio == 2 || radio == 3) && activeMenu != activeMenu2"><p><span>˙</span><span>˙</span><span>˙</span></p></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 class="resize1" title="收缩侧边栏" v-show="(radio == 4 || radio == 5) && activeMenu != activeMenu2"><span>⋮</span></div>
|
|
@@ -131,6 +134,9 @@
|
|
<el-dialog :title="ruleForm.id?'编辑对比':'添加对比'" v-draggable :visible.sync="visible" width="1000px" :before-close="close">
|
|
<el-dialog :title="ruleForm.id?'编辑对比':'添加对比'" v-draggable :visible.sync="visible" width="1000px" :before-close="close">
|
|
<el-form :model="ruleForm" ref="ruleForm" label-width="100px" label-position="left">
|
|
<el-form :model="ruleForm" ref="ruleForm" label-width="100px" label-position="left">
|
|
|
|
|
|
|
|
+ <el-form-item label="选择颜色" class="item">
|
|
|
|
+ <el-input type="color" v-model="ruleForm.color" style="user-select:none;width: 100px;" @input="changeColor()"/>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="选中文本" class="item">
|
|
<el-form-item label="选中文本" class="item">
|
|
<el-input v-model="ruleForm.content" placeholder="请输入备注" type="textarea" show-word-limit></el-input>
|
|
<el-input v-model="ruleForm.content" placeholder="请输入备注" type="textarea" show-word-limit></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -213,7 +219,7 @@ import Features from './components/features.vue'
|
|
import Permit from './components/history/permit.vue'
|
|
import Permit from './components/history/permit.vue'
|
|
import ProductManage from '@/views/product/components/product.vue'
|
|
import ProductManage from '@/views/product/components/product.vue'
|
|
import PatentWorth from './components/history/components/echarts/components/echarts.vue'
|
|
import PatentWorth from './components/history/components/echarts/components/echarts.vue'
|
|
-
|
|
|
|
|
|
+import PatentMark from './components/PatentMark.vue'
|
|
import { splitScreen } from '../common/SplitScreen'
|
|
import { splitScreen } from '../common/SplitScreen'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -241,8 +247,9 @@ export default {
|
|
Other,
|
|
Other,
|
|
Permit,
|
|
Permit,
|
|
ProductManage,
|
|
ProductManage,
|
|
- PatentWorth
|
|
|
|
|
|
+ PatentWorth,
|
|
// Product,
|
|
// Product,
|
|
|
|
+ PatentMark,
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -365,16 +372,20 @@ export default {
|
|
// imgList: [],
|
|
// imgList: [],
|
|
file:[],
|
|
file:[],
|
|
patentNo1:this.patentNo,
|
|
patentNo1:this.patentNo,
|
|
- // height:null
|
|
|
|
|
|
+ activeName:'0',
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ piZhuContrastList() {
|
|
|
|
+ return this.$store.state.report.pizhucontrastList
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
created() {
|
|
created() {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
// this.height = document.querySelector('.patent-content').offsetHeight>500?document.querySelector('.patent-content').offsetHeight + 90:500
|
|
// this.height = document.querySelector('.patent-content').offsetHeight>500?document.querySelector('.patent-content').offsetHeight + 90:500
|
|
this.params = this.$s.getSession('params')
|
|
this.params = this.$s.getSession('params')
|
|
- window.selectMark = this.selectMark
|
|
|
|
|
|
+ // window.addDuiBi = this.addDuiBi
|
|
this.signPatentNo = this.$s.getSession('params').signPatentNo
|
|
this.signPatentNo = this.$s.getSession('params').signPatentNo
|
|
// console.log(this.$s.getSession('params'))
|
|
// console.log(this.$s.getSession('params'))
|
|
this.taskId = this.$s.getSession('params').taskId
|
|
this.taskId = this.$s.getSession('params').taskId
|
|
@@ -385,6 +396,8 @@ export default {
|
|
this.getContrastList(this.signPatentNo)
|
|
this.getContrastList(this.signPatentNo)
|
|
}
|
|
}
|
|
this.getPatent(this.patentNo)
|
|
this.getPatent(this.patentNo)
|
|
|
|
+ // 请求查询批注
|
|
|
|
+ this.getPiZhuContrastList()
|
|
// console.log(this.reportId);
|
|
// console.log(this.reportId);
|
|
// this.$nextTick(()=>{
|
|
// this.$nextTick(()=>{
|
|
// this.$set(this,'height',document.getElementsByClassName('patent-articles-content-left')[1].offsetHeight + 20 + 'px')
|
|
// this.$set(this,'height',document.getElementsByClassName('patent-articles-content-left')[1].offsetHeight + 20 + 'px')
|
|
@@ -427,6 +440,65 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //获取需要跳转的批注
|
|
|
|
+ getBiaoZhu(val) {
|
|
|
|
+ if (val.scratchField == '摘要') {
|
|
|
|
+ this.activeMenu = 'PatentBasic'
|
|
|
|
+ } else {
|
|
|
|
+ this.activeMenu = this.menuList.find(item => {
|
|
|
|
+ return val.scratchField.indexOf(item.label)!=-1
|
|
|
|
+ }).value
|
|
|
|
+ if (val.scratchField.indexOf('译文') !=-1) {
|
|
|
|
+ this.activeName = '1'
|
|
|
|
+ } else {
|
|
|
|
+ this.activeName='0'
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.handleSelect(this.activeMenu)
|
|
|
|
+
|
|
|
|
+ this.tiaozhuan(val.id,val)
|
|
|
|
+ },
|
|
|
|
+ tiaozhuan(id) {
|
|
|
|
+ const href = `#${id}`
|
|
|
|
+ const anchor = document.createElement('a');
|
|
|
|
+ anchor.href = href;
|
|
|
|
+ anchor.style.display = "none";
|
|
|
|
+ document.body.appendChild(anchor);
|
|
|
|
+ setTimeout(function () {
|
|
|
|
+ anchor.click();
|
|
|
|
+ document.body.removeChild(anchor);
|
|
|
|
+ }, 66);
|
|
|
|
+ return true;
|
|
|
|
+ },
|
|
|
|
+ changeColor(){},
|
|
|
|
+ // 查询批注
|
|
|
|
+ getPiZhuContrastList(val) {
|
|
|
|
+ if (val) {
|
|
|
|
+ var index = this.piZhuContrastList.findIndex(item => {
|
|
|
|
+ item.patentNo == val
|
|
|
|
+ })
|
|
|
|
+ if (index != -1) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ let params = {
|
|
|
|
+ patentNo: val?val:this.patentNo,
|
|
|
|
+ id: this.reportId,
|
|
|
|
+ createFrom:2
|
|
|
|
+ }
|
|
|
|
+ this.$api.scratchWordsQuery(params).then(response => {
|
|
|
|
+ if (response.code==200) {
|
|
|
|
+ if (this.piZhuContrastList.length > 0) {
|
|
|
|
+ var a = this.piZhuContrastList.filter(item => {
|
|
|
|
+ return item.patentNo != params.patentNo
|
|
|
|
+ }).concat(response.data)
|
|
|
|
+ } else {
|
|
|
|
+ var a = response.data
|
|
|
|
+ }
|
|
|
|
+ this.$store.commit('SET_PATENT_PIZHU_CONTRAST', a)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 返回
|
|
// 返回
|
|
goBack() {
|
|
goBack() {
|
|
if(this.taskId){
|
|
if(this.taskId){
|
|
@@ -467,7 +539,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
- selectMark(Id){
|
|
|
|
|
|
+ selectMarkOpen(Id) {
|
|
// console.log(Id,this.contrastList)
|
|
// console.log(Id,this.contrastList)
|
|
// this.selectMarkObjectId = Id;
|
|
// this.selectMarkObjectId = Id;
|
|
// this.showPizhu();
|
|
// this.showPizhu();
|
|
@@ -478,6 +550,7 @@ var index = this.contrastList.findIndex(item=>{
|
|
if(index!=-1){
|
|
if(index!=-1){
|
|
|
|
|
|
this.ruleForm = {
|
|
this.ruleForm = {
|
|
|
|
+ color:this.contrastList[index].color,
|
|
id:this.contrastList[index].id,
|
|
id:this.contrastList[index].id,
|
|
index:this.contrastList[index].position,
|
|
index:this.contrastList[index].position,
|
|
content:this.contrastList[index].content,
|
|
content:this.contrastList[index].content,
|
|
@@ -551,15 +624,20 @@ if(index!=-1){
|
|
this.file=[]
|
|
this.file=[]
|
|
},
|
|
},
|
|
//打开弹窗
|
|
//打开弹窗
|
|
- openContrast(val){
|
|
|
|
|
|
+ openContrast(val) {
|
|
if(val.patentNo != this.signPatentNo){
|
|
if(val.patentNo != this.signPatentNo){
|
|
this.contrastMessage = val
|
|
this.contrastMessage = val
|
|
this.selectedFeatures=[]
|
|
this.selectedFeatures=[]
|
|
this.ruleForm = {
|
|
this.ruleForm = {
|
|
- content:val.text,
|
|
|
|
- position:val.column,
|
|
|
|
|
|
+ color:val.color,
|
|
|
|
+ content:val.text?val.text:val.content,
|
|
|
|
+ position: val.scratchField ? val.scratchField : val.fields,
|
|
|
|
+ index:val.position,
|
|
featureslist:[]
|
|
featureslist:[]
|
|
}
|
|
}
|
|
|
|
+ if (val.id) {
|
|
|
|
+ this.selectMarkOpen(val.id)
|
|
|
|
+ }
|
|
// this.ruleForm.content =
|
|
// this.ruleForm.content =
|
|
// this.ruleForm.position =
|
|
// this.ruleForm.position =
|
|
// this.ruleForm.featureslist=[]
|
|
// this.ruleForm.featureslist=[]
|
|
@@ -575,7 +653,7 @@ if(index!=-1){
|
|
|
|
|
|
},
|
|
},
|
|
//添加、修改对比
|
|
//添加、修改对比
|
|
- submit(){
|
|
|
|
|
|
+ submit() {
|
|
if(this.ruleForm.features&&this.ruleForm.features.length>0){
|
|
if(this.ruleForm.features&&this.ruleForm.features.length>0){
|
|
if(this.ruleForm.id){
|
|
if(this.ruleForm.id){
|
|
this.ruleForm.features.forEach(item=>{
|
|
this.ruleForm.features.forEach(item=>{
|
|
@@ -591,7 +669,8 @@ if(index!=-1){
|
|
paresingProcess:this.ruleForm.paresingProcess,
|
|
paresingProcess:this.ruleForm.paresingProcess,
|
|
assoRecordsFeatures:this.ruleForm.features,
|
|
assoRecordsFeatures:this.ruleForm.features,
|
|
reportId:this.reportId,
|
|
reportId:this.reportId,
|
|
- taskId:this.taskId
|
|
|
|
|
|
+ taskId:this.taskId,
|
|
|
|
+ color:this.ruleForm.color,
|
|
}
|
|
}
|
|
// let formData = new formData
|
|
// let formData = new formData
|
|
let formData = new FormData()
|
|
let formData = new FormData()
|
|
@@ -617,13 +696,14 @@ if(index!=-1){
|
|
}else{
|
|
}else{
|
|
var a = {
|
|
var a = {
|
|
patentNo:this.contrastMessage.patentNo,
|
|
patentNo:this.contrastMessage.patentNo,
|
|
- position:this.contrastMessage.index,
|
|
|
|
|
|
+ position:this.contrastMessage.position,
|
|
fields:this.ruleForm.position,
|
|
fields:this.ruleForm.position,
|
|
content:this.contrastMessage.text,
|
|
content:this.contrastMessage.text,
|
|
paresingProcess:this.ruleForm.paresingProcess,
|
|
paresingProcess:this.ruleForm.paresingProcess,
|
|
assoRecordsFeatures:this.ruleForm.features,
|
|
assoRecordsFeatures:this.ruleForm.features,
|
|
reportId:this.reportId,
|
|
reportId:this.reportId,
|
|
- taskId:this.taskId
|
|
|
|
|
|
+ taskId: this.taskId,
|
|
|
|
+ color:this.ruleForm.color,
|
|
}
|
|
}
|
|
let formData = new FormData()
|
|
let formData = new FormData()
|
|
if(this.file){
|
|
if(this.file){
|
|
@@ -790,6 +870,8 @@ if(index!=-1){
|
|
this.location1 = data.location
|
|
this.location1 = data.location
|
|
this.patentId = data.id
|
|
this.patentId = data.id
|
|
this.changePageTitle()
|
|
this.changePageTitle()
|
|
|
|
+ // 请求批注
|
|
|
|
+ this.getPiZhuContrastList(data.patentNo)
|
|
},
|
|
},
|
|
//查询任务下专利状态
|
|
//查询任务下专利状态
|
|
getPatentStatus(patentNo){
|
|
getPatentStatus(patentNo){
|