首页样式优化

This commit is contained in:
fengrong 2024-11-07 11:50:13 +08:00
parent a142567520
commit 8806b75615
2 changed files with 4 additions and 6 deletions

View File

@ -296,10 +296,10 @@
ref="myTable" ref="myTable"
@mouseover.native="clearScroll" @mouseover.native="clearScroll"
@mouseleave.native="createScroll"> @mouseleave.native="createScroll">
<el-table-column fixed prop="eventTimeFormate" label="时间" /> <el-table-column fixed prop="eventTimeFormate" label="时间" width="80"/>
<el-table-column prop="deviceCode" label="风机" /> <el-table-column prop="deviceCode" label="风机" width="70"/>
<el-table-column prop="eventText" label="告警内容" /> <el-table-column prop="eventText" label="告警内容" />
<el-table-column label="操作"> <el-table-column label="操作" width="70">
<template #default="scope"> <template #default="scope">
<div class="tableOperate comfirmed" style="color: #333333;" v-if="scope.row.confirmed">已确认</div> <div class="tableOperate comfirmed" style="color: #333333;" v-if="scope.row.confirmed">已确认</div>
<div class="tableOperate" v-else> <div class="tableOperate" v-else>
@ -902,10 +902,8 @@ const okSubmit = (val: any) => {
deviceId: val.deviceId, deviceId: val.deviceId,
}, },
] ]
debugger
eventComfirm(reqData) eventComfirm(reqData)
.then((res: any) => { .then((res: any) => {
debugger
if (res.code == 200) { if (res.code == 200) {
ElMessage.success(res.msg ?? '确认成功') ElMessage.success(res.msg ?? '确认成功')
getTableData(deviceCode.value) getTableData(deviceCode.value)

View File

@ -83,7 +83,6 @@ const animationDuration=reactive({
'animation-duration': rotationspeed+'s', 'animation-duration': rotationspeed+'s',
}) })
const handleDoubleClick = (row) => { const handleDoubleClick = (row) => {
debugger
if (!router.hasRoute('windTurbine')) { if (!router.hasRoute('windTurbine')) {
router.addRoute('admin', { router.addRoute('admin', {
path: '/windTurbine', path: '/windTurbine',
@ -153,6 +152,7 @@ const handleDoubleClick = (row) => {
.FanList-panel{ .FanList-panel{
border-radius: 8px; border-radius: 8px;
cursor: pointer;
.fanlist-top{ .fanlist-top{
display: flex; display: flex;
width: 100%; width: 100%;