综合查询相关接口不再使用中文categoryName统一使用deviceCategory

This commit is contained in:
白菜
2025-10-16 16:10:29 +08:00
parent fb0eda4565
commit f4e6821484
14 changed files with 130 additions and 141 deletions

View File

@ -100,7 +100,7 @@
<span
class="pointer"
@click="
showChart(item.pointName || '', 'PCS', pcsItem.deviceId)
showChart(item.pointName || '', pcsItem.deviceId)
"
>
{{ pcsItem[item.attr] | formatNumber }}
@ -136,7 +136,7 @@
>
<span
class="pointer"
@click="showChart('直流功率', 'PCS分支设备', item.deviceId)"
@click="showChart('直流功率', item.deviceId,true)"
>{{ item.dcPower }}kW</span
>
</el-descriptions-item>
@ -148,7 +148,7 @@
>
<span
class="pointer"
@click="showChart('直流电压', 'PCS分支设备', item.deviceId)"
@click="showChart('直流电压', item.deviceId,true)"
>{{ item.dcVoltage }}V</span
>
</el-descriptions-item>
@ -160,7 +160,7 @@
>
<span
class="pointer"
@click="showChart('直流电流', 'PCS分支设备', item.deviceId)"
@click="showChart('直流电流', item.deviceId,true)"
>{{ item.dcCurrent }}A</span
>
</el-descriptions-item>
@ -169,7 +169,6 @@
</el-card>
</div>
<el-empty v-show="pcsList.length <= 0" :image-size="200"></el-empty>
<!-- 电位图表 showChart({pointName:点位名称,categoryName:设备名称})-->
<point-chart ref="pointChart" :site-id="siteId" />
</div>
</template>
@ -270,10 +269,9 @@ export default {
};
},
methods: {
showChart(pointName, categoryName, deviceId) {
console.log("点击查询图表", pointName, categoryName, deviceId);
showChart(pointName, deviceId,isBranch=false) {
pointName &&
this.$refs.pointChart.showChart({ pointName, categoryName, deviceId });
this.$refs.pointChart.showChart({ pointName,deviceCategory:isBranch ? 'BRANCH' : 'PCS', deviceId });
},
//6个方块数据
getRunningHeadData() {