|
@@ -58,9 +58,13 @@
|
|
<div class="hedse">
|
|
<div class="hedse">
|
|
<el-icon class="iconimg1 Frame3" fit="contain"></el-icon>{{ jcname }}
|
|
<el-icon class="iconimg1 Frame3" fit="contain"></el-icon>{{ jcname }}
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="zongji" v-if="props.classradio=='Fire'">
|
|
|
|
+ <div class="zongjili"><span>温度(℃):</span><span>{{ c}}</span></div>
|
|
|
|
+ <div class="zongjili"><span>压力(Pa):</span><span>{{ pa }}</span></div>
|
|
|
|
+ </div>
|
|
<div class="echart">
|
|
<div class="echart">
|
|
<div id="line" style="width: 1.526rem;height:1.03rem;"></div></div>
|
|
<div id="line" style="width: 1.526rem;height:1.03rem;"></div></div>
|
|
- <div class="zongji">
|
|
|
|
|
|
+ <div class="zongji" v-if="props.classradio=='Water'" >
|
|
<div class="zongjili img3">{{ heightnum }}<span>m</span></div>
|
|
<div class="zongjili img3">{{ heightnum }}<span>m</span></div>
|
|
<div class="zongjili img4"><p class="jcshijian">2024-03-20</p><p>14:23:00</p></div>
|
|
<div class="zongjili img4"><p class="jcshijian">2024-03-20</p><p>14:23:00</p></div>
|
|
</div>
|
|
</div>
|
|
@@ -136,7 +140,8 @@ let tableHeight = ref(130);
|
|
let playshow=ref(true);
|
|
let playshow=ref(true);
|
|
let suspendshow=ref(false);
|
|
let suspendshow=ref(false);
|
|
let showfalse=ref(false);
|
|
let showfalse=ref(false);
|
|
-
|
|
|
|
|
|
+let c=ref(null);
|
|
|
|
+let pa=ref(null);
|
|
const isstop = ref(false);
|
|
const isstop = ref(false);
|
|
let count=ref(1);
|
|
let count=ref(1);
|
|
let starttime = ref(1);
|
|
let starttime = ref(1);
|
|
@@ -158,6 +163,14 @@ let warnin2=ref(0);
|
|
const dynamicHeaders = ref([
|
|
const dynamicHeaders = ref([
|
|
|
|
|
|
]);
|
|
]);
|
|
|
|
+const props = defineProps({
|
|
|
|
+
|
|
|
|
+ classradio: {
|
|
|
|
+ type: String,
|
|
|
|
+ // default: '',activeIndex
|
|
|
|
+},
|
|
|
|
+})
|
|
|
|
+let classradio=ref();
|
|
const job = ref({
|
|
const job = ref({
|
|
jid: 0, // 任务ID
|
|
jid: 0, // 任务ID
|
|
aid: 0, // 事故ID
|
|
aid: 0, // 事故ID
|
|
@@ -212,8 +225,11 @@ onMounted(() => {
|
|
const fcon = createFireControl();
|
|
const fcon = createFireControl();
|
|
// 检测点的结果获取
|
|
// 检测点的结果获取
|
|
// 父组件获取的方法初始化
|
|
// 父组件获取的方法初始化
|
|
-const indexinit= (id)=>{
|
|
|
|
|
|
+const indexinit= (id,radio)=>{
|
|
aid.value=id;
|
|
aid.value=id;
|
|
|
|
+console.log(props.classradio);
|
|
|
|
+// classradio.value=radio;
|
|
|
|
+ //console.log(classradio.value);
|
|
fcon.step=count.value;
|
|
fcon.step=count.value;
|
|
getMonitor();
|
|
getMonitor();
|
|
vtkmodel.clearModeAddJg();
|
|
vtkmodel.clearModeAddJg();
|
|
@@ -625,9 +641,7 @@ function vtkShow() {
|
|
if (!fcon.scalar) {
|
|
if (!fcon.scalar) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
const scalarArray = fcon.scalar.get(formInline.value.region);
|
|
const scalarArray = fcon.scalar.get(formInline.value.region);
|
|
- console.log("执行了");
|
|
|
|
if (!scalarArray || !fcon.polydata) {
|
|
if (!scalarArray || !fcon.polydata) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -637,6 +651,7 @@ function vtkShow() {
|
|
name: formInline.value.region,
|
|
name: formInline.value.region,
|
|
size: fcon.polydata.getNumberOfPoints(),
|
|
size: fcon.polydata.getNumberOfPoints(),
|
|
});
|
|
});
|
|
|
|
+ console.log("执行了");
|
|
// console.log(dataArray);
|
|
// console.log(dataArray);
|
|
dataArray.setData(scalarArray);
|
|
dataArray.setData(scalarArray);
|
|
fcon.polydata.getPointData().setScalars(dataArray);
|
|
fcon.polydata.getPointData().setScalars(dataArray);
|
|
@@ -663,7 +678,7 @@ function vtkGridRead() {
|
|
.initGemetry()
|
|
.initGemetry()
|
|
.then((result) => {
|
|
.then((result) => {
|
|
console.log(result);
|
|
console.log(result);
|
|
- vtkScalarRead();
|
|
|
|
|
|
+ // vtkScalarRead();
|
|
|
|
|
|
})
|
|
})
|
|
.catch((err) => {});
|
|
.catch((err) => {});
|
|
@@ -672,8 +687,6 @@ function vtkScalarRead() {
|
|
fcon
|
|
fcon
|
|
.getScalrsByStep(fcon.step)
|
|
.getScalrsByStep(fcon.step)
|
|
.then((result) => {
|
|
.then((result) => {
|
|
- console.log(fcon.scalar);
|
|
|
|
- console.log(123444);
|
|
|
|
velocityRead() ;
|
|
velocityRead() ;
|
|
vtkShow();
|
|
vtkShow();
|
|
})
|
|
})
|
|
@@ -687,7 +700,7 @@ watch(
|
|
console.log("值改变了", newVal, oldVal);
|
|
console.log("值改变了", newVal, oldVal);
|
|
fcon.step = newVal;
|
|
fcon.step = newVal;
|
|
getMonitor();
|
|
getMonitor();
|
|
- vtkScalarRead();
|
|
|
|
|
|
+ // vtkScalarRead();
|
|
|
|
|
|
},
|
|
},
|
|
{ deep: true }
|
|
{ deep: true }
|