|
@@ -129,7 +129,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button type="info" @click="dialog.scale_visiable = false">{{ $t("HCFD.file.cancel")}}</el-button>
|
|
<el-button type="info" @click="dialog.scale_visiable = false">{{ $t("HCFD.file.cancel")}}</el-button>
|
|
- <el-button type="primary" @click="dialog.scale_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.scale_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -184,7 +184,7 @@
|
|
<el-button type="info" @click="dialog.translation_visiable = false"
|
|
<el-button type="info" @click="dialog.translation_visiable = false"
|
|
> {{ $t("HCFD.file.cancel")}} </el-button
|
|
> {{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.translation_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.translation_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -238,7 +238,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button type="info" @click="dialog.rotation_visiable = false">{{ $t("HCFD.file.cancel")}}</el-button>
|
|
<el-button type="info" @click="dialog.rotation_visiable = false">{{ $t("HCFD.file.cancel")}}</el-button>
|
|
- <el-button type="primary" @click="dialog.rotation_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.rotation_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}} </el-button
|
|
>{{ $t("HCFD.file.ok")}} </el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -287,7 +287,7 @@
|
|
@click="referencevisiable((dialog.type_visiable = false))"
|
|
@click="referencevisiable((dialog.type_visiable = false))"
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.type_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.type_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -341,7 +341,7 @@
|
|
@click="referencevisiable((dialog.parallel_visiable = false))"
|
|
@click="referencevisiable((dialog.parallel_visiable = false))"
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.parallel_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.parallel_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -385,7 +385,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button type="info" @click="dialog. equation_visiable = false"> {{ $t("HCFD.file.cancel")}} </el-button>
|
|
<el-button type="info" @click="dialog. equation_visiable = false"> {{ $t("HCFD.file.cancel")}} </el-button>
|
|
- <el-button type="primary" @click="dialog.equation_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.equation_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}} </el-button
|
|
>{{ $t("HCFD.file.ok")}} </el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -455,7 +455,7 @@
|
|
@click="dialog.inviscid_visiable= false"
|
|
@click="dialog.inviscid_visiable= false"
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.inviscid_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.inviscid_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -647,7 +647,7 @@
|
|
@click="dialog.dynamic_visiable = false"
|
|
@click="dialog.dynamic_visiable = false"
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.dynamic_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.dynamic_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -717,7 +717,7 @@
|
|
@click="dialog.nonitertial_visiable = false"
|
|
@click="dialog.nonitertial_visiable = false"
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.nonitertial_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.nonitertial_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -788,7 +788,7 @@
|
|
<el-button type="info" @click="referencevisiable((dialog.fluxrc_visiable = false))"
|
|
<el-button type="info" @click="referencevisiable((dialog.fluxrc_visiable = false))"
|
|
> {{ $t("HCFD.file.cancel")}} </el-button
|
|
> {{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.fluxrc_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.fluxrc_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -870,7 +870,7 @@
|
|
<el-button type="info" @click="referencevisiable((dialog.time_visiable = false))"
|
|
<el-button type="info" @click="referencevisiable((dialog.time_visiable = false))"
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.time_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.time_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -963,7 +963,7 @@
|
|
@click="dialog.border_visiable = false"
|
|
@click="dialog.border_visiable = false"
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.border_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.border_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}} </el-button
|
|
>{{ $t("HCFD.file.ok")}} </el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -1059,7 +1059,7 @@
|
|
@click="dialog.reference_visiable = false"
|
|
@click="dialog.reference_visiable = false"
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.reference_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.reference_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -1112,7 +1112,7 @@
|
|
<el-button type="info" @click="referencevisiable((dialog.xian_visiable = false))"
|
|
<el-button type="info" @click="referencevisiable((dialog.xian_visiable = false))"
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.xian_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.xian_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}} </el-button
|
|
>{{ $t("HCFD.file.ok")}} </el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -1232,7 +1232,7 @@
|
|
@click="dialog.initialization_visiable = false"
|
|
@click="dialog.initialization_visiable = false"
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.initialization_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.initialization_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -1409,7 +1409,7 @@
|
|
@click="referencevisiable(dialog.boundaryo_visiable = false)"
|
|
@click="referencevisiable(dialog.boundaryo_visiable = false)"
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>{{ $t("HCFD.file.cancel")}} </el-button
|
|
>
|
|
>
|
|
- <el-button type="primary" @click="dialog.boundaryo_visiable = false"
|
|
|
|
|
|
+ <el-button type="primary" @click="hcfdparam(); dialog.boundaryo_visiable = false"
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>{{ $t("HCFD.file.ok")}}</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
@@ -1872,7 +1872,17 @@ export default {
|
|
echartsHFCD,
|
|
echartsHFCD,
|
|
TFileStream,},
|
|
TFileStream,},
|
|
// websocket,},
|
|
// websocket,},
|
|
- props:["objopp","pid", "exLoading"],
|
|
|
|
|
|
+ props:{
|
|
|
|
+ objopp:String,
|
|
|
|
+ pid:String,
|
|
|
|
+ elodingfalse:{
|
|
|
|
+ type:Boolean,
|
|
|
|
+ default(){
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
checked:false,
|
|
checked:false,
|
|
@@ -2124,7 +2134,6 @@ export default {
|
|
newload: true,
|
|
newload: true,
|
|
runMonitor: true,
|
|
runMonitor: true,
|
|
contourLevel: 3,
|
|
contourLevel: 3,
|
|
- //exLoading:"hidden",
|
|
|
|
|
|
|
|
form: {
|
|
form: {
|
|
u_freestream: "",
|
|
u_freestream: "",
|
|
@@ -2486,6 +2495,7 @@ export default {
|
|
|
|
|
|
this.init();
|
|
this.init();
|
|
},
|
|
},
|
|
|
|
+
|
|
// destroyed() {
|
|
// destroyed() {
|
|
// this.websock.close() //离开路由之后断开websocket连接
|
|
// this.websock.close() //离开路由之后断开websocket连接
|
|
// },
|
|
// },
|
|
@@ -2507,10 +2517,10 @@ hcfdparam(){
|
|
}
|
|
}
|
|
request(params)
|
|
request(params)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- Message({
|
|
|
|
- type: "success",
|
|
|
|
- message: "参数上传,成功",
|
|
|
|
- });
|
|
|
|
|
|
+ // Message({
|
|
|
|
+ // type: "success",
|
|
|
|
+ // message: "参数上传,成功",
|
|
|
|
+ // });
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
})
|
|
})
|
|
@@ -2580,8 +2590,6 @@ hcfdparam(){
|
|
* 更新配置 并求解
|
|
* 更新配置 并求解
|
|
*/
|
|
*/
|
|
async hcfdrun() {
|
|
async hcfdrun() {
|
|
- console.log(1111)
|
|
|
|
-
|
|
|
|
if (this.solverState == "2") {
|
|
if (this.solverState == "2") {
|
|
//上次求解完成
|
|
//上次求解完成
|
|
MessageBox.confirm(
|
|
MessageBox.confirm(
|
|
@@ -2595,32 +2603,31 @@ hcfdparam(){
|
|
)
|
|
)
|
|
.then(() => {
|
|
.then(() => {
|
|
MessageBox.close();
|
|
MessageBox.close();
|
|
- this.exLoading='visible';
|
|
|
|
-
|
|
|
|
|
|
+ this.$emit("exlodingfalse",true)
|
|
this.isSolverEnd = false;
|
|
this.isSolverEnd = false;
|
|
this.hcfdExe();
|
|
this.hcfdExe();
|
|
let _this = this;
|
|
let _this = this;
|
|
let isStop = false;
|
|
let isStop = false;
|
|
- if (!isStop && !_this.isSolverEnd) {
|
|
|
|
|
|
+ // if (!isStop && !_this.isSolverEnd) {
|
|
this.$parent.fun();
|
|
this.$parent.fun();
|
|
- }
|
|
|
|
|
|
+ // }
|
|
|
|
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
Message.info("已取消!");
|
|
Message.info("已取消!");
|
|
MessageBox.close();
|
|
MessageBox.close();
|
|
- this.exLoading='hidden';
|
|
|
|
|
|
+ this.$emit("exlodingfalse",false)
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
- this.exLoading='visible';
|
|
|
|
|
|
+ this.$emit("exlodingfalse",true)
|
|
this.isSolverEnd = false;
|
|
this.isSolverEnd = false;
|
|
this.hcfdExe();
|
|
this.hcfdExe();
|
|
let _this = this;
|
|
let _this = this;
|
|
let isStop = false;
|
|
let isStop = false;
|
|
- if (!isStop && !_this.isSolverEnd) {
|
|
|
|
|
|
+ // if (!isStop && !_this.isSolverEnd) {
|
|
isStop = true;
|
|
isStop = true;
|
|
this.$parent.fun();
|
|
this.$parent.fun();
|
|
- }
|
|
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 求解的日志
|
|
// 求解的日志
|
|
@@ -2641,27 +2648,27 @@ hcfdparam(){
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleClick(tab, event) {
|
|
handleClick(tab, event) {
|
|
- if(this.activeName=='five'){
|
|
|
|
- let params = {
|
|
|
|
- transCode: "A00107",
|
|
|
|
- projectId: this.project.projectId,
|
|
|
|
- };
|
|
|
|
- request(params)
|
|
|
|
- .then((res) => {
|
|
|
|
- this.lsolverState=res.solverState;
|
|
|
|
- } )
|
|
|
|
- if(this.lsolverState=='2'){
|
|
|
|
- this.resultdata();
|
|
|
|
- }else{
|
|
|
|
- Message({
|
|
|
|
- type: "warning",
|
|
|
|
- message: "求解未完成,请完成求解",
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
|
|
+ // if(this.activeName=='five'){
|
|
|
|
+ // let params = {
|
|
|
|
+ // transCode: "A00107",
|
|
|
|
+ // projectId: this.project.projectId,
|
|
|
|
+ // };
|
|
|
|
+ // request(params)
|
|
|
|
+ // .then((res) => {
|
|
|
|
+ // this.lsolverState=res.solverState;
|
|
|
|
+ // } )
|
|
|
|
+ // if(this.lsolverState=='2'){
|
|
|
|
+ // // this.resultdata();
|
|
|
|
+ // }else{
|
|
|
|
+ // Message({
|
|
|
|
+ // type: "warning",
|
|
|
|
+ // message: "求解未完成,请完成求解",
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // }else{
|
|
|
|
|
|
- }
|
|
|
|
- this.activecleer();
|
|
|
|
|
|
+ // }
|
|
|
|
+ // this.activecleer();
|
|
},
|
|
},
|
|
activecleer(){
|
|
activecleer(){
|
|
this.active=11;
|
|
this.active=11;
|
|
@@ -2744,10 +2751,8 @@ this.styX.left=e.clientX+'px';
|
|
this.hcfdrun(true);
|
|
this.hcfdrun(true);
|
|
break;
|
|
break;
|
|
case 'four4-3':
|
|
case 'four4-3':
|
|
- this.getbtnmonitor();
|
|
|
|
break;
|
|
break;
|
|
case 'four4-4':
|
|
case 'four4-4':
|
|
- this.showresource();
|
|
|
|
break;
|
|
break;
|
|
case 'five-0':
|
|
case 'five-0':
|
|
this.dialog.SurfaceGrid_visiable = true;
|
|
this.dialog.SurfaceGrid_visiable = true;
|
|
@@ -3000,132 +3005,44 @@ this.styX.left=e.clientX+'px';
|
|
})
|
|
})
|
|
.catch((err) => {});
|
|
.catch((err) => {});
|
|
},
|
|
},
|
|
- //获取计算结果文件 并缓存
|
|
|
|
- async gethcfdsolverfiles() {
|
|
|
|
- let params = {
|
|
|
|
- transCode: "A00109",
|
|
|
|
- projectId: this.project.projectId,
|
|
|
|
- };
|
|
|
|
- await request(params)
|
|
|
|
- .then((res) => {
|
|
|
|
- this.project.solverfiles = res.files;
|
|
|
|
- })
|
|
|
|
- .catch((err) => {});
|
|
|
|
- this.project.solverfiles.forEach((solverfile) => {
|
|
|
|
- let url = solverfile.filepath;
|
|
|
|
- if (
|
|
|
|
- url.indexOf("volume_timestep") > 1 ||
|
|
|
|
- url.indexOf("boundary_timestep") > 1 ||
|
|
|
|
- url.indexOf("converge.dat") > 1
|
|
|
|
- ) {
|
|
|
|
- let names = url.split("/");
|
|
|
|
- let name = names[names.length - 1];
|
|
|
|
- let loadOj3 = {
|
|
|
|
- type: 2,
|
|
|
|
- filename: name,
|
|
|
|
- percentage: 0,
|
|
|
|
- };
|
|
|
|
- this.loadObjs.push(loadOj3);
|
|
|
|
- this.$refs.filesload.load(url);
|
|
|
|
- }
|
|
|
|
- if (url.indexOf("volume_timestep") > 1) {
|
|
|
|
- this.project.solverVolumUrls.push(url);
|
|
|
|
- }
|
|
|
|
- if (url.indexOf("boundary_timestep") > 1) {
|
|
|
|
- this.project.solverBoundaryUrls.push(url);
|
|
|
|
- }
|
|
|
|
- if (url.indexOf("converge.dat") > 1) {
|
|
|
|
- this.project.converge = url;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- this.project.solverVolumUrls.forEach((url) => {
|
|
|
|
- let step = url.split("volume_timestep")[1].split(".da")[0];
|
|
|
|
- this.bStep=step;
|
|
|
|
- this.volumStep.push(step);
|
|
|
|
- let newArr = [...new Set(this.volumStep)]; //去重
|
|
|
|
- this.volumStep = newArr;
|
|
|
|
- });
|
|
|
|
- this.project.solverBoundaryUrls.forEach((url) => {
|
|
|
|
- let step = url.split("boundary_timestep")[1].split(".da")[0];
|
|
|
|
- this.vStep=step;
|
|
|
|
- this.boundaryStep.push(step);
|
|
|
|
- let newArr = [...new Set(this.boundaryStep)]; //去重
|
|
|
|
- this.boundaryStep = newArr;
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
/**
|
|
/**
|
|
* 更新配置 并求解
|
|
* 更新配置 并求解
|
|
*/
|
|
*/
|
|
- //日志
|
|
|
|
- getthislog(log){
|
|
|
|
- this.newlog = log+"\n"+this.newlog;
|
|
|
|
- this.logs=this.newlog;
|
|
|
|
- if ( this.logs.indexOf("Solver end") >= 0) {
|
|
|
|
- this.exLoading='hidden';
|
|
|
|
- this.isSolverEnd = true;
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- // 剩余时间
|
|
|
|
- restimeyear(time){
|
|
|
|
- this.restime=time;
|
|
|
|
- },
|
|
|
|
- //求解
|
|
|
|
- // hcfdExe() {
|
|
|
|
- // var _this = this;
|
|
|
|
- // let params = {
|
|
|
|
- // transCode: "A00105",
|
|
|
|
- // projectId: this.project.projectId,
|
|
|
|
- // lesseeId:this.$store.getters.lesseeId,
|
|
|
|
- // userName:this.$store.getters.name
|
|
|
|
- // };
|
|
|
|
- // request(params)
|
|
|
|
- // .then((res) => {
|
|
|
|
- // })
|
|
|
|
- // .catch((err) => {
|
|
|
|
- // // console.log("hcfdExe" + err);
|
|
|
|
- // setTimeout(function () {
|
|
|
|
- // _this.$refs.loading.visiable = false;
|
|
|
|
- // }, 4000);
|
|
|
|
|
|
+//选择step
|
|
|
|
+bStepChange(val){
|
|
|
|
+ this.bStep=val;
|
|
|
|
+ if(this.bStep==0){
|
|
|
|
+ Message({
|
|
|
|
+ type: "warning",
|
|
|
|
+ message: "请选择setp有效值",
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+ this.showboundary();
|
|
|
|
+ }
|
|
|
|
|
|
- // if (err.returnCode == "EB8100017") {
|
|
|
|
- // //资源未分配
|
|
|
|
-
|
|
|
|
- // MessageBox.confirm("你还未分配资源?", "提示", {
|
|
|
|
- // confirmButtonText: "分配资源",
|
|
|
|
- // cancelButtonText: "取消",
|
|
|
|
- // type: "warning",
|
|
|
|
- // })
|
|
|
|
- // .then(() => {
|
|
|
|
- // // const errUril = Caegw_ProUrl +"?projectId="+_this.project.projectId;
|
|
|
|
- // let errUril =
|
|
|
|
- // // window.location.protocol +
|
|
|
|
- // // "//" +
|
|
|
|
- // // window.location.host +
|
|
|
|
- // // "/" +
|
|
|
|
- // _this.$store.getters.proUrl +
|
|
|
|
- // "?projectId=" +
|
|
|
|
- // _this.project.projectId;
|
|
|
|
- // let params2 = {
|
|
|
|
- // transCode: "A00118",
|
|
|
|
- // lesseeId: _this.$store.getters.lesseeId
|
|
|
|
- // };
|
|
|
|
- // request(params2)
|
|
|
|
- // .then((res) => {
|
|
|
|
- // window.location.href =
|
|
|
|
- // errUril + "&authCode=" + res.authCode;
|
|
|
|
- // })
|
|
|
|
- // .catch((err) => {});
|
|
|
|
- // })
|
|
|
|
- // .catch(() => {
|
|
|
|
- // _this.$refs.loading.visiable = false;
|
|
|
|
- // Message({
|
|
|
|
- // type: "info",
|
|
|
|
- // message: "已取消",
|
|
|
|
- // });
|
|
|
|
- // });
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
- // },
|
|
|
|
|
|
+},
|
|
|
|
+//选择step
|
|
|
|
+vStepChange(val){
|
|
|
|
+ this.vStep=val;
|
|
|
|
+ if(val==0){
|
|
|
|
+ Message({
|
|
|
|
+ type: "warning",
|
|
|
|
+ message: "请选择setp有效值",
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+this.Volumeshow();
|
|
|
|
+}
|
|
|
|
+},
|
|
|
|
+// 表面加载
|
|
|
|
+SurfaceChange(value){// 选择色条个数
|
|
|
|
+ this.Surfacenum=value;
|
|
|
|
+
|
|
|
|
+},
|
|
|
|
+// 体积
|
|
|
|
+VolumenumChange(value){// 选择色条个数
|
|
|
|
+ this.Volumenum=value;
|
|
|
|
+
|
|
|
|
+},
|
|
async reUpload() {
|
|
async reUpload() {
|
|
this.$refs.mapbc.uploader.upload();
|
|
this.$refs.mapbc.uploader.upload();
|
|
this.$refs.ugrid.uploader.upload();
|
|
this.$refs.ugrid.uploader.upload();
|
|
@@ -3466,7 +3383,6 @@ if(val==true){
|
|
this.$refs.monitor.hiden();
|
|
this.$refs.monitor.hiden();
|
|
if (!this.showSurfaceflag) {
|
|
if (!this.showSurfaceflag) {
|
|
if (this.project.solverfiles.length == 0) {
|
|
if (this.project.solverfiles.length == 0) {
|
|
- await this.gethcfdsolverfiles();
|
|
|
|
}
|
|
}
|
|
let burl;
|
|
let burl;
|
|
|
|
|