master
“yu” 2024-07-14 01:41:11 +08:00
parent b4075ece05
commit 8086e7d224
1 changed files with 12 additions and 16 deletions

View File

@ -341,7 +341,7 @@
<div class="table_box">
<el-table
:data="
tableData.slice(
tableData.tdate.slice(
(currentPage - 1) * pageSize,
currentPage * pageSize
)
@ -372,7 +372,7 @@
</el-table-column>
<el-table-column label="发生时间" align="center">
<template #default="scope">
<span style="margin-left: 10px">{{ scope.row.time }}</span>
<span style="margin-left: 10px">{{ scope.row.datetime }}</span>
</template>
</el-table-column>
@ -467,7 +467,7 @@ const handleTabPage = (val: number) => {
// hideRight.value = false;
};
let infolistFlag=ref(true)//
let infolistFlag=ref(false)//
// lengendDate
let lengendDate = reactive([
{
@ -748,6 +748,7 @@ const alertInfo = () => {
console.log(res, "88888889999");
if (res?.data.length > 0) {
alertdata.alertArr = res.data;
tableData.tdate=res.data;
console.log(alertdata.alertArr, "0");
} else {
console.log("没有数据");
@ -923,24 +924,19 @@ let selectDateObj = ref(null);
//
// let alert_pvFlag = ref(false);
interface TableDate {
name: string;
loadRate: string;
time: string;
datetime: string;
type: string;
}
interface TDATE {
tdate:TableDate[]
tdate: TableDate[];
}
let tableData = reactive<TDATE[]>([
{
name: "**光伏",
type:"线路",
loadRate: "9999",
time: "2024-07-12",
},
]);
let tableData = reactive<TDATE>({
tdate:[]
});
const handeleTable = () => {
// tableHeaderColor ({row, column, rowIndex, columnIndex}) {
// return 'text-align: center;'