Commit e005397f by heshihao

feat: 添加应用领域

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