|
@@ -105,33 +105,6 @@
|
|
<el-container>
|
|
<el-container>
|
|
<el-main ref="main3d" :class="headMenu_2Show?'maxh400':'maxh221'" style="padding:0">
|
|
<el-main ref="main3d" :class="headMenu_2Show?'maxh400':'maxh221'" style="padding:0">
|
|
<tool1 @startimg="startimg"></tool1>
|
|
<tool1 @startimg="startimg"></tool1>
|
|
- <!-- <div class="toolmain lbg_color3 el-menu">
|
|
|
|
- <div class="imgzong itemimg1">
|
|
|
|
- <div class="item1" v-for="(item,index) in toollist" :key="'tl1-'+ index" :class="{activeOrange1:active=='tl1-'+ index}" @click="meshclick($event,index,'tl1-'+ index)">
|
|
|
|
- <el-tooltip class="item" effect="dark" :content="item.titlie" placement="bottom">
|
|
|
|
- <el-image :src="item.icon" fit="cover" />
|
|
|
|
- </el-tooltip>
|
|
|
|
- </div>
|
|
|
|
- <span class="shu">|</span>
|
|
|
|
- <div class="item1" v-for="(item,index) in toollist2" :key="'tl2-'+ index" :class="{activeOrange1:active=='tl2-'+ index}" @click="meshclick($event,index,'tl2-'+ index)">
|
|
|
|
- <el-tooltip class="item" effect="dark" :content="item.titlie" placement="bottom">
|
|
|
|
- <el-image :src="item.icon" fit="cover" />
|
|
|
|
- </el-tooltip>
|
|
|
|
- </div>
|
|
|
|
- <span class="shu">|</span>
|
|
|
|
- <div class="item1" v-for="(item,index) in toollist3" :key="'tl3-'+ index" :class="{activeOrange1:active=='tl3-'+ index}" @click="meshclick($event,index,'tl3-'+ index)">
|
|
|
|
- <el-tooltip class="item" effect="dark" :content="item.titlie" placement="bottom">
|
|
|
|
- <el-image :src="item.icon" fit="cover" />
|
|
|
|
- </el-tooltip>
|
|
|
|
- </div>
|
|
|
|
- <span class="shu">|</span>
|
|
|
|
- <div class="item1" v-for="(item,index) in toollist4" :key="'tl4-'+ index" :class="{activeOrange2:active=='tl4-'+ index}" :tabIndex="index" @click="meshclick($event,index,'tl4-'+ index)">
|
|
|
|
- <el-tooltip class="item" effect="dark" :content="item.titlie" placement="bottom">
|
|
|
|
- <el-image :src="item.icon" fit="cover" />
|
|
|
|
- </el-tooltip>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div> -->
|
|
|
|
<!-- 加载折线图 -->
|
|
<!-- 加载折线图 -->
|
|
<echartsHFCD ref="monitor" v-if="femnum=='HCFDLab'" @getthislog='getthislog' @restimeyear='restimeyear' :projectId='pid' :nmlsteps="Number(numsteps)"></echartsHFCD>
|
|
<echartsHFCD ref="monitor" v-if="femnum=='HCFDLab'" @getthislog='getthislog' @restimeyear='restimeyear' :projectId='pid' :nmlsteps="Number(numsteps)"></echartsHFCD>
|
|
<!-- 加载图片 -->
|
|
<!-- 加载图片 -->
|
|
@@ -466,8 +439,8 @@ methods:{
|
|
|
|
|
|
},
|
|
},
|
|
init(){
|
|
init(){
|
|
- //this.pid=this.$route.query.pid;
|
|
|
|
- this.pid='31f117acb7e74232a3267b091391eab2';
|
|
|
|
|
|
+ this.pid=this.$route.query.pid;
|
|
|
|
+ // this.pid='31f117acb7e74232a3267b091391eab2';
|
|
this.solverchange('HCFDLab');
|
|
this.solverchange('HCFDLab');
|
|
|
|
|
|
},
|
|
},
|
|
@@ -495,13 +468,7 @@ methods:{
|
|
this.$refs.hcfd.hcfdchange(this.objopp,res.solverConfigid);
|
|
this.$refs.hcfd.hcfdchange(this.objopp,res.solverConfigid);
|
|
this.solverConfigid=res.solverConfigid;
|
|
this.solverConfigid=res.solverConfigid;
|
|
let data= JSON.parse(this.objopp);
|
|
let data= JSON.parse(this.objopp);
|
|
- // this.startimg("init");
|
|
|
|
- //this.startimg("loaddata");
|
|
|
|
- setTimeout(function(){
|
|
|
|
- // that.initWebSocket();
|
|
|
|
- },500)
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ this.startimg("init",'loaddata');
|
|
this.numsteps=data.nmlParam.steps;
|
|
this.numsteps=data.nmlParam.steps;
|
|
console.log(this.numsteps);
|
|
console.log(this.numsteps);
|
|
})
|
|
})
|
|
@@ -510,8 +477,6 @@ methods:{
|
|
// this.$refs.fem.femchange(res.parameterObj,res.solverConfigid);
|
|
// this.$refs.fem.femchange(res.parameterObj,res.solverConfigid);
|
|
this.$refs.fem.femchange(res.parameterObj,'abc6db6cb2c0482eb7964df6fea02c70');
|
|
this.$refs.fem.femchange(res.parameterObj,'abc6db6cb2c0482eb7964df6fea02c70');
|
|
})
|
|
})
|
|
-
|
|
|
|
-
|
|
|
|
}else{
|
|
}else{
|
|
|
|
|
|
}
|
|
}
|
|
@@ -524,6 +489,7 @@ methods:{
|
|
fun(){
|
|
fun(){
|
|
this.$refs.monitor.getwebsocket();
|
|
this.$refs.monitor.getwebsocket();
|
|
this.$refs.monitor.container_show=true;
|
|
this.$refs.monitor.container_show=true;
|
|
|
|
+ this.$refs.TFileStream.imgtupian=false;
|
|
},
|
|
},
|
|
|
|
|
|
// 日志的文本框
|
|
// 日志的文本框
|
|
@@ -565,8 +531,8 @@ loadingend(loading){
|
|
|
|
|
|
},
|
|
},
|
|
// 文件渲染之前的动作
|
|
// 文件渲染之前的动作
|
|
- startimg(action){
|
|
|
|
- console.log(2222);
|
|
|
|
|
|
+ startimg(action,action2){
|
|
|
|
+ console.log(111)
|
|
let params = {
|
|
let params = {
|
|
transCode: "AFT001",// 服务器渲染实例接口创建推流
|
|
transCode: "AFT001",// 服务器渲染实例接口创建推流
|
|
pid:this.pid,
|
|
pid:this.pid,
|
|
@@ -578,10 +544,30 @@ let params = {
|
|
request(params)
|
|
request(params)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
console.log(res);
|
|
console.log(res);
|
|
|
|
+ this.startimgloaddata(action2)
|
|
|
|
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
- this.loadingend(this.loadingopen());
|
|
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ startimgloaddata(action){
|
|
|
|
+ let that=this;
|
|
|
|
+let params = {
|
|
|
|
+ transCode: "AFT001",// 服务器渲染实例接口创建推流
|
|
|
|
+ pid:this.pid,
|
|
|
|
+ solverConfigId: this.solverConfigid,
|
|
|
|
+ action:action,
|
|
|
|
+ paramJson:"",
|
|
|
|
+ };
|
|
|
|
+ this.loading = true;
|
|
|
|
+ request(params)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ console.log(res);
|
|
|
|
+ that.initWebSocket();
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+
|
|
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -604,10 +590,10 @@ let params = {
|
|
this.websock.close()
|
|
this.websock.close()
|
|
},
|
|
},
|
|
websocketonmessage(e){ //数据接收
|
|
websocketonmessage(e){ //数据接收
|
|
-
|
|
|
|
|
|
+ // this.loadingopen();
|
|
|
|
+ console.log(e);
|
|
try{
|
|
try{
|
|
- const redata = JSON.parse(e.data);
|
|
|
|
- console.log(redata.img);
|
|
|
|
|
|
+ const redata = JSON.parse(e.data);
|
|
|
|
|
|
// if(redata.hasOwnProperty("data")){
|
|
// if(redata.hasOwnProperty("data")){
|
|
// }else{
|
|
// }else{
|
|
@@ -617,9 +603,9 @@ let params = {
|
|
// }
|
|
// }
|
|
// if(redata.data!=undefined){
|
|
// if(redata.data!=undefined){
|
|
// this.$refs.monitor.hiden();
|
|
// this.$refs.monitor.hiden();
|
|
|
|
+ this.$refs.monitor.container_show=false;
|
|
this.$refs.TFileStream.imgtupian=true;
|
|
this.$refs.TFileStream.imgtupian=true;
|
|
this.$refs.TFileStream.fetchData(redata);
|
|
this.$refs.TFileStream.fetchData(redata);
|
|
- console.log(22222)
|
|
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|