master
parent
b4075ece05
commit
8086e7d224
|
@ -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;
|
||||
type:string;
|
||||
datetime: string;
|
||||
type: string;
|
||||
}
|
||||
interface TDATE{
|
||||
tdate:TableDate[]
|
||||
interface TDATE {
|
||||
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;'
|
||||
|
|
Loading…
Reference in New Issue