电价配置
This commit is contained in:
@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user