电价配置

This commit is contained in:
白菜
2025-10-10 10:49:42 +08:00
parent cceca2af4f
commit ad95debdac
4 changed files with 27 additions and 33 deletions

View File

@ -142,14 +142,14 @@ export default {
this.mode='edit'
//获取详情 初始化hoursOptions
this.loading = true
detailPriceConfig({id}).then(response => {
detailPriceConfig(id).then(response => {
const data = response?.data || {}
this.hoursOptions = data?.range || []
this.powerDate=data?.year && data?.month ? data.year +'-'+data.month : ''
this.priceTypeOptions.forEach(item=>{
item.price = data[item.id] || ''
item.price = data[item.id]
})
})
}).finally(()=>this.loading = false)
}else {
this.mode='add'
}