|
|
|
|
@ -20,7 +20,7 @@
|
|
|
|
|
<!-- 左侧电力参数区域 -->
|
|
|
|
|
<div class="power-section">
|
|
|
|
|
<!-- ABC三相电力参数 -->
|
|
|
|
|
<div class="power-params">
|
|
|
|
|
<div class="power-params" v-loading="phaseLoading" element-loading-background="rgba(122, 122, 122, 0.8)">
|
|
|
|
|
<div v-for="phase in powerPhases" :key="phase.name" class="phase-card">
|
|
|
|
|
<div class="phase-name"><span>{{ phase.name }}</span>相</div>
|
|
|
|
|
<div class="param-list">
|
|
|
|
|
@ -68,7 +68,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 回路控制区域 -->
|
|
|
|
|
<div class="circuit-section">
|
|
|
|
|
<div class="circuit-section" v-loading="infoLoading" element-loading-background="rgba(122, 122, 122, 0.8)">
|
|
|
|
|
<!-- 上排回路 -->
|
|
|
|
|
<div class="circuit-row">
|
|
|
|
|
<div v-for="(circuit, index) in info.loops.slice(0, 5)" :key="circuit.name" class="circuit-item">
|
|
|
|
|
@ -99,7 +99,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 调光通道区域 -->
|
|
|
|
|
<div class="dimming-section">
|
|
|
|
|
<div class="dimming-section" v-loading="infoLoading" element-loading-background="rgba(122, 122, 122, 0.8)">
|
|
|
|
|
<!-- 上排调光通道 -->
|
|
|
|
|
<div class="dimming-row">
|
|
|
|
|
<div v-for="(channel, index) in info.loops.slice(0, 5)" :key="channel.name" class="dimming-item">
|
|
|
|
|
@ -123,7 +123,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 右侧控制面板 -->
|
|
|
|
|
<div class="control-panel">
|
|
|
|
|
<div class="control-panel" v-loading="infoLoading" element-loading-background="rgba(122, 122, 122, 0.8)">
|
|
|
|
|
<!-- 切换模式 -->
|
|
|
|
|
<div class="control-group">
|
|
|
|
|
<div class="control-title">
|
|
|
|
|
@ -251,7 +251,7 @@ const setDeviceTime = () => {
|
|
|
|
|
|
|
|
|
|
const week = ref('')
|
|
|
|
|
const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
|
|
|
|
|
|
|
|
|
const phaseLoading = ref(true)
|
|
|
|
|
RPC.post('/adl400/readPhaseData', { comm_uid: commit_uid }).then(res => {
|
|
|
|
|
powerPhases.value[0].voltage = res.aVoltage + 'V'
|
|
|
|
|
powerPhases.value[0].current = res.aElectricCurrent + 'A'
|
|
|
|
|
@ -271,6 +271,8 @@ RPC.post('/adl400/readPhaseData', { comm_uid: commit_uid }).then(res => {
|
|
|
|
|
energyParams.value.activeEnergy = res.activeEnergy + 'kW·h'
|
|
|
|
|
energyParams.value.activePower = res.activePower + 'kW'
|
|
|
|
|
energyParams.value.powerFactor = res.powerFactor
|
|
|
|
|
}).finally(() => {
|
|
|
|
|
phaseLoading.value = false
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 电力参数数据
|
|
|
|
|
@ -404,7 +406,9 @@ const info = ref({
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const isSync = ref(true)
|
|
|
|
|
const infoLoading = ref(false)
|
|
|
|
|
const getInfo = () => {
|
|
|
|
|
infoLoading.value = true
|
|
|
|
|
isSync.value = true
|
|
|
|
|
RPC.post('/m9z/getDeviceManualInfo', { comm_uid: commit_uid }).then(res => {
|
|
|
|
|
info.value = res
|
|
|
|
|
@ -413,12 +417,14 @@ const getInfo = () => {
|
|
|
|
|
}, 1000);
|
|
|
|
|
}).finally(() => {
|
|
|
|
|
isInitData.value = false
|
|
|
|
|
infoLoading.value = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
getInfo()
|
|
|
|
|
|
|
|
|
|
const refresh = () => {
|
|
|
|
|
getInfo()
|
|
|
|
|
phaseLoading.value = true
|
|
|
|
|
RPC.post('/adl400/readPhaseData', { comm_uid: commit_uid }).then(res => {
|
|
|
|
|
powerPhases.value[0].voltage = res.aVoltage + 'V'
|
|
|
|
|
powerPhases.value[0].current = res.aElectricCurrent + 'A'
|
|
|
|
|
@ -438,6 +444,8 @@ const refresh = () => {
|
|
|
|
|
energyParams.value.activeEnergy = res.activeEnergy + 'kW·h'
|
|
|
|
|
energyParams.value.activePower = res.activePower + 'kW'
|
|
|
|
|
energyParams.value.powerFactor = res.powerFactor
|
|
|
|
|
}).finally(() => {
|
|
|
|
|
phaseLoading.value = false
|
|
|
|
|
})
|
|
|
|
|
RPC.post('/m9z/getDeviceSunRiseTime', { comm_uid: commit_uid }).then(res => {
|
|
|
|
|
sunriseTime.value = res.Sunrise ? dayjs(res.Sunrise).format('HH:mm:ss') : ''
|
|
|
|
|
|