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="company_cate == 'company_name'" v-if="company_cate == 'company_name'"
...@@ -41,15 +33,8 @@ ...@@ -41,15 +33,8 @@
v-html="item.company_name" v-html="item.company_name"
@click="lenovnoCompanyDetails(item)" @click="lenovnoCompanyDetails(item)"
></div> ></div>
<div <div v-else style="cursor: pointer" v-html="item.company_name" @click="lenovnoCompanyDetails(item)"></div>
v-else <a-tag class="cate" color="blue" v-if="company_cate == 'company_name'">公司名称</a-tag>
style="cursor: pointer"
v-html="item.company_name"
@click="lenovnoCompanyDetails(item)"
></div>
<a-tag class="cate" color="blue" v-if="company_cate == 'company_name'"
>公司名称</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>
...@@ -57,9 +42,7 @@ ...@@ -57,9 +42,7 @@
</div> </div>
<div class="company"> <div class="company">
<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="company_con"> <div class="company_con">
...@@ -67,12 +50,7 @@ ...@@ -67,12 +50,7 @@
<h3>筛选器</h3> <h3>筛选器</h3>
<a-form :layout="'vertical'" :model="formState"> <a-form :layout="'vertical'" :model="formState">
<a-form-item label="区域"> <a-form-item label="区域">
<a-cascader <a-cascader v-model:value="valueArea" multiple :options="optionsArea" placeholder="请选择"></a-cascader>
v-model:value="valueArea"
multiple
:options="optionsArea"
placeholder="请选择"
></a-cascader>
</a-form-item> </a-form-item>
<a-form-item label="国民经济行业"> <a-form-item label="国民经济行业">
<a-cascader <a-cascader
...@@ -83,12 +61,7 @@ ...@@ -83,12 +61,7 @@
></a-cascader> ></a-cascader>
</a-form-item> </a-form-item>
<a-form-item label="科技型企业"> <a-form-item label="科技型企业">
<a-select <a-select v-model:value="valueType" :options="optionsType" mode="multiple" placeholder="请选择"></a-select>
v-model:value="valueType"
:options="optionsType"
mode="multiple"
placeholder="请选择"
></a-select>
</a-form-item> </a-form-item>
<a-form-item label="注册时间"> <a-form-item label="注册时间">
<a-config-provider :locale="zh_CN"> <a-config-provider :locale="zh_CN">
...@@ -133,20 +106,8 @@ ...@@ -133,20 +106,8 @@
></a-select> ></a-select>
</a-form-item> </a-form-item>
</a-form> </a-form>
<a-button <a-button type="default" size="large" style="width: 100px" @click="clearvalue">重置</a-button>&nbsp;
type="default" <a-button type="primary" size="large" style="width: 100px" @click="Filter">筛选</a-button>
size="large"
style="width: 100px"
@click="clearvalue"
>重置</a-button
>&nbsp;
<a-button
type="primary"
size="large"
style="width: 100px"
@click="Filter"
>筛选</a-button
>
</div> </div>
<!-- 公司列表结果 --> <!-- 公司列表结果 -->
<div class="company_con_right"> <div class="company_con_right">
...@@ -160,92 +121,51 @@ ...@@ -160,92 +121,51 @@
</a-tag> </a-tag>
</div> </div>
</h2> </h2>
<div <div style="display: flex; justify-content: flex-start; flex-wrap: wrap">
style="display: flex; justify-content: flex-start; flex-wrap: wrap"
>
<div class="card" v-for="item in companylist" :key="item"> <div class="card" v-for="item in companylist" :key="item">
<div class="card_title"> <div class="card_title">
<span @click="openCompany(item.mysql_id, item.company_name)"> <span @click="openCompany(item.mysql_id, item.company_name)"> {{ item.company_name }}</span>
{{ item.company_name }}</span
>
<!-- 关注 --> <!-- 关注 -->
<div <div class="follow" @click="followFun(item.mysql_id, item.company_name)" v-if="!item.follow">
class="follow" <img src="@/static/company/icon-guanzhu.png" alt="" class="follow_img" />
@click="followFun(item.mysql_id, item.company_name)"
v-if="!item.follow"
>
<img
src="@/static/company/icon-guanzhu.png"
alt=""
class="follow_img"
/>
<span class="follow_str">关注</span> <span class="follow_str">关注</span>
</div> </div>
<div class="follow" @click="cancelFun(item.mysql_id)" v-else> <div class="follow" @click="cancelFun(item.mysql_id)" v-else>
<img <img src="@/static/company/icon-yiguanzhu.png" alt="" class="follow_img" />
src="@/static/company/icon-yiguanzhu.png"
alt=""
class="follow_img"
/>
<span class="follow_str">已关注</span> <span class="follow_str">已关注</span>
</div> </div>
</div> </div>
<a-tag color="#56CA95">{{ item.status }}</a-tag> <a-tag color="#56CA95">{{ item.status }}</a-tag>
<a-tag color="#6096E6" v-if="item.quoted_company == 1">{{ <a-tag color="#6096E6" v-if="item.quoted_company == 1">{{ "上市企业" }}</a-tag>
"上市企业"
}}</a-tag>
<a-tag color="#6096E6" v-if="item.high_new == 1">{{ <a-tag color="#6096E6" v-if="item.high_new == 1">{{ "高新技术企业" }}</a-tag>
"高新技术企业" <a-tag color="#6096E6" v-if="item.zjtg_sjxjr == 1">{{ "专精特新小巨人" }}</a-tag>
}}</a-tag> <a-tag color="#6096E6" v-if="item.zjtg == 1">{{ "专精特新中小企业" }}</a-tag>
<a-tag color="#6096E6" v-if="item.zjtg_sjxjr == 1">{{
"专精特新小巨人"
}}</a-tag>
<a-tag color="#6096E6" v-if="item.zjtg == 1">{{
"专精特新中小企业"
}}</a-tag>
<a-divider /> <a-divider />
<div class="card_desc"> <div class="card_desc">
<a-descriptions layout="vertical"> <a-descriptions layout="vertical">
<a-descriptions-item label="法定代表人">{{ <a-descriptions-item label="法定代表人">{{ item.legal }}</a-descriptions-item>
item.legal <a-descriptions-item label="注册时间">{{ item.build_date }}</a-descriptions-item>
}}</a-descriptions-item> <a-descriptions-item label="统一社会信用代码">{{ item.social_code }}</a-descriptions-item>
<a-descriptions-item label="注册时间">{{
item.build_date
}}</a-descriptions-item>
<a-descriptions-item label="统一社会信用代码">{{
item.social_code
}}</a-descriptions-item>
<a-descriptions-item label="国民经济行业"> <a-descriptions-item label="国民经济行业">
{{ {{ item.company_industry_parent ? item.company_industry_parent + ">" : ""
item.company_industry_parent
? item.company_industry_parent + ">"
: ""
}}{{ item.company_industry }} }}{{ item.company_industry }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item :span="2" label="注册地址">{{ <a-descriptions-item :span="2" label="注册地址">{{ item.address }}</a-descriptions-item>
item.address
}}</a-descriptions-item>
</a-descriptions> </a-descriptions>
</div> </div>
</div> </div>
</div> </div>
<div style="height: 50%" v-if="search_word"> <div style="height: 50%" v-if="search_word">
<a-empty <a-empty style="margin-top: 15%" :description="'您的搜索词太宽泛,建议更换一下搜索词'" />
style="margin-top: 15%"
:description="'您的搜索词太宽泛,建议更换一下搜索词'"
/>
</div> </div>
<div style="height: 50%" v-if="total==0"> <div style="height: 50%" v-if="total == 0">
<a-empty <a-empty style="margin-top: 15%" :description="'暂无数据'" />
style="margin-top: 15%"
:description="'暂无数据'"
/>
</div> </div>
<br /> <br />
<a-pagination <a-pagination
v-if="(!search_word)" v-if="!search_word"
v-model:current="currentPage" v-model:current="currentPage"
@change="onChange" @change="onChange"
:total="total" :total="total"
...@@ -261,12 +181,7 @@ ...@@ -261,12 +181,7 @@
import dayjs from "dayjs"; import dayjs from "dayjs";
import arealist from "../../utils/map.js"; import arealist from "../../utils/map.js";
import { userFollow, cancelFollow } from "../../utils/userAPI"; import { userFollow, cancelFollow } from "../../utils/userAPI";
import { import { enterpriseList, industryType, enterpriseSelect, enterpriseLenovo } from "../../utils/indexApi.js";
enterpriseList,
industryType,
enterpriseSelect,
enterpriseLenovo,
} from "../../utils/indexApi.js";
import "dayjs/locale/zh-cn"; import "dayjs/locale/zh-cn";
import zh_CN from "ant-design-vue/lib/locale-provider/zh_CN"; import zh_CN from "ant-design-vue/lib/locale-provider/zh_CN";
import { message } from "ant-design-vue"; import { message } from "ant-design-vue";
...@@ -412,12 +327,8 @@ export default { ...@@ -412,12 +327,8 @@ export default {
area: area, area: area,
company_industry: company_industry, company_industry: company_industry,
qualification: this.valueType, qualification: this.valueType,
start_date: this.formState.rangetime1 start_date: this.formState.rangetime1 ? this.formState.rangetime1[0] : null,
? this.formState.rangetime1[0] end_date: this.formState.rangetime1 ? this.formState.rangetime1[1] : null,
: null,
end_date: this.formState.rangetime1
? this.formState.rangetime1[1]
: null,
capital_nums_min: Number(this.formState.capital_nums_min), capital_nums_min: Number(this.formState.capital_nums_min),
capital_nums_max: Number(this.formState.capital_nums_max), capital_nums_max: Number(this.formState.capital_nums_max),
innovate: this.valueInnovation, innovate: this.valueInnovation,
...@@ -468,30 +379,15 @@ export default { ...@@ -468,30 +379,15 @@ export default {
}, },
//点击筛选 //点击筛选
Filter() { Filter() {
if ( if (this.formState.capital_nums_min == "" && this.formState.capital_nums_max != "") {
this.formState.capital_nums_min == "" &&
this.formState.capital_nums_max != ""
) {
message.error("请输入完整的注册资本范围"); message.error("请输入完整的注册资本范围");
return false; return false;
} else if ( } else if (this.formState.capital_nums_min != "" && this.formState.capital_nums_max == "") {
this.formState.capital_nums_min != "" &&
this.formState.capital_nums_max == ""
) {
message.error("请输入完整的注册资本范围"); message.error("请输入完整的注册资本范围");
return false; return false;
} else if ( } else if (this.formState.capital_nums_min && this.formState.capital_nums_max) {
this.formState.capital_nums_min && if (Number(this.formState.capital_nums_min) > Number(this.formState.capital_nums_max)) {
this.formState.capital_nums_max console.log(this.formState.capital_nums_min, this.formState.capital_nums_max);
) {
if (
Number(this.formState.capital_nums_min) >
Number(this.formState.capital_nums_max)
) {
console.log(
this.formState.capital_nums_min,
this.formState.capital_nums_max
);
message.error("注册资本范围无效"); message.error("注册资本范围无效");
return false; return false;
} }
...@@ -530,12 +426,8 @@ export default { ...@@ -530,12 +426,8 @@ export default {
area: area, area: area,
company_industry: company_industry, company_industry: company_industry,
qualification: this.valueType, qualification: this.valueType,
start_date: this.formState.rangetime1 start_date: this.formState.rangetime1 ? this.formState.rangetime1[0] : null,
? this.formState.rangetime1[0] end_date: this.formState.rangetime1 ? this.formState.rangetime1[1] : null,
: null,
end_date: this.formState.rangetime1
? this.formState.rangetime1[1]
: null,
capital_nums_min: Number(this.formState.capital_nums_min), capital_nums_min: Number(this.formState.capital_nums_min),
capital_nums_max: Number(this.formState.capital_nums_max), capital_nums_max: Number(this.formState.capital_nums_max),
innovate: this.valueInnovation ? this.valueInnovation : null, innovate: this.valueInnovation ? this.valueInnovation : null,
...@@ -687,7 +579,7 @@ export default { ...@@ -687,7 +579,7 @@ export default {
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.home{ .home {
height: auto !important; height: auto !important;
} }
.header_con { .header_con {
......
...@@ -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