Commit 436f2410 by 李宏达

lhd

parents d35551b9 df9a4b03
var System=require("../../system");
var settings=require("../../../config/settings");
var System = require("../../system");
var settings = require("../../../config/settings");
const querystring = require('querystring');
const ApiBase =require("../api.base");
const ApiBase = require("../api.base");
class ChinaPatentSearchApi extends ApiBase{
constructor(){
class ChinaPatentSearchApi extends ApiBase {
constructor() {
super();
this.patentUrl = settings.reqEsAddrIc()+"bigdata_patent_op/_search";
this.patentUrl = settings.reqEsAddrIc() + "bigdata_patent_op/_search";
};
buildDate(date){
buildDate(date) {
var date = new Date(date);
var time = Date.parse(date);
time=time / 1000;
time = time / 1000;
return time;
};
async ObtainChinaPatentInfo(obj){
async ObtainChinaPatentInfo(obj) {
console.log("----------------api-ObtainChinaPatentInfo----------------");
console.log(obj);
var data=await this.checkKey(obj.appKey);
if(data && data.status && data.status==-1){
var data = await this.checkKey(obj.appKey);
if (data && data.status && data.status == -1) {
return data;
}
var params= {
var params = {
"query": {
"bool": {
"must": []
}
},
};
var applynum=obj.applynum==null?"":obj.applynum;//专利申请号
if (applynum != null && applynum != ""){
var applynum = obj.applynum == null ? "" : obj.applynum;//专利申请号
if (applynum != null && applynum != "") {
var param = {
"term": {
"filing_no": applynum
"filing_no": applynum
}
}
params.query.bool.must.push(param)
}
var publishnum=obj.publishnum==null?"":obj.publishnum;//专利公开号
if (publishnum != null && publishnum != ""){
var arr= publishnum.split("");
if(arr[arr.length-1]=="A"){
var publishnum = obj.publishnum == null ? "" : obj.publishnum;//专利公开号
if (publishnum != null && publishnum != "") {
var arr = publishnum.split("");
if (arr[arr.length - 1] == "A") {
var param = {
"term": {
"pub_no": publishnum
"pub_no": publishnum
}
};
}else{
} else {
var param = {
"term": {
"gr_no": publishnum
"gr_no": publishnum
}
};
}
params.query.bool.must.push(param)
}
var rc=System.getObject("util.execClient");
var rtn=null;
var rc = System.getObject("util.execClient");
var rtn = null;
var requrl = this.patentUrl;
try{
rtn=await rc.execPost(params,requrl);
var j=JSON.parse(rtn.stdout);
try {
rtn = await rc.execPost(params, requrl);
var j = JSON.parse(rtn.stdout);
return rtn = {
status:0,
msg:"操作成功",
data:j.hits.hits
status: 0,
msg: "操作成功",
data: j.hits.hits
};
}catch(e){
return rtn={
status:-1,
msg:"操作失败",
data:null
} catch (e) {
return rtn = {
status: -1,
msg: "操作失败",
data: null
};
}
};
async CommomSearchbyTitle(obj){//根据标题查询聚合
async CommomSearchbyTitle(obj) {//根据标题查询聚合
console.log("--------CommomSearchbyTitle----------");
console.log(obj);
var data=await this.checkKey(obj.appKey);
if(data && data.status && data.status==-1){
var data = await this.checkKey(obj.appKey);
if (data && data.status && data.status == -1) {
return data;
}
var pagesize = obj.pagesize==null?10:obj.pagesize;
if(obj.page==null){
var pagesize = obj.pagesize == null ? 10 : obj.pagesize;
if (obj.page == null) {
var from = 0;
}else{
var from = Number((obj.page-1)*obj.pagesize);
} else {
var from = Number((obj.page - 1) * obj.pagesize);
}
var title = obj.title==null?"":obj.title;
if(title==""){
return {status:-1,msg:"传入标题信息为空",data:null,buckets:null};
var title = obj.title == null ? "" : obj.title;
if (title == "") {
return { status: -1, msg: "传入标题信息为空", data: null, buckets: null };
}
var params= {
var params = {
"query": {
"bool": {
"must": []
......@@ -119,30 +119,30 @@ class ChinaPatentSearchApi extends ApiBase{
],
"aggregations": {
"group_by_pub_type": {
"terms": {
"field": "pub_type",
"size": 1000
}
"terms": {
"field": "pub_type",
"size": 1000
}
},
"group_by_pub_status": {
"terms": {
"field": "pub_status",
"size": 1000
}
"terms": {
"field": "pub_status",
"size": 1000
}
},
"group_by_filing_year": {
"terms": {
"field": "filing_year",
"size": 1000,
"order":{"_term":"desc"}
}
"terms": {
"field": "filing_year",
"size": 1000,
"order": { "_term": "desc" }
}
},
"group_by_pub_year": {
"terms": {
"field": "pub_year",
"size": 1000,
"order":{"_term":"desc"}
}
"terms": {
"field": "pub_year",
"size": 1000,
"order": { "_term": "desc" }
}
}
}
};
......@@ -154,96 +154,96 @@ class ChinaPatentSearchApi extends ApiBase{
}
params.query.bool.must.push(param);
var pubtype=obj.pubtype==null?"":obj.pubtype;//专利类型
if (pubtype != null && pubtype != ""){
var pubtype = obj.pubtype == null ? "" : obj.pubtype;//专利类型
if (pubtype != null && pubtype != "") {
param = {
"term": {
"pub_type": pubtype
"pub_type": pubtype
}
}
params.query.bool.must.push(param)
}
var pubstatus = obj.pubstatus==null?"":obj.pubstatus;//法律状态
if (pubstatus != null && pubstatus != ""){
var pubstatus = obj.pubstatus == null ? "" : obj.pubstatus;//法律状态
if (pubstatus != null && pubstatus != "") {
param = {
"term": {
"pub_status": pubstatus
"pub_status": pubstatus
}
}
params.query.bool.must.push(param)
}
var filingyear = obj.filingyear==null?"":obj.filingyear;//申请年份
if (filingyear != null && filingyear !=""){
var filingyear = obj.filingyear == null ? "" : obj.filingyear;//申请年份
if (filingyear != null && filingyear != "") {
param = {
"term": {
"filing_year": filingyear
"filing_year": filingyear
}
}
params.query.bool.must.push(param)
}
var pubyear = obj.pubyear==null?"":obj.pubyear;//公开年份
if (pubyear != null && pubyear != ""){
var pubyear = obj.pubyear == null ? "" : obj.pubyear;//公开年份
if (pubyear != null && pubyear != "") {
param = {
"term": {
"pub_year": pubyear
"pub_year": pubyear
}
}
params.query.bool.must.push(param)
}
var rc=System.getObject("util.execClient");
var rtn=null;
var rc = System.getObject("util.execClient");
var rtn = null;
var requrl = this.patentUrl;
try{
rtn=await rc.execPost(params,requrl);
var j=JSON.parse(rtn.stdout);
try {
rtn = await rc.execPost(params, requrl);
var j = JSON.parse(rtn.stdout);
return rtn = {
status:0,
msg:"操作成功",
data:j.hits,
buckets:j.aggregations
status: 0,
msg: "操作成功",
data: j.hits,
buckets: j.aggregations
};
}catch(e){
return rtn={
status:-1,
msg:"操作失败",
data:null,
buckets:null
} catch (e) {
return rtn = {
status: -1,
msg: "操作失败",
data: null,
buckets: null
};
}
};
async CommomSearchbyFilingno(obj){//根据申请号查询聚合
var data=await this.checkKey(obj.appKey);
if(data && data.status && data.status==-1){
async CommomSearchbyFilingno(obj) {//根据申请号查询聚合
var data = await this.checkKey(obj.appKey);
if (data && data.status && data.status == -1) {
return data;
}
var pagesize = obj.pagesize==null?10:obj.pagesize;
if(obj.page==null){
var pagesize = obj.pagesize == null ? 10 : obj.pagesize;
if (obj.page == null) {
var from = 0;
}else{
var from = Number((obj.page-1)*obj.pagesize);
} else {
var from = Number((obj.page - 1) * obj.pagesize);
}
var filingno = obj.filingno==null?"":obj.filingno;
if(filingno==""){
return {status:-1,msg:"传入的申请号信息为空",data:null,buckets:null};
var filingno = obj.filingno == null ? "" : obj.filingno;
if (filingno == "") {
return { status: -1, msg: "传入的申请号信息为空", data: null, buckets: null };
}
else{
filingno = filingno.replace("CN","").replace("cn","").replace(".","");
if (filingno.length == 13){
filingno = filingno.substr(0,12);
else {
filingno = filingno.replace("CN", "").replace("cn", "").replace(".", "");
if (filingno.length == 13) {
filingno = filingno.substr(0, 12);
}
else if (filingno.length == 9){
filingno = filingno.substr(0,8);
else if (filingno.length == 9) {
filingno = filingno.substr(0, 8);
}
}
var params= {
var params = {
"query": {
"bool": {
"must": []
......@@ -266,123 +266,123 @@ class ChinaPatentSearchApi extends ApiBase{
],
"aggregations": {
"group_by_pub_type": {
"terms": {
"field": "pub_type",
"size": 1000
}
"terms": {
"field": "pub_type",
"size": 1000
}
},
"group_by_pub_status": {
"terms": {
"field": "pub_status",
"size": 1000
}
"terms": {
"field": "pub_status",
"size": 1000
}
},
"group_by_filing_year": {
"terms": {
"field": "filing_year",
"size": 1000,
"order":{"_term":"desc"}
}
"terms": {
"field": "filing_year",
"size": 1000,
"order": { "_term": "desc" }
}
},
"group_by_pub_year": {
"terms": {
"field": "pub_year",
"size": 1000,
"order":{"_term":"desc"}
}
"terms": {
"field": "pub_year",
"size": 1000,
"order": { "_term": "desc" }
}
}
}
};
var param = {
"wildcard": {
"filing_no": "*"+filingno+"*"
"filing_no": "*" + filingno + "*"
}
}
params.query.bool.must.push(param);
var pubtype=obj.pubtype==null?"":obj.pubtype;//专利类型
if (pubtype != null && pubtype != ""){
var pubtype = obj.pubtype == null ? "" : obj.pubtype;//专利类型
if (pubtype != null && pubtype != "") {
param = {
"term": {
"pub_type": pubtype
"pub_type": pubtype
}
}
params.query.bool.must.push(param)
}
var pubstatus = obj.pubstatus==null?"":obj.pubstatus;//法律状态
if (pubstatus != null && pubstatus != ""){
var pubstatus = obj.pubstatus == null ? "" : obj.pubstatus;//法律状态
if (pubstatus != null && pubstatus != "") {
param = {
"term": {
"pub_status": pubstatus
"pub_status": pubstatus
}
}
params.query.bool.must.push(param)
}
var filingyear = obj.filingyear==null?"":obj.filingyear;//申请年份
if (filingyear != null && filingyear !=""){
var filingyear = obj.filingyear == null ? "" : obj.filingyear;//申请年份
if (filingyear != null && filingyear != "") {
param = {
"term": {
"filing_year": filingyear
"filing_year": filingyear
}
}
params.query.bool.must.push(param)
}
var pubyear = obj.pubyear==null?"":obj.pubyear;//公开年份
if (pubyear != null && pubyear != ""){
var pubyear = obj.pubyear == null ? "" : obj.pubyear;//公开年份
if (pubyear != null && pubyear != "") {
param = {
"term": {
"pub_year": pubyear
"pub_year": pubyear
}
}
params.query.bool.must.push(param)
}
var rc=System.getObject("util.execClient");
var rtn=null;
var rc = System.getObject("util.execClient");
var rtn = null;
var requrl = this.patentUrl;
try{
rtn=await rc.execPost(params,requrl);
var j=JSON.parse(rtn.stdout);
try {
rtn = await rc.execPost(params, requrl);
var j = JSON.parse(rtn.stdout);
return rtn = {
status:0,
msg:"操作成功",
data:j.hits,
buckets:j.aggregations
status: 0,
msg: "操作成功",
data: j.hits,
buckets: j.aggregations
};
}catch(e){
return rtn={
status:-1,
msg:"操作失败",
data:null,
buckets:null
} catch (e) {
return rtn = {
status: -1,
msg: "操作失败",
data: null,
buckets: null
};
}
};
async CommomSearchbyPubno(obj){//根据公开号查询聚合
var data=await this.checkKey(obj.appKey);
if(data && data.status && data.status==-1){
async CommomSearchbyPubno(obj) {//根据公开号查询聚合
var data = await this.checkKey(obj.appKey);
if (data && data.status && data.status == -1) {
return data;
}
var pagesize = obj.pagesize==null?10:obj.pagesize;
if(obj.page==null){
var pagesize = obj.pagesize == null ? 10 : obj.pagesize;
if (obj.page == null) {
var from = 0;
}else{
var from = Number((obj.page-1)*obj.pagesize);
} else {
var from = Number((obj.page - 1) * obj.pagesize);
}
var pubno = obj.pubno==null?"":obj.pubno;
if(pubno==""){
return {status:-1,msg:"传入的公开号信息为空",data:null,buckets:null};
var pubno = obj.pubno == null ? "" : obj.pubno;
if (pubno == "") {
return { status: -1, msg: "传入的公开号信息为空", data: null, buckets: null };
}
var params= {
var params = {
"query": {
"bool": {
"must": []
......@@ -405,138 +405,138 @@ class ChinaPatentSearchApi extends ApiBase{
],
"aggregations": {
"group_by_pub_type": {
"terms": {
"field": "pub_type",
"size": 1000
}
"terms": {
"field": "pub_type",
"size": 1000
}
},
"group_by_pub_status": {
"terms": {
"field": "pub_status",
"size": 1000
}
"terms": {
"field": "pub_status",
"size": 1000
}
},
"group_by_filing_year": {
"terms": {
"field": "filing_year",
"size": 1000,
"order":{"_term":"desc"}
}
"terms": {
"field": "filing_year",
"size": 1000,
"order": { "_term": "desc" }
}
},
"group_by_pub_year": {
"terms": {
"field": "pub_year",
"size": 1000,
"order":{"_term":"desc"}
}
"terms": {
"field": "pub_year",
"size": 1000,
"order": { "_term": "desc" }
}
}
}
};
var param = {
"bool": {
"should": [
]
"should": [
]
}
}
var parr = {
"wildcard": {
"pub_no": "*"+pubno+"*"
"pub_no": "*" + pubno + "*"
}
}
param.bool.should.push(parr)
parr = {
"wildcard": {
"gr_no": "*"+pubno+"*"
"gr_no": "*" + pubno + "*"
}
}
param.bool.should.push(parr)
params.query.bool.must.push(param);
var pubtype=obj.pubtype==null?"":obj.pubtype;//专利类型
if (pubtype != null && pubtype != ""){
var pubtype = obj.pubtype == null ? "" : obj.pubtype;//专利类型
if (pubtype != null && pubtype != "") {
param = {
"term": {
"pub_type": pubtype
"pub_type": pubtype
}
}
params.query.bool.must.push(param)
}
var pubstatus = obj.pubstatus==null?"":obj.pubstatus;//法律状态
if (pubstatus != null && pubstatus != ""){
var pubstatus = obj.pubstatus == null ? "" : obj.pubstatus;//法律状态
if (pubstatus != null && pubstatus != "") {
param = {
"term": {
"pub_status": pubstatus
"pub_status": pubstatus
}
}
params.query.bool.must.push(param)
}
var filingyear = obj.filingyear==null?"":obj.filingyear;//申请年份
if (filingyear != null && filingyear !=""){
var filingyear = obj.filingyear == null ? "" : obj.filingyear;//申请年份
if (filingyear != null && filingyear != "") {
param = {
"term": {
"filing_year": filingyear
"filing_year": filingyear
}
}
params.query.bool.must.push(param)
}
var pubyear = obj.pubyear==null?"":obj.pubyear;//公开年份
if (pubyear != null && pubyear != ""){
var pubyear = obj.pubyear == null ? "" : obj.pubyear;//公开年份
if (pubyear != null && pubyear != "") {
param = {
"term": {
"pub_year": pubyear
"pub_year": pubyear
}
}
params.query.bool.must.push(param)
}
var rc=System.getObject("util.execClient");
var rtn=null;
var rc = System.getObject("util.execClient");
var rtn = null;
var requrl = this.patentUrl;
try{
rtn=await rc.execPost(params,requrl);
var j=JSON.parse(rtn.stdout);
try {
rtn = await rc.execPost(params, requrl);
var j = JSON.parse(rtn.stdout);
return rtn = {
status:0,
msg:"操作成功",
data:j.hits,
buckets:j.aggregations
status: 0,
msg: "操作成功",
data: j.hits,
buckets: j.aggregations
};
}catch(e){
return rtn={
status:-1,
msg:"操作失败",
data:null,
buckets:null
} catch (e) {
return rtn = {
status: -1,
msg: "操作失败",
data: null,
buckets: null
};
}
};
async CommomSearchbyApplicant(obj){//根据申请人查询聚合
var data=await this.checkKey(obj.appKey);
if(data && data.status && data.status==-1){
async CommomSearchbyApplicant(obj) {//根据申请人查询聚合
var data = await this.checkKey(obj.appKey);
if (data && data.status && data.status == -1) {
return data;
}
var pagesize = obj.pagesize==null?10:obj.pagesize;
if(obj.page==null){
var pagesize = obj.pagesize == null ? 10 : obj.pagesize;
if (obj.page == null) {
var from = 0;
}else{
var from = Number((obj.page-1)*obj.pagesize);
} else {
var from = Number((obj.page - 1) * obj.pagesize);
}
var applicant = obj.applicant==null?"":obj.applicant;
if(applicant==""){
return {status:-1,msg:"传入的申请人信息为空",data:null,buckets:null};
var applicant = obj.applicant == null ? "" : obj.applicant;
if (applicant == "") {
return { status: -1, msg: "传入的申请人信息为空", data: null, buckets: null };
}
var params= {
var params = {
"query": {
"bool": {
"must": []
......@@ -559,30 +559,30 @@ class ChinaPatentSearchApi extends ApiBase{
],
"aggregations": {
"group_by_pub_type": {
"terms": {
"field": "pub_type",
"size": 1000
}
"terms": {
"field": "pub_type",
"size": 1000
}
},
"group_by_pub_status": {
"terms": {
"field": "pub_status",
"size": 1000
}
"terms": {
"field": "pub_status",
"size": 1000
}
},
"group_by_filing_year": {
"terms": {
"field": "filing_year",
"size": 1000,
"order":{"_term":"desc"}
}
"terms": {
"field": "filing_year",
"size": 1000,
"order": { "_term": "desc" }
}
},
"group_by_pub_year": {
"terms": {
"field": "pub_year",
"size": 1000,
"order":{"_term":"desc"}
}
"terms": {
"field": "pub_year",
"size": 1000,
"order": { "_term": "desc" }
}
}
}
};
......@@ -590,92 +590,92 @@ class ChinaPatentSearchApi extends ApiBase{
var param = {
"query_string": {
"default_field": "applicant_name",
"query": "\""+ applicant +"\""
"query": "\"" + applicant + "\""
}
}
params.query.bool.must.push(param);
var pubtype=obj.pubtype==null?"":obj.pubtype;//专利类型
if (pubtype != null && pubtype != ""){
var pubtype = obj.pubtype == null ? "" : obj.pubtype;//专利类型
if (pubtype != null && pubtype != "") {
param = {
"term": {
"pub_type": pubtype
"pub_type": pubtype
}
}
params.query.bool.must.push(param)
}
var pubstatus = obj.pubstatus==null?"":obj.pubstatus;//法律状态
if (pubstatus != null && pubstatus != ""){
var pubstatus = obj.pubstatus == null ? "" : obj.pubstatus;//法律状态
if (pubstatus != null && pubstatus != "") {
param = {
"term": {
"pub_status": pubstatus
"pub_status": pubstatus
}
}
params.query.bool.must.push(param)
}
var filingyear = obj.filingyear==null?"":obj.filingyear;//申请年份
if (filingyear != null && filingyear !=""){
var filingyear = obj.filingyear == null ? "" : obj.filingyear;//申请年份
if (filingyear != null && filingyear != "") {
param = {
"term": {
"filing_year": filingyear
"filing_year": filingyear
}
}
params.query.bool.must.push(param)
}
var pubyear = obj.pubyear==null?"":obj.pubyear;//公开年份
if (pubyear != null && pubyear != ""){
var pubyear = obj.pubyear == null ? "" : obj.pubyear;//公开年份
if (pubyear != null && pubyear != "") {
param = {
"term": {
"pub_year": pubyear
"pub_year": pubyear
}
}
params.query.bool.must.push(param)
}
var rc=System.getObject("util.execClient");
var rtn=null;
var rc = System.getObject("util.execClient");
var rtn = null;
var requrl = this.patentUrl;
try{
rtn=await rc.execPost(params,requrl);
var j=JSON.parse(rtn.stdout);
try {
rtn = await rc.execPost(params, requrl);
var j = JSON.parse(rtn.stdout);
return rtn = {
status:0,
msg:"操作成功",
data:j.hits,
buckets:j.aggregations
status: 0,
msg: "操作成功",
data: j.hits,
buckets: j.aggregations
};
}catch(e){
return rtn={
status:-1,
msg:"操作失败",
data:null,
buckets:null
} catch (e) {
return rtn = {
status: -1,
msg: "操作失败",
data: null,
buckets: null
};
}
};
async CommomSearchbyInventor(obj){//根据发明人查询聚合
var data=await this.checkKey(obj.appKey);
if(data && data.status && data.status==-1){
async CommomSearchbyInventor(obj) {//根据发明人查询聚合
var data = await this.checkKey(obj.appKey);
if (data && data.status && data.status == -1) {
return data;
}
var pagesize = obj.pagesize==null?10:obj.pagesize;
if(obj.page==null){
var pagesize = obj.pagesize == null ? 10 : obj.pagesize;
if (obj.page == null) {
var from = 0;
}else{
var from = Number((obj.page-1)*obj.pagesize);
} else {
var from = Number((obj.page - 1) * obj.pagesize);
}
var inventor = obj.inventor==null?"":obj.inventor;
if(inventor==""){
return {status:-1,msg:"传入的发明人信息为空",data:null,buckets:null};
var inventor = obj.inventor == null ? "" : obj.inventor;
if (inventor == "") {
return { status: -1, msg: "传入的发明人信息为空", data: null, buckets: null };
}
var params= {
var params = {
"query": {
"bool": {
"must": []
......@@ -698,30 +698,30 @@ class ChinaPatentSearchApi extends ApiBase{
],
"aggregations": {
"group_by_pub_type": {
"terms": {
"field": "pub_type",
"size": 1000
}
"terms": {
"field": "pub_type",
"size": 1000
}
},
"group_by_pub_status": {
"terms": {
"field": "pub_status",
"size": 1000
}
"terms": {
"field": "pub_status",
"size": 1000
}
},
"group_by_filing_year": {
"terms": {
"field": "filing_year",
"size": 1000,
"order":{"_term":"desc"}
}
"terms": {
"field": "filing_year",
"size": 1000,
"order": { "_term": "desc" }
}
},
"group_by_pub_year": {
"terms": {
"field": "pub_year",
"size": 1000,
"order":{"_term":"desc"}
}
"terms": {
"field": "pub_year",
"size": 1000,
"order": { "_term": "desc" }
}
}
}
};
......@@ -729,85 +729,85 @@ class ChinaPatentSearchApi extends ApiBase{
var param = {
"query_string": {
"default_field": "inventor_name",
"query": "\""+ inventor +"\""
"query": "\"" + inventor + "\""
}
}
params.query.bool.must.push(param);
var pubtype=obj.pubtype==null?"":obj.pubtype;//专利类型
if (pubtype != null && pubtype != ""){
var pubtype = obj.pubtype == null ? "" : obj.pubtype;//专利类型
if (pubtype != null && pubtype != "") {
param = {
"term": {
"pub_type": pubtype
"pub_type": pubtype
}
}
params.query.bool.must.push(param)
}
var pubstatus = obj.pubstatus==null?"":obj.pubstatus;//法律状态
if (pubstatus != null && pubstatus != ""){
var pubstatus = obj.pubstatus == null ? "" : obj.pubstatus;//法律状态
if (pubstatus != null && pubstatus != "") {
param = {
"term": {
"pub_status": pubstatus
"pub_status": pubstatus
}
}
params.query.bool.must.push(param)
}
var filingyear = obj.filingyear==null?"":obj.filingyear;//申请年份
if (filingyear != null && filingyear !=""){
var filingyear = obj.filingyear == null ? "" : obj.filingyear;//申请年份
if (filingyear != null && filingyear != "") {
param = {
"term": {
"filing_year": filingyear
"filing_year": filingyear
}
}
params.query.bool.must.push(param)
}
var pubyear = obj.pubyear==null?"":obj.pubyear;//公开年份
if (pubyear != null && pubyear != ""){
var pubyear = obj.pubyear == null ? "" : obj.pubyear;//公开年份
if (pubyear != null && pubyear != "") {
param = {
"term": {
"pub_year": pubyear
"pub_year": pubyear
}
}
params.query.bool.must.push(param)
}
var rc=System.getObject("util.execClient");
var rtn=null;
var rc = System.getObject("util.execClient");
var rtn = null;
var requrl = this.patentUrl;
try{
rtn=await rc.execPost(params,requrl);
var j=JSON.parse(rtn.stdout);
try {
rtn = await rc.execPost(params, requrl);
var j = JSON.parse(rtn.stdout);
return rtn = {
status:0,
msg:"操作成功",
data:j.hits,
buckets:j.aggregations
status: 0,
msg: "操作成功",
data: j.hits,
buckets: j.aggregations
};
}catch(e){
return rtn={
status:-1,
msg:"操作失败",
data:null,
buckets:null
} catch (e) {
return rtn = {
status: -1,
msg: "操作失败",
data: null,
buckets: null
};
}
};
async seniorSearch(obj){//高级检索,根据用户输入的不同多条件进行检索
var data=await this.checkKey(obj.appKey);
if(data && data.status && data.status==-1){
async seniorSearch(obj) {//高级检索,根据用户输入的不同多条件进行检索
var data = await this.checkKey(obj.appKey);
if (data && data.status && data.status == -1) {
return data;
}
var pagesize = obj.pagesize==null?10:obj.pagesize;
if(obj.page==null){
var pagesize = obj.pagesize == null ? 10 : obj.pagesize;
if (obj.page == null) {
var from = 0;
}else{
var from = Number((obj.page-1)*obj.pagesize);
} else {
var from = Number((obj.page - 1) * obj.pagesize);
}
var params = {
......@@ -835,37 +835,37 @@ class ChinaPatentSearchApi extends ApiBase{
var param = null;
//对关键词
var title=obj.title==null?"":obj.title;
if (title != null && title != ""){
param ={
var title = obj.title == null ? "" : obj.title;
if (title != null && title != "") {
param = {
"match": {
"filing_name": title
"filing_name": title
}
}
params.query.bool.must.push(param)
}
var abstr = obj.abstr==null?"":obj.abstr;
if (abstr != null && abstr != ""){
param ={
var abstr = obj.abstr == null ? "" : obj.abstr;
if (abstr != null && abstr != "") {
param = {
"match": {
"abstr_text": abstr
"abstr_text": abstr
}
}
params.query.bool.must.push(param)
}
var filingno=obj.filingno==null?"":obj.filingno;
if(filingno!=null && filingno!=""){
filingno = filingno.replace("CN","").replace("cn","").replace(".","");
if (filingno.length == 13){
filingno = filingno.substr(0,12);
var filingno = obj.filingno == null ? "" : obj.filingno;
if (filingno != null && filingno != "") {
filingno = filingno.replace("CN", "").replace("cn", "").replace(".", "");
if (filingno.length == 13) {
filingno = filingno.substr(0, 12);
}
else if (filingno.length == 9){
filingno = filingno.substr(0,8);
else if (filingno.length == 9) {
filingno = filingno.substr(0, 8);
}
param= {
param = {
"term": {
"filing_no": filingno
}
......@@ -873,12 +873,12 @@ class ChinaPatentSearchApi extends ApiBase{
params.query.bool.must.push(param)
}
var pubno=obj.pubno==null?"":obj.pubno;
if (pubno!=null && pubno!=""){
var pubno = obj.pubno == null ? "" : obj.pubno;
if (pubno != null && pubno != "") {
param = {
"bool": {
"should": [
]
"should": [
]
}
}
......@@ -898,15 +898,15 @@ class ChinaPatentSearchApi extends ApiBase{
params.query.bool.must.push(param);
}
var priorno=obj.priorno==null?"":obj.priorno;
if (priorno != null && priorno != ""){
param= {
var priorno = obj.priorno == null ? "" : obj.priorno;
if (priorno != null && priorno != "") {
param = {
"nested": {
"path": "prior_info",
"query": {
"bool": {
"must": [
{ "term": { "prior_info.pri_no": priorno}}
{ "term": { "prior_info.pri_no": priorno } }
]
}
}
......@@ -915,27 +915,27 @@ class ChinaPatentSearchApi extends ApiBase{
params.query.bool.must.push(param)
}
var appl=obj.applname==null?"":obj.applname;
if (appl!=null && appl!=""){
param= {
var appl = obj.applname == null ? "" : obj.applname;
if (appl != null && appl != "") {
param = {
"term": {
"applicant_name.raw": appl
}
}
params.query.bool.must.push(param)
}
var inv=obj.invname==null?"":obj.invname;
if (inv!=null && inv!=""){
param= {
var inv = obj.invname == null ? "" : obj.invname;
if (inv != null && inv != "") {
param = {
"term": {
"inventor_name.raw": inv
}
}
params.query.bool.must.push(param)
}
var ipc=obj.ipcno==null?"":obj.ipcno;
if (ipc!=null && ipc!=""){
var param= {
var ipc = obj.ipcno == null ? "" : obj.ipcno;
if (ipc != null && ipc != "") {
var param = {
"term": {
"other_ipc": ipc
}
......@@ -943,102 +943,150 @@ class ChinaPatentSearchApi extends ApiBase{
params.query.bool.must.push(param)
}
if(obj.filingdate1!=null && obj.filingdate1!=""){
var filingdate1=obj.filingdate1;
if (obj.filingdate1 != null && obj.filingdate1 != "") {
var filingdate1 = obj.filingdate1;
}
else {
var filingdate1 ="";
var filingdate1 = "";
}
if(obj.filingdate2!=null && obj.filingdate2!=""){
var filingdate2=obj.filingdate2;
if (obj.filingdate2 != null && obj.filingdate2 != "") {
var filingdate2 = obj.filingdate2;
}
else {
var filingdate2 = "";
}
if (filingdate1!="" || filingdate2!=""){
param={
if (filingdate1 != "" || filingdate2 != "") {
param = {
"range": {
"filing_time": {
}
}
};
if (filingdate1!=""){
param.range.filing_time["gte"]=filingdate1;
if (filingdate1 != "") {
param.range.filing_time["gte"] = filingdate1;
}
if (filingdate2!=""){
param.range.filing_time["lte"]=filingdate2;
if (filingdate2 != "") {
param.range.filing_time["lte"] = filingdate2;
}
params.query.bool.must.push(param);
}
if(obj.pubdate1!=null && obj.pubdate1!=""){
var pubdate1=obj.pubdate1;
if (obj.pubdate1 != null && obj.pubdate1 != "") {
var pubdate1 = obj.pubdate1;
}
else {
var pubdate1 ="";
var pubdate1 = "";
}
if(obj.pubdate2!=null && obj.pubdate2!=""){
var pubdate2=obj.pubdate2;
if (obj.pubdate2 != null && obj.pubdate2 != "") {
var pubdate2 = obj.pubdate2;
}
else {
var pubdate2 = "";
}
if (pubdate1!="" || pubdate2!=""){
param={
if (pubdate1 != "" || pubdate2 != "") {
param = {
"range": {
"pub_time": {
}
}
};
if (pubdate1!=""){
param.range.pub_time["gte"]=pubdate1;
if (pubdate1 != "") {
param.range.pub_time["gte"] = pubdate1;
}
if (pubdate2!=""){
param.range.pub_time["lte"]=pubdate2;
if (pubdate2 != "") {
param.range.pub_time["lte"] = pubdate2;
}
params.query.bool.must.push(param);
}
if(obj.grdate1!=null && obj.grdate1!=""){
var grdate1=obj.grdate1;
if (obj.grdate1 != null && obj.grdate1 != "") {
var grdate1 = obj.grdate1;
}
else {
var grdate1 ="";
var grdate1 = "";
}
if(obj.grdate2!=null && obj.grdate2!=""){
var grdate2=obj.grdate2;
if (obj.grdate2 != null && obj.grdate2 != "") {
var grdate2 = obj.grdate2;
}
else {
var grdate2 = "";
}
if (grdate1!="" || grdate2!=""){
param={
if (grdate1 != "" || grdate2 != "") {
param = {
"range": {
"gr_time": {
}
}
};
if (grdate1!=""){
param.range.gr_time["gte"]=grdate1;
if (grdate1 != "") {
param.range.gr_time["gte"] = grdate1;
}
if (grdate2!=""){
param.range.gr_time["lte"]=grdate2;
if (grdate2 != "") {
param.range.gr_time["lte"] = grdate2;
}
params.query.bool.must.push(param);
}
var rc=System.getObject("util.execClient");
var rtn=null;
var rc = System.getObject("util.execClient");
var rtn = null;
var requrl = this.patentUrl;
try{
rtn=await rc.execPost(params,requrl);
var j=JSON.parse(rtn.stdout);
return System.getResult2(j.hits,null);
}catch(e){
return rtn=System.getResult2(null,null);
try {
rtn = await rc.execPost(params, requrl);
var j = JSON.parse(rtn.stdout);
return System.getResult2(j.hits, null);
} catch (e) {
return rtn = System.getResult2(null, null);
}
};
async patentSearch(obj) {//根据条件检索
var params = {
"query": {
"bool": {
"must": []
}
},
"from": 0,
"size": 1000,
};
for (var x in obj) {
params.query.bool.must.push(obj[x]);
};
var rc = System.getObject("util.execClient");
var rtn = null;
var requrl = this.patentUrl;
try {
rtn = await rc.execPost(params, requrl);
// console.log("jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj" + rtn.stdout);
var j = JSON.parse(rtn.stdout);
if (j.hits.hits.length > 0){
return rtn = {
status: 0,
msg: "操作成功",
data: j.hits.hits
};
}
else{
return rtn = {
status: -1,
msg: "检索结果为空",
data: null
};
}
} catch (e) {
return rtn = {
status: -1,
msg: "操作失败",
data: null
};
}
};
}
module.exports = ChinaPatentSearchApi;
......@@ -1225,6 +1225,66 @@ class CPatentAggregationsApi extends ApiBase {
};
async ApplKeywordAggs(obj) {//申请人关键词双重聚合
var params = {
"query": {
"bool": {
"must": []
}
},
"from": 0,
"size": 1,
"aggregations": {
"group_by_appl": {
"terms": {
"field": "applicant_name.raw",
"size": 10,
"order": {
"_count": "desc"
}
},
"aggregations": {
"group_by_keyword": {
"terms": {
"field": "key_word",
"size": 20,
"order": {
"_count": "desc"
}
}
}
}
}
}
};
for (var x in obj) {
params.query.bool.must.push(obj[x]);
}
var rc = System.getObject("util.execClient");
var rtn = null;
var requrl = this.patentUrl;
try {
rtn = await rc.execPost(params, requrl);
var j = JSON.parse(rtn.stdout);
return rtn = {
status: 0,
msg: "操作成功",
data: j.hits,
buckets: j.aggregations
};
} catch (e) {
return rtn = {
status: -1,
msg: "操作失败",
data: null,
buckets: null
};
}
};
async AppIpclgAggs(obj) {//Ipc大组聚合
var params = {
"query": {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -334,7 +334,7 @@ class RegionalpatentmonitoringCtl {
}
async aliBusinessDecision(obj){//IP智慧管理
async aliBusinessDecision(obj){//企业智慧管理
var entName = obj.entName;
var year = obj.year;
if(!entName){
......
......@@ -97,7 +97,7 @@ module.exports = {
{
"code": "businessdecisions",
"icon": "fa fa-search",
"label": "IP智慧管理",
"label": "企业智慧管理",
"bizCode": "businessdecisions",
"bizConfig": null,
"path": ""
......@@ -105,7 +105,7 @@ module.exports = {
{
"code": "businessdecisionsresult",
"icon": "fa fa-search",
"label": "IP智慧管理查询结果",
"label": "企业智慧管理查询结果",
"bizCode": "businessdecisionsresult",
"bizConfig": null,
"path": ""
......@@ -118,11 +118,37 @@ module.exports = {
"bizConfig": null,
"path": ""
},
{
"code": "iframehtmlTabs",
"icon": "fa fa-search",
"label": "网页嵌入",
"bizCode": "iframehtmlTabs",
"bizConfig": null,
"path": ""
},
{
"code": "competitiveanalysis",
"icon": "fa fa-search",
"label": "竞争企业分析",
"bizCode": "competitiveanalysis",
"bizConfig": null,
"path": ""
},
{
"code": "enterprisecontrast",
"icon": "fa fa-search",
"label": "竞争企业分析",
"bizCode": "enterprisecontrast",
"bizConfig": null,
"path": ""
}
],
},
"bizs": {
"iframehtml": {"title": "网页嵌入", "config": null, "path": "/iframehtml", "comname": "iframehtml"},
"iframehtmlTabs": {"title": "网页嵌入", "config": null, "path": "/iframehtmlTabs", "comname": "iframehtmlTabs"},
"competitiveanalysis": {"title": "竞争企业分析", "config": null, "path": "/competitiveanalysis", "comname": "competitiveanalysis"},
"enterprisecontrast": {"title": "竞争企业分析", "config": null, "path": "/enterprisecontrast", "comname": "enterprisecontrast"},
"home": {"title": "首页", "config": null, "path": "/", "comname": "home"},
"regionalpatentmonitoring": {"title": "监控", "config": null, "path": "/regionalpatentmonitoring", "comname": "regionalpatentmonitoring"},
"regionalpatentmonitoringdetails": {"title": "监控详情", "config": null, "path": "/regionalpatentmonitoringdetails", "comname": "regionalpatentmonitoringdetails"},
......@@ -187,20 +213,33 @@ module.exports = {
"comname": "regionalpatentmonitoringdetails"
},
"businessdecisions":{
"title": "IP智慧管理",
"title": "企业智慧管理",
"config": null,
"isDynamicRoute": false,
"path": "/businessdecisions",
"comname": "businessdecisions"
},
"businessdecisionsresult":{
"title": "IP智慧管理查询结果",
"title": "企业智慧管理查询结果",
"config": null,
"isDynamicRoute": false,
"path": "/businessdecisionsresult",
"comname": "businessdecisionsresult"
},
"competitiveanalysis":{
"title": "竞争企业分析",
"config": null,
"isDynamicRoute": false,
"path": "/businessdecisionsresult",
"comname": "businessdecisionsresult"
},
"path": "/competitiveanalysis",
"comname": "competitiveanalysis"
},
"enterprisecontrast":{
"title": "竞争企业分析",
"config": null,
"isDynamicRoute": false,
"path": "/enterprisecontrast",
"comname": "enterprisecontrast"
},
},
"pauths": [
"add", "edit", "delete", "export", "show"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
var fs=require("fs");
var objsettings=require("../config/objsettings");
var settings=require("../config/settings");
var fs = require("fs");
var objsettings = require("../config/objsettings");
var settings = require("../config/settings");
const CryptoJS = require("crypto-js");
class System {
static declare(ns) {
static declare (ns) {
var ar = ns.split('.');
var root = System;
for (var i = 0, len = ar.length; i < len; ++i) {
......@@ -15,189 +16,216 @@ class System {
}
}
}
static register(key,ClassObj){
if(System.objTable[key]!=null){
/**
* 为了接入第三方链接
* @param jsonStr
*/
static encodeAES (jsonStr) {
var str = jsonStr;
// 密钥 16 位
var key = 'dc35d3a0bd6641d891d3233b5286225a';
// 初始向量 initial vector 16 位
var iv = '92bcc33e807d43fc8265ee5210e37923';
// key 和 iv 可以一致
key = CryptoJS.enc.Utf8.parse(key);
iv = CryptoJS.enc.Utf8.parse(iv);
var encrypted = CryptoJS.AES.encrypt(str, key, {
iv: iv,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
});
// 转换为字符串
encrypted = encrypted.toString();
console.log("加密串", encrypted)
console.log("加密串", encodeURIComponent(encrypted))
return encodeURIComponent(encrypted)
}
static register (key, ClassObj) {
if (System.objTable[key] != null) {
throw new Error("相同key的对象已经存在");
}else{
let obj=new ClassObj();
System.objTable[key]=obj;
} else {
let obj = new ClassObj();
System.objTable[key] = obj;
}
return System.objTable[key];
}
static getResult3(data,req,okmsg="操作成功",errmsg="操作失败"){
var total=data.total;
data=data.hits;
var sources=[];
data.forEach(function(d){
static getResult3 (data, req, okmsg = "操作成功", errmsg = "操作失败") {
var total = data.total;
data = data.hits;
var sources = [];
data.forEach(function (d) {
sources.push(d._source);
})
var result={
status:0,
msg:okmsg,
total:total,
data:sources,
var result = {
status: 0,
msg: okmsg,
total: total,
data: sources,
};
if(req && req.session && req.session.bizmsg){
result.bizmsg=req.session.bizmsg;
req.session.bizmsg=null;
}else{
result.bizmsg="empty";
if (req && req.session && req.session.bizmsg) {
result.bizmsg = req.session.bizmsg;
req.session.bizmsg = null;
} else {
result.bizmsg = "empty";
}
if(!data){
result.status=-1;
result.msg=errmsg;
if (!data) {
result.status = -1;
result.msg = errmsg;
}
return result;
}
static getResult4(j,req,okmsg="操作成功",errmsg="操作失败"){
static getResult4 (j, req, okmsg = "操作成功", errmsg = "操作失败") {
var aggs = j.aggregations;
var codes_count = aggs.ncl_one_codes_count;
var bucketlist = codes_count.buckets;
var bucklist = [];
bucketlist.forEach(function(d){
bucketlist.forEach(function (d) {
bucklist.push(d);
})
var data = j.hits;
var total=data.total;
var hit=data.hits;
var sources=[];
hit.forEach(function(d){
var total = data.total;
var hit = data.hits;
var sources = [];
hit.forEach(function (d) {
sources.push(d._source);
})
var result={
status:0,
msg:okmsg,
total:total,
data:sources,
buckets:bucklist,
var result = {
status: 0,
msg: okmsg,
total: total,
data: sources,
buckets: bucklist,
};
if(req && req.session && req.session.bizmsg){
result.bizmsg=req.session.bizmsg;
req.session.bizmsg=null;
}else{
result.bizmsg="empty";
if (req && req.session && req.session.bizmsg) {
result.bizmsg = req.session.bizmsg;
req.session.bizmsg = null;
} else {
result.bizmsg = "empty";
}
if(!hit){
result.status=-1;
result.msg=errmsg;
if (!hit) {
result.status = -1;
result.msg = errmsg;
}
return result;
}
static getResultjuhe4(j,req,okmsg="操作成功",errmsg="操作失败"){
static getResultjuhe4 (j, req, okmsg = "操作成功", errmsg = "操作失败") {
var aggs = j.aggregations;
var codes_count = aggs.ncl_one_codes_count;
var bucketlist = codes_count.buckets;
var bucklist = [];
bucketlist.forEach(function(d){
bucketlist.forEach(function (d) {
bucklist.push(d);
})
var result={
status:0,
msg:okmsg,
buckets:bucklist,
var result = {
status: 0,
msg: okmsg,
buckets: bucklist,
};
if(!bucklist){
result.status=-1;
result.msg=errmsg;
if (!bucklist) {
result.status = -1;
result.msg = errmsg;
}
return result;
}
static getErrResult2(errmsg) {
static getErrResult2 (errmsg) {
return this.getResult2(null, null, null, errmsg);
}
static getResult2(data,req,okmsg="操作成功",errmsg="操作失败"){
var result={
status:0,
msg:okmsg,
data:data,
static getResult2 (data, req, okmsg = "操作成功", errmsg = "操作失败") {
var result = {
status: 0,
msg: okmsg,
data: data,
};
if(req && req.session && req.session.bizmsg){
result.bizmsg=req.session.bizmsg;
req.session.bizmsg=null;
}else{
result.bizmsg="empty";
if (req && req.session && req.session.bizmsg) {
result.bizmsg = req.session.bizmsg;
req.session.bizmsg = null;
} else {
result.bizmsg = "empty";
}
if(!data){
result.status=-1;
result.msg=errmsg;
if (!data) {
result.status = -1;
result.msg = errmsg;
}
return result;
}
static getResult(p,cbk,okmsg="success",errmsg="fail"){
var result={
status:0,
msg:null,
rtnData:null,
static getResult (p, cbk, okmsg = "success", errmsg = "fail") {
var result = {
status: 0,
msg: null,
rtnData: null,
};
if(!p){
result.status=-1;
result.rtnData=null;
result.msg=errmsg;
if (!p) {
result.status = -1;
result.rtnData = null;
result.msg = errmsg;
return cbk(result);
}else{
p.then(function(r){
result.rtnData=r;
result.msg=okmsg;
return cbk(result);
}).catch(function(err){
result.status=-1;
result.rtnData=null;
result.msg=errmsg;
return cbk(result);
} else {
p.then(function (r) {
result.rtnData = r;
result.msg = okmsg;
return cbk(result);
}).catch(function (err) {
result.status = -1;
result.rtnData = null;
result.msg = errmsg;
return cbk(result);
});
}
}
static getObject(objpath){
var packageName=objpath.split(".")[0];
var filename=objpath.split(".")[1];
var classpath=objsettings[packageName];
var objabspath=classpath+"/"+filename+".js";
if(System.objTable[objabspath]!=null){
static getObject (objpath) {
var packageName = objpath.split(".")[0];
var filename = objpath.split(".")[1];
var classpath = objsettings[packageName];
var objabspath = classpath + "/" + filename + ".js";
if (System.objTable[objabspath] != null) {
console.log("get cached obj");
return System.objTable[objabspath];
}else{
} else {
console.log("no cached...");
var ClassObj=require(objabspath);
return System.register(objabspath,ClassObj);
var ClassObj = require(objabspath);
return System.register(objabspath, ClassObj);
}
}
static getUiConfig(appid){
var configPath=settings.basepath+"/app/base/db/metadata/"+appid+"/index.js";
if(settings.env=="dev"){
static getUiConfig (appid) {
var configPath = settings.basepath + "/app/base/db/metadata/" + appid + "/index.js";
if (settings.env == "dev") {
delete require.cache[configPath];
}
var configValue =require(configPath);
var configValue = require(configPath);
return configValue;
}
static getUiConfig2(appid){
var configPath=settings.basepath+"/app/base/db/metadata/index.js";
static getUiConfig2 (appid) {
var configPath = settings.basepath + "/app/base/db/metadata/index.js";
// if(settings.env=="dev"){
// console.log("delete "+configPath+"cache config");
// delete require.cache[configPath];
// }
delete require.cache[configPath];
var configValue =require(configPath);
var configValue = require(configPath);
return configValue[appid];
}
static get_client_ip(req) {
var ip = req.headers['x-forwarded-for'] ||
req.ip ||
req.connection.remoteAddress ||
req.socket.remoteAddress ||
(req.connection.socket && req.connection.socket.remoteAddress) || '';
var x= ip.match(/(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$/);
if(x){
static get_client_ip (req) {
var ip = req.headers['x-forwarded-for'] ||
req.ip ||
req.connection.remoteAddress ||
req.socket.remoteAddress ||
(req.connection.socket && req.connection.socket.remoteAddress) || '';
var x = ip.match(/(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$/);
if (x) {
return x[0];
}else {
} else {
return "localhost";
}
};
};
// static buildObjectFactory(){
// for(var k in objsettings){
// let classpath=objsettings[k];
......@@ -218,27 +246,28 @@ class System {
// }
// }
}
Date.prototype.Format = function(fmt)
{ //author: meizz
var o = {
"M+" : this.getMonth()+1, //月份
"d+" : this.getDate(), //日
"h+" : this.getHours(), //小时
"m+" : this.getMinutes(), //分
"s+" : this.getSeconds(), //秒
"q+" : Math.floor((this.getMonth()+3)/3), //季度
"S" : this.getMilliseconds() //毫秒
};
if(/(y+)/.test(fmt))
fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
for(var k in o)
if(new RegExp("("+ k +")").test(fmt))
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
return fmt;
Date.prototype.Format = function (fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt))
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt))
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
System.objTable = {};
module.exports=System;
module.exports = System;
// let u = { "id": 12, "nickName": "好好学习", "mobile": "13381139519", "isAdmin": false }
// var str = JSON.stringify(u);
// System.encodeAES(str)
// rc=System.getObject("tool.restClient");
// rc.execDownload("http://gsb-public.oss-cn-beijing.aliyuncs.com/netsharp_SPEPdWCBp4xAtzrsiTcZWQ2CXK7aW8Dz.jpg","./a.jpg").then(function(result){
// console.log(result.stderr);
......
......@@ -6,12 +6,16 @@ class ExecClient {
constructor() {
this.cmdPostPattern = "curl --user admines:adminGSBes. -k -H 'Content-type: application/json' -d '{data}' {url}";
this.cmdGetPattern = "curl -G -X GET '{url}'";
this.cmdPostPattern2 = "curl -k -H 'Content-type: application/json' -d '{data}' {url}";
this.cmdPostPattern3 = "curl -k -H 'Content-type: application/json' -H 'token: {token}' -d '{data}' {url}";
}
async exec(cmd) {
//await后面表达式返回的promise对象,是then的语法糖,await返回then函数的返回值
//异常需要try/catch自己捕获或外部catch捕获
const {stdout, stderr} = await exec(cmd);
const {stdout, stderr} = await exec(cmd,{
maxBuffer: 40960 * 1024
});
return {stdout, stderr};
}
......@@ -28,12 +32,39 @@ class ExecClient {
return cmd;
}
FetchPostCmd2(subData, url) {
var data = JSON.stringify(subData);
var cmd = this.cmdPostPattern2.replace(/\{data\}/g,
data).replace(/\{url\}/g, url);
console.log(cmd);
return cmd;
}
FetchPostCmd3(token,subData, url) {
var data = JSON.stringify(subData);
var cmd = this.cmdPostPattern3.replace(/\{token\}/g,token).replace(/\{data\}/g,data).replace(/\{url\}/g, url);
console.log(cmd);
return cmd;
}
async execPost(subData, url) {
let cmd = this.FetchPostCmd(subData, url);
var result = await this.exec(cmd);
return result;
}
async execPost3(subData, url) {
let cmd = this.FetchPostCmd2(subData, url);
var result = await this.exec(cmd);
return result;
}
async execPost4(token,subData, url) {
let cmd = this.FetchPostCmd3(token,subData, url);
var result = await this.exec(cmd);
return result;
}
async execPost2(subData, url) {
let cmd = this.FetchPostCmd(subData, url);
var result = await this.exec2(cmd);
......@@ -49,7 +80,9 @@ class ExecClient {
async execGet(subData, url) {
let cmd = this.FetchGetCmd(subData, url);
console.log("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
console.log(cmd);
console.log("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
var result = await this.exec(cmd);
return result;
}
......
var settings={
redis:{
host: "43.247.184.32",
host: "121.36.3.35",
port: 8967,
password:"Gongsibao2018",
db: 11,
......
......@@ -175,13 +175,19 @@
bottom: 0;
margin: auto;
}
.el-tooltip__popper.is-light {
max-width: 80% !important;
}
.el-menu-item {
outline: none !important;
}
</style>
</head>
<body>
<div id="app" v-loading="loading" class="app-main" style="visibility: hidden">
<div id="header" :class="typeHome ? 'app-headerHome' : 'app-header'">
<el-row style="border-bottom:none;padding: 0px">
<el-col :span="4" style="min-width:205px;text-align: center;">
<el-row style="border-bottom:none;padding: 0px;min-width: 1244px;">
<el-col :span="2" style="min-width:150px;text-align: center;">
<!-- <el-button type="text" style="font-size:24px;font-size: 0.24rem;" @click="navRoute('首页')">知识产权运营平台</el-button> -->
<img v-if="typeHome" style="margin-top: 14px;margin-left: 32px;cursor: pointer;" @click="NavIndexRoute('首页')" src="/imgs/home/logoimg1.png" alt="">
<img v-if="!typeHome" style="margin-top: 14px;cursor: pointer;" src="/imgs/home/logos.png" @click="NavIndexRoute('首页')" alt="">
......@@ -189,10 +195,10 @@
<!-- <el-col :span="17" class="spechorizotal">
<gsb-topmenu ref="topmenu" mode="horizontal" formatprop="formatItem" bkcolor="black" @menuselect="onMenuSelect"></gsb-topmenu>
</el-col> -->
<el-col v-if='!typeHome' :span="17" style="min-width:880px">
<el-col v-if='!typeHome' :span="19" style="min-width:880px">
<gsb-nav @navroute="NavIndexRoute" :navarr="navarr"></gsb-nav>
</el-col>
<el-col :span="3" style="float:right;min-width: 100px;" v-if="!currentUser">
<el-col :span="2" style="float:right;min-width: 100px;" v-if="!currentUser">
<el-button type="text" style="font-size: 0.14rem;" @click="onselect('login')">登录</el-button>
<el-button type="text" style="font-size: 0.14rem;" @click="onselect('register')">注册</el-button>
<div></div>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -562,7 +562,7 @@ hr {
text-align:left;
}
.patentanalysis-wrap{
border-top:1px solid #e6e6e6;
/* border-top:1px solid #e6e6e6; */
padding-left: 200px;
}
.patentanalysis-leftpart{
......

12.1 KB | W: | H:

27.3 KB | W: | H:

ipop-web/app/front/entry/public/imgs/bgj1.png
ipop-web/app/front/entry/public/imgs/bgj1.png
ipop-web/app/front/entry/public/imgs/bgj1.png
ipop-web/app/front/entry/public/imgs/bgj1.png
  • 2-up
  • Swipe
  • Onion skin

29.7 KB | W: | H:

26.5 KB | W: | H:

ipop-web/app/front/entry/public/imgs/title.png
ipop-web/app/front/entry/public/imgs/title.png
ipop-web/app/front/entry/public/imgs/title.png
ipop-web/app/front/entry/public/imgs/title.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -149,30 +149,36 @@ axios.get("/vue/comp/base").then(function(res){
store:store,
data:function(){
return {
homeType: true,
navarr:[
{
name:'首页'
},{
name:'智能检索',
obj:['专利检索','高级检索']
},{
name:'智能检索'
},{
name:'智能分析'
},{
name:'IP智慧城市',
obj:['产业创新监测','创新人才发现','IP创新管理']
},{
name:'智能估价'
},{
name:'创新资源共享'
name:'企业智慧管理'
},{
name:'智能分类'
name:'产业创新监测'
},{
name:'智能采集'
name:'IP智慧城市'
},{
name:'创新人才发现'
},{
name:'知识产权运营'
},{
name: '创新资源共享'
},{
name:'更多',
obj:['智能采集','智能分类','智能翻译']
}
],
// {
// name:'企业级服务',
// obj:['IP智慧管理','智能估价']
// obj:['企业智慧管理','智能估价']
// }
// {
// name:'政府级服务',
......@@ -221,6 +227,70 @@ axios.get("/vue/comp/base").then(function(res){
},
}),
created(){
let navarr = [
{
name:'首页'
},{
name:'智能检索'
},{
name:'智能分析'
},{
name:'智能估价'
},{
name:'企业智慧管理'
},{
name:'产业创新监测'
},{
name:'IP智慧城市'
},{
name:'创新人才发现'
},{
name:'知识产权运营'
},{
name:'创新资源共享'
},{
name:'智能采集'
},{
name:'智能分类'
},{
name:'智能翻译'
}
];
var that = this;
that.navarr = [];
let a = {
name: '更多',
obj: []
};
let clientWidth = document.body.clientWidth - 400;
for(let i=0; i<navarr.length; i++) {
if ((i * 124) <= clientWidth) {
that.navarr.push(navarr[i])
}else {
a.obj.push(navarr[i].name)
}
};
if (a.obj.length > 0) {
that.navarr.push(a)
};
$(window).resize(function(){
that.navarr = [];
let a = {
name: '更多',
obj: []
};
let clientWidth = document.body.clientWidth - 400;
for(let i=0; i<navarr.length; i++) {
if ((i * 124) <= clientWidth) {
that.navarr.push(navarr[i])
}else {
a.obj.push(navarr[i].name)
}
};
if (a.obj.length > 0) {
that.navarr.push(a)
}
})
var url = window.location.href;
var arr1 = url.split("/#");
var titleValue = "";
......@@ -307,15 +377,21 @@ axios.get("/vue/comp/base").then(function(res){
setTimeout(()=>{
this.loadingHome = false;
},1000);
}else if ( v == 'IP创新管理') {
}else if ( v == '企业智慧管理') {
this.typeHome = false;
this.pushx({ name:'/businessdecisions'});
}else if(v== "高级检索"){
this.typeHome = false;
this.pushx({name:"/patentadvancedsearch",title:"高级检索"})
}else if(v== "专利检索"){
this.typeHome = false;
this.pushx({name:"/patentsimplesearch",title:"专利检索"})
}else if(v== "智能检索"){
this.typeHome = false;
this.pushx({name:"/patentsimplesearch",title:"智能检索"})
}else if(v== "智能分析"){
this.typeHome = false;
this.pushx({name:"/patentanalysis",title:"智能分析"})
}else if(v== "智能估价"){
this.typeHome = false;
this.loadingHome = true;
......@@ -327,6 +403,10 @@ axios.get("/vue/comp/base").then(function(res){
}else if(v== "创新人才发现"){
this.typeHome = false;
<<<<<<< HEAD
=======
// window.open("https://gct.aminer.cn/");
>>>>>>> df9a4b0324cd0c8eb5fbab653ded5482ba856b9b
this.loadingHome = true;
var url = encodeURIComponent("https://gct.aminer.cn/");
this.pushx({name:"/iframehtml",title:"创新人才发现",params:{url:url}});
......@@ -334,14 +414,35 @@ axios.get("/vue/comp/base").then(function(res){
this.loadingHome = false;
},1500);
}else if(v== "知识产权运营"){
<<<<<<< HEAD
this.typeHome = false;
this.loadingHome = true;
var url = encodeURIComponent("https://www.cnuip.com/");
this.pushx({name:"/iframehtml",title:"知识产权运营",params:{url:url}});
=======
// window.open("https://www.cnuip.com/");
this.typeHome = false;
this.loadingHome = true;
var url = encodeURIComponent("http://101.132.173.37:8110/");
this.pushx({name:"/iframehtmlTabs",title:"知识产权运营",params:{url:url}});
setTimeout(()=>{
this.loadingHome = false;
},1500);
}else if(v== "智能分类"){
// window.open("https://www.cnuip.com/");
this.typeHome = false;
this.loadingHome = true;
var url = encodeURIComponent("http://125.34.170.146/");
this.pushx({name:"/iframehtml",title:"智能分类",params:{url:url}});
>>>>>>> df9a4b0324cd0c8eb5fbab653ded5482ba856b9b
setTimeout(()=>{
this.loadingHome = false;
},1500);
}else if(v== "智能采集"){
<<<<<<< HEAD
=======
// window.open("http://47.104.94.221:8001/wiki");
>>>>>>> df9a4b0324cd0c8eb5fbab653ded5482ba856b9b
this.typeHome = false;
this.loadingHome = true;
var url = encodeURIComponent("http://47.104.94.221:8001/wiki");
......@@ -349,6 +450,18 @@ axios.get("/vue/comp/base").then(function(res){
setTimeout(()=>{
this.loadingHome = false;
},1500);
<<<<<<< HEAD
=======
}else if(v== "智能翻译"){
// window.open("http://47.104.94.221:8001/wiki");
this.typeHome = false;
this.loadingHome = true;
var url = encodeURIComponent("http://125.34.170.146:8080/translate");
this.pushx({name:"/iframehtml",title:"智能翻译",params:{url:url}});
setTimeout(()=>{
this.loadingHome = false;
},1500);
>>>>>>> df9a4b0324cd0c8eb5fbab653ded5482ba856b9b
}else if(v== "创新资源共享"){
this.typeHome = false;
this.loadingHome = true;
......
......@@ -33,7 +33,7 @@ module.exports=
};
},
mounted:function(){
},
watch:{
......
......@@ -36,7 +36,7 @@
margin-bottom: 59px;
}
.bd-main-input {
width: 976px;
width: 832px;
height: 78px;
border-radius: 6px;
background-color: rgba(17,132,224,0.2);
......@@ -44,6 +44,12 @@
padding: 10px;
box-sizing: border-box;
}
.bd-main-radio {
width: 832px;
height: 38px;
margin: 0 auto;
text-align: left;
}
.bd-input {
float: left;
width:668px;
......@@ -86,4 +92,19 @@
margin-left: 10px;
color: #fff;
cursor: pointer;
}
.businessdecisions .el-radio-button__inner {
background: transparent;
color: #fff;
border: none;
}
.businessdecisions .el-radio-button:first-child .el-radio-button__inner {
border-left: none;
}
.businessdecisions .el-radio-button__orig-radio:checked+.el-radio-button__inner {
color: #409EFF;
background-color: transparent;
border-color: transparent;
-webkit-box-shadow: -1px 0 0 0 transparent;
box-shadow: -1px 0 0 0 transparent;
}
\ No newline at end of file
<div class="businessdecisions">
<div class="bd-title">IP智慧管理</div>
<div class="bd-title">企业智慧管理</div>
<div class="bd-title-name">提供企业专利数据监测服务,方便企业主体专利分析</div>
<div class="bd-main-radio">
<el-radio-group v-model="radio1">
<el-radio-button label="深度分析"></el-radio-button>
<el-radio-button label="竞争分析"></el-radio-button>
</el-radio-group>
</div>
<div class="bd-main-input">
<!-- <input type="text" class="bd-input" v-model="entName" placeholder="请输入企业名称"> -->
<div class="bd-input">
......@@ -11,7 +17,196 @@
</gsb-select3>
</div>
<div class="bd-button" @click="chaxun">查询</div>
<div class="bd-button" @click="chaxun">竞争力分析</div>
<div class="bd-button" @click="chaxun">查企业</div>
<!-- <div class="bd-button" @click="chaxun">竞争力分析</div> -->
</div>
<div id="wave-container" class="animate-wave-container" style="width: 1920px;"><div>
<div class="wave-svg-s1">
<svg id="wave-svg" width="1920" height="178px" viewBox="0 0 1920 178" preserveAspectRatio="xMinYMax" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<linearGradient id="wave-gradient1" x1="0%" y1="0%" x2="100%" y2="0">
<stop offset="0%" style="stop-color:rgba(28,164,252, 0.5);stop-opacity:1"></stop>
<stop offset="50%" style="stop-color:rgba(28,164,252,1);stop-opacity:1"></stop>
<stop offset="100%" style="stop-color:rgba(28,164,252,0.5);stop-opacity:1"></stop>
</linearGradient>
</defs>
<g id="s1-copy" transform="translate(0.000000, -22.000000)">
<g id="线条组合" transform="translate(0.000000, 22.000000)">
<path class="wave-path1" d="
M1920,0.047
C1707.9649659722222,0.047 1643.2576798611112,62.965 1448.2226458333332,62.965
C1253.1876118055557,62.965 1141.718065277778,24 946.6817097222223,24
C751.6466756944444,24 661.0506604166667,62.965 466.01562638888896,62.965
C270.9792708333334,62.965 195.03503402777778,0 0,0
L0,175.047
L1920,175.047
C1920,175.047 1920.1004361111113,0.047 1920,0.047" id="S3" opacity="0.100000001"></path>
</g>
</g>
</svg>
</div>
<div class="wave-link-s1">
<div class="wave-keywords-link animated fadeIn" style="top:55px;left:436.1041666666667px" @click="search1(\'华为技术有限公司\')">
<span class="wave-circle-icon animated fadeIn">
<span class="wave-circle-icon-big"></span>
<span class="wave-circle-icon-small"></span>
</span>
<span class="wave-keywords-text animated fadeIn">华为</span>
</div><div class="wave-keywords-link animated fadeIn" style="top:55px;left:1427.25px" @click="search1(\'京东方科技集团股份有限公司\')">
<span class="wave-circle-icon animated fadeIn">
<span class="wave-circle-icon-big"></span>
<span class="wave-circle-icon-small"></span>
</span>
<span class="wave-keywords-text animated fadeIn">京东方</span>
</div>
</div>
<div class="wave-svg-s2">
<svg id="wave-svg" width="1920" height="178px" viewBox="0 0 1920 178" preserveAspectRatio="xMinYMax" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="s1-copy" transform="translate(0.000000, -22.000000)">
<g id="线条组合" transform="translate(0.000000, 22.000000)">
<path class="wave-path1" d="
M1920,175
L0,175
L0,85
C158.58333333333334,85 272.93956434861116,50.0224241 431.5228976819444,50.0224241
C590.1062310152778,50.0224241 811.3264802881945,118.825457 969.9098136215279,118.825457
C1128.4931469548612,118.825457 1303.5866638055556,50.0224241 1462.1699971388891,50.0224241
C1620.7533304722224,50.0224241 1744.4166666666667,83 1920,85
L1920,175 Z" id="S2" opacity="0.200000003"></path>
</g>
</g>
</svg>
</div>
<div class="wave-link-s2">
<div class="wave-keywords-link animated fadeIn" style="top:110px;left:925.0694444444445px" @click="search1(\'百度在线网络技术(北京)有限公司\')">
<span class="wave-circle-icon animated fadeIn">
<span class="wave-circle-icon-big"></span>
<span class="wave-circle-icon-small"></span>
</span>
<span class="wave-keywords-text animated fadeIn">百度</span>
</div>
</div>
<div class="wave-svg-s3">
<svg id="wave-svg" width="1920" height="178px" viewBox="0 0 1920 178" preserveAspectRatio="xMinYMax" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="s1-copy" transform="translate(0.000000, -22.000000)">
<g id="线条组合" transform="translate(0.000000, 22.000000)">
<path class="wave-path1" d="
M1920,175.132909
L0,175.132909
L0,112.132909
C158.58333333333334,112.132909 238.7215561576389,145.132909 397.30488949097224,145.132909
C555.8882228243056,145.132909 768.4249060125001,99 927.0082393458334,99
C1085.5915726791668,99 1310.6518499708334,139.47418 1469.2351885902779,139.47418
C1627.8185219236111,139.47418 1744.4166666666667,113.132909 1920,112.132909
L1920,175.132909 Z" id="S1" opacity="0.300000012"></path>
</g>
</g>
</svg>
</div>
<div class="wave-link-s3">
<div class="wave-keywords-link animated fadeIn" style="top:138px;left:363.4201388888889px" @click="search1(\'国家电网公司\')">
<span class="wave-circle-icon animated fadeIn">
<span class="wave-circle-icon-big"></span>
<span class="wave-circle-icon-small"></span>
</span>
<span class="wave-keywords-text animated fadeIn">国家电网</span>
</div><div class="wave-keywords-link animated fadeIn" style="top:132px;left:1453.6805555555557px" @click="search1(\'中国石油天然气股份有限公司\')">
<span class="wave-circle-icon animated fadeIn">
<span class="wave-circle-icon-big"></span>
<span class="wave-circle-icon-small"></span>
</span>
<span class="wave-keywords-text animated fadeIn">中国石油</span>
</div>
</div>
<div class="wave-svg-s4">
<svg id="wave-svg" width="1920" height="178px" viewBox="0 0 1920 178" preserveAspectRatio="xMinYMax" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="s1-copy" transform="translate(0.000000, -22.000000)">
<g id="线条组合" transform="translate(0.000000, 22.000000)">
<path class="wave-path1" d="
M1920,0.047
C1707.9649659722222,0.047 1643.2576798611112,62.965 1448.2226458333332,62.965
C1253.1876118055557,62.965 1141.718065277778,24 946.6817097222223,24
C751.6466756944444,24 661.0506604166667,62.965 466.01562638888896,62.965
C270.9792708333334,62.965 195.03503402777778,0 0,0
L0,175.047
L1920,175.047
C1920,175.047 1920.1004361111113,0.047 1920,0.047" id="S3" opacity="0.100000001"></path>
</g>
</g>
</svg>
</div>
<div class="wave-link-s4">
<div class="wave-keywords-link animated fadeIn" style="top:55px;left:436.1041666666667px" @click="search1(\'腾讯科技(深圳)有限公司\')">
<span class="wave-circle-icon animated fadeIn">
<span class="wave-circle-icon-big"></span>
<span class="wave-circle-icon-small"></span>
</span>
<span class="wave-keywords-text animated fadeIn">腾讯</span>
</div><div class="wave-keywords-link animated fadeIn" style="top:55px;left:1427.25px" @click="search1(\'珠海格力电器股份有限公司\')">
<span class="wave-circle-icon animated fadeIn">
<span class="wave-circle-icon-big"></span>
<span class="wave-circle-icon-small"></span>
</span>
<span class="wave-keywords-text animated fadeIn">格力</span>
</div>
</div>
<div class="wave-svg-s5">
<svg id="wave-svg" width="1920" height="178px" viewBox="0 0 1920 178" preserveAspectRatio="xMinYMax" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="s1-copy" transform="translate(0.000000, -22.000000)">
<g id="线条组合" transform="translate(0.000000, 22.000000)">
<path class="wave-path1" d="
M1920,175
L0,175
L0,85
C158.58333333333334,85 272.93956434861116,50.0224241 431.5228976819444,50.0224241
C590.1062310152778,50.0224241 811.3264802881945,118.825457 969.9098136215279,118.825457
C1128.4931469548612,118.825457 1303.5866638055556,50.0224241 1462.1699971388891,50.0224241
C1620.7533304722224,50.0224241 1744.4166666666667,83 1920,85
L1920,175 Z" id="S2" opacity="0.200000003"></path>
</g>
</g>
</svg>
</div>
<div class="wave-link-s5">
<div class="wave-keywords-link animated fadeIn" style="top:110px;left:925.0694444444445px" @click="search1(\'中兴通讯股份有限公司\')">
<span class="wave-circle-icon animated fadeIn">
<span class="wave-circle-icon-big"></span>
<span class="wave-circle-icon-small"></span>
</span>
<span class="wave-keywords-text animated fadeIn">中兴</span>
</div>
</div>
<div class="wave-svg-s6">
<svg id="wave-svg" width="1920" height="178px" viewBox="0 0 1920 178" preserveAspectRatio="xMinYMax" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="s1-copy" transform="translate(0.000000, -22.000000)">
<g id="线条组合" transform="translate(0.000000, 22.000000)">
<path class="wave-path1" d="
M1920,175.132909
L0,175.132909
L0,112.132909
C158.58333333333334,112.132909 238.7215561576389,145.132909 397.30488949097224,145.132909
C555.8882228243056,145.132909 768.4249060125001,99 927.0082393458334,99
C1085.5915726791668,99 1310.6518499708334,139.47418 1469.2351885902779,139.47418
C1627.8185219236111,139.47418 1744.4166666666667,113.132909 1920,112.132909
L1920,175.132909 Z" id="S1" opacity="0.300000012"></path>
</g>
</g>
</svg>
</div>
<div class="wave-link-s6">
<div class="wave-keywords-link animated fadeIn" style="top:138px;left:363.4201388888889px" @click="search1(\'三星电子株式会社\')">
<span class="wave-circle-icon animated fadeIn">
<span class="wave-circle-icon-big"></span>
<span class="wave-circle-icon-small"></span>
</span>
<span class="wave-keywords-text animated fadeIn">三星</span>
</div><div class="wave-keywords-link animated fadeIn" style="top:132px;left:1453.6805555555557px" @click="search1(\'鸿海精密工业股份有限公司\')">
<span class="wave-circle-icon animated fadeIn">
<span class="wave-circle-icon-big"></span>
<span class="wave-circle-icon-small"></span>
</span>
<span class="wave-keywords-text animated fadeIn">富士康</span>
</div>
</div>
</div>
\ No newline at end of file
......@@ -2,11 +2,33 @@
template:'${tmpl}',
data:function(){
return {
radio1: '深度分析',
year:"全部年份",
entName:"",
}
},
mounted:function(){
$('#wave-container').hover(function(){
$("#wave-container").addClass("animate-wave-container-hover");
},function(){
$("#wave-container").removeClass("animate-wave-container-hover");
});
},
methods:{
search1(val){
if (typeof val == 'string') {
console.log(val, this.radio1);
this.entName = val;
this.chaxun();
};
/*this.total=0;
this.currentpage=1;
清楚勾选的痕迹
this.checkAllAnalysis=false;
this.checkListAnalysis=[];
this.multipleSelection=[];
this.search();*/
},
chaxun () {
var obj={entName:"",year:""};
if(this.year && this.year!="全部年份" ){
......@@ -18,10 +40,18 @@
this.$message.warning("请填写企业名称");
return;
}
this.$root.pushx({
name:"/businessdecisionsresult",
params:obj
});
if (this.radio1 === '深度分析') {
this.$root.pushx({
name:"/businessdecisionsresult",
params:obj
});
}else {
this.$root.pushx({
name:"/competitiveanalysis",
params:obj
});
}
},
aliBusinessDecision(){
......
......@@ -499,7 +499,7 @@
this.year=this.$router.history.current.query.year || "";
if(!this.entName){
this.$root.pushx(
{ name:'/businessdecisions',title:"IP智慧管理"}
{ name:'/businessdecisions',title:"企业智慧管理"}
);
return ;
}
......@@ -514,7 +514,7 @@
this.initParams();
}else{
this.$root.pushx(
{ name:'/businessdecisions',title:"IP智慧管理"}
{ name:'/businessdecisions',title:"企业智慧管理"}
);
return ;
}*/
......
.competitiveanalysis {
width: 100%;
height: 100%;
padding-bottom: 20px;
background:rgba(15,12,63,1);
}
.competitiveanalysis .main {
width: 1200px;
height: 100%;
margin: 0 auto;
}
.competitiveanalysis .title {
width: 100%;
height: 63px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.title-div {
display: inline-block;
font-size:24px;
font-family:Microsoft YaHei;
font-weight:400;
color:rgba(0,160,234,1);
line-height:63px;
}
.title-span {
position: absolute;
left: 0;
font-size:14px;
font-family:Microsoft YaHei;
font-weight:400;
color:rgba(255,255,255,1);
cursor: pointer;
}
.title-span span {
margin-right: 4px;
}
.lhd_header {
width:100%;
min-height:140px;
background:rgba(15,12,63,1);
border:1px solid rgba(17,132,224,1);
padding: 10px;
box-sizing: border-box;
text-align: left;
margin-top: 15px;
overflow: hidden;
}
.lhd_header .left {
float: left;
width: 120px;
height: 120px;
text-align: center;
}
.lhd_header .right {
float: left;
/* width: calc(100% - 120px); */
height: 100%;
color: #fff;
padding-left: 20px;
box-sizing: border-box;
line-height: 40px;
}
.lhd_header .right div {
color: rgba(255, 255, 255, 1);
}
.lhd_header .right div span {
color: rgba(174, 210, 255, 1);
margin-right: 37px;
}
.lhd_h3 {
font-size:20px;
font-family:Microsoft YaHei;
font-weight:bold;
color:rgba(255,255,255,1);
}
.lhd_table {
width: 100%;
}
.lhd_table_top {
width:1200px;
height:60px;
background:rgba(27,37,106,0.8);
border:1px solid rgba(17,132,224,1);
font-size:14px;
font-family:Microsoft YaHei;
font-weight:400;
color:rgba(55,166,255,1);
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.lhd_table_top span {
flex: 1;
text-align: center;
}
.lhd_table_list {
width: 100%;
height: 60px;
border: 1px solid rgba(17,132,224,1);
border-top: none;
border-bottom: 1px solid rgba(68,76,148,1);
font-size:14px;
font-family:Microsoft YaHei;
font-weight:400;
color:rgba(255,255,255,1);
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.lhd_table_list span {
flex: 1;
text-align: center;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
padding: 0px 10px;
box-sizing: border-box;
}
.lhd_table_list .dj {
cursor: pointer;
color: rgba(17,132,224,1);
}
<div class="competitiveanalysis">
<div class="main">
<div class="title">
<span class="title-span" @click="fanhui"><span><</span>返回上一级</span><div class="title-div">企业竞争分析</div>
</div>
<div class="lhd_header">
<!-- <div class="left"><img src="/imgs/fire.png" alt=""></div> -->
<div class="right">
<div class="lhd_h3">{{obj.companyname}}</div>
<div>专利总量&nbsp;&nbsp;<span>{{obj.total}}</span>
行业&nbsp;&nbsp;<span>{{obj.industryname}}</span>
专利关键词&nbsp;&nbsp;<el-tooltip :content="obj.businessscope" placement="bottom" effect="light"><span>{{obj.keys}}</span></el-tooltip>
</div>
<div>
主营业务&nbsp;&nbsp;<span>{{obj.keyword}}</span>
</div>
</div>
</div>
<div class="title">
<span class="title-span">专利竞争企业</span>
</div>
<div class="lhd_table">
<div class="lhd_table_top">
<span v-for="(item,key) in tableFrom" :key="key">{{item}}</span>
</div>
<div class="lhd_table_list" v-for="(list,index) in obj.competeinfo" :key="index">
<span>{{index + 1}}</span>
<span>{{list.companyname}}</span>
<span>{{list.patentnum}}</span>
<el-tooltip :content="list.keyword" placement="bottom" effect="light"><span>{{list.keys}}</span></el-tooltip>
<span>{{list.industryname}}</span>
<span>{{list.competeindex}}</span>
<span class="dj" @click="contrast(list)">对比分析</span>
</div>
</div>
</div>
</div>
\ No newline at end of file
{
template:'${tmpl}',
data:function(){
return {
obj:{},
tableFrom:[
'序号','企业名称','专利总量','专利关键词','行业','竞争指数','操作'
],
entName: '',
year: ''
}
},
mounted:function(){
},
created:function(){
this.entName=this.$router.history.current.query.entName || "";
this.year=this.$router.history.current.query.year || "";
console.log(this.entName, this.year);
if (this.entName) {
this.analysisInfo();
}
},
methods:{
contrast(val) {
this.$root.pushx({
name:"/enterprisecontrast",
params:{
name1: val.companyname,
text1: val.keyword,
name2: this.entName,
text2: this.obj.keyword
}
});
},
fanhui() {
this.$root.pushx({
name:"/businessdecisions",
params:{}
});
},
keyDealwith(value) {
let array = value.split(',')[0].split('、');
let arr1 = [];
for (let i = 0; i < array.length; i++) {
if ( i > 1 && i <= 5) {
arr1.push(array[i])
}
};
return arr1.join(',')
},
keyDealwith2(value) {
let array = value.split(',');
let arr1 = [];
for (let i = 0; i < array.length; i++) {
if ( i <= 4) {
arr1.push(array[i])
}
};
return arr1.join(',')
},
analysisInfo(){
var obj={companyname:""};
if(this.entName ){
obj.companyname=this.entName;
}else{
return ;
}
this.$root.showMask();
this.$root.getReq("web/patentycCtl/competitionAnalysisInfo",obj).then(d=>{
console.log(d);
if(d && d.status==0){
for (let i = 0; i < d.data.competeinfo.length; i++) {
d.data.competeinfo[i]['keys'] = this.keyDealwith2(d.data.competeinfo[i].keyword)
}
this.obj = d.data;
this.obj['keys'] = this.keyDealwith(d.data.businessscope)
}
this.$root.hideMask();
}).catch(e=>{
this.$root.hideMask();
})
},
},
computed:{
},
vname:"gsb-competitiveanalysis"
}
.enterprisecontrast {
width: 100%;
height: 100%;
background-color: rgba(25, 19, 89, 1);
text-align: center;
font-size: 35px;
color: #fff;
}
.header_lhd {
width: 100%;
height: 8.1%;
background: url('https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_5371597459421664202015104341664组308.png') no-repeat;
background-size: 100% 100%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.left_button {
position: absolute;
left: 2%;
top: 1.5vh;
width: 4.5vh;
height: 4.5vh;
cursor: pointer;
}
.vs {
width: 47.4vh;
height: 100%;
}
.left_l {
font-size:3.4vh;
font-family:PingFangSC-Semibold,PingFang SC;
font-weight:600;
color:rgba(219,229,240,1);
letter-spacing:1px;
-webkit-text-stroke:1px rgba(14,62,112,1);
text-stroke:1px rgba(14,62,112,1);
}
.right_h {
font-size:3.4vh;
font-family:PingFangSC-Semibold,PingFang SC;
font-weight:600;
color:rgba(255,246,246,1);
letter-spacing:1px;
-webkit-text-stroke:1px rgba(255,0,0,1);
text-stroke:1px rgba(255,0,0,1);
}
.con_left {
margin-top: 3vh;
float: left;
width: 46.8%;
height: 78vh;
border:1px solid rgba(10,67,188,1);
margin-left: 2%;
}
.con_left_title {
width:100%;
height: 6.9%;
background:linear-gradient(270deg,rgba(41,91,214,1) 0%,rgba(22,45,103,0) 100%);
display: flex;
align-items: center;
justify-content: center;
}
.con_left_title span {
flex: 1;
font-size:16px;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(255,255,255,1);
}
.cl_list {
width: 100%;
height: 18.9%;
display: flex;
align-items: center;
padding-left: 19px;
box-sizing: border-box;
}
.cl_list_title {
width: 23.6%;
height: 57.9%;
background: url('https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_1471597461958288202015112558288编组10.png') no-repeat;
background-size: 100% 100%;
font-size:1.8vh;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(255,255,255,1);
position: relative;
text-align: left;
padding-top: 3.6%;
padding-left: 1.3%;
box-sizing: border-box;
}
.cl_list_title .mark {
position: absolute;
top: 0px;
right: 4.6%;
width:24.4%;
height: 77.3%;
background: url('https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_547159746286546720201511415467编组13.png') no-repeat;
background-size: 100% 100%;
display: flex;
align-items: center;
justify-content: center;
}
.cl_list_item {
width: 20%;
height: 100%;
font-size:20px;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(255,255,255,1);
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
.cl_text{
width: 80%;
text-align: left;
}
.cl_jdt {
width: 80%;
height: 15.1%;
background:rgba(34,70,147,1);
margin-top: 1vh;
font-size: 14px;
text-align: right;
position: relative;
z-index: 99;
}
.cl_zzt {
position: absolute;
top: 0px;
left: 0px;
width:60%;
height:100%;
background:linear-gradient(90deg,rgba(50,197,255,1) 0%,rgba(97,228,255,1) 100%);
z-index: -1;
}
.con_right {
margin-top: 3vh;
float: right;
width: 46.8%;
height: 78vh;
border:1px solid rgba(84,42,42,1);
margin-right: 2%;
}
.con_right_title {
width:100%;
height: 6.9%;
background:linear-gradient(270deg,rgba(201,112,102,0) 0%,rgba(219,78,67,1) 100%);
display: flex;
align-items: center;
justify-content: center;
}
.con_right_title span {
flex: 1;
font-size:16px;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(255,255,255,1);
}
.cr_list {
width: 100%;
height: 18.9%;
display: flex;
align-items: center;
padding-left: 19px;
box-sizing: border-box;
}
.cr_list_title {
width: 23.6%;
height: 57.9%;
background: url('https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_2067159746218207120201511294271编组12.png') no-repeat;
background-size: 100% 100%;
font-size:1.8vh;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(255,255,255,1);
position: relative;
text-align: left;
padding-top: 3.6%;
padding-left: 1.3%;
box-sizing: border-box;
}
.cr_list_title .mark {
position: absolute;
top: 0px;
right: 4.6%;
width:24.4%;
height: 77.3%;
background: url('https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_547159746286546720201511415467编组13.png') no-repeat;
background-size: 100% 100%;
display: flex;
align-items: center;
justify-content: center;
}
.cr_list_item {
width: 20%;
font-size:20px;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(255,255,255,1);
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
.bar_lhd {
position: fixed;
bottom: 0px;
left: 0px;
width: 100%;
height: 21.3vh;
background: url('https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_4197159746069577320201511455773图层6 拷贝.png') no-repeat;
background-size: 100% 100%;
}
.fenye_lhd {
width: 150px;
position: absolute;
bottom: 10px;
left: calc(50% - 75px);
font-size: 16px;
display: flex;
flex-direction: row;
justify-content: space-between;
z-index: 9999;
}
.fenye_lhd span {
cursor: pointer;
}
\ No newline at end of file
<div class="enterprisecontrast">
<div class="header_lhd">
<img class="left_button" src="https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_17771597459611381202015104651381编组11.png" @click="fanhui" alt="">
<span class="left_l">{{name2}}</span>
<img class="vs" src="https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_9771597459599608202015104639608编组9.png" alt="">
<span class="right_h">{{name1}}</span>
</div>
<div class="con_left">
<div class="con_left_title">
<span></span>
<span>专利总量</span>
<span>专利质量得分</span>
<span>专利成长率</span>
<span>总评分</span>
</div>
<div class="cl_list" v-for="(item,key) in arr1" :key="key">
<div class="cl_list_title">
{{item.keyword}}
<div class="mark">{{item.iconscore}}</div>
</div>
<div class="cl_list_item">
<div class="cl_text">{{item.patentnum}}</div>
<div class="cl_jdt"><div class="cl_zzt" :style="\'width:\' + Math.ceil((item.patentnum/item.totalnum)*100) + \'%;\' + colorArr[0]"></div>{{Math.ceil((item.patentnum/item.totalnum)*100)}}%</div>
</div>
<div class="cl_list_item">
<div class="cl_text">{{item.patentquality}}</div>
<div class="cl_jdt"><div class="cl_zzt" :style="\'width:\' + item.patentquality + \'%;\' + colorArr[1]"></div>{{item.patentquality}}%</div>
</div>
<div class="cl_list_item">
<div class="cl_text">{{item.patentrate}}</div>
<div class="cl_jdt"><div class="cl_zzt" :style="\'width:\' + item.patentrate + \';\' + colorArr[2]"></div>{{item.patentrate}}</div>
</div>
<div class="cl_list_item">
<div class="cl_text">{{item.totalscore}}</div>
<div class="cl_jdt"><div class="cl_zzt" :style="\'width:\' + item.totalscore + \'%;\' + colorArr[3]"></div>{{item.totalscore}}%</div>
</div>
</div>
</div>
<div class="con_right">
<div class="con_right_title">
<span></span>
<span>专利总量</span>
<span>专利质量得分</span>
<span>专利成长率</span>
<span>总评分</span>
</div>
<div class="cr_list" v-for="(item,key) in arr2" :key="key">
<div class="cr_list_title">
{{item.keyword}}
<div class="mark">{{item.iconscore}}</div>
</div>
<div class="cl_list_item">
<div class="cl_text">{{item.patentnum}}</div>
<div class="cl_jdt"><div class="cl_zzt" :style="\'width:\' + Math.ceil((item.patentnum/item.totalnum)*100) + \'%;\' + colorArr[0]"></div>{{Math.ceil((item.patentnum/item.totalnum)*100)}}%</div>
</div>
<div class="cl_list_item">
<div class="cl_text">{{item.patentquality}}</div>
<div class="cl_jdt"><div class="cl_zzt" :style="\'width:\' + item.patentquality + \'%;\' + colorArr[1]"></div>{{item.patentquality}}%</div>
</div>
<div class="cl_list_item">
<div class="cl_text">{{item.patentrate}}</div>
<div class="cl_jdt"><div class="cl_zzt" :style="\'width:\' + item.patentrate + \';\' + colorArr[2]"></div>{{item.patentrate}}</div>
</div>
<div class="cl_list_item">
<div class="cl_text">{{item.totalscore}}</div>
<div class="cl_jdt"><div class="cl_zzt" :style="\'width:\' + item.totalscore + \'%;\' + colorArr[3]"></div>{{item.totalscore}}%</div>
</div>
</div>
</div>
<div class="fenye_lhd">
<span @click="shang">上一页</span>{{pageSize/5 + 1}}/{{Math.ceil(arrt1.length / 5)}}<span @click="xia">下一页</span>
</div>
<div class="bar_lhd"></div>
</div>
\ No newline at end of file
{
template:'${tmpl}',
data:function(){
return {
name1: '',
name2: '',
text1: '',
text2: '',
colorArr:[
'background:linear-gradient(90deg,rgba(50,197,255,1) 0%,rgba(97,228,255,1) 100%);','background:linear-gradient(270deg,rgba(155,102,255,1) 0%,rgba(98,54,255,1) 100%);',
'background:linear-gradient(270deg,rgba(252,219,0,1) 0%,rgba(247,181,0,1) 100%);','background:linear-gradient(270deg,rgba(121,237,220,1) 0%,rgba(28,240,154,1) 100%);'
],
arr1: [],
arr2: [],
pageSize: 0,
arrLength: 0,
arrt1: [],
arrt2: []
}
},
mounted:function(){
},
created:function(){
this.name1=this.$router.history.current.query.name1 || "";
this.name2=this.$router.history.current.query.name2 || "";
this.text1=this.$router.history.current.query.text1 || "";
this.text2=this.$router.history.current.query.text2 || "";
console.log(this.name1, this.name2);
this.analysisInfo()
},
methods:{
fanhui() {
this.$root.pushx({
name:"/competitiveanalysis",
params:{entName: this.name2}
});
},
shang() {
if (this.pageSize > 0) {
this.pageSize = this.pageSize - 5;
this.arr1 = this.arrt1.slice(this.pageSize, this.pageSize + 5);
this.arr2 = this.arrt2.slice(this.pageSize, this.pageSize + 5);
}else {
console.log('没有了')
}
},
xia() {
if (this.arrLength > (this.pageSize + 5)) {
this.pageSize = this.pageSize + 5;
this.arr1 = this.arrt1.slice(this.pageSize, this.pageSize + 5);
this.arr2 = this.arrt2.slice(this.pageSize, this.pageSize + 5);
}else {
console.log('没有了')
}
},
analysisInfo(){
var obj={company1:"", company2: '', keyword1: '', keyword2: ''};
if(this.name1 && this.name2 && this.text1 && this.text2){
obj.company1 = this.name1;
obj.company2 = this.name2;
obj.keyword1 = this.text1;
obj.keyword2 = this.text2;
}else{
return ;
}
this.$root.showMask();
this.$root.getReq("web/patentycCtl/competitionAnalysisContex",obj).then(d=>{
console.log(d);
if(d && d.status==0){
this.arrLength = d.data.arrt1.length;
this.arrt1 = d.data.arrt1;
this.arrt2 = d.data.arrt2;
this.arr1 = d.data.arrt1.slice(this.pageSize, this.pageSize + 5);
this.arr2 = d.data.arrt2.slice(this.pageSize, this.pageSize + 5);
}
this.$root.hideMask();
}).catch(e=>{
this.$root.hideMask();
})
},
},
computed:{
},
vname:"gsb-enterprisecontrast"
}
......@@ -25,8 +25,8 @@
<div class="banner-more">更多 <i class="el-icon-arrow-right"></i></div>
<transition name="el-zoom-in-bottom">
<div class="banner-more-pop-up" v-show="show2">
<div class="banner-more-pop-up-item" @click="navRoute(\'知识产权运营\')">智能翻译 <i class="el-icon-arrow-right"></i></div>
<div class="banner-more-pop-up-item" @click="navRoute(\'智能采集\')"> 智能分类<i class="el-icon-arrow-right"></i></div>
<div class="banner-more-pop-up-item" @click="navRoute(\'智能翻译\')">智能翻译 <i class="el-icon-arrow-right"></i></div>
<div class="banner-more-pop-up-item" @click="navRoute(\'智能分类\')"> 智能分类<i class="el-icon-arrow-right"></i></div>
<div class="banner-more-pop-up-item" @click="navRoute(\'智能采集\')">智能采集 <i class="el-icon-arrow-right"></i></div>
</div>
</transition>
......@@ -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">更多 >></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>
......@@ -84,7 +82,7 @@
</div>
<div class="home-item" style="height:665px">
<div class="home-main">
<div class="content-title">IP智慧管理</div>
<div class="content-title">企业智慧管理</div>
<div class="content-name" style="margin-bottom: 49px;">企业、高校、科研院所等创新主体的决策、管理功能</div>
<img src="/imgs/home/a3.png" alt="">
</div>
......
......@@ -68,13 +68,43 @@
contentArr: [
{
img:'background: url(/imgs/home/nav1.png) no-repeat;',
name:'热门专利'
name:'热门专利',
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:'热门科技资讯'
name:'热门科技资讯',
url: 'https://patent.aminer.cn/#/push/news',
itemArr:[
{
title: ''
},{
title: ''
},{
title: ''
}
]
},{
img:'background: url(/imgs/home/nav3.jpg) no-repeat;',
name:'热门文献'
name:'热门文献',
url:'https://patent.aminer.cn/#/push/paper',
itemArr:[
{
title: ''
},{
title: ''
},{
title: ''
}
]
},
],
bannerTabsArr: [
......@@ -92,7 +122,7 @@
},
{
img:"/imgs/home/icon3.png",
name:'IP创新管理'
name:'企业智慧管理'
},
{
img:"/imgs/home/icon5.png",
......@@ -121,7 +151,14 @@
channels:[],
keyIcon: null,
keyIcon1: null,
BannerHeight:''
BannerHeight:'',
orbitRadius: null,
radius: null,
orbitX: null,
orbitY: null,
timePassed: null,
speed: null,
alpha: null
}
},
mounted:function(){
......@@ -140,11 +177,14 @@
},3000);
});
this.xingkong();
var that = this;
$(window).resize(function(){
that.xingkong()
if (that.$route.path == '/') {
that.xingkong()
}
})
/*$('.home-banner').starfield({
starDensity: 2.0,
......@@ -161,8 +201,37 @@
that.BannerHeight = window.innerHeight;
});
this.$root.typeHome = true;
this.aminerpapers();
this.aminerarticle();
},
methods:{
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;
},
......@@ -174,19 +243,23 @@
ctx = canvas.getContext('2d');
ctx.clearRect(0,0,canvas.width,canvas.height),
ctx.beginPath(),
w = 0,
h = 0,
w = canvas.width = window.innerWidth,
h = canvas.height = window.innerHeight,
hue = 217,
stars = [],
count = 0,
maxStars = 1300;
console.log(maxStars);
var canvas2 = document.createElement('canvas'),
ctx2 = canvas2.getContext('2d');
ctx2.clearRect(0,0,canvas2.width,canvas2.height),
ctx2.beginPath(),
ctx2.fillStyle = null,
canvas2.width = 100;
canvas2.height = 100;
var half = canvas2.width / 2,
......@@ -222,23 +295,23 @@
diameter = Math.round(Math.sqrt(max * max + max * max));
return diameter / 2;
};
console.log(w,h);
var Star = function() {
this.orbitRadius = random(maxOrbit(w, h));
this.orbitRadius = random(maxOrbit(w, h));
this.radius = random(60, this.orbitRadius) / 8;
this.radius = random(60, this.orbitRadius) / 8;
this.orbitX = w / 2;
this.orbitY = h / 2;
this.timePassed = random(0, maxStars);
this.speed = random(this.orbitRadius) / 50000;
this.alpha = random(2, 10) / 10;
this.orbitX = w / 2;
this.orbitY = h / 2;
this.timePassed = random(0, maxStars);
this.speed = random(this.orbitRadius) / 50000;
this.alpha = random(2, 10) / 10;
count++;
stars[count] = this;
count++;
stars[count] = this;
};
console.log(new Star());
Star.prototype.draw = function() {
var x = Math.sin(this.timePassed) * this.orbitRadius + this.orbitX,
y = Math.cos(this.timePassed) * this.orbitRadius + this.orbitY,
......@@ -256,7 +329,7 @@
};
for (var i = 0; i < maxStars; i++) {
new Star();
new Star();
};
function animation() {
......@@ -290,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){
......
......@@ -2,11 +2,13 @@
template:'${tmpl}',
data:function(){
return {
url:"",
url:""
}
},
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;
......@@ -16,7 +18,7 @@
},
methods:{
},
vname:"gsb-iframehtml"
}
<div style="width:100%;height:100%;">
<div style="width:200px;height:100%;float: left;background-color: rgb(84, 92, 100);">
<el-menu
:default-active="0"
class="el-menu-vertical-demo"
@select="handleSelect"
background-color="#545c64"
text-color="#fff"
active-text-color="#ffd04b">
<el-menu-item v-for="(item, key) in urlTabs" :key="key" :index="key">
<i class="el-icon-menu"></i>
<span slot="title">{{item.name}}</span>
</el-menu-item>
</el-menu>
</div>
<div style="width:calc(100% - 200px);height:100%;float: left;">
<iframe style="width:100%;height:100%;" :src="url" frameborder="0"></iframe>
</div>
</div>
{
template:'${tmpl}',
data:function(){
return {
url:"",
urlTabs:[
{
name: '知识产权运营',
/*url: 'https://www.cnuip.com/'*/
url: 'http://101.132.173.37:8110/'
},
{
name: '专利超市',
url: 'http://101.132.173.37:8110/goods/patent.html'
},{
name: '企业服务',
url: 'http://101.132.173.37:8110/goods/service_z01.html'
},{
name: '科技成果',
url: 'http://101.132.173.37:8110/achievement'
},{
name: '知产百科',
url: 'http://101.132.173.37:8110/article/baike/'
},{
name: '问专家',
url: 'http://101.132.173.37:8110/shop_3.html'
}
]
}
},
mounted:function(){
console.log(this.$root.currentUser, '调用方法');
var url = this.$router.history.current.query.url;
if(url){
url = decodeURIComponent(url);
this.url = url;
}
},
created:function(){
},
methods:{
handleSelect(val) {
console.log(val);
this.url = this.urlTabs[val].url
}
},
vname:"gsb-iframehtmlTabs"
}
......@@ -2,6 +2,14 @@
width: 100%;
overflow: hidden;
}
.yuan {
display: inline-block;
width: 4px;
height: 4px;
border-radius: 50%;
background-color: #fff;
margin-right: 10px;
}
.activeMenu8-title {
width: 100%;
line-height: 60px;
......@@ -17,7 +25,6 @@
border: 1px solid #ccc;
}
.activeMenu8-main-right {
min-width: 190px;
min-height: 495px;
float: left;
margin-left: 30px;
......@@ -120,4 +127,20 @@
}
.returnsPage > span {
cursor: pointer;
}
.zipImg {
display: inline-block;
position: relative;
width: 356px;
height: 232px;
background: url('https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_39961594794942854202015143542854微信图片_20200715134452.png') no-repeat;
background-size: 100% 100%;
}
.zipSpan {
width: 77px;
height: 26px;
position: absolute;
bottom: 28px;
right: 21px;
cursor: pointer;
}
\ No newline at end of file
<div class="patentanalysis">
<div class="patentanalysis-wrap">
<div class="patentanalysis-leftpart">
<el-menu :default-active="activeMenu" style="border-right: solid 1px #ffffff" @select="handleSelect">
<!-- <el-menu :default-active="activeMenu" style="border-right: solid 1px #ffffff" @select="handleSelect">
<el-menu-item v-for="(item,index) in dimensionList" :index="index" :key="index" class="patentanalysis-menu" >
<!-- <i class="el-icon-menu"></i> -->
<i class="el-icon-menu"></i>
<span slot="title" >{{item.name}}</span>
</el-menu-item>
</el-menu> -->
<el-menu
default-active="activeMenu"
class="el-menu-vertical-demo"
@select="handleSelect"
background-color="#1e1e28"
text-color="#fff"
style="height: 100%;"
active-text-color="#00C1DE">
<el-menu-item index="0">
<i class="el-icon-news"></i>
<span slot="title">首页</span>
</el-menu-item>
<el-submenu index="1">
<template slot="title">
<i class="el-icon-date"></i>
<span>智能统计</span>
</template>
<el-menu-item v-for="(item,index) in dimensionListObj" :index="index + 1" :key="index + 1" ><i class="yuan"></i>{{item.name}}</el-menu-item>
</el-submenu>
<el-menu-item v-for="(item,index) in dimensionList2" :index="index + 8" :key="index + 8">
<i :class="item.icon"></i>
<span slot="title">{{item.name}}</span>
</el-menu-item>
<el-submenu index="9">
<template slot="title">
<i class="el-icon-view"></i>
<span>智能可视化</span>
</template>
<el-menu-item v-for="(item,index) in dimensionListObj1" :index="index + 10" :key="index + 10" ><i class="yuan"></i>{{item.name}}</el-menu-item>
</el-submenu>
</el-menu>
</div>
......@@ -128,9 +159,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'1\'">
......@@ -179,9 +210,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'2\'">
......@@ -237,9 +268,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'3\'">
......@@ -283,9 +314,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'4\'">
......@@ -332,9 +363,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'5\'">
......@@ -377,9 +408,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'6\'">
......@@ -427,9 +458,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
</div>
......@@ -495,9 +526,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'1\'">
......@@ -544,9 +575,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'2\'">
......@@ -590,9 +621,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'3\'">
......@@ -635,9 +666,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'4\'">
......@@ -681,9 +712,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'5\'">
......@@ -726,9 +757,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
</div>
......@@ -795,9 +826,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'1\'">
......@@ -844,9 +875,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'2\'">
......@@ -893,9 +924,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'3\'">
......@@ -942,9 +973,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'4\'">
......@@ -999,9 +1030,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'5\'">
......@@ -1048,9 +1079,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
</div>
......@@ -1118,9 +1149,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'1\'">
......@@ -1161,9 +1192,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'2\'">
......@@ -1217,9 +1248,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'3\'">
......@@ -1273,9 +1304,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'4\'">
......@@ -1324,9 +1355,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'5\'">
......@@ -1381,9 +1412,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
</div>
......@@ -1446,9 +1477,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'1\'">
......@@ -1492,9 +1523,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'2\'">
......@@ -1538,9 +1569,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<!-- <div v-if="menuItem==\'3\'">
......@@ -1618,9 +1649,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'1\'">
......@@ -1667,9 +1698,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'2\'">
......@@ -1712,9 +1743,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'3\'">
......@@ -1760,9 +1791,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'4\'">
......@@ -1808,9 +1839,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'5\'">
......@@ -1856,9 +1887,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
</div>
......@@ -1918,9 +1949,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'1\'">
......@@ -1967,9 +1998,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'2\'">
......@@ -2012,9 +2043,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'3\'">
......@@ -2058,9 +2089,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'4\'">
......@@ -2111,9 +2142,9 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'5\'">
......@@ -2154,9 +2185,9 @@
</el-row>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
<div v-if="menuItem==\'6\'">
......@@ -2198,9 +2229,11 @@
</div>
</div>
<div v-else class="no-result" style="text-align:center">
<img src="imgs/patentlogo.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
<!-- <div class="no-result-row1">暂无查出您想要的信息~</div> -->
<!-- <div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div> -->
</div>
</div>
......@@ -2208,6 +2241,7 @@
</div>
</div>
<div v-if="activeMenu==\'8\'" class="activeMenu8">
<div v-if="search">
<div v-if="echarts" style="min-width: 1200px;">
<div class="activeMenu8-title"><i class="el-icon-setting"></i>分析报告设置</div>
<div class="activeMenu8-main">
......@@ -2253,6 +2287,18 @@
</div>
</div>
</div>
</div>
<div v-else class="no-result" style="text-align:center;margin-top: 200px">
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
</div>
</div>
<div v-if="activeMenu >= \'10\'">
<div v-if="search">
<iframe id="bdIframe" :src="srcIframe" frameborder="0" width="100%" height="1000"></iframe>
</div>
<div v-else class="no-result" style="text-align:center;margin-top: 200px">
<div class="zipImg"><span class="zipSpan" @click="tiaozhan"></span></div>
</div>
</div>
</div>
</div>
......
......@@ -2,6 +2,10 @@
template: '${tmpl}',
data: function() {
return {
Reporttype: false,
dataUid: '735f9cd0-c103-11ea-9ecd-1d1c3e85a974',
timer: 0,
srcIframe: '',
echartsArr:[
{
echartsRef: 'echarts0',
......@@ -473,7 +477,114 @@
"rgb(33,150,243)","rgb(76,175,80)","rgb(205,220,57)","rgb(255,235,59)","rgb(255,193,7)",
"rgb(255,152,0)","rgb(255,87,34)","rgb(121,85,72)","rgb(158,158,158)","rgb(96,125,139)"
],
dimensionList: [
dimensionListObj:[
{
name: "申请人分析",
list: [
{ code: "", name: "申请人排名" },
{ code: "", name: "申请人归属国分布" },
{ code: "", name: "申请人IPC分布" },
{ code: "", name: "申请人专利类型分布" },
{ code: "", name: "申请人专利法律效力" },
{ code: "", name: "申请人发明授权率" },
{ code: "", name: "申请人申请趋势分析" }
]
},
{
name: "发明人分析",
list: [
{ code: "", name: "发明人排名" },
{ code: "", name: "主要发明人技术构成" },
{ code: "", name: "主要发明人专利类型分布" },
{ code: "", name: "主要发明人专利法律效力" },
{ code: "", name: "主要发明人申请趋势" },
{ code: "", name: "主要发明人公开趋势" },
]
},
{
name: "区域分析",
list: [
{ code: "", name: "申请人归属国分布" },
{ code: "", name: "全国专利分布" },
{ code: "", name: "各国专利分布" },
{ code: "", name: "外国在华申请分布" },
{ code: "", name: "主要国家IPC分布" },
{ code: "", name: "主要国家申请趋势" },
]
},
{
name: "技术结构分析",
list: [
{ code: "", name: "专利IPC分析" },
{ code: "", name: "外观设计分类分析" },
{ code: "", name: "外国在华专利IPC分布" },
{ code: "", name: "技术领先国家IPC分布" },
{ code: "", name: "发明专利IPC分布" },
{ code: "", name: "主要IPC趋势分析" },
]
},
{
name: "趋势分析",
list: [
{ code: "", name: "申请趋势" },
{ code: "", name: "公开趋势" },
{ code: "", name: "授权趋势" },
]
},
{
name: "法律状态分析",
list: [
{ code: "", name: "各专利类型分布" },
{ code: "", name: "法律效力分布" },
{ code: "", name: "当前法律状态分布" },
{ code: "", name: "授权状态分布" },
{ code: "", name: "各专利类型申请趋势" },
{ code: "", name: "各专利类型公开趋势" },
]
},
{
name: "代理人/机构分析",
list: [
{ code: "", name: "代理机构排名" },
{ code: "", name: "代理机构专利申请趋势" },
{ code: "", name: "代理机构专利类型分布" },
{ code: "", name: "代理机构发明授权率" },
{ code: "", name: "代理机构IPC分布" },
{ code: "", name: "代理人排名" },
{ code: "", name: "主要代理人专利类型分布" },
]
},
],
dimensionList2: [
{
name: "智能报告",
icon: 'el-icon-tickets'
},
{
name: "智能报表",
icon: 'el-icon-document'
}
],
dimensionListObj1:[
{
name: "主题分析",
icon: 'el-icon-tickets'
},
{
name: "演化分析",
icon: 'el-icon-view'
},
{
name: "关联分析",
icon: 'el-icon-document'
},
{
name: "合著分析",
icon: 'el-icon-document'
}
],
method: '',
dimensionList:[
{
name: "首页",
},
......@@ -555,9 +666,12 @@
},
{
name: "生成报告",
},
{
name: "分析可视化",
}
],
activeMenu: 0,
activeMenu: '0',
menuItem: "0",
echartActive: "0",
ipcActive: "3",
......@@ -2091,18 +2205,25 @@
}
},
mounted: function() {
},
created: function() {
console.log('wslhd');
this.echartsArr = [];
console.log(localStorage.getItem("patentyc_patentanalysis"));
var object=JSON.parse(localStorage.getItem("patentyc_patentanalysis"));
this.search = this.$router.history.current.query.search;
var object=JSON.parse(localStorage.getItem("patentyc_patentanalysis")) || '';
this.search = this.$router.history.current.query.search || '';
this.obj=object;
console.log(this.search);
console.log(this.obj);
},
methods: {
tiaozhan() {
this.$root.pushx({
name:"/patentsimplesearch",
title:"专利检索"
});
},
btnPrintClick () {
$('.returnsPage').css('display','none');
let targetDom = $("#ddd");
......@@ -2720,7 +2841,8 @@
}
},
handleSelect(key, keyPath) {
this.activeMenu = key;
console.log(key, keyPath);
this.activeMenu = key.toString();
this.menuItem = "0";
this.echartActive = "0";
this.ipcActive = "3";
......@@ -2740,8 +2862,26 @@
this.agentRank();
}else if (this.activeMenu == "8") {
this.returnsPage();
}else if (this.activeMenu >= "10") {
console.log(this.dimensionListObj1[key - 10].name);
this.method = this.dimensionListObj1[key - 10].name;
if (this.Reporttype) {
this.ezGetReport()
}else {
this.ezReportUploadData();
}
setTimeout(()=> {this.reinitIframe()}, 3000);
}
},
reinitIframe(){
var iframe = document.getElementById("bdIframe");
console.log(iframe);
const deviceHeight = document.documentElement.clientHeight;
iframe.style.height = (Number(deviceHeight)-70) + 'px';
console.log(deviceHeight)
},
/*同一纬度下不同角度的分析切换 */
styleset(index){
if (this.menuItem == index) {
......@@ -6918,6 +7058,76 @@
}
});
},
/*分析可视化*/
ezReportUploadData(){
var that=this;
console.log("--------分析可视化前------------");
var params = { search: this.search, obj: this.obj };
const loadingbyc = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.$root.postReq("web/patentycCtl/ezReportUploadData",params).then(function (d) {
console.log("---------------------------------------------");
console.log(d);
loadingbyc.close();
if(d.status == 0 && d.data){
that.dataUid=d.data.uid;
that.ReadyReport()
/*that.timer = setInterval(that.ReadyReport(), 1000);*/
}else{
that.$message.error('分析失败,请重试!');
that.agentRankShow=false;
}
});
},
ReadyReport() {
var that=this;
console.log("--------分析可视化中------------");
var params = { "uid": that.dataUid };
const loadingbyc = this.$loading({
lock: true,
text: '报告生成中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.timer++;
console.log(this.timer,'ssssssssssssssssssssss');
this.$root.postReq("web/patentycCtl/ReadyReport",params).then(function (d) {
console.log("---------------------------------------------");
console.log(d);
if(d.status == 0){
loadingbyc.close();
that.Reporttype = true;
that.ezGetReport()
}else{
if (that.timer == 20) {
loadingbyc.close();
return that.$message.error('分析失败,请重试!');
};
setTimeout(()=> {that.ReadyReport()}, 10000);
that.agentRankShow=false;
}
});
},
ezGetReport() {
var that=this;
console.log("--------分析可视化后------------");
var params = { "uid": that.dataUid, "type": 'html', method: this.method };
this.$root.postReq("web/patentycCtl/ezGetReport",params).then(function (d) {
console.log("---------------------------------------------");
console.log(d);
if(d.status == 0){
that.srcIframe = d.data;
}else{
that.agentRankShow=false;
}
});
},
/*代理人/机构分析-代理机构专利申请趋势*/
agentApplyTrend(){
var that=this;
......
......@@ -274,7 +274,7 @@
</div>
<div v-if="!a">
<div v-if="datalist2.length==0" class="no-result" style="text-align: center;">
<img src="imgs/patentlogo.png" style="width:300px"/>
<img src="/imgs/home/logos.png" style="width:300px"/>
<div class="no-result-row1">暂无查出您想要的信息~</div>
<div class="no-result-row1">请输入关键词或选择检索数据范围进行检索!</div>
</div>
......@@ -532,5 +532,5 @@
</span>
<span class="wave-keywords-text animated fadeIn">控制模块</span>
</div>
</div>
</div>
</div>
......@@ -20,7 +20,7 @@
"continuation-local-storage": "^3.2.1",
"cookie-parser": "^1.4.3",
"crypto": "^1.0.1",
"crypto-js": "^3.1.9-1",
"crypto-js": "^3.3.0",
"easyimage": "^3.1.0",
"ejs": "^2.5.8",
"element-ui": "^2.4.0",
......@@ -48,6 +48,7 @@
"sequelize-cli": "^4.1.1",
"serve-favicon": "^2.4.5",
"sha1": "^1.1.1",
"soap": "^0.31.0",
"socket.io": "^2.1.1",
"uuid": "^3.2.1",
"weixin-pay": "^1.1.7",
......@@ -67,6 +68,7 @@
"gulp-tap": "^1.0.1",
"imagemin-pngquant": "^7.0.0",
"merge-stream": "^2.0.0",
"minimist": "^1.2.0"
"minimist": "^1.2.0",
"soap": "^0.31.0"
}
}
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