|
|
@@ -164,14 +164,14 @@
|
|
|
muted
|
|
|
></video>
|
|
|
<video
|
|
|
- v-if="showvideo"
|
|
|
- style="width: 99%; margin-left: 0.5%"
|
|
|
- ref="videoElement2"
|
|
|
- class="centeredVideo"
|
|
|
- controls
|
|
|
- autoplay
|
|
|
- muted
|
|
|
- ></video>
|
|
|
+ v-if="showvideo"
|
|
|
+ style="width: 99%; margin-left: 0.5%"
|
|
|
+ ref="videoElement2"
|
|
|
+ class="centeredVideo"
|
|
|
+ controls
|
|
|
+ autoplay
|
|
|
+ muted
|
|
|
+ ></video>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -219,7 +219,7 @@ const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const carInfoList = ref<CarInfoVO[]>([]);
|
|
|
// const videoElement = ref(video)
|
|
|
const buttonLoading = ref(false);
|
|
|
-const showvideo = ref(false)
|
|
|
+const showvideo = ref(false);
|
|
|
const loading = ref(true);
|
|
|
const showSearch = ref(true);
|
|
|
const ids = ref<Array<string | number>>([]);
|
|
|
@@ -231,7 +231,7 @@ const flvPlayer = ref(null);
|
|
|
const carScheduleList = ref<CarScheduleVO[]>([]);
|
|
|
const timer = ref(null);
|
|
|
const mapTimer = ref(null);
|
|
|
-const count = ref(0)
|
|
|
+const count = ref(0);
|
|
|
|
|
|
const queryFormRef = ref<ElFormInstance>();
|
|
|
const carInfoFormRef = ref<ElFormInstance>();
|
|
|
@@ -317,10 +317,10 @@ const openVideo = (item) => {
|
|
|
findVideo = true;
|
|
|
dialog.visible = true;
|
|
|
setTimeout(() => {
|
|
|
- if(i == 0){
|
|
|
+ if (i == 0) {
|
|
|
flvLoad(drivesInfo[j].code);
|
|
|
- i++
|
|
|
- }else{
|
|
|
+ i++;
|
|
|
+ } else {
|
|
|
showvideo.value = true;
|
|
|
setTimeout(() => {
|
|
|
flvLoad2(drivesInfo[j].code);
|
|
|
@@ -484,7 +484,11 @@ const getScheduleList = async () => {
|
|
|
})
|
|
|
.filter((i) => i != "")
|
|
|
.join("$");
|
|
|
- times += "$" + i.scheduleDate + "|" + moment().format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ times +=
|
|
|
+ (times.length > 0 ? "$" : "") +
|
|
|
+ i.scheduleDate +
|
|
|
+ "|" +
|
|
|
+ moment().format("YYYY-MM-DD HH:mm:ss");
|
|
|
getCountData({ "params[times]": `${times}` }).then((res1) => {
|
|
|
var pcount = {};
|
|
|
var index = 0;
|
|
|
@@ -734,9 +738,9 @@ onMounted(() => {
|
|
|
console.log(11111);
|
|
|
getScheduleList();
|
|
|
proxy.$forceUpdate();
|
|
|
- return{
|
|
|
- proxy
|
|
|
- }// reloadData.value = false;
|
|
|
+ return {
|
|
|
+ proxy,
|
|
|
+ }; // reloadData.value = false;
|
|
|
// setTimeout(() => {
|
|
|
// reloadData.value = true;
|
|
|
// }, 500);
|