|
@@ -131,7 +131,7 @@ const props = defineProps({
|
|
type: String,
|
|
type: String,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
-let newcount = ref(1);
|
|
|
|
|
|
+let newcount = ref(60);
|
|
let activeNames=ref(['1'])
|
|
let activeNames=ref(['1'])
|
|
let wdisasterref = ref();
|
|
let wdisasterref = ref();
|
|
let wdisasterref2 = ref();
|
|
let wdisasterref2 = ref();
|
|
@@ -160,7 +160,7 @@ let mntext1 = ref('灾情模拟1');
|
|
let mntext2 = ref('灾情模拟2');
|
|
let mntext2 = ref('灾情模拟2');
|
|
const formInline = ref({
|
|
const formInline = ref({
|
|
region: "",
|
|
region: "",
|
|
- count: 0,
|
|
|
|
|
|
+ count: 60,
|
|
});
|
|
});
|
|
const zdtime = ref("");
|
|
const zdtime = ref("");
|
|
const strResultFormatlist = ref([]);
|
|
const strResultFormatlist = ref([]);
|
|
@@ -367,7 +367,17 @@ async function getMonitor(leftAid, rightAid) {
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
// leftcontentref.value.accident2('1','Water')
|
|
// leftcontentref.value.accident2('1','Water')
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+watch(
|
|
|
|
+ newcount,
|
|
|
|
+ (newVal, oldVal) => {
|
|
|
|
+if( newVal>=endtime.value){
|
|
|
|
+ playshow.value=true;
|
|
|
|
+ suspendshow.value=false;
|
|
|
|
+ isstop.value = false;
|
|
|
|
+}
|
|
|
|
+ },
|
|
|
|
+ { deep: true }
|
|
|
|
+); //深度监视
|
|
// 卸载时的操作
|
|
// 卸载时的操作
|
|
onUnmounted(() => {
|
|
onUnmounted(() => {
|
|
// 清除定时器
|
|
// 清除定时器
|