|
@@ -1,70 +1,88 @@
|
|
<template>
|
|
<template>
|
|
- <div style="padding:20px;background:white;height:100%">
|
|
|
|
|
|
+ <div style="padding:20px;background:white;height:100%" class="relatedPatentsTable">
|
|
<div style="margin-bottom:20px" v-if="name">
|
|
<div style="margin-bottom:20px" v-if="name">
|
|
- <span><span>{{ name }}</span>{{structureId?'架构':'产品'}}的相关专利</span>
|
|
|
|
|
|
+ <span><span>{{ name }}</span>{{ structureId ? '架构' : '产品' }}的相关专利</span>
|
|
</div>
|
|
</div>
|
|
- <div style="display: flex;justify-content: space-between;flex-wrap: wrap;" v-if="!structureId">
|
|
|
|
- <div :style="{ visibility: selectedTotal > 0 ? 'visible' : 'hidden' ,width:'150px'}">
|
|
|
|
|
|
+ <div style="width: 100%;display: flex;justify-content: space-between;" v-if="!structureId">
|
|
|
|
+ <mySearch :SearchFields="searchFiled" @search="search" :searchValue="searchOption" style="padding: 0;"></mySearch>
|
|
|
|
+ <div :style="{ visibility: selectedTotal > 0 ? 'visible' : 'hidden', width: '150px' }">
|
|
<span>已勾选 <b>{{ selectedTotal }}</b> 条</span>
|
|
<span>已勾选 <b>{{ selectedTotal }}</b> 条</span>
|
|
</div>
|
|
</div>
|
|
<!-- <div>
|
|
<!-- <div>
|
|
|
|
|
|
</div> -->
|
|
</div> -->
|
|
<!-- <div style="display: flex;"> -->
|
|
<!-- <div style="display: flex;"> -->
|
|
- <!-- <div style="display: flex;margin-bottom: 20px;" >
|
|
|
|
|
|
+ <!-- <div style="display: flex;margin-bottom: 20px;" >
|
|
<el-input v-model="paramsRuleForm.patentNo" size="small" style="width: 450px;" placeholder="请输入专利号进行添加(多个专利号同时添加中间请用符号“|”隔开)"></el-input>
|
|
<el-input v-model="paramsRuleForm.patentNo" size="small" style="width: 450px;" placeholder="请输入专利号进行添加(多个专利号同时添加中间请用符号“|”隔开)"></el-input>
|
|
<el-tooltip class="item" effect="dark" content="将搜索的专利添加至该产品的相关专利中" placement="top">
|
|
<el-tooltip class="item" effect="dark" content="将搜索的专利添加至该产品的相关专利中" placement="top">
|
|
<el-button type="primary" size="small" @click="getListAdd" style="margin-left: 10px;"> 添 加 </el-button>
|
|
<el-button type="primary" size="small" @click="getListAdd" style="margin-left: 10px;"> 添 加 </el-button>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</div> -->
|
|
</div> -->
|
|
- <div style="display:flex;padding-bottom:20px">
|
|
|
|
- <div style="margin-right: 10px;">
|
|
|
|
- <!-- <el-button type="primary" size="small" @click="addRelevantPatents">新增</el-button> -->
|
|
|
|
- <!-- <el-button type="primary" size="small" @click="savePatentList" :loading="btnLoading">保存</el-button> -->
|
|
|
|
- </div>
|
|
|
|
- <el-button size="small" type="warning" @click="handleFieldManage">显示栏位管理</el-button>
|
|
|
|
- <!-- <el-button type="primary" size="small" style="margin-right:10px;width:70px" @click="importPatent(productId)">导入</el-button> -->
|
|
|
|
- <el-dropdown @command="importPatent($event,productId)" type="primary" size="small" style="margin-right:10px;">
|
|
|
|
- <el-button type="primary" size="small" >
|
|
|
|
- 导入专利<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
- </el-button>
|
|
|
|
- <el-dropdown-menu class="children_item">
|
|
|
|
- <el-dropdown-item command="1">专利号导入</el-dropdown-item>
|
|
|
|
- <el-dropdown-item command="2">Excel导入</el-dropdown-item>
|
|
|
|
- <!-- <el-dropdown-item command="3">检索导入</el-dropdown-item> -->
|
|
|
|
|
|
+ <div style="display:flex;padding-bottom:20px">
|
|
|
|
+ <!-- <div style="margin-right: 10px;">
|
|
|
|
+ <el-button type="primary" size="small" @click="addRelevantPatents">新增</el-button>
|
|
|
|
+ <el-button type="primary" size="small" @click="savePatentList" :loading="btnLoading">保存</el-button>
|
|
|
|
+ </div> -->
|
|
|
|
+ <!-- <el-button size="small" type="warning" @click="handleFieldManage">显示栏位管理</el-button>
|
|
|
|
+ <el-dropdown @command="importPatent($event, productId)" type="primary" size="small" style="margin-right:10px;">
|
|
|
|
+ <el-button type="primary" size="small">
|
|
|
|
+ 导入专利<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-dropdown-menu class="children_item">
|
|
|
|
+ <el-dropdown-item command="1">专利号导入</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item command="2">Excel导入</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item command="3">检索导入</el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown> -->
|
|
|
|
+ <!-- <div class="btn1" @click="sift"
|
|
|
|
+ style="width:80px;height:32px;display:flex;justify-content:space-around;border-radius:5px; cursor: pointer;">
|
|
|
|
+ <img src="@/assets/img/filtrationSearch.png" alt=""
|
|
|
|
+ style="width:16px;height:16px;margin-top:9px;margin-left:8px">
|
|
|
|
+ <p style="margin:0 8px 0 0;line-height:32px;color:white;font-size:14px">筛选 </p>
|
|
|
|
+ </div> -->
|
|
|
|
+ <el-popover placement="bottom" title="" width="250" trigger="click">
|
|
|
|
+ <el-main class="patent-fast-edit-popover" v-loading="selectNumberLoading">
|
|
|
|
+ <div class="btn" @click="handleSelectNumber(-1)">取消选择</div>
|
|
|
|
+ <div class="btn" @click="handleSelectNumber(0)">本页选择</div>
|
|
|
|
+ <div class="btn" @click="handleSelectNumber(1)">全部选择</div>
|
|
|
|
+ <el-divider></el-divider>
|
|
|
|
+ <div class="select-number">
|
|
|
|
+ <span>从</span>
|
|
|
|
+ <el-input size="mini" v-model="queryParams.startNumber" @change="change1"></el-input>
|
|
|
|
+ <span>到</span>
|
|
|
|
+ <el-input size="mini" v-model="queryParams.endNumber" @change="change2"></el-input>
|
|
|
|
+ <el-button type="text" size="" @click="handleSelectNumber(2)">确定</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-main>
|
|
|
|
+ <el-button type="info" size="small" class="margin-left_10" slot="reference">
|
|
|
|
+ 选择专利<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popover>
|
|
|
|
+ <el-dropdown split-button type="primary" size="small" class="margin-left_10" @command="handleCommand($event)"
|
|
|
|
+ @click="handleDelete">
|
|
|
|
+ <p>删 除</p>
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
+ <el-dropdown-item>
|
|
|
|
+ <el-dropdown trigger="hover" placement="right-start">
|
|
|
|
+ <span>
|
|
|
|
+ 专利导入<i class="el-icon-arrow-right el-icon--right"></i>
|
|
|
|
+ </span>
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
+ <el-dropdown-item @click.native="importPatent(1, productId)">专利号导入</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item @click.native="importPatent(2, productId)">Excel导入</el-dropdown-item>
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
- <div class="btn1" @click="sift"
|
|
|
|
- style="width:80px;height:32px;display:flex;justify-content:space-around;border-radius:5px; cursor: pointer;">
|
|
|
|
- <img src="@/assets/img/filtrationSearch.png" alt=""
|
|
|
|
- style="width:16px;height:16px;margin-top:9px;margin-left:8px">
|
|
|
|
- <p style="margin:0 8px 0 0;line-height:32px;color:white;font-size:14px">筛选 </p>
|
|
|
|
- </div>
|
|
|
|
- <el-popover placement="bottom" title="" width="250" trigger="click">
|
|
|
|
- <el-main class="patent-fast-edit-popover" v-loading="selectNumberLoading">
|
|
|
|
- <div class="btn" @click="handleSelectNumber(0)">本页选择</div>
|
|
|
|
- <div class="btn" @click="handleSelectNumber(1)">全部选择</div>
|
|
|
|
- <el-divider></el-divider>
|
|
|
|
- <div class="select-number">
|
|
|
|
- <span>从</span>
|
|
|
|
- <el-input size="mini" v-model="queryParams.startNumber" @change="change1"></el-input>
|
|
|
|
- <span>到</span>
|
|
|
|
- <el-input size="mini" v-model="queryParams.endNumber" @change="change2"></el-input>
|
|
|
|
- <el-button type="text" size="" @click="handleSelectNumber(2)">确定</el-button>
|
|
|
|
- </div>
|
|
|
|
- </el-main>
|
|
|
|
- <el-button type="info" size="small" class="margin-left_10" slot="reference">
|
|
|
|
- 选择专利<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
- </el-button>
|
|
|
|
- </el-popover>
|
|
|
|
- <el-button type="text" size="small" class="margin-left_10" @click="handleCancelSelectNumber">取消选择</el-button>
|
|
|
|
- <el-button type="primary" size="small" class="margin-left_10" @click.native="handleDelete">删除</el-button>
|
|
|
|
- </div>
|
|
|
|
|
|
+ </el-dropdown-item>
|
|
|
|
+ <el-dropdown-item command="1">显示栏位管理</el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown>
|
|
|
|
+ </div>
|
|
<!-- </div> -->
|
|
<!-- </div> -->
|
|
</div>
|
|
</div>
|
|
<!-- 数据表格 -->
|
|
<!-- 数据表格 -->
|
|
<el-table :data="tableData" border :row-key="getRowKeys" v-loading="loading" ref="table" id="table"
|
|
<el-table :data="tableData" border :row-key="getRowKeys" v-loading="loading" ref="table" id="table"
|
|
- header-row-class-name="custom-table-header" style="min-width: 100%; overflow:auto">
|
|
|
|
|
|
+ :row-class-name="tableRowClassName" header-row-class-name="custom-table-header"
|
|
|
|
+ style="min-width: 100%; overflow:auto">
|
|
<el-table-column width="80" align="center" v-if="!structureId">
|
|
<el-table-column width="80" align="center" v-if="!structureId">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
@@ -156,21 +174,22 @@
|
|
<!-- <el-button type="primary" >确 定</el-button> -->
|
|
<!-- <el-button type="primary" >确 定</el-button> -->
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
- <patent-view-field @close="close" @reset="getPatentViewField(true)" @update="updatePatentViewField" ref="patentViewField" />
|
|
|
|
|
|
+ <patent-view-field @close="close" @reset="getPatentViewField(true)" @update="updatePatentViewField"
|
|
|
|
+ ref="patentViewField" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import SelectedPatent from "./SelectedPatent.vue";
|
|
import SelectedPatent from "./SelectedPatent.vue";
|
|
import PatentViewField from "@/views/product/components/relatedPatents/components/dialog/PatentViewField.vue";
|
|
import PatentViewField from "@/views/product/components/relatedPatents/components/dialog/PatentViewField.vue";
|
|
-import { patentViewList, patentKeywordsHighlight} from '@/views/workspace/folder/components/mixins'
|
|
|
|
|
|
+import { patentViewList, patentKeywordsHighlight } from '@/views/workspace/folder/components/mixins'
|
|
|
|
|
|
-export default{
|
|
|
|
|
|
+export default {
|
|
components: {
|
|
components: {
|
|
SelectedPatent,
|
|
SelectedPatent,
|
|
PatentViewField,
|
|
PatentViewField,
|
|
},
|
|
},
|
|
mixins: [patentViewList, patentKeywordsHighlight],
|
|
mixins: [patentViewList, patentKeywordsHighlight],
|
|
- props: ['productId','structureId','name'],//name为产品名称或者架构名称
|
|
|
|
|
|
+ props: ['productId', 'structureId', 'name'],//name为产品名称或者架构名称
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
btnLoading: false,
|
|
btnLoading: false,
|
|
@@ -194,7 +213,7 @@ export default{
|
|
size: 10,
|
|
size: 10,
|
|
},
|
|
},
|
|
paramsRuleForm: {
|
|
paramsRuleForm: {
|
|
- productId:this.productId,
|
|
|
|
|
|
+ productId: this.productId,
|
|
},
|
|
},
|
|
queryParams: {
|
|
queryParams: {
|
|
state: 0,
|
|
state: 0,
|
|
@@ -230,12 +249,51 @@ export default{
|
|
mergeObj: {},
|
|
mergeObj: {},
|
|
selectNumberLoading: false,
|
|
selectNumberLoading: false,
|
|
tableHeight: null,
|
|
tableHeight: null,
|
|
- viewSelected:this.name + this.productId,
|
|
|
|
- patentViewField:[],
|
|
|
|
- fields:[],
|
|
|
|
|
|
+ viewSelected: this.name + this.productId,
|
|
|
|
+ patentViewField: [],
|
|
|
|
+ fields: [],
|
|
|
|
+ searchFiled: [
|
|
|
|
+ {
|
|
|
|
+ label: '标题',
|
|
|
|
+ value: 'patentName',
|
|
|
|
+ type: 1,
|
|
|
|
+ placeholder: '请输入标题查询'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '摘要',
|
|
|
|
+ value: 'abstractStr',
|
|
|
|
+ type: 1,
|
|
|
|
+ placeholder: '请输入摘要查询'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '专利号',
|
|
|
|
+ value: 'patentNo',
|
|
|
|
+ type: 1,
|
|
|
|
+ placeholder: '请输入专利号查询(多个专利号查询中间请用符号“|”隔开,示例:“专利号|专利号”)'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '申请号',
|
|
|
|
+ value: 'applicationNo',
|
|
|
|
+ type: 1,
|
|
|
|
+ placeholder: '请输入申请号查询'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '申请人',
|
|
|
|
+ value: 'applicationName',
|
|
|
|
+ type: 1,
|
|
|
|
+ placeholder: '请输入申请人查询(多个申请人查询中间请用符号“|”隔开,示例:“申请人|申请人”)'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '权利人',
|
|
|
|
+ value: 'obligeeName',
|
|
|
|
+ type: 1,
|
|
|
|
+ placeholder: '请输入权利人查询(多个权利人查询中间请用符号“|”隔开,示例:“权利人|权利人”)'
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ searchOption: {},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- computed:{
|
|
|
|
|
|
+ computed: {
|
|
projectId() {
|
|
projectId() {
|
|
return this.$store.state.patent.projectId
|
|
return this.$store.state.patent.projectId
|
|
},
|
|
},
|
|
@@ -248,6 +306,25 @@ export default{
|
|
this.getPatentViewField()
|
|
this.getPatentViewField()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 左侧搜索
|
|
|
|
+ search(val) {
|
|
|
|
+ var params = {}
|
|
|
|
+ if (val.length > 0) {
|
|
|
|
+ val.forEach(item => {
|
|
|
|
+ if (item.type == 3) {
|
|
|
|
+ params[item.value] = item.searchValue.map(item1 => {
|
|
|
|
+ return item1.value
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ params[item.value] = item.searchValue.label
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ this.searchOption = params
|
|
|
|
+ this.queryParams.current = 1
|
|
|
|
+ this.handleCancelSelectNumber()
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
// 请求显示栏位管理数据
|
|
// 请求显示栏位管理数据
|
|
async getPatentViewField(refresh) {
|
|
async getPatentViewField(refresh) {
|
|
let params = {
|
|
let params = {
|
|
@@ -258,7 +335,7 @@ export default{
|
|
}
|
|
}
|
|
const { data } = await this.$api.getUserSettingField(params)
|
|
const { data } = await this.$api.getUserSettingField(params)
|
|
this.patentViewField = data
|
|
this.patentViewField = data
|
|
-
|
|
|
|
|
|
+
|
|
// this.patentViewField = data.filter(item => {
|
|
// this.patentViewField = data.filter(item => {
|
|
// return item.type=='list'
|
|
// return item.type=='list'
|
|
// })
|
|
// })
|
|
@@ -267,19 +344,19 @@ export default{
|
|
// 显示栏位管理
|
|
// 显示栏位管理
|
|
async handleFieldManage() {
|
|
async handleFieldManage() {
|
|
await this.getPatentViewField()
|
|
await this.getPatentViewField()
|
|
- this.$refs.patentViewField.open(this.patentViewField,this.viewSelected)
|
|
|
|
|
|
+ this.$refs.patentViewField.open(this.patentViewField, this.viewSelected)
|
|
},
|
|
},
|
|
// 更新显示栏位管理
|
|
// 更新显示栏位管理
|
|
updatePatentViewField(data) {
|
|
updatePatentViewField(data) {
|
|
this.patentViewField = data.filter(item => {
|
|
this.patentViewField = data.filter(item => {
|
|
- return item.type=='list'
|
|
|
|
|
|
+ return item.type == 'list'
|
|
})
|
|
})
|
|
- this.handleFields(this.patentViewField)
|
|
|
|
|
|
+ this.handleFields(this.patentViewField)
|
|
},
|
|
},
|
|
handleFields(patentViewField) {
|
|
handleFields(patentViewField) {
|
|
- this.fields=[]
|
|
|
|
- this.fields=patentViewField.filter(item => {
|
|
|
|
- return item.hidden==false
|
|
|
|
|
|
+ this.fields = []
|
|
|
|
+ this.fields = patentViewField.filter(item => {
|
|
|
|
+ return item.hidden == false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getColumnValue(row, column) {
|
|
getColumnValue(row, column) {
|
|
@@ -332,9 +409,9 @@ export default{
|
|
this.$api.getPatentById(val.id, { projectId: null }).then(response => {
|
|
this.$api.getPatentById(val.id, { projectId: null }).then(response => {
|
|
var router = this.$router.resolve({
|
|
var router = this.$router.resolve({
|
|
path: 'patentDetails',
|
|
path: 'patentDetails',
|
|
- query:{
|
|
|
|
- patentId:val.id,
|
|
|
|
- id:true
|
|
|
|
|
|
+ query: {
|
|
|
|
+ patentId: val.id,
|
|
|
|
+ id: true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
window.open(router.href, '_blank');
|
|
window.open(router.href, '_blank');
|
|
@@ -351,20 +428,22 @@ export default{
|
|
// })
|
|
// })
|
|
// },
|
|
// },
|
|
//专利号导入PatentNoImport、excel导入import、检索导入conditionImport
|
|
//专利号导入PatentNoImport、excel导入import、检索导入conditionImport
|
|
- importPatent(type,productId,asCompare){
|
|
|
|
|
|
+ importPatent(type, productId, asCompare) {
|
|
var typeList = {
|
|
var typeList = {
|
|
- '1':'/download',
|
|
|
|
- '2':'/excelImport',
|
|
|
|
- '3':'/searchIndex'
|
|
|
|
|
|
+ '1': '/PatentNoImport',
|
|
|
|
+ '2': '/import',
|
|
|
|
+ // '1': '/download',
|
|
|
|
+ // '2': '/excelImport',
|
|
|
|
+ '3': '/searchIndex'
|
|
}
|
|
}
|
|
- this.$router.push({
|
|
|
|
- path: typeList[type],
|
|
|
|
- query: {
|
|
|
|
- productId: productId,
|
|
|
|
- asCompare:asCompare,
|
|
|
|
- option:8,
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: typeList[type],
|
|
|
|
+ query: {
|
|
|
|
+ productId: productId,
|
|
|
|
+ asCompare: asCompare,
|
|
|
|
+ option: 8,
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
// 查询并添加到相关专利
|
|
// 查询并添加到相关专利
|
|
getListAdd() {
|
|
getListAdd() {
|
|
@@ -391,7 +470,7 @@ export default{
|
|
},
|
|
},
|
|
alterMessage(messages, num) {
|
|
alterMessage(messages, num) {
|
|
messages = messages.join(', ')
|
|
messages = messages.join(', ')
|
|
- if (num==1) {
|
|
|
|
|
|
+ if (num == 1) {
|
|
this.$alert(`<span style='color:red'>${messages}</span> 等专利无法删除`, '提示', {
|
|
this.$alert(`<span style='color:red'>${messages}</span> 等专利无法删除`, '提示', {
|
|
dangerouslyUseHTMLString: true,
|
|
dangerouslyUseHTMLString: true,
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -405,17 +484,17 @@ export default{
|
|
},
|
|
},
|
|
change1(val) {
|
|
change1(val) {
|
|
if (!isNaN(val)) {
|
|
if (!isNaN(val)) {
|
|
- if (!val || val <= 0) {
|
|
|
|
- this.queryParams.startNumber=1
|
|
|
|
|
|
+ if (!val || val <= 0) {
|
|
|
|
+ this.queryParams.startNumber = 1
|
|
} else {
|
|
} else {
|
|
- if (this.queryParams.startNumber>this.total) {
|
|
|
|
- this.queryParams.startNumber=this.total
|
|
|
|
|
|
+ if (this.queryParams.startNumber > this.total) {
|
|
|
|
+ this.queryParams.startNumber = this.total
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- this.queryParams.startNumber=1
|
|
|
|
|
|
+ this.queryParams.startNumber = 1
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
change2(val) {
|
|
change2(val) {
|
|
if (!isNaN(val)) {
|
|
if (!isNaN(val)) {
|
|
@@ -426,8 +505,8 @@ export default{
|
|
this.queryParams.endNumber = this.total
|
|
this.queryParams.endNumber = this.total
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }else {
|
|
|
|
- this.queryParams.endNumber=this.total
|
|
|
|
|
|
+ } else {
|
|
|
|
+ this.queryParams.endNumber = this.total
|
|
}
|
|
}
|
|
},
|
|
},
|
|
tableOffSetHeight() {
|
|
tableOffSetHeight() {
|
|
@@ -493,6 +572,9 @@ export default{
|
|
params.field = params.tree
|
|
params.field = params.tree
|
|
}
|
|
}
|
|
switch (type) {
|
|
switch (type) {
|
|
|
|
+ case -1:
|
|
|
|
+ this.handleCancelSelectNumber()
|
|
|
|
+ break;
|
|
case 0:
|
|
case 0:
|
|
this.queryParams.selecteds = this.tableData.map(item => item.patentNo);
|
|
this.queryParams.selecteds = this.tableData.map(item => item.patentNo);
|
|
this.checkList = [...new Set(this.checkList.concat(this.queryParams.selecteds))]
|
|
this.checkList = [...new Set(this.checkList.concat(this.queryParams.selecteds))]
|
|
@@ -811,27 +893,38 @@ export default{
|
|
|
|
|
|
},
|
|
},
|
|
// 删除proPatentDelete
|
|
// 删除proPatentDelete
|
|
- handleDelete() {
|
|
|
|
- this.saveDeleteQueryParams()
|
|
|
|
- this.$confirm('此操作将删除该产品相关专利,不可恢复, 是否继续?', '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- type: 'warning',
|
|
|
|
- }).then(res => {
|
|
|
|
- this.$api.proPatentDelete(this.queryParams).then(res => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- if (res.data && !res.data.includes('删除成功')) {
|
|
|
|
- this.alterMessage(res.data,1)
|
|
|
|
- } else {
|
|
|
|
- this.$message.success('删除成功')
|
|
|
|
- }
|
|
|
|
- this.saveDelete()
|
|
|
|
|
|
+ handleDelete() {
|
|
|
|
+ this.saveDeleteQueryParams()
|
|
|
|
+ this.$confirm('此操作将删除该产品相关专利,不可恢复, 是否继续?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.$api.proPatentDelete(this.queryParams).then(res => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ if (res.data && !res.data.includes('删除成功')) {
|
|
|
|
+ this.alterMessage(res.data, 1)
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.success('删除成功')
|
|
}
|
|
}
|
|
- })
|
|
|
|
- }).catch(err => {
|
|
|
|
- this.$message.info('取消删除')
|
|
|
|
|
|
+ this.saveDelete()
|
|
|
|
+ }
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
+ this.$message.info('取消删除')
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ // 删除下拉菜单
|
|
|
|
+ handleCommand(ev) {
|
|
|
|
+ switch (ev) {
|
|
|
|
+ case '1':
|
|
|
|
+ this.handleFieldManage()
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
savePatentList() {//保存
|
|
savePatentList() {//保存
|
|
this.saveDeleteQueryParams()
|
|
this.saveDeleteQueryParams()
|
|
@@ -850,14 +943,14 @@ export default{
|
|
this.queryParams.productId = this.productId
|
|
this.queryParams.productId = this.productId
|
|
},
|
|
},
|
|
saveDelete() {
|
|
saveDelete() {
|
|
- this.startNumber = 1
|
|
|
|
- this.endNumber = 0
|
|
|
|
- this.selectedTotal = 0
|
|
|
|
- this.quickSelect = false
|
|
|
|
- this.queryParams.patentNos = []
|
|
|
|
- this.queryParams.notInPatentNos = []
|
|
|
|
- this.checkList = []
|
|
|
|
- this.getList2()
|
|
|
|
|
|
+ this.startNumber = 1
|
|
|
|
+ this.endNumber = 0
|
|
|
|
+ this.selectedTotal = 0
|
|
|
|
+ this.quickSelect = false
|
|
|
|
+ this.queryParams.patentNos = []
|
|
|
|
+ this.queryParams.notInPatentNos = []
|
|
|
|
+ this.checkList = []
|
|
|
|
+ this.getList2()
|
|
},
|
|
},
|
|
getList2() {
|
|
getList2() {
|
|
this.queryParams.current = 1
|
|
this.queryParams.current = 1
|
|
@@ -866,7 +959,11 @@ export default{
|
|
async getList(key) {
|
|
async getList(key) {
|
|
this.queryParams.productId = this.productId
|
|
this.queryParams.productId = this.productId
|
|
this.queryParams.structureId = this.structureId
|
|
this.queryParams.structureId = this.structureId
|
|
- let params = JSON.parse(JSON.stringify(this.queryParams))
|
|
|
|
|
|
+ // let params = JSON.parse(JSON.stringify(this.queryParams))
|
|
|
|
+ let params = {
|
|
|
|
+ ...JSON.parse(JSON.stringify(this.queryParams)),
|
|
|
|
+ ...this.searchOption
|
|
|
|
+ }
|
|
//console.log(params);
|
|
//console.log(params);
|
|
params.tree.map(tree => {
|
|
params.tree.map(tree => {
|
|
let field = params.field.filter(item => item.key === tree.key)
|
|
let field = params.field.filter(item => item.key === tree.key)
|
|
@@ -900,6 +997,12 @@ export default{
|
|
showPatent(even) {//选择下拉框
|
|
showPatent(even) {//选择下拉框
|
|
//console.log(even);
|
|
//console.log(even);
|
|
},
|
|
},
|
|
|
|
+ // row隔行变色
|
|
|
|
+ tableRowClassName({ row, rowIndex }) {
|
|
|
|
+ if (rowIndex % 2 === 0) {
|
|
|
|
+ return 'height-row'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
'tableData'(val, val1) {
|
|
'tableData'(val, val1) {
|
|
@@ -914,62 +1017,73 @@ export default{
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" >
|
|
<style lang="scss" >
|
|
-.btn1 {
|
|
|
|
- background: #909399;
|
|
|
|
-}
|
|
|
|
|
|
+.relatedPatentsTable {
|
|
|
|
+ .custom-table-header>th {
|
|
|
|
+ background: #deedff !important;
|
|
|
|
+ color: #7ba6d5 !important;
|
|
|
|
+ font-weight: 400 !important;
|
|
|
|
+ }
|
|
|
|
|
|
-.btn1:hover {
|
|
|
|
|
|
+ .height-row {
|
|
|
|
+ background: #f5faff !important;
|
|
|
|
+ }
|
|
|
|
|
|
- background-color: #a4a7ab;
|
|
|
|
-}
|
|
|
|
|
|
+ .btn1 {
|
|
|
|
+ background: #909399;
|
|
|
|
+ }
|
|
|
|
|
|
-.patent-fast-edit-popover {
|
|
|
|
- padding: 0 !important;
|
|
|
|
|
|
+ .btn1:hover {
|
|
|
|
+ background-color: #a4a7ab;
|
|
|
|
+ }
|
|
|
|
|
|
- .btn {
|
|
|
|
- color: #000;
|
|
|
|
- line-height: 40px;
|
|
|
|
- border-radius: 5px;
|
|
|
|
- padding-left: 10px;
|
|
|
|
- cursor: pointer;
|
|
|
|
|
|
+ .patent-fast-edit-popover {
|
|
|
|
+ padding: 0 !important;
|
|
|
|
|
|
- &:hover {
|
|
|
|
- background: #adadad;
|
|
|
|
- color: #fff;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ .btn {
|
|
|
|
+ color: #000;
|
|
|
|
+ line-height: 40px;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+ padding-left: 10px;
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
|
- .disabled {
|
|
|
|
- cursor: not-allowed !important;
|
|
|
|
- }
|
|
|
|
|
|
+ &:hover {
|
|
|
|
+ background: #adadad;
|
|
|
|
+ color: #fff;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
- .bottom {
|
|
|
|
- text-align: right;
|
|
|
|
- color: #1e9fff;
|
|
|
|
- line-height: 40px;
|
|
|
|
- padding-left: 10px;
|
|
|
|
- font-size: 18px;
|
|
|
|
- }
|
|
|
|
|
|
+ .disabled {
|
|
|
|
+ cursor: not-allowed !important;
|
|
|
|
+ }
|
|
|
|
|
|
- .el-divider--horizontal {
|
|
|
|
- margin: 10px 0 !important;
|
|
|
|
- }
|
|
|
|
|
|
+ .bottom {
|
|
|
|
+ text-align: right;
|
|
|
|
+ color: #1e9fff;
|
|
|
|
+ line-height: 40px;
|
|
|
|
+ padding-left: 10px;
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ }
|
|
|
|
|
|
- .select-number {
|
|
|
|
- .el-input {
|
|
|
|
- width: 70px;
|
|
|
|
|
|
+ .el-divider--horizontal {
|
|
|
|
+ margin: 10px 0 !important;
|
|
}
|
|
}
|
|
|
|
|
|
- span {
|
|
|
|
- padding: 0 3px;
|
|
|
|
|
|
+ .select-number {
|
|
|
|
+ .el-input {
|
|
|
|
+ width: 70px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ span {
|
|
|
|
+ padding: 0 3px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
-}
|
|
|
|
|
|
+ }
|
|
|
|
|
|
-.patent-left {
|
|
|
|
- margin-top: 69px;
|
|
|
|
- overflow: hidden;
|
|
|
|
- border-top: 1px solid rgb(228 231 237);
|
|
|
|
|
|
+ .patent-left {
|
|
|
|
+ margin-top: 69px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ border-top: 1px solid rgb(228 231 237);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|