Commit e005397f by heshihao

feat: 添加应用领域

parent f0364bab
......@@ -19,21 +19,13 @@
</template>
<template #addonAfter>
<div @click="onsearch">
<img
style="padding-right: 5px"
src="@/static/home/index/icon-search.png"
alt=""
/>搜索
<img style="padding-right: 5px" src="@/static/home/index/icon-search.png" alt="" />搜索
</div>
</template>
</a-input>
<!-- 联想搜索 -->
<div class="search_result" v-show="search_result_show">
<div
class="search_result_item"
v-for="(item, index) in search_result"
:key="item"
>
<div class="search_result_item" v-for="(item, index) in search_result" :key="item">
<div style="position: relative">
<div
v-if="patent_cate == 'title'"
......@@ -47,18 +39,9 @@
v-html="item.gkh"
@click="lenovnoPatentDetails(item)"
></div>
<div
v-else
style="cursor: pointer"
v-html="item.gkh"
@click="lenovnoPatentDetails(item)"
></div>
<a-tag class="cate" color="blue" v-if="patent_cate == 'title'"
>专利名称</a-tag
>
<a-tag class="cate" color="blue" v-else-if="patent_cate == 'fmr'"
>发明人</a-tag
>
<div v-else style="cursor: pointer" v-html="item.gkh" @click="lenovnoPatentDetails(item)"></div>
<a-tag class="cate" color="blue" v-if="patent_cate == 'title'">专利名称</a-tag>
<a-tag class="cate" color="blue" v-else-if="patent_cate == 'fmr'">发明人</a-tag>
<a-tag class="cate" color="blue" v-else>专利号</a-tag>
</div>
</div>
......@@ -66,9 +49,7 @@
</div>
<div class="patent">
<a-breadcrumb class="nav_bread">
<a-breadcrumb-item
><router-link :to="'/home'">首页</router-link></a-breadcrumb-item
>
<a-breadcrumb-item><router-link :to="'/home'">首页</router-link></a-breadcrumb-item>
<a-breadcrumb-item>专利</a-breadcrumb-item>
</a-breadcrumb>
<div class="patent_con">
......@@ -76,12 +57,7 @@
<h3>筛选器</h3>
<a-form style="height: 78%" :layout="'vertical'" :model="formState">
<a-form-item label="专利类型">
<a-select
v-model:value="value1"
mode="multiple"
placeholder="请选择"
:options="optionsType"
></a-select>
<a-select v-model:value="value1" mode="multiple" placeholder="请选择" :options="optionsType"></a-select>
</a-form-item>
<a-form-item name="range-picker" label="申请日">
<a-config-provider :locale="zh_CN">
......@@ -112,12 +88,8 @@
</a-form-item>
</a-form>
<a-button type="default" size="large" class="btn" @click="clearvalue"
>重置</a-button
>&nbsp;
<a-button type="primary" size="large" class="btn" @click="Filter"
>筛选</a-button
>
<a-button type="default" size="large" class="btn" @click="clearvalue">重置</a-button>&nbsp;
<a-button type="primary" size="large" class="btn" @click="Filter">筛选</a-button>
</div>
<!-- 专利表格结果 -->
<div class="patent_con_right">
......@@ -126,7 +98,7 @@
>条相关结果
<!-- 筛选的标签展示 -->
<div class="filter">
<a-tag color="blue" v-for="item in filter">
<a-tag color="blue" v-for="(item, index) in filter" :key="index">
{{ item }}
</a-tag>
</div>
......@@ -149,10 +121,7 @@
</template>
</a-table>
<div style="height: 50%" v-else>
<a-empty
style="margin-top: 15%"
:description="'您的搜索词太宽泛,建议更换一下搜索词'"
/>
<a-empty style="margin-top: 15%" :description="'您的搜索词太宽泛,建议更换一下搜索词'" />
</div>
<br />
<a-pagination
......@@ -246,6 +215,12 @@ export default {
dataIndex: "zl_type",
key: "zl_type",
},
{
title: "应用领域",
dataIndex: "app_area",
key: "app_area",
ellipsis: true,
},
],
patentdata: [],
filter: [],
......@@ -289,18 +264,10 @@ export default {
size: 10,
keyword: this.keyword ? this.keyword : null,
zl_type: this.value1,
sqrq_start: this.formState.rangetime1
? this.formState.rangetime1[0]
: null,
sqrq_end: this.formState.rangetime1
? this.formState.rangetime1[1]
: null,
gkrq_start: this.formState.rangetime2
? this.formState.rangetime2[0]
: null,
gkrq_end: this.formState.rangetime2
? this.formState.rangetime2[1]
: null,
sqrq_start: this.formState.rangetime1 ? this.formState.rangetime1[0] : null,
sqrq_end: this.formState.rangetime1 ? this.formState.rangetime1[1] : null,
gkrq_start: this.formState.rangetime2 ? this.formState.rangetime2[0] : null,
gkrq_end: this.formState.rangetime2 ? this.formState.rangetime2[1] : null,
zl_status: this.value2,
};
patentselect({ ...params }).then((res) => {
......@@ -335,18 +302,10 @@ export default {
size: 10,
keyword: this.keyword ? this.keyword : null,
zl_type: this.value1,
sqrq_start: this.formState.rangetime1
? this.formState.rangetime1[0]
: null,
sqrq_end: this.formState.rangetime1
? this.formState.rangetime1[1]
: null,
gkrq_start: this.formState.rangetime2
? this.formState.rangetime2[0]
: null,
gkrq_end: this.formState.rangetime2
? this.formState.rangetime2[1]
: null,
sqrq_start: this.formState.rangetime1 ? this.formState.rangetime1[0] : null,
sqrq_end: this.formState.rangetime1 ? this.formState.rangetime1[1] : null,
gkrq_start: this.formState.rangetime2 ? this.formState.rangetime2[0] : null,
gkrq_end: this.formState.rangetime2 ? this.formState.rangetime2[1] : null,
zl_status: this.value2,
};
patentselect({ ...parma }).then((res) => {
......@@ -377,9 +336,9 @@ export default {
});
},
//跳转到专利详情页面
rowClick(record, index) {
rowClick(record) {
return {
onClick: (event) => {
onClick: () => {
//保留历史搜索记录
let historysearch = {
keyword: this.keyword,
......@@ -451,7 +410,7 @@ export default {
},
},
watch: {
type: function (newV, oldV) {
type: function (newV) {
// console.log(newV)
if (newV == "企业") {
this.$router.push({
......
......@@ -64,6 +64,7 @@
<a-descriptions-item label="失效日">{{ details.sxr }}</a-descriptions-item>
<a-descriptions-item label="专利类型">{{ details.zl_type }}</a-descriptions-item>
<a-descriptions-item label="专利维持期">{{ details.zlwqq }}</a-descriptions-item>
<a-descriptions-item label="应用领域">{{ details.app_area }}</a-descriptions-item>
</a-descriptions>
</div>
<!-- 相关人 -->
......@@ -190,7 +191,7 @@
</a-descriptions-item>
<a-descriptions-item :span="3" label="专利信息" v-else>
<template v-for="patent in item.patents">
<template v-for="(patent, index) in item.patents" :key="index">
<div v-html="patent"></div>
</template>
</a-descriptions-item>
......@@ -306,7 +307,7 @@ export default {
},
components: {
EchartsCloud,
DownOutlined,
// DownOutlined,
Loading,
},
methods: {
......@@ -338,7 +339,7 @@ export default {
}
},
handleAnchorClick(e, link) {
handleAnchorClick(e) {
e.preventDefault();
},
openModal() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment