Commit 40c8610d by liucan

pref:修改数据展示页面的数据详情布局

parent 4c265c8e
const getCurTime = () => {
const now = new Date();
const year = now.getFullYear();
const month = now.getMonth() + 1;
const date = now.getDate();
const weekdays = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
const weekday = weekdays[now.getDay()];
const hours = String(now.getHours()).padStart(2, "0");
const minutes = String(now.getMinutes()).padStart(2, "0");
const seconds = String(now.getSeconds()).padStart(2, "0");
return `${year}${month}${date}${weekday} ${hours}${minutes}${seconds}`;
};
export default getCurTime;
\ No newline at end of file
......@@ -57,7 +57,6 @@
@del-no="handleSateDel"
:reset-selected="resetSelected"
></NoItem>
/>
</TransitionGroup>
</div>
<div class="footer">
......@@ -159,13 +158,16 @@ const delNoList = async () => {
sateNoList.value = sateNoList.value.filter((item) => !curSelSateNo.value.includes(item));
const res = await addSateNo({ id: sateNoList.value as string[] });
if (res.code === 0) {
ElMessage.success("删除编号成功");
}
resetSelected.value = true;
curSelSateNo.value = [];
nextTick(() => {
resetSelected.value = false;
});
} catch (error: any) {}
} catch (error: any) {
ElMessage.error(error.message);
}
};
const noContentRef = ref<HTMLDivElement | null>(null);
......
<template>
<div class="flex gap-10">
<div class="flex">
<span class="textStyle">数据统计</span>
<div class="dataCard" @click="goToAllDataPage">
<div class="titleStyle">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment