|
@@ -182,6 +182,7 @@ let endtime = ref(60);
|
|
let timenum = ref(2);
|
|
let timenum = ref(2);
|
|
let aid = ref();
|
|
let aid = ref();
|
|
let timing = ref(null);
|
|
let timing = ref(null);
|
|
|
|
+let timing3 = ref(null);
|
|
let timing2 = ref(null);
|
|
let timing2 = ref(null);
|
|
let jgSelectPointId=ref(0);
|
|
let jgSelectPointId=ref(0);
|
|
const percentage = ref(20);
|
|
const percentage = ref(20);
|
|
@@ -239,6 +240,7 @@ const cocodeIsInit = ref("false");
|
|
function sliderchange(val) {
|
|
function sliderchange(val) {
|
|
//newcount.value=count.value;
|
|
//newcount.value=count.value;
|
|
fcon.step = count.value;
|
|
fcon.step = count.value;
|
|
|
|
+ console.log( count.value );
|
|
// console.log(count.value);
|
|
// console.log(count.value);
|
|
// vtkScalarRead();
|
|
// vtkScalarRead();
|
|
// getMonitor();
|
|
// getMonitor();
|
|
@@ -372,12 +374,12 @@ function regionchange(val) {
|
|
vtkShow();
|
|
vtkShow();
|
|
}
|
|
}
|
|
// aid获取
|
|
// aid获取
|
|
-const accident5 = (val) => {
|
|
|
|
|
|
+const accident5 = (val,key) => {
|
|
|
|
|
|
aid.value = val;
|
|
aid.value = val;
|
|
resultactiveName.value = "first";
|
|
resultactiveName.value = "first";
|
|
- // console.log(aid.value);
|
|
|
|
- // console.log("props.classradio", props.classradio);
|
|
|
|
|
|
+if(key=='4'){
|
|
|
|
+ timehandclick();
|
|
if (props.classradio == "Fire") {
|
|
if (props.classradio == "Fire") {
|
|
monitor.value = true;
|
|
monitor.value = true;
|
|
} else if (props.classradio == "Water") {
|
|
} else if (props.classradio == "Water") {
|
|
@@ -386,21 +388,13 @@ const accident5 = (val) => {
|
|
cocodeIsInit.value = false;
|
|
cocodeIsInit.value = false;
|
|
//获取任务信息
|
|
//获取任务信息
|
|
readJob();
|
|
readJob();
|
|
|
|
+ console.log( resultactiveName.value)
|
|
|
|
+}else{
|
|
|
|
+ clearInterval(timing.value);
|
|
|
|
+}
|
|
|
|
|
|
- if (resultactiveName.value == "first") {
|
|
|
|
- timing.value = setInterval(() => {
|
|
|
|
- const timestamp = new Date().getTime();
|
|
|
|
- newtime.value = timestampToTime(timestamp);
|
|
|
|
- reddate(new Date());
|
|
|
|
- }, 1000);
|
|
|
|
- } else {
|
|
|
|
- timing.value = setInterval(() => {
|
|
|
|
- const timestamp = new Date().getTime();
|
|
|
|
- newtime.value = timestampToTime(timestamp);
|
|
|
|
- }, 1000);
|
|
|
|
- }
|
|
|
|
|
|
|
|
- // fireRead()
|
|
|
|
|
|
+// // fireRead()
|
|
};
|
|
};
|
|
|
|
|
|
const fcon = createFireControl();
|
|
const fcon = createFireControl();
|
|
@@ -594,6 +588,12 @@ function getMinMax(scalars) {
|
|
|
|
|
|
const handleClick = (Tab, val) => {
|
|
const handleClick = (Tab, val) => {
|
|
resultactiveName.value=Tab.props.name;
|
|
resultactiveName.value=Tab.props.name;
|
|
|
|
+ timehandclick();
|
|
|
|
+};
|
|
|
|
+const inittime=()=>{
|
|
|
|
+ clearInterval(timing.value);
|
|
|
|
+}
|
|
|
|
+const timehandclick=()=>{
|
|
if (resultactiveName.value == "first") {
|
|
if (resultactiveName.value == "first") {
|
|
timing.value = setInterval(() => {
|
|
timing.value = setInterval(() => {
|
|
const timestamp = new Date().getTime();
|
|
const timestamp = new Date().getTime();
|
|
@@ -607,11 +607,13 @@ const handleClick = (Tab, val) => {
|
|
} else if ( resultactiveName.value== "third") {
|
|
} else if ( resultactiveName.value== "third") {
|
|
clearInterval(timing.value);
|
|
clearInterval(timing.value);
|
|
}
|
|
}
|
|
-};
|
|
|
|
|
|
+}
|
|
onBeforeUnmount(() => {
|
|
onBeforeUnmount(() => {
|
|
clearInterval(timing.value);
|
|
clearInterval(timing.value);
|
|
});
|
|
});
|
|
-onMounted(() => {});
|
|
|
|
|
|
+onMounted(() => {
|
|
|
|
+
|
|
|
|
+});
|
|
|
|
|
|
watch(
|
|
watch(
|
|
newcount,
|
|
newcount,
|