feat(web): 新增设备管理功能

- 新增设备管理页面和相关功能
This commit is contained in:
zhoumengru
2025-09-09 09:39:15 +08:00
36 changed files with 4123 additions and 815 deletions

View File

@@ -347,7 +347,11 @@ export default {
changePolicy(e) {
const val = e.target.value
if (val == 1) {
this.formData.period5.splice(1,1)
// const {length} = this.formData.period5
// this.formData.period5.splice(1,1)
this.formData.period1=[]
} else {
this.formData.period5[1] =
{
@@ -477,11 +481,13 @@ export default {
this.$refs.periodRef
.validateFields()
.then((res) => {
console.log(this.formData.period1)
console.log(this.formData.period1,'=============')
const target = this.formData.period1.find((item) => item.month == this.periodForm.month)
if (target) {
target.children.push(this.periodForm) // 如果找到,放入 children
}else{
this.formData.period1.push(this.periodForm)
}
// this.formData.period1.push(this.periodForm)
@@ -636,6 +642,9 @@ export default {
:deep(.no-hover-row:hover > td) {
background-color: transparent !important;
}
:deep(.ant-table-wrapper .ant-table-cell){
background:none!important;
}
// /* 禁用行的 hover 过渡动画 */
// .ant-table-tbody > tr.ant-table-row {
// transition: none !important;