mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
feat(web): 新增设备管理功能
- 新增设备管理页面和相关功能
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user