Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
ty_patentSys
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanxiao
ty_patentSys
Commits
e005397f
Commit
e005397f
authored
Nov 23, 2023
by
heshihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加应用领域
parent
f0364bab
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
218 deletions
+70
-218
src/views/company/index.vue
+38
-146
src/views/patent/index.vue
+28
-69
src/views/patent/patentDetails.vue
+4
-3
No files found.
src/views/company/index.vue
View file @
e005397f
...
...
@@ -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=
"company_cate == 'company_name'"
...
...
@@ -41,15 +33,8 @@
v-html=
"item.company_name"
@
click=
"lenovnoCompanyDetails(item)"
></div>
<div
v-else
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
>
<div
v-else
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>
</div>
</div>
...
...
@@ -57,9 +42,7 @@
</div>
<div
class=
"company"
>
<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=
"company_con"
>
...
...
@@ -67,12 +50,7 @@
<h3>
筛选器
</h3>
<a-form
:layout=
"'vertical'"
:model=
"formState"
>
<a-form-item
label=
"区域"
>
<a-cascader
v-model:value=
"valueArea"
multiple
:options=
"optionsArea"
placeholder=
"请选择"
></a-cascader>
<a-cascader
v-model:value=
"valueArea"
multiple
:options=
"optionsArea"
placeholder=
"请选择"
></a-cascader>
</a-form-item>
<a-form-item
label=
"国民经济行业"
>
<a-cascader
...
...
@@ -83,12 +61,7 @@
></a-cascader>
</a-form-item>
<a-form-item
label=
"科技型企业"
>
<a-select
v-model:value=
"valueType"
:options=
"optionsType"
mode=
"multiple"
placeholder=
"请选择"
></a-select>
<a-select
v-model:value=
"valueType"
:options=
"optionsType"
mode=
"multiple"
placeholder=
"请选择"
></a-select>
</a-form-item>
<a-form-item
label=
"注册时间"
>
<a-config-provider
:locale=
"zh_CN"
>
...
...
@@ -133,20 +106,8 @@
></a-select>
</a-form-item>
</a-form>
<a-button
type=
"default"
size=
"large"
style=
"width: 100px"
@
click=
"clearvalue"
>
重置
</a-button
>
<a-button
type=
"primary"
size=
"large"
style=
"width: 100px"
@
click=
"Filter"
>
筛选
</a-button
>
<a-button
type=
"default"
size=
"large"
style=
"width: 100px"
@
click=
"clearvalue"
>
重置
</a-button>
<a-button
type=
"primary"
size=
"large"
style=
"width: 100px"
@
click=
"Filter"
>
筛选
</a-button>
</div>
<!-- 公司列表结果 -->
<div
class=
"company_con_right"
>
...
...
@@ -160,92 +121,51 @@
</a-tag>
</div>
</h2>
<div
style=
"display: flex; justify-content: flex-start; flex-wrap: wrap"
>
<div
style=
"display: flex; justify-content: flex-start; flex-wrap: wrap"
>
<div
class=
"card"
v-for=
"item in companylist"
:key=
"item"
>
<div
class=
"card_title"
>
<span
@
click=
"openCompany(item.mysql_id, item.company_name)"
>
{{ item.company_name }}
</span
>
<span
@
click=
"openCompany(item.mysql_id, item.company_name)"
>
{{ item.company_name }}
</span>
<!-- 关注 -->
<div
class=
"follow"
@
click=
"followFun(item.mysql_id, item.company_name)"
v-if=
"!item.follow"
>
<img
src=
"@/static/company/icon-guanzhu.png"
alt=
""
class=
"follow_img"
/>
<div
class=
"follow"
@
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>
</div>
<div
class=
"follow"
@
click=
"cancelFun(item.mysql_id)"
v-else
>
<img
src=
"@/static/company/icon-yiguanzhu.png"
alt=
""
class=
"follow_img"
/>
<img
src=
"@/static/company/icon-yiguanzhu.png"
alt=
""
class=
"follow_img"
/>
<span
class=
"follow_str"
>
已关注
</span>
</div>
</div>
<a-tag
color=
"#56CA95"
>
{{ item.status }}
</a-tag>
<a-tag
color=
"#6096E6"
v-if=
"item.quoted_company == 1"
>
{{
"上市企业"
}}
</a-tag>
<a-tag
color=
"#6096E6"
v-if=
"item.quoted_company == 1"
>
{{ "上市企业" }}
</a-tag>
<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
color=
"#6096E6"
v-if=
"item.zjtg == 1"
>
{{
"专精特新中小企业"
}}
</a-tag>
<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
color=
"#6096E6"
v-if=
"item.zjtg == 1"
>
{{ "专精特新中小企业" }}
</a-tag>
<a-divider
/>
<div
class=
"card_desc"
>
<a-descriptions
layout=
"vertical"
>
<a-descriptions-item
label=
"法定代表人"
>
{{
item.legal
}}
</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=
"法定代表人"
>
{{ item.legal }}
</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=
"国民经济行业"
>
{{
item.company_industry_parent
? item.company_industry_parent + ">"
: ""
{{ item.company_industry_parent ? item.company_industry_parent + ">" : ""
}}{{ item.company_industry }}
</a-descriptions-item>
<a-descriptions-item
:span=
"2"
label=
"注册地址"
>
{{
item.address
}}
</a-descriptions-item>
<a-descriptions-item
:span=
"2"
label=
"注册地址"
>
{{ item.address }}
</a-descriptions-item>
</a-descriptions>
</div>
</div>
</div>
<div
style=
"height: 50%"
v-if=
"search_word"
>
<a-empty
style=
"margin-top: 15%"
:description=
"'您的搜索词太宽泛,建议更换一下搜索词'"
/>
<a-empty
style=
"margin-top: 15%"
:description=
"'您的搜索词太宽泛,建议更换一下搜索词'"
/>
</div>
<div
style=
"height: 50%"
v-if=
"total==0"
>
<a-empty
style=
"margin-top: 15%"
:description=
"'暂无数据'"
/>
<div
style=
"height: 50%"
v-if=
"total == 0"
>
<a-empty
style=
"margin-top: 15%"
:description=
"'暂无数据'"
/>
</div>
<br
/>
<a-pagination
v-if=
"(!search_word)
"
v-if=
"!search_word
"
v-model:current=
"currentPage"
@
change=
"onChange"
:total=
"total"
...
...
@@ -261,12 +181,7 @@
import
dayjs
from
"dayjs"
;
import
arealist
from
"../../utils/map.js"
;
import
{
userFollow
,
cancelFollow
}
from
"../../utils/userAPI"
;
import
{
enterpriseList
,
industryType
,
enterpriseSelect
,
enterpriseLenovo
,
}
from
"../../utils/indexApi.js"
;
import
{
enterpriseList
,
industryType
,
enterpriseSelect
,
enterpriseLenovo
}
from
"../../utils/indexApi.js"
;
import
"dayjs/locale/zh-cn"
;
import
zh_CN
from
"ant-design-vue/lib/locale-provider/zh_CN"
;
import
{
message
}
from
"ant-design-vue"
;
...
...
@@ -412,12 +327,8 @@ export default {
area
:
area
,
company_industry
:
company_industry
,
qualification
:
this
.
valueType
,
start_date
:
this
.
formState
.
rangetime1
?
this
.
formState
.
rangetime1
[
0
]
:
null
,
end_date
:
this
.
formState
.
rangetime1
?
this
.
formState
.
rangetime1
[
1
]
:
null
,
start_date
:
this
.
formState
.
rangetime1
?
this
.
formState
.
rangetime1
[
0
]
:
null
,
end_date
:
this
.
formState
.
rangetime1
?
this
.
formState
.
rangetime1
[
1
]
:
null
,
capital_nums_min
:
Number
(
this
.
formState
.
capital_nums_min
),
capital_nums_max
:
Number
(
this
.
formState
.
capital_nums_max
),
innovate
:
this
.
valueInnovation
,
...
...
@@ -468,30 +379,15 @@ export default {
},
//点击筛选
Filter
()
{
if
(
this
.
formState
.
capital_nums_min
==
""
&&
this
.
formState
.
capital_nums_max
!=
""
)
{
if
(
this
.
formState
.
capital_nums_min
==
""
&&
this
.
formState
.
capital_nums_max
!=
""
)
{
message
.
error
(
"请输入完整的注册资本范围"
);
return
false
;
}
else
if
(
this
.
formState
.
capital_nums_min
!=
""
&&
this
.
formState
.
capital_nums_max
==
""
)
{
}
else
if
(
this
.
formState
.
capital_nums_min
!=
""
&&
this
.
formState
.
capital_nums_max
==
""
)
{
message
.
error
(
"请输入完整的注册资本范围"
);
return
false
;
}
else
if
(
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
);
}
else
if
(
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
(
"注册资本范围无效"
);
return
false
;
}
...
...
@@ -530,12 +426,8 @@ export default {
area
:
area
,
company_industry
:
company_industry
,
qualification
:
this
.
valueType
,
start_date
:
this
.
formState
.
rangetime1
?
this
.
formState
.
rangetime1
[
0
]
:
null
,
end_date
:
this
.
formState
.
rangetime1
?
this
.
formState
.
rangetime1
[
1
]
:
null
,
start_date
:
this
.
formState
.
rangetime1
?
this
.
formState
.
rangetime1
[
0
]
:
null
,
end_date
:
this
.
formState
.
rangetime1
?
this
.
formState
.
rangetime1
[
1
]
:
null
,
capital_nums_min
:
Number
(
this
.
formState
.
capital_nums_min
),
capital_nums_max
:
Number
(
this
.
formState
.
capital_nums_max
),
innovate
:
this
.
valueInnovation
?
this
.
valueInnovation
:
null
,
...
...
@@ -687,7 +579,7 @@ export default {
};
</
script
>
<
style
lang=
"less"
scoped
>
.home
{
.home
{
height
:
auto
!important
;
}
.header_con
{
...
...
src/views/patent/index.vue
View file @
e005397f
...
...
@@ -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
>
<a-button
type=
"primary"
size=
"large"
class=
"btn"
@
click=
"Filter"
>
筛选
</a-button
>
<a-button
type=
"default"
size=
"large"
class=
"btn"
@
click=
"clearvalue"
>
重置
</a-button>
<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
({
...
...
src/views/patent/patentDetails.vue
View file @
e005397f
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment