|
@@ -104,6 +104,8 @@
|
|
|
border
|
|
|
:row-key="getRowKeys"
|
|
|
v-loading="loading"
|
|
|
+ ref="table"
|
|
|
+ id="table"
|
|
|
style="min-width: 100%; overflow:auto">
|
|
|
<el-table-column width="80" align="center">
|
|
|
<template slot-scope="scope">
|
|
@@ -154,7 +156,7 @@
|
|
|
</el-main>
|
|
|
<!-- 自定义栏位 -->
|
|
|
<!-- <div class="patent-articles-content-left" :style="{ width: showRight ? 'calc(100% - 321px)' : 'calc(100% - 21px)' }"> -->
|
|
|
- <div class="patent-left" :style="{ width: showRight ? '280px' : '0px' }" >
|
|
|
+ <div class="patent-left" :style="[{ width: showRight ? '280px' : '0px' },{height:tableHeight>450?tableHeight+80+'px':450+'px'}]" >
|
|
|
<ChoseList @onChange="onChangeList" :reportId="reportId" :patentNo="queryParams.patentNo" ></ChoseList>
|
|
|
</div>
|
|
|
<!-- </div> -->
|
|
@@ -265,11 +267,13 @@ mixins:[PatentDetails,importPatent],
|
|
|
patentName: "",
|
|
|
patentNo: "",
|
|
|
filedOptions: [],
|
|
|
+ pasOptions:[],//专题库自定义字段
|
|
|
},
|
|
|
mergeArr: ['id', 'patentNo'],
|
|
|
mergeObj: {},
|
|
|
selectNumberLoading: false,
|
|
|
showRight:false,
|
|
|
+ tableHeight:null,
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -281,6 +285,10 @@ mixins:[PatentDetails,importPatent],
|
|
|
//console.log(this.selectedTotal)
|
|
|
},
|
|
|
methods: {
|
|
|
+ tableOffSetHeight() {
|
|
|
+ let b = document.getElementById("table")
|
|
|
+ this.tableHeight=b.offsetHeight
|
|
|
+ },
|
|
|
// onChangeOne(val) {
|
|
|
// //console.log(val);
|
|
|
// this.$api.getPatentListPAS()
|
|
@@ -288,10 +296,10 @@ mixins:[PatentDetails,importPatent],
|
|
|
// },
|
|
|
//子页面自定义字段值
|
|
|
onChangeList({field,a}) {
|
|
|
- //console.log(field,a);
|
|
|
- this.queryParams.field = field
|
|
|
+ // console.log(field,a);
|
|
|
+ this.queryParams.pasOptions = field
|
|
|
this.queryParams.projectId = a
|
|
|
- this.getListPro()
|
|
|
+ this.getList2()
|
|
|
|
|
|
},
|
|
|
getListPro() {
|
|
@@ -325,19 +333,20 @@ mixins:[PatentDetails,importPatent],
|
|
|
for (let key in this.formS) {
|
|
|
this.queryParams[key]=this.formS[key]
|
|
|
}
|
|
|
- if (this.queryParams.projectId) {
|
|
|
- this.getListPro()
|
|
|
- } else {
|
|
|
- this.getList()
|
|
|
- }
|
|
|
+ // if (this.queryParams.projectId) {
|
|
|
+ // this.getListPro()
|
|
|
+ // } else {
|
|
|
+ this.getList2()
|
|
|
+ // }
|
|
|
|
|
|
- } else {
|
|
|
- if (this.queryParams.projectId) {
|
|
|
- this.getListPro()
|
|
|
- } else {
|
|
|
- this.getList()
|
|
|
- }
|
|
|
}
|
|
|
+ // else {
|
|
|
+ // // if (this.queryParams.projectId) {
|
|
|
+ // // this.getListPro()
|
|
|
+ // // } else {
|
|
|
+ // this.getList2()
|
|
|
+ // // }
|
|
|
+ // }
|
|
|
|
|
|
this.visible = false
|
|
|
// this.form = {}
|
|
@@ -403,11 +412,11 @@ mixins:[PatentDetails,importPatent],
|
|
|
},
|
|
|
commonSwitch(){
|
|
|
//console.log(this.queryParams.startNumber,this.queryParams.endNumber)
|
|
|
- if(this.queryParams.size*this.queryParams.current>=this.queryParams.startNumber ){
|
|
|
- if(this.queryParams.size*this.queryParams.current>=this.queryParams.endNumber){
|
|
|
- if(this.queryParams.size*(this.queryParams.current-1)+1<=this.queryParams.startNumber){
|
|
|
- var a = this.queryParams.startNumber-(this.queryParams.size*(this.queryParams.current-1)+1)
|
|
|
- var b = this.queryParams.endNumber-(this.queryParams.size*(this.queryParams.current-1)+1)
|
|
|
+ if(this.queryParams.size*this.queryParams.current>=this.startNumber ){
|
|
|
+ if(this.queryParams.size*this.queryParams.current>=this.endNumber){
|
|
|
+ if(this.queryParams.size*(this.queryParams.current-1)+1<=this.startNumber){
|
|
|
+ var a = this.startNumber-(this.queryParams.size*(this.queryParams.current-1)+1)
|
|
|
+ var b = this.endNumber-(this.queryParams.size*(this.queryParams.current-1)+1)
|
|
|
//console.log(a,b)
|
|
|
for(var y=a;y<=b;y++){
|
|
|
//console.log(this.tableData[y])
|
|
@@ -416,15 +425,15 @@ mixins:[PatentDetails,importPatent],
|
|
|
}
|
|
|
}else{
|
|
|
var a = (this.queryParams.size*(this.queryParams.current-1)+1)-(this.queryParams.size*(this.queryParams.current-1)+1)
|
|
|
- var b = this.queryParams.endNumber-(this.queryParams.size*(this.queryParams.current-1)+1)
|
|
|
+ var b = this.endNumber-(this.queryParams.size*(this.queryParams.current-1)+1)
|
|
|
for(var y=a;y<=b;y++){
|
|
|
this.toIsDelete(this.tableData[y].patentNo,y)
|
|
|
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
- if(this.queryParams.size*(this.queryParams.current-1)+1<=this.queryParams.startNumber){
|
|
|
- var a = this.queryParams.startNumber-(this.queryParams.size*(this.queryParams.current-1)+1)
|
|
|
+ if(this.queryParams.size*(this.queryParams.current-1)+1<=this.startNumber){
|
|
|
+ var a = this.startNumber-(this.queryParams.size*(this.queryParams.current-1)+1)
|
|
|
var b = this.queryParams.size*this.queryParams.current-(this.queryParams.size*(this.queryParams.current-1)+1)
|
|
|
for(var y=a;y<=b;y++){
|
|
|
this.toIsDelete(this.tableData[y].patentNo,y)
|
|
@@ -485,10 +494,12 @@ mixins:[PatentDetails,importPatent],
|
|
|
this.checkList = []
|
|
|
this.quickSelect = false
|
|
|
this.startNumber = 1
|
|
|
+ this.queryParams.startNumber = 1
|
|
|
this.endNumber = 0
|
|
|
this.selectedTotal = 0
|
|
|
- this.getList()
|
|
|
+ // this.getList()
|
|
|
},
|
|
|
+ // handleClear(){},
|
|
|
handleClick(tab, event) {
|
|
|
//console.log(tab.index, event);
|
|
|
if (tab.index==0) {
|
|
@@ -706,9 +717,12 @@ mixins:[PatentDetails,importPatent],
|
|
|
endNumber:this.endNumber,
|
|
|
reportId:this.reportId
|
|
|
}
|
|
|
- this.btnLoading = true
|
|
|
+ this.queryParams.startNumber=this.startNumber
|
|
|
+ this.queryParams.endNumber=this.endNumber
|
|
|
+ this.queryParams.reportId=this.reportId
|
|
|
+ this.btnLoading = true//保存调试后放开
|
|
|
// //console.log(add)
|
|
|
- this.$api.addCompareFile(add).then(res => {
|
|
|
+ this.$api.addCompareFile(this.queryParams).then(res => {
|
|
|
//console.log(res);
|
|
|
if (res.code==200) {
|
|
|
this.btnLoading = false
|
|
@@ -767,10 +781,12 @@ mixins:[PatentDetails,importPatent],
|
|
|
this.$store.commit('SET_PATENT_PARAMS', params)
|
|
|
this.loading=true
|
|
|
await this.$api.getCompareFile(params).then(response => {
|
|
|
+ // await this.$api.getPatentListPAS(params).then(response => {
|
|
|
this.loading = false
|
|
|
this.total = response.data.datas.total
|
|
|
// this.queryParams.endNumber =this.queryParams.endNumber==0? response.data.datas.total:this.queryParams.endNumber
|
|
|
- this.queryParams.endNumber =response.data.datas.total
|
|
|
+ this.queryParams.endNumber =this.endNumber>0?this.endNumber:response.data.datas.total
|
|
|
+ this.queryParams.startNumber =this.endNumber>0?this.startNumber:1
|
|
|
|
|
|
this.tableData = response.data.datas.records
|
|
|
this.queryParams.selected = response.data.select
|
|
@@ -791,6 +807,16 @@ mixins:[PatentDetails,importPatent],
|
|
|
},
|
|
|
},
|
|
|
watch: {
|
|
|
+ 'tableData'(val, val1) {
|
|
|
+
|
|
|
+ if (JSON.stringify(val)!=JSON.stringify(val1)) {
|
|
|
+ this.handleCancelSelectNumber()
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.tableOffSetHeight()
|
|
|
+ })
|
|
|
+ },
|
|
|
ChosePatentSure(val) {
|
|
|
if (val) {
|
|
|
if(this.queryParams.selectedTotal>0){
|