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