|
@@ -16,7 +16,7 @@
|
|
</div>
|
|
</div>
|
|
<!-- 动画 -->
|
|
<!-- 动画 -->
|
|
|
|
|
|
- <div class="L_aside L_aside1 asideg asidegbg leftbgimg1">
|
|
|
|
|
|
+ <div class="L_aside L_aside1 asideg asidegbg leftbgimg1 " :class="{'donghua':isdonghua}">
|
|
<el-collapse accordion v-model="activeNames" class="bganimation">
|
|
<el-collapse accordion v-model="activeNames" class="bganimation">
|
|
<el-collapse-item name="1" class="imgneon">
|
|
<el-collapse-item name="1" class="imgneon">
|
|
<template #title>
|
|
<template #title>
|
|
@@ -25,19 +25,30 @@
|
|
</template>
|
|
</template>
|
|
<div class="rg_content">
|
|
<div class="rg_content">
|
|
<div class="rg-padding">
|
|
<div class="rg-padding">
|
|
-
|
|
|
|
<div class="animation_s">
|
|
<div class="animation_s">
|
|
- <el-slider :max="100" :min="0" v-model="count" @change="sliderchange">
|
|
|
|
- </el-slider>
|
|
|
|
- <!-- <el-progress type="line" :percentage="percentage" :color="customColor" :stroke-width="4"/> -->
|
|
|
|
- <div class="tanniu">
|
|
|
|
- <div><el-image :src="t1" fit="contain"></el-image></div>
|
|
|
|
- <div><el-image :src="t2" fit="contain"></el-image></div>
|
|
|
|
- <div><el-image :src="t3" fit="contain"></el-image></div>
|
|
|
|
-
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
|
|
+ <el-slider :max="endtime" :min="starttime" v-model="formInline.count" @change="sliderchange">
|
|
|
|
+ </el-slider>
|
|
|
|
+ <div class="tanniu">
|
|
|
|
+ <ul>
|
|
|
|
+ <li>
|
|
|
|
+ <el-image :src="t1" fit="contain" @click="Prev()"></el-image>
|
|
|
|
+
|
|
|
|
+ </li>
|
|
|
|
+ <li v-show="playshow">
|
|
|
|
+ <el-image :src="t4" fit="contain" @click="play(500)"></el-image>
|
|
|
|
+
|
|
|
|
+ </li>
|
|
|
|
+ <li v-show="suspendshow">
|
|
|
|
+ <el-image :src="t2" fit="contain" @click="play(500)"></el-image>
|
|
|
|
+
|
|
|
|
+ </li>
|
|
|
|
+ <li>
|
|
|
|
+ <el-image :src="t3" fit="contain" @click="increment()"></el-image>
|
|
|
|
+
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -54,24 +65,25 @@
|
|
</div>
|
|
</div>
|
|
<div class="resultleftxian">
|
|
<div class="resultleftxian">
|
|
<div class="modle">
|
|
<div class="modle">
|
|
- <resultLeft ref="setleftAid" :region="formInline.region" :count="formInline.count" />
|
|
|
|
|
|
+ <resultLeft ref="setleftAid" :region="formInline.region" :count="newcount" />
|
|
</div>
|
|
</div>
|
|
<!--检测点信息 -->
|
|
<!--检测点信息 -->
|
|
- <wdisaster ref="wdisasterref" />
|
|
|
|
|
|
+ <wdisaster ref="wdisasterref" :count="newcount"/>
|
|
</div>
|
|
</div>
|
|
<!-- 检测点 -->
|
|
<!-- 检测点 -->
|
|
</div>
|
|
</div>
|
|
<!-- 第二个 -->
|
|
<!-- 第二个 -->
|
|
<div class="result_right r results re_pading">
|
|
<div class="result_right r results re_pading">
|
|
- <div class="resu_title reimg" @click="hazardtype('1')">
|
|
|
|
|
|
+ <div class="resu_title reimg" @click="hazardtype('2')">
|
|
{{ mntext2 }}
|
|
{{ mntext2 }}
|
|
</div>
|
|
</div>
|
|
<div class="resultleftxian">
|
|
<div class="resultleftxian">
|
|
<div class="modle">
|
|
<div class="modle">
|
|
- <resultRight ref="setrightAid" :region="formInline.region" :count="formInline.count" />
|
|
|
|
|
|
+ <!-- :count="formInline.count" -->
|
|
|
|
+ <resultRight ref="setrightAid" :region="formInline.region" :count="newcount" />
|
|
</div>
|
|
</div>
|
|
<!--检测点信息 -->
|
|
<!--检测点信息 -->
|
|
- <wdisaster2 ref="wdisasterref2" />
|
|
|
|
|
|
+ <wdisaster2 ref="wdisasterref2" :count="newcount"/>
|
|
</div>
|
|
</div>
|
|
<!-- 检测点 -->
|
|
<!-- 检测点 -->
|
|
</div>
|
|
</div>
|
|
@@ -92,7 +104,7 @@ import { vtkmodel } from "@/control/vtkModel.js";
|
|
import t1 from "@/assets/img/t1.png";
|
|
import t1 from "@/assets/img/t1.png";
|
|
import t2 from "@/assets/img/t2.png";
|
|
import t2 from "@/assets/img/t2.png";
|
|
import t3 from "@/assets/img/t3.png";
|
|
import t3 from "@/assets/img/t3.png";
|
|
-import t4 from "@/assets/img/t4.png";
|
|
|
|
|
|
+import t4 from "@/assets/img/bt.png";
|
|
import mn from "@/assets/img/Group204.png";
|
|
import mn from "@/assets/img/Group204.png";
|
|
import t5 from "@/assets/img/Group207.png";
|
|
import t5 from "@/assets/img/Group207.png";
|
|
import t6 from "@/assets/img/Frame.png";
|
|
import t6 from "@/assets/img/Frame.png";
|
|
@@ -104,6 +116,8 @@ const props = defineProps({
|
|
type: String,
|
|
type: String,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
|
|
+let newcount = ref(1);
|
|
|
|
+let activeNames=ref(['1'])
|
|
let wdisasterref = ref();
|
|
let wdisasterref = ref();
|
|
let wdisasterref2 = ref();
|
|
let wdisasterref2 = ref();
|
|
let resultyem = ref(false);
|
|
let resultyem = ref(false);
|
|
@@ -112,6 +126,10 @@ let leftcontentref = ref();
|
|
let starttime = ref(1);
|
|
let starttime = ref(1);
|
|
let endtime = ref(60);
|
|
let endtime = ref(60);
|
|
let timenum = ref(2);
|
|
let timenum = ref(2);
|
|
|
|
+let playshow=ref(true);
|
|
|
|
+let suspendshow=ref(false);
|
|
|
|
+let showfalse=ref(false);
|
|
|
|
+let isdonghua=ref(true);
|
|
let time = ref();
|
|
let time = ref();
|
|
const isstop = ref(false);
|
|
const isstop = ref(false);
|
|
let aid = ref(Number);
|
|
let aid = ref(Number);
|
|
@@ -119,6 +137,8 @@ let oldtime = ref();
|
|
let timeline = ref("2024-03-22 09:42:06");
|
|
let timeline = ref("2024-03-22 09:42:06");
|
|
let setleftAid = ref();
|
|
let setleftAid = ref();
|
|
let setrightAid = ref();
|
|
let setrightAid = ref();
|
|
|
|
+let leftid=ref();
|
|
|
|
+let rightid=ref();
|
|
let clickflat = ref(true);
|
|
let clickflat = ref(true);
|
|
let mntext1 = ref('灾情模拟1');
|
|
let mntext1 = ref('灾情模拟1');
|
|
let mntext2 = ref('灾情模拟2');
|
|
let mntext2 = ref('灾情模拟2');
|
|
@@ -128,18 +148,22 @@ const formInline = ref({
|
|
});
|
|
});
|
|
const zdtime = ref("");
|
|
const zdtime = ref("");
|
|
const strResultFormatlist = ref([]);
|
|
const strResultFormatlist = ref([]);
|
|
|
|
+const changeModel= ()=> {
|
|
|
|
+ vtkmodel.clearJgAddMode();
|
|
|
|
+ vtkmodel.renderWindow.render();
|
|
|
|
+}
|
|
const accident6 = (key, id) => {
|
|
const accident6 = (key, id) => {
|
|
|
|
|
|
aid.value = id;
|
|
aid.value = id;
|
|
|
|
+
|
|
if (key == 2) {
|
|
if (key == 2) {
|
|
|
|
+ vtkmodel.clearAll();
|
|
resultyem.value = true;
|
|
resultyem.value = true;
|
|
console.log(resultyem.value);
|
|
console.log(resultyem.value);
|
|
- nextTick(() => {
|
|
|
|
- wdisasterref.value.lineChart();
|
|
|
|
- wdisasterref2.value.lineChart2();
|
|
|
|
- });
|
|
|
|
|
|
+
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
|
+ changeModel();
|
|
resultyem.value = false;
|
|
resultyem.value = false;
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -158,6 +182,7 @@ function zdtimechange() {
|
|
function sliderchange(val) {
|
|
function sliderchange(val) {
|
|
//fcon.step = count.value;
|
|
//fcon.step = count.value;
|
|
// console.log(val);
|
|
// console.log(val);
|
|
|
|
+ newcount.value =val;
|
|
newtime();
|
|
newtime();
|
|
}
|
|
}
|
|
// 时间计算
|
|
// 时间计算
|
|
@@ -179,16 +204,22 @@ const newtime = () => {
|
|
function Prev() {
|
|
function Prev() {
|
|
isstop.value = false;
|
|
isstop.value = false;
|
|
formInline.value.count--;
|
|
formInline.value.count--;
|
|
|
|
+ newcount.value = formInline.value.count;
|
|
newtime();
|
|
newtime();
|
|
}
|
|
}
|
|
//播放
|
|
//播放
|
|
-function play(time) {
|
|
|
|
- isstop.value = true;
|
|
|
|
|
|
+const play =(time)=>{
|
|
|
|
+ showfalse.value=!showfalse.value;
|
|
|
|
+ // currentrow1.value=false;
|
|
|
|
+ if(showfalse.value){
|
|
|
|
+ suspendshow.value=true;
|
|
|
|
+ playshow.value=false;
|
|
|
|
+ isstop.value = true;//播放
|
|
const sleep = (timeout = time) =>
|
|
const sleep = (timeout = time) =>
|
|
new Promise((resolve, reject) => {
|
|
new Promise((resolve, reject) => {
|
|
setTimeout(resolve, timeout);
|
|
setTimeout(resolve, timeout);
|
|
});
|
|
});
|
|
- let timer = async (timeout) => {
|
|
|
|
|
|
+ let timer = async (timeout) => {
|
|
while (formInline.value.count < endtime.value && isstop.value) {
|
|
while (formInline.value.count < endtime.value && isstop.value) {
|
|
if (isstop.value == true) {
|
|
if (isstop.value == true) {
|
|
await sleep(time);
|
|
await sleep(time);
|
|
@@ -196,12 +227,19 @@ function play(time) {
|
|
// fcon.step = formInline.value.count ;
|
|
// fcon.step = formInline.value.count ;
|
|
// vtkScalarRead();
|
|
// vtkScalarRead();
|
|
// getMonitor();
|
|
// getMonitor();
|
|
|
|
+ newcount.value = formInline.value.count;
|
|
newtime();
|
|
newtime();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|
|
- timer(time);
|
|
|
|
|
|
+ timer(time);
|
|
|
|
+ }else{
|
|
|
|
+ playshow.value=true;
|
|
|
|
+ suspendshow.value=false;
|
|
|
|
+ isstop.value = false;//暂停
|
|
}
|
|
}
|
|
|
|
+}
|
|
|
|
+
|
|
//暂停
|
|
//暂停
|
|
function suspend() {
|
|
function suspend() {
|
|
isstop.value = false;
|
|
isstop.value = false;
|
|
@@ -213,6 +251,7 @@ function increment() {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
formInline.value.count++;
|
|
formInline.value.count++;
|
|
|
|
+ newcount.value = formInline.value.count;
|
|
newtime();
|
|
newtime();
|
|
console.log(formInline.value.count);
|
|
console.log(formInline.value.count);
|
|
// vtkScalarRead();
|
|
// vtkScalarRead();
|
|
@@ -243,10 +282,22 @@ const hazardtype = (val) => {
|
|
};
|
|
};
|
|
|
|
|
|
const initAid = (leftAid, rightAid) => {
|
|
const initAid = (leftAid, rightAid) => {
|
|
- console.log("result.vue", leftAid, rightAid);
|
|
|
|
|
|
+ isdonghua.value=false;
|
|
getMonitor(leftAid, rightAid);
|
|
getMonitor(leftAid, rightAid);
|
|
|
|
+ // wdisasterref.value.getinit(leftAid);
|
|
|
|
+ // wdisasterref2.value.getinit(rightAid);
|
|
|
|
+
|
|
|
|
+
|
|
};
|
|
};
|
|
|
|
+const wdiclick=(id,selid)=>{
|
|
|
|
+ if(selid=='1'){//判断选择的那一个
|
|
|
|
+ wdisasterref.value.getinit(id);
|
|
|
|
+ }else if(selid=='2'){
|
|
|
|
+ wdisasterref2.value.getinit(id);
|
|
|
|
+}else{
|
|
|
|
|
|
|
|
+}
|
|
|
|
+}
|
|
//监测点数据获取
|
|
//监测点数据获取
|
|
async function getMonitor(leftAid, rightAid) {
|
|
async function getMonitor(leftAid, rightAid) {
|
|
const params = {
|
|
const params = {
|
|
@@ -278,7 +329,6 @@ async function getMonitor(leftAid, rightAid) {
|
|
formInline.value.count + 1,
|
|
formInline.value.count + 1,
|
|
formInline.value.region
|
|
formInline.value.region
|
|
);
|
|
);
|
|
- //TODO right AID 没加
|
|
|
|
} else {
|
|
} else {
|
|
ElMessage({
|
|
ElMessage({
|
|
message: res.returnMsg,
|
|
message: res.returnMsg,
|
|
@@ -291,6 +341,7 @@ async function getMonitor(leftAid, rightAid) {
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
// leftcontentref.value.accident2('1','Water')
|
|
// leftcontentref.value.accident2('1','Water')
|
|
});
|
|
});
|
|
|
|
+
|
|
// 卸载时的操作
|
|
// 卸载时的操作
|
|
onUnmounted(() => {
|
|
onUnmounted(() => {
|
|
// 清除定时器
|
|
// 清除定时器
|
|
@@ -298,7 +349,7 @@ onUnmounted(() => {
|
|
clearInterval(timing.value);
|
|
clearInterval(timing.value);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-defineExpose({ accident6, initAid, mntext1, mntext2, clickflat, endtime, zdtime, timeline, oldtime });
|
|
|
|
|
|
+defineExpose({ accident6, initAid, mntext1, mntext2, clickflat, endtime, zdtime, timeline, oldtime,wdiclick });
|
|
</script>
|
|
</script>
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
.heigjie {
|
|
.heigjie {
|
|
@@ -319,11 +370,14 @@ defineExpose({ accident6, initAid, mntext1, mntext2, clickflat, endtime, zdtime,
|
|
}
|
|
}
|
|
|
|
|
|
.tanniu {
|
|
.tanniu {
|
|
|
|
+
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+.tanniu ul{
|
|
|
|
+ width: 100%;
|
|
|
|
+}
|
|
.resultyem {
|
|
.resultyem {
|
|
width: 100%;
|
|
width: 100%;
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -484,4 +538,8 @@ defineExpose({ accident6, initAid, mntext1, mntext2, clickflat, endtime, zdtime,
|
|
.newtime .el-input {
|
|
.newtime .el-input {
|
|
width: 180px !important;
|
|
width: 180px !important;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.donghua{
|
|
|
|
+ pointer-events: none;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|