Commit 34035039 by 李宏达

lhd

parent 5b7f4683
......@@ -180,7 +180,7 @@
<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-row style="border-bottom:none;padding: 0px;min-width: 1244px;">
<el-col :span="4" style="min-width:205px;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="">
......
......@@ -17,7 +17,6 @@
border: 1px solid #ccc;
}
.activeMenu8-main-right {
min-width: 190px;
min-height: 495px;
float: left;
margin-left: 30px;
......
......@@ -2256,9 +2256,9 @@
</div>
</div>
</div>
<div v-if="activeMenu==\'9\'" class="activeMenu8">
<div style="min-width: 1200px;">
<iframe name="midFraim" id="midFraim" src="http://118.24.142.85:81/ezPicture.aspx?method=%E6%99%BA%E8%83%BD%E5%8F%AF%E8%A7%86%E5%8C%96&guid=5c85c50a-c57c-401c-b534-2a78facd0d0d" frameborder="0" width="100%"></iframe>
<div v-if="activeMenu==\'9\'">
<div>
<iframe id="bdIframe" :src="srcIframe" frameborder="0" width="100%" height="1000"></iframe>
</div>
</div>
</div>
......
......@@ -2,6 +2,9 @@
template: '${tmpl}',
data: function() {
return {
dataUid: '735f9cd0-c103-11ea-9ecd-1d1c3e85a974',
timer: 0,
srcIframe: 'http://118.24.142.85:81/ezPicture.aspx?method=%E6%99%BA%E8%83%BD%E5%8F%AF%E8%A7%86%E5%8C%96&guid=5c85c50a-c57c-401c-b534-2a78facd0d0d',
echartsArr:[
{
echartsRef: 'echarts0',
......@@ -2094,9 +2097,7 @@
}
},
mounted: function() {
window.onresize = function(){
this.changeMobsfIframe()
}
},
created: function() {
console.log('wslhd');
......@@ -2109,13 +2110,6 @@
console.log(this.obj);
},
methods: {
changeMobsfIframe(){
const mobsf = document.getElementById('midFraim');
const deviceWidth = document.body.clientWidth;
const deviceHeight = document.body.clientHeight;
console.log(mobsf,'????????????????????');
mobsf.height = (Number(deviceHeight)-0) + 'px';
},
tiaozhan() {
this.$root.pushx({
name:"/patentsimplesearch",
......@@ -2760,9 +2754,18 @@
}else if (this.activeMenu == "8") {
this.returnsPage();
}else if (this.activeMenu == "9") {
this.changeMobsfIframe();
/*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) {
......@@ -6939,6 +6942,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.agentRankShow=false;
}
});
},
ReadyReport() {
var that=this;
console.log("--------分析可视化中------------");
var params = { "uid": that.dataUid };
const loadingbyc = this.$loading({
lock: true,
text: 'Loading',
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();
/*clearInterval(that.timer);*/
that.ezGetReport()
}else{
if (that.timer == 20) {
loadingbyc.close();
return that.$message.error('分析失败,请重试!');
};
setTimeout(()=> {that.ReadyReport()}, 1000);
that.agentRankShow=false;
}
});
},
ezGetReport() {
var that=this;
console.log("--------分析可视化后------------");
var params = { "uid": that.dataUid, "type": 'html' };
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;
......
......@@ -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",
......
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