Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
df9a4b03
Commit
df9a4b03
authored
Oct 27, 2020
by
李宏达
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lhd
parent
0dea3b6d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
171 additions
and
11 deletions
+171
-11
ipop-web/app/base/controller/impl/patentycCtl.js
+30
-0
ipop-web/app/base/service/impl/patentycSve.js
+60
-2
ipop-web/app/front/vues/pages/home/home.html
+2
-4
ipop-web/app/front/vues/pages/home/home.js
+78
-5
ipop-web/app/front/vues/pages/iframehtml/iframehtml.js
+1
-0
No files found.
ipop-web/app/base/controller/impl/patentycCtl.js
100644 → 100755
View file @
df9a4b03
...
...
@@ -115,6 +115,36 @@ class PatentycCtl extends CtlBase {
}
}
async
aminerpapers
(
pobj
,
obj
,
req
){
//热门文献
try
{
var
result
=
await
this
.
service
.
aminerpapers
(
obj
);
if
(
result
){
return
System
.
getResult2
(
result
);
}
else
{
return
System
.
getErrResult2
(
"返回结果为空"
);
}
}
catch
(
error
){
return
System
.
getErrResult2
(
error
);
}
}
async
aminerarticle
(
pobj
,
obj
,
req
){
//热门科技咨询
try
{
var
result
=
await
this
.
service
.
aminerarticle
(
obj
);
if
(
result
){
return
System
.
getResult2
(
result
);
}
else
{
return
System
.
getErrResult2
(
"返回结果为空"
);
}
}
catch
(
error
){
return
System
.
getErrResult2
(
error
);
}
}
//智能组合分析-获取报告
async
ezGetReport
(
pobj
,
obj
,
req
){
if
(
obj
.
uid
&&
obj
.
uid
!=
'undefined'
&&
obj
.
type
&&
obj
.
type
!=
'undefined'
){
...
...
ipop-web/app/base/service/impl/patentycSve.js
100644 → 100755
View file @
df9a4b03
...
...
@@ -59,6 +59,64 @@ class PatentycService extends ServiceBase {
}
};
async
aminerpapers
(
obj
){
//热门文献
try
{
var
size
=
obj
.
size
==
null
?
3
:
obj
.
size
;
var
params
=
{
size
:
size
,
offset
:
0
};
var
data
=
querystring
.
stringify
(
params
);
var
rc
=
System
.
getObject
(
"util.restClient"
);
var
rtn
=
await
rc
.
execGet
(
data
,
"https://lab.aminer.cn/eitools/search/arxiv/papers/"
);
return
JSON
.
parse
(
rtn
.
stdout
);
}
catch
(
e
){
console
.
log
(
"eeeeeeeeeeeeeeeeeeeeee"
,
e
);
return
null
;
}
};
// async aminerpapers(obj){//热门文献
// try{
// var size = obj.size == null ? 3 : obj.size;
// var params = {
// size: size,
// offset: 0
// };
// var data=querystring.stringify(params);
// var rc = System.getObject("util.restClient");
// var rtn=await rc.execGet(data,"https://lab.aminer.cn/eitools/search/arxiv/papers");
// return JSON.parse(rtn.stdout);
// }
// catch{
// return null;
// }
// };
async
aminerarticle
(
obj
){
//热门科技咨询
try
{
var
num
=
obj
.
num
==
null
?
3
:
obj
.
num
;
var
params
=
{
//num: num,
//offset: 0
};
console
.
log
(
"dataqqqqqqq"
,
params
);
var
data
=
querystring
.
stringify
(
params
);
console
.
log
(
"datahhhhhh"
,
data
);
var
rc
=
System
.
getObject
(
"util.restClient"
);
var
rtn
=
await
rc
.
execGet
(
data
,
"https://nodeapi.aminer.cn/api/article/autoreco/"
+
num
);
return
JSON
.
parse
(
rtn
.
stdout
);
}
catch
(
e
){
console
.
log
(
"eeeeeeeeeeeeeeeeeeeeee"
,
e
);
return
null
;
}
};
async
patentrank
(
obj
)
{
//专利价值评价
var
pubno
=
obj
.
publishnum
==
null
?
""
:
obj
.
publishnum
;
var
country
=
""
;
...
...
@@ -9929,10 +9987,10 @@ module.exports = PatentycService;
// // var r = task.getArrEqual(list1,list2);
// // console.log("r----"+r);
// var obj = {
// "
uid": "667b8300-c101-11ea-98dd-3142bd90eec4",
// "
num": 4,
// "type": "html"
// };
// var d = task.
ezGetReport(obj)
// var d = task.
aminerarticle(obj)
// //var d = task.ezReportUploadData(obj);
// console.log("ffffffff---------" + JSON.stringify(d));
...
...
ipop-web/app/front/vues/pages/home/home.html
View file @
df9a4b03
...
...
@@ -43,10 +43,8 @@
<div
class=
"content-item-tab"
>
{{item.name}}
</div>
</div>
<div
class=
"content-item-article"
>
<div
class=
"item-article-text"
><span></span>
美国最严技术出口管制,中国芯片大军转向欧罗
</div>
<div
class=
"item-article-text"
><span></span>
美国最严技术出口管制,中国芯片大军转向欧罗
</div>
<div
class=
"item-article-text"
><span></span>
美国最严技术出口管制,中国芯片大军转向欧罗
</div>
<div
class=
"item-article-more"
@
click=
"clickMore(item.url)"
>
更多 >>
</div>
<div
class=
"item-article-text"
v-for=
"list in item.itemArr"
@
click=
"details(list)"
><span></span>
{{list.title}}
</div>
<div
class=
"item-article-more"
@
click=
"clickMore(item)"
>
更多 >>
</div>
</div>
</div>
</div>
...
...
ipop-web/app/front/vues/pages/home/home.js
View file @
df9a4b03
...
...
@@ -69,15 +69,42 @@
{
img
:
'background: url(/imgs/home/nav1.png) no-repeat;'
,
name
:
'热门专利'
,
url
:
'https://patent.aminer.cn/#/push/patent'
url
:
'https://patent.aminer.cn/#/push/patent'
,
itemArr
:[
{
title
:
'PrivNet: Safeguarding Private Attributes in Transfer Learning for Recommendation'
},{
title
:
'PrivNet: Safeguarding Private Attributes in Transfer Learning for Recommendation'
},{
title
:
'PrivNet: Safeguarding Private Attributes in Transfer Learning for Recommendation'
}
]
},{
img
:
'background: url(/imgs/home/nav2.jpg) no-repeat;'
,
name
:
'热门科技资讯'
,
url
:
'https://patent.aminer.cn/#/push/news'
url
:
'https://patent.aminer.cn/#/push/news'
,
itemArr
:[
{
title
:
''
},{
title
:
''
},{
title
:
''
}
]
},{
img
:
'background: url(/imgs/home/nav3.jpg) no-repeat;'
,
name
:
'热门文献'
,
url
:
'https://patent.aminer.cn/#/push/paper'
url
:
'https://patent.aminer.cn/#/push/paper'
,
itemArr
:[
{
title
:
''
},{
title
:
''
},{
title
:
''
}
]
},
],
bannerTabsArr
:
[
...
...
@@ -174,10 +201,36 @@
that
.
BannerHeight
=
window
.
innerHeight
;
});
this
.
$root
.
typeHome
=
true
;
this
.
aminerpapers
();
this
.
aminerarticle
();
},
methods
:{
clickMore
(
url
)
{
window
.
open
(
url
)
details
(
val
)
{
var
b1
=
''
;
if
(
val
.
url
)
{
b1
=
val
.
url
[
0
].
replace
(
"https://arxiv.org"
,
"http://xxx.itp.ac.cn"
);
}
else
{
b1
=
`https://www.aminer.cn/research_report/
${
val
.
_id
}
?download=false`
;
}
console
.
log
(
b1
);
this
.
$root
.
typeHome
=
false
;
this
.
$root
.
loadingHome
=
true
;
var
url
=
encodeURIComponent
(
b1
);
this
.
$root
.
pushx
({
name
:
"/iframehtml"
,
title
:
val
.
title
,
params
:{
url
:
url
}});
setTimeout
(()
=>
{
this
.
$root
.
loadingHome
=
false
;
},
1500
);
},
clickMore
(
val
)
{
this
.
$root
.
typeHome
=
false
;
this
.
$root
.
loadingHome
=
true
;
var
url
=
encodeURIComponent
(
val
.
url
);
this
.
$root
.
pushx
({
name
:
"/iframehtml"
,
title
:
val
.
name
,
params
:{
url
:
url
}});
setTimeout
(()
=>
{
this
.
$root
.
loadingHome
=
false
;
},
1500
);
},
show2enter
()
{
this
.
show2
=
true
;
...
...
@@ -310,6 +363,26 @@
console
.
log
(
name
);
this
.
$root
.
NavIndexRoute
(
name
);
},
/*热门文献*/
aminerpapers
(){
var
self
=
this
;
self
.
$root
.
postReq
(
"/web/patentycCtl/aminerpapers"
,{}).
then
(
function
(
d
){
if
(
d
.
status
==
0
){
self
.
contentArr
[
2
].
itemArr
=
d
.
data
.
data
;
console
.
log
(
d
,
'dddd'
)
}
});
},
/*热门科技*/
aminerarticle
(){
var
self
=
this
;
self
.
$root
.
postReq
(
"/web/patentycCtl/aminerarticle"
,{}).
then
(
function
(
d
){
if
(
d
.
status
==
0
){
self
.
contentArr
[
1
].
itemArr
=
d
.
data
.
data
;
console
.
log
(
d
,
'aaa'
)
}
});
},
fetchloopplay
:
function
(){
var
self
=
this
;
self
.
$root
.
postReq
(
"/web/loopplayCtl/findAll"
,{}).
then
(
function
(
d
){
...
...
ipop-web/app/front/vues/pages/iframehtml/iframehtml.js
View file @
df9a4b03
...
...
@@ -8,6 +8,7 @@
mounted
:
function
(){
console
.
log
(
this
.
$root
.
currentUser
,
'调用方法'
);
var
url
=
this
.
$router
.
history
.
current
.
query
.
url
;
console
.
log
(
url
);
if
(
url
){
url
=
decodeURIComponent
(
url
);
this
.
url
=
url
;
...
...
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