2024-11-01 17:45:58 +08:00
|
|
|
<template>
|
2024-11-03 00:32:39 +08:00
|
|
|
<div id="log" style="width: 100%;height: 100%;">
|
2024-11-03 14:37:30 +08:00
|
|
|
<operationsFoShowLog ref="recordVideoPlayer" :remoteUrl="removeUrl" ></operationsFoShowLog>
|
2024-11-01 17:45:58 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
2024-11-03 14:37:30 +08:00
|
|
|
import operationsFoShowLog from "./dialog/operationsFoShowLog.vue";
|
2024-11-02 12:11:52 +08:00
|
|
|
|
2024-11-01 17:45:58 +08:00
|
|
|
export default {
|
|
|
|
|
name: 'log',
|
2024-11-03 14:37:30 +08:00
|
|
|
components: {operationsFoShowLog},
|
2024-11-01 17:45:58 +08:00
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
loading: false,
|
2024-11-03 14:37:30 +08:00
|
|
|
removeUrl: this.getURl(),
|
2024-11-03 00:32:39 +08:00
|
|
|
winHeight: window.innerHeight - 220,
|
2024-11-01 17:45:58 +08:00
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
2024-11-04 10:15:45 +08:00
|
|
|
console.log("removeUrl11 == " + this.removeUrl)
|
2024-11-01 17:45:58 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
2024-11-03 14:37:30 +08:00
|
|
|
getURl: function () {
|
2024-11-01 17:45:58 +08:00
|
|
|
if (process.env.NODE_ENV !== 'development') {
|
2024-11-02 12:11:52 +08:00
|
|
|
if (location.protocol === "https:") {
|
2024-11-03 14:37:30 +08:00
|
|
|
return `wss://${window.location.host}/channel/log`;
|
2024-11-02 12:11:52 +08:00
|
|
|
}else {
|
2024-11-03 14:37:30 +08:00
|
|
|
return `ws://${window.location.host}/channel/log`
|
2024-11-02 12:11:52 +08:00
|
|
|
}
|
2024-11-01 17:45:58 +08:00
|
|
|
}else {
|
2024-11-03 14:37:30 +08:00
|
|
|
return "ws://localhost:18080/channel/log";
|
2024-11-03 00:32:39 +08:00
|
|
|
}
|
|
|
|
|
},
|
2024-11-01 17:45:58 +08:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|