|
@@ -12,9 +12,23 @@
|
|
|
</template>
|
|
|
<div class="rg_content">
|
|
|
<div class="rg-padding">
|
|
|
+ <div style="display: flex;" >
|
|
|
+ <span class="gaojing">告警:</span>
|
|
|
+ <el-switch
|
|
|
+ v-model="valueswitch"
|
|
|
+ inline-prompt
|
|
|
+ @change="swutchfun($event)"
|
|
|
+ style="--el-switch-on-color:#ff4949; --el-switch-off-color: #525050"
|
|
|
+ active-text="是"
|
|
|
+ inactive-text="否"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="he_pading color1 wusele">
|
|
|
<el-form-item label="物理量:" v-if="props.classradio == 'Fire'||props.classradio == 'Gass'">
|
|
|
- <el-select
|
|
|
+ <el-select
|
|
|
+
|
|
|
+ :disabled="disabledshow"
|
|
|
v-model="formInline.region"
|
|
|
@change="regionchange($event)"
|
|
|
placeholder="请选择"
|
|
@@ -201,8 +215,11 @@ import t2 from "@/assets/img/t2.png";
|
|
|
import t3 from "@/assets/img/t3.png";
|
|
|
import t4 from "@/assets/img/t4.png";
|
|
|
import htmldialog from "./htmldialog.vue"
|
|
|
+import emitter from "@/utils/emitter";
|
|
|
let firstshow = ref(false);
|
|
|
let timeshow=ref(true);
|
|
|
+let valueswitch=ref(false);
|
|
|
+let disabledshow=ref(false);
|
|
|
let timeline = ref("2024-03-2");
|
|
|
let activeNames = ref(["1"]);
|
|
|
let activeNames1=ref(["2"])
|
|
@@ -304,6 +321,7 @@ const tableData =ref( [
|
|
|
])
|
|
|
let myChart;
|
|
|
onMounted(() => {
|
|
|
+ // valueswitch.value=false;
|
|
|
lineChart();
|
|
|
// window.onresize = function() {
|
|
|
// // 让图表自适应大小
|
|
@@ -921,19 +939,37 @@ function vtkGridRead() {
|
|
|
})
|
|
|
.catch((err) => {});
|
|
|
}
|
|
|
+// 告警按钮
|
|
|
+function swutchfun(val){
|
|
|
+
|
|
|
+ vtkScalarRead()
|
|
|
+
|
|
|
+}
|
|
|
function vtkScalarRead() {
|
|
|
fcon
|
|
|
.getScalrsByStep(fcon.step)
|
|
|
.then((result) => {
|
|
|
// velocityRead() ;
|
|
|
+ if(valueswitch.value==false){
|
|
|
+ disabledshow.value=false;
|
|
|
+ vtkShow();
|
|
|
+ }else{
|
|
|
+ disabledshow.value=true;
|
|
|
+ gjVtkShow();
|
|
|
+ }
|
|
|
// vtkShow();
|
|
|
- gjVtkShow();
|
|
|
+
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
// console.log(err);
|
|
|
});
|
|
|
}
|
|
|
watch(
|
|
|
+ // props.classradio,
|
|
|
+ // (newVal, oldVal) => {
|
|
|
+ // console.log("我的值变了"+newVal);
|
|
|
+
|
|
|
+ // },
|
|
|
newcount,
|
|
|
(newVal, oldVal) => {
|
|
|
console.log("值改变了", newVal, oldVal);
|
|
@@ -948,8 +984,10 @@ if( newVal>=endtime.value){
|
|
|
isstop.value = false;
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
{ deep: true }
|
|
|
); //深度监视
|
|
|
+
|
|
|
defineExpose({firstshow,isshow,indexinit});
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
@@ -1018,4 +1056,12 @@ align-items: center;
|
|
|
border-radius: 10px;
|
|
|
padding: 15px;
|
|
|
}
|
|
|
+.gaojing{
|
|
|
+ color: #fff;
|
|
|
+ font-size: 12px;
|
|
|
+ display: inline-block;
|
|
|
+ /* height: 30px; */
|
|
|
+ line-height: 35px;
|
|
|
+ padding-left: 11px
|
|
|
+}
|
|
|
</style>
|