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
0cda8df6
Commit
0cda8df6
authored
Aug 07, 2023
by
liudx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调关注
parent
e314beaf
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
95 additions
and
32 deletions
+95
-32
src/static/company/icon-yiguanzhu.png
+0
-0
src/static/patent/icon-gz-select.png
+0
-0
src/utils/userAPI.js
+3
-0
src/views/company/companyDetails.vue
+18
-3
src/views/company/index.vue
+39
-11
src/views/login/admin.vue
+1
-2
src/views/patent/patentDetails.vue
+34
-16
No files found.
src/static/company/icon-yiguanzhu.png
View file @
0cda8df6
429 Bytes
|
W:
|
H:
471 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
src/static/patent/icon-gz-select.png
View file @
0cda8df6
391 Bytes
|
W:
|
H:
471 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
src/utils/userAPI.js
View file @
0cda8df6
...
...
@@ -3,6 +3,9 @@ export const uploadFile = p => post('/api/common/uploadFile', p);
export
const
userInfo
=
p
=>
get
(
'/api/users/userInfo'
,
{});
export
const
bduserInfo
=
p
=>
post
(
'/api/users/userInfo'
,
p
);
export
const
updateuserInfo
=
p
=>
put
(
'/api/users/userInfo'
,
p
);
//关注企业或者专利
export
const
userFollow
=
p
=>
post
(
'/api/users/userFollow'
,
p
);
src/views/company/companyDetails.vue
View file @
0cda8df6
...
...
@@ -37,7 +37,7 @@
<span
style=
"cursor: pointer"
@
click=
"openModal"
><img
src=
"@/static/patent/icon-dc.png"
alt=
""
/>
导出
</span
>
<span
v-if=
"
follow"
<span
@
click=
"followFun"
v-if=
"!baseinfo.
follow"
><img
src=
"@/static/patent/icon-gz.png"
alt=
""
/>
关注
</span
>
<span
v-else
...
...
@@ -89,8 +89,8 @@
</a-form-item>
</a-form>
</a-modal>
<!--
<div
style=
"width: 70%; visibility: hidden; overflow: hidden; height: 20px"
>
--
>
<
div
style=
"width: 70%"
>
<div
style=
"width: 70%; visibility: hidden; overflow: hidden; height: 20px"
>
<
!--
<div
style=
"width: 70%"
>
--
>
<EchartsCon
:id=
"'applyTrend1'"
:option=
"option1"
...
...
@@ -131,6 +131,7 @@ import {
}
from
"../../utils/indexApi.js"
;
import
overview
from
"./overview.vue"
;
import
{
message
}
from
"ant-design-vue"
;
import
{
userFollow
}
from
"../../utils/userAPI"
;
import
cooperation
from
"./cooperation.vue"
;
import
technology
from
"./technology.vue"
;
import
docxtemplater
from
"docxtemplater"
;
...
...
@@ -200,6 +201,20 @@ export default {
EchartsCloud
,
},
methods
:
{
//关注接口
async
followFun
()
{
let
Follow
=
await
userFollow
({
f_type
:
"enterprise"
,
ent_or_pat_id
:
this
.
id
,
name
:
this
.
baseinfo
.
company_name
,
});
if
(
Follow
.
code
==
0
){
this
.
$router
.
go
(
0
)
message
.
success
(
Follow
.
msg
)
}
else
{
message
.
error
(
Follow
.
msg
)
}
},
openModal
()
{
this
.
visible
=
true
;
},
...
...
src/views/company/index.vue
View file @
0cda8df6
...
...
@@ -127,16 +127,20 @@
<div
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"
class=
"card_title"
@
click=
"openCompany(item.mysql_id, item.company_name)"
>
<div
class=
"card_title"
>
{{ item.company_name }}
</div><br>
{{ item.company_name }}
</div>
<br
/>
<!-- 关注 -->
<div
class=
"follow"
@
click=
"follow"
v-if=
"item.follow"
>
<div
class=
"follow"
@
click=
"followFun(item.mysql_id, item.company_name)"
v-if=
"!item.follow"
>
<img
src=
"@/static/company/icon-guanzhu.png"
alt=
""
...
...
@@ -205,6 +209,7 @@
<
script
>
import
dayjs
from
"dayjs"
;
import
arealist
from
"../../utils/map.js"
;
import
{
userFollow
}
from
"../../utils/userAPI"
;
import
{
enterpriseList
,
industryType
,
...
...
@@ -250,6 +255,22 @@ export default {
},
components
:
{},
methods
:
{
//关注接口
async
followFun
(
id
,
company_name
)
{
let
Follow
=
await
userFollow
({
f_type
:
"enterprise"
,
ent_or_pat_id
:
id
,
name
:
company_name
,
});
if
(
Follow
.
code
==
0
)
{
this
.
$router
.
go
(
0
)
message
.
success
(
Follow
.
msg
);
}
else
{
message
.
error
(
Follow
.
msg
);
}
// this.Filter()
},
disabledDate
(
current
)
{
return
current
&&
current
>
dayjs
().
endOf
(
"day"
);
},
...
...
@@ -361,21 +382,27 @@ export default {
this
.
formState
.
capital_nums_max
!=
""
)
{
message
.
error
(
"请输入完整的注册资本范围"
);
return
false
return
false
;
}
else
if
(
this
.
formState
.
capital_nums_min
!=
""
&&
this
.
formState
.
capital_nums_max
==
""
)
{
message
.
error
(
"请输入完整的注册资本范围"
);
return
false
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
)
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
return
false
;
}
}
//修改省份的格式
...
...
@@ -636,6 +663,7 @@ export default {
font-weight
:
400
;
color
:
#333333
;
font-size
:
20px
;
cursor
:
pointer
;
}
.card_desc
{
:deep(.ant-descriptions-item-label)
{
...
...
src/views/login/admin.vue
View file @
0cda8df6
...
...
@@ -134,8 +134,7 @@ export default {
if
(
res
.
code
==
0
)
{
if
(
res
.
data
.
is_admin
)
{
message
.
success
(
"登录成功"
);
// this.$store.commit('setTOKEN',res.data.token)
// this.$store.commit('setname',this.formState.username)
localStorage
.
setItem
(
"login_name"
,
this
.
formState
.
username
);
localStorage
.
setItem
(
"token"
,
res
.
data
.
token
);
this
.
$router
.
push
({
...
...
src/views/patent/patentDetails.vue
View file @
0cda8df6
<
template
>
<div
class=
"details"
>
<a-breadcrumb
class=
"nav_bread"
>
<a-breadcrumb-item><router-link
:to=
"'/home'"
>
首页
</router-link></a-breadcrumb-item>
<a-breadcrumb-item><router-link
:to=
"'/patent'"
>
专利
</router-link></a-breadcrumb-item>
<a-breadcrumb-item
><router-link
:to=
"'/home'"
>
首页
</router-link></a-breadcrumb-item
>
<a-breadcrumb-item
><router-link
:to=
"'/patent'"
>
专利
</router-link></a-breadcrumb-item
>
<a-breadcrumb-item>
专利详情
</a-breadcrumb-item>
</a-breadcrumb>
<div
class=
"back_btn"
@
click=
"backbtn"
>
返回
</div>
...
...
@@ -15,11 +19,11 @@
><img
src=
"@/static/patent/icon-dc.png"
alt=
""
/>
导出
</span
>
<span
style=
"cursor: pointer"
v-if=
"
follow"
<span
style=
"cursor: pointer"
@
click=
"followFun"
v-if=
"!details.
follow"
><img
src=
"@/static/patent/icon-gz.png"
alt=
""
/>
关注
</span
>
<span
style=
"cursor: pointer"
v-else
><img
src=
"@/static/patent/icon-gz-select.png"
alt=
""
/>
关注
</span
<span
style=
"cursor: pointer"
@
click=
"followFun"
v-else
><img
src=
"@/static/patent/icon-gz-select.png"
alt=
""
/>
已
关注
</span
>
</div>
<div
class=
"patent_con"
>
...
...
@@ -351,6 +355,7 @@ import * as echarts from "echarts";
import
"echarts-wordcloud"
;
import
{
DownOutlined
}
from
"@ant-design/icons-vue"
;
import
{
patentDetail
,
exportword
,
Recommend
}
from
"../../utils/indexApi"
;
import
{
userFollow
}
from
"../../utils/userAPI"
;
import
EchartsCloud
from
"../../components/EchartsCloud.vue"
;
import
docxtemplater
from
"docxtemplater"
;
import
PizZip
from
"pizzip"
;
...
...
@@ -402,7 +407,6 @@ export default {
{
label
:
"高新技术企业"
,
value
:
"高新技术企业"
},
{
label
:
"专精特新小巨人"
,
value
:
"专精特新小巨人"
},
{
label
:
"专精特新中小企业"
,
value
:
"专精特新中小企业"
},
],
techArr
:
[],
list
:
[],
...
...
@@ -413,6 +417,21 @@ export default {
DownOutlined
,
},
methods
:
{
//关注接口
async
followFun
()
{
let
Follow
=
await
userFollow
({
f_type
:
"patent"
,
ent_or_pat_id
:
this
.
id
,
name
:
this
.
title
,
});
if
(
Follow
.
code
==
0
){
this
.
$router
.
go
(
0
)
message
.
success
(
Follow
.
msg
)
}
else
{
message
.
error
(
Follow
.
msg
)
}
},
handleAnchorClick
(
e
,
link
)
{
e
.
preventDefault
();
},
...
...
@@ -453,7 +472,7 @@ export default {
//智能推荐翻页
onChange
()
{
window
.
scrollTo
(
0
,
0
);
this
.
currentPage
=
1
this
.
currentPage
=
1
;
this
.
getRecommend
();
},
getRecommend
()
{
...
...
@@ -567,20 +586,19 @@ export default {
doc
.
attachModule
(
new
ImageModule
(
opts
));
let
list
=
that
.
list
;
let
qualif
=
[]
let
qualif
=
[]
;
list
.
forEach
((
item
)
=>
{
if
(
item
.
high_new
==
1
)
{
qualif
.
push
(
'高新技术企业'
)
qualif
.
push
(
"高新技术企业"
);
}
else
if
(
item
.
zjtg
==
1
)
{
qualif
.
push
(
'专精特新企业'
)
}
else
if
(
item
.
zjtg_sjxjr
==
1
)
{
qualif
.
push
(
'专精特新小巨人企业'
)
}
else
if
(
item
.
quoted_company
==
1
)
{
qualif
.
push
(
'上市企业'
)
qualif
.
push
(
"专精特新企业"
);
}
else
if
(
item
.
zjtg_sjxjr
==
1
)
{
qualif
.
push
(
"专精特新小巨人企业"
);
}
else
if
(
item
.
quoted_company
==
1
)
{
qualif
.
push
(
"上市企业"
);
}
});
that
.
list
.
qualif
=
qualif
that
.
list
.
qualif
=
qualif
;
// that.list.patents = this.submitInfo.auditResult.split('\n')
// 设置模板变量的值
doc
.
setData
({
...
...
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