ntrip通信服务平台

This commit is contained in:
2026-05-18 12:31:25 +08:00
parent e5d57e1a31
commit b11268a7c2

View File

@@ -99,7 +99,7 @@
</el-button> </el-button>
</div> </div>
</template> </template>
<el-scrollbar height="20rem"> <el-scrollbar ref="scrollbarRef" height="12rem">
<div class="m-2 font-bold"> <div class="m-2 font-bold">
<el-text <el-text
v-for="(data, index) in msgList" v-for="(data, index) in msgList"
@@ -148,7 +148,7 @@
</el-button> </el-button>
</div> </div>
</template> </template>
<el-scrollbar height="10rem"> <el-scrollbar height="5rem">
<div class="m-2 font-bold"> <div class="m-2 font-bold">
<el-text <el-text
v-for="(data, index) in sourceTable" v-for="(data, index) in sourceTable"
@@ -168,7 +168,7 @@
</template> </template>
<script setup> <script setup>
import { ref, watch, onUnmounted } from "vue"; import { ref, watch, nextTick, onUnmounted } from "vue";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import NTRIPCaster from "../../api/ntrip"; import NTRIPCaster from "../../api/ntrip";
@@ -180,6 +180,7 @@ import $url from "../../api/url";
import MountpointList from "../features/mountpointList.vue"; import MountpointList from "../features/mountpointList.vue";
const scrollbarRef = ref(null);
const timeout = ref(null); const timeout = ref(null);
const mountpoint = ref(""); const mountpoint = ref("");
const mountpointSize = ref(0); const mountpointSize = ref(0);
@@ -384,6 +385,13 @@ watch(mountpoint, (value) => {
} }
}); });
watch(() => msgList.value.length, () => {
nextTick(() => {
const wrap = scrollbarRef.value.$el.querySelector('.el-scrollbar__wrap');
scrollbarRef.value.setScrollTop(wrap.scrollHeight);
});
});
onUnmounted(async () => { onUnmounted(async () => {
await disconnect(); await disconnect();
await sizeDisconnect(); await sizeDisconnect();