pengwei
2025-05-15 b9260c7807d064f2b77ef9e92005a8c3257ec2e1
项目代码/可视化大屏/client/src/views/Index.vue
@@ -61,7 +61,7 @@
        align-items: center;
        margin-top: 6%;
        padding-bottom: 10%;
        height: 70%;
        height: 60%;
        box-sizing: border-box;
        border-radius: 2rem;
        background-color: rgba(39, 136, 214, 0.5);
@@ -85,7 +85,6 @@
              height: 5rem;
              font-size: 6rem;
              font-weight: bold;
              display: flex;
              align-items: center;
              padding-left: 2rem;
@@ -170,7 +169,7 @@
            empty-text="鏆傛棤鏁版嵁"
            :data="tableData"
            style="width: 100%"
            height="750"
            height="400"
            :header-cell-style="{
              height: '1.61rem',
              color: '#fff',
@@ -278,6 +277,7 @@
    pageSize: pageQuery.value.rows,
    searchKeyword: queryForm.value.inputcontent,
    status: queryForm.value.selectType,
    account: "admin",
  }).then((res) => {
    tableData.value = res.data.items;
    pageTotal.value = res.data.totalCount;
@@ -293,11 +293,11 @@
  initData();
  //鑾峰彇褰撳墠鏃堕棿
  const date = new Date();
  await UpstreamInspectionRoad();
  timer.value = setInterval(() => {
    currentTime.value = formatTime(date, "yyyy-MM-dd hh:mm:ss");
    date.setSeconds(date.getSeconds() + 1);
  }, 1000);
  // await UpstreamInspectionRoad();
});
onUnmounted(() => {
  clearInterval(timer.value);