|
@@ -3,12 +3,12 @@
|
|
|
<div style="background: white; height: 100%" >
|
|
|
<el-container>
|
|
|
<el-aside width="300px">
|
|
|
- <filter_search ref="filter_search" @customTab="handleCustomFields" :numberQuery="condition.NO" :searchOption="condition.searchCondition" :customFields="customFields" :projectId="conditionObj.projectId?conditionObj.projectId[0]:undefined"></filter_search>
|
|
|
+ <filter_search ref="filter_search" @customTab="handleCustomFields" :numberQuery="condition.NO" :searchOption="condition.searchCondition" :customFields="customFields" :projectId="condition.otherCondition?condition.otherCondition.projectId:undefined"></filter_search>
|
|
|
</el-aside>
|
|
|
<el-container>
|
|
|
<el-header style="height:auto !important;padding:0 !important;">
|
|
|
<div style="width:100%">
|
|
|
- <div class="display_flex" style="margin-top: 0px;">
|
|
|
+ <!-- <div class="display_flex" style="margin-top: 0px;">
|
|
|
<search :field="field" :searchResult="true" :searchValue="false" :countryList="queryParams.countryList"
|
|
|
@search="search"></search>
|
|
|
<div class="display_flex" style="width:calc(100% - 550px);">
|
|
@@ -29,13 +29,43 @@
|
|
|
<el-dropdown-item @click.native.prevent="searchFinish">
|
|
|
检索
|
|
|
</el-dropdown-item>
|
|
|
- <!-- <el-dropdown-item v-if="condition.reportType==1||condition.reportType == 2||condition.reportType == 3" @click.native.prevent="saveSearchCondition">
|
|
|
- 保存检索式
|
|
|
- </el-dropdown-item> -->
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </div> -->
|
|
|
+ <div class="display_flex filterCondition">
|
|
|
+ <el-form :inline="true">
|
|
|
+ <el-form-item label="检索范围:">
|
|
|
+ <el-select size="small" v-model="condition.DBType" @change="changeDBType" style="width:100%" placeholder="请选择">
|
|
|
+ <template v-if="condition.DBType == 'inner_WD' || condition.DBType == 'inner_CN'">
|
|
|
+ <el-option label="中国专利检索(内)" value="inner_CN"></el-option>
|
|
|
+ <el-option label="全球专利检索(内)" value="inner_DB"></el-option>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <el-option label="中国专利检索" value="CN"></el-option>
|
|
|
+ <el-option label="世界专利检索" value="DB"></el-option>
|
|
|
+ </template>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="数据库:" v-if="condition.DBType == 'inner_WD' || condition.DBType == 'inner_CN'">
|
|
|
+ <el-select size="small" v-model.number="condition.otherCondition.projectId" @change="changeProject" style="width:100%" filterable remote clearable placeholder="请选择" v-SelectLazyLoading="lazyLoading" :remote-method="remoteMethod" @focus="remoteMethod('')">
|
|
|
+ <el-option
|
|
|
+ v-for="item in projectQuery.data"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="parseInt(item.id)"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <div class="display_flex filterCondition">
|
|
|
+ <div class="label">检索条件:</div>
|
|
|
+ <myTextarea size='small' style="width:100%;" v-model="condition.searchCondition"></myTextarea>
|
|
|
+ <el-button type="primary" size="small" class="margin-left_10" @click="inputSearch()">检索</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="filterSearch">过滤</el-button>
|
|
|
</div>
|
|
|
<div v-if="filterConditions.length>0" class="display_flex filterCondition">
|
|
|
<div class="label">筛选条件:</div>
|
|
@@ -191,6 +221,8 @@
|
|
|
<addAndEditSearchRecords ref="addAndEditSearchRecords" :projectId="condition.importToId"></addAndEditSearchRecords>
|
|
|
<inventionPointDialog v-if="noveltySearch" :projectId="projectId" :retrieveRecordId="retrieveRecordId" :contrastFileList="saveRemarkList" @updateInventionPoint="getPatentSimilarMess"></inventionPointDialog>
|
|
|
<reportTemplateDialog ref="reportTemplateDialog"></reportTemplateDialog>
|
|
|
+ <!-- 过滤 -->
|
|
|
+ <filterDialog ref="filterDialog" :DBType="condition.DBType" @search="search"></filterDialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -211,6 +243,8 @@ import filter_search from './filter_search.vue';
|
|
|
|
|
|
import PatentKeywordsHighlight from '@/views/project/components/PatentKeywordsHighlight.vue'
|
|
|
import indexMixins from './indexMixins'
|
|
|
+
|
|
|
+import filterDialog from './filterDialog.vue';
|
|
|
export default {
|
|
|
components: {
|
|
|
PatentTableListView,
|
|
@@ -222,7 +256,8 @@ export default {
|
|
|
addAndEditSearchRecords,
|
|
|
reportTemplateDialog,
|
|
|
filter_search,
|
|
|
- PatentKeywordsHighlight
|
|
|
+ PatentKeywordsHighlight,
|
|
|
+ filterDialog
|
|
|
},
|
|
|
mixins:[indexMixins],
|
|
|
props: {
|
|
@@ -312,7 +347,8 @@ export default {
|
|
|
},
|
|
|
created() { },
|
|
|
async mounted() {
|
|
|
- this.condition.originalCondition = this.condition.searchCondition
|
|
|
+ this.initProjectSelect()
|
|
|
+ this.$set(this.condition,'originalCondition',this.condition.searchCondition)
|
|
|
this.getField()
|
|
|
this.columnList = await this.$commonJS.getCustomField('patent',{ projectId: 0, taskId: null })
|
|
|
if(this.noveltySearch){
|
|
@@ -429,7 +465,7 @@ export default {
|
|
|
outside:this.outside,
|
|
|
noveltySearch:this.noveltySearch,
|
|
|
projectId:this.projectId,
|
|
|
- innerProjectId:this.innerProjectId || 0,
|
|
|
+ innerProjectId:this.innerProjectId || (this.condition.otherCondition?this.condition.otherCondition.projectId:0),
|
|
|
retrieveRecordId:this.queryParams.retrieveRecordId
|
|
|
}
|
|
|
}
|
|
@@ -438,8 +474,8 @@ export default {
|
|
|
// 统计组件传的值
|
|
|
handleCustomFields(val) {
|
|
|
this.filterConditions.push(...val)
|
|
|
- var str = this.getConditionStrByCount(val)
|
|
|
- this.condition.searchCondition = `${this.condition.searchCondition} AND ${str}`
|
|
|
+ // var str = this.getConditionStrByCount(val)
|
|
|
+ // this.condition.searchCondition = `${this.condition.searchCondition} AND ${str}`
|
|
|
this.searchBth()
|
|
|
this.refreshCount()
|
|
|
},
|
|
@@ -492,7 +528,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
if (val.isRepeat) {
|
|
|
- this.condition.searchCondition = `${this.condition.searchCondition} AND ${val.searchStr}`
|
|
|
+ // this.condition.searchCondition = `${this.condition.searchCondition} AND ${val.searchStr}`
|
|
|
// this.condition.showCondition = `${this.condition.showCondition} AND ${val.searchStr}`
|
|
|
this.getFilterCondition(val)
|
|
|
} else {
|
|
@@ -502,7 +538,8 @@ export default {
|
|
|
}
|
|
|
this.condition.searchCondition = searchStr
|
|
|
this.condition.showCondition = searchStr
|
|
|
- this.condition.originalCondition = searchStr
|
|
|
+ // this.condition.originalCondition = searchStr
|
|
|
+ this.$set(this.condition,'originalCondition',searchStr)
|
|
|
this.changeOriginalCondition(val)
|
|
|
}
|
|
|
this.refreshCount()
|
|
@@ -528,7 +565,7 @@ export default {
|
|
|
value.push(
|
|
|
{
|
|
|
search: item.value,
|
|
|
- show: item.show.value
|
|
|
+ show: item.show.value || item.value
|
|
|
}
|
|
|
)
|
|
|
}
|
|
@@ -651,7 +688,7 @@ export default {
|
|
|
}
|
|
|
var params = {
|
|
|
stringRequest:{
|
|
|
- projectId: this.innerProjectId,
|
|
|
+ projectId: this.innerProjectId || (this.condition.otherCondition?this.condition.otherCondition.projectId:''),
|
|
|
searchQuery: this.condition.searchCondition || '',
|
|
|
orderDTOList:this.sort,
|
|
|
},
|
|
@@ -768,16 +805,28 @@ export default {
|
|
|
},
|
|
|
//查询内部数据库数据
|
|
|
async getInnerProjectPatent(){
|
|
|
+ var searchQuery = this.getConditionStrByCount(this.filterConditions||[])
|
|
|
+ if(this.condition.searchCondition){
|
|
|
+ if(searchQuery){
|
|
|
+ searchQuery = `${this.condition.searchCondition} AND ${searchQuery}`
|
|
|
+ }else{
|
|
|
+ searchQuery = `${this.condition.searchCondition}`
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
let params = {
|
|
|
current: this.queryParams.current, //页码(最多 200 页)
|
|
|
size: this.queryParams.size, //每页返回条数(最多 50 条)
|
|
|
projectId: this.innerProjectId,
|
|
|
- searchQuery: this.condition.searchCondition || '',//检索条件
|
|
|
+ searchQuery: searchQuery,//检索条件
|
|
|
semanteme:this.semanteme,
|
|
|
//专利号检索
|
|
|
numberQuery:this.condition.NO,
|
|
|
redisKey:this.condition.redisKey,
|
|
|
}
|
|
|
+ if(this.condition.otherCondition && this.condition.otherCondition.projectId){
|
|
|
+ params.projectId = this.condition.otherCondition.projectId
|
|
|
+ }
|
|
|
if(this.queryParams.OrderBy && this.queryParams.OrderByType){
|
|
|
var orderDTOList = [
|
|
|
{
|