2025年04月22日09:33:04

This commit is contained in:
luojiayi 2025-04-22 09:33:05 +08:00
parent f61fefa46d
commit 55ff343e35
3 changed files with 44 additions and 2 deletions

View File

@ -24,13 +24,40 @@ i {
}
.table-container {
flex: 1;
overflow: auto;
background-color: #fff;
padding: 22px 17px;
box-sizing: border-box;
border-radius: 5px;
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
/* scrollbar-width: none;
-ms-overflow-style: none; */
}
.el-card {
flex-shrink: 0;
}
.table-container::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.table-container::-webkit-scrollbar-thumb {
background-color: #B2B2B2;
border-radius: 4px;
}
.table-container::-webkit-scrollbar-track:hover {
background-color: #fff;
}
.table-container::-webkit-scrollbar-thumb:hover {
background-color: #909399;
}
.el-table th {
background-color: #f5f7fa !important;
}
@ -108,6 +135,17 @@ i {
--active-color: var(--el-color-primary);
}
.container {
flex: 1;
padding: 0 20px;
box-sizing: border-box;
overflow: hidden;
display: flex;
flex-direction: column;
}
.noScrollbar {
scrollbar-width: none;
-ms-overflow-style: none;

View File

@ -118,7 +118,7 @@ const getdeviceList = async () => {
const res = await deviceList(devicePaging);
deviceData.value = res.records;
if (res.records.length > 0) {
deviceInfo.value = res.records[1];
deviceInfo.value = res.records[0];
getHealthLatestData();
getLocateRecord();
IntervalFn();

View File

@ -81,10 +81,11 @@
<script setup lang="ts">
import { onMounted, reactive, ref } from "vue";
import { deviceConfig, deviceConfigModify } from "@/api";
import { useRoute } from "vue-router";
import { useRoute, useRouter } from "vue-router";
import { TDeviceConfig } from "@/api/index.d";
import { ElMessage, FormInstance, FormRules } from "element-plus";
const { query } = useRoute();
const router = useRouter();
const ruleForm = ref<TDeviceConfig.Tres>({
deviceId: query.deviceId,
@ -144,6 +145,9 @@ const submitForm = async (formEl: FormInstance | undefined) => {
contacts: ruleForm.value.contacts,
}).then(() => {
ElMessage.success("执行成功");
setTimeout(() => {
router.back();
}, 800);
});
}
});