|
@@ -18,6 +18,8 @@ const tableHeight = ref(window.innerHeight - 150 + 'px')
|
|
|
/**excel 开始 */
|
|
|
const excelCheckIds = ref([])
|
|
|
const excelList = ref([])
|
|
|
+/** 额定功率 */
|
|
|
+const powerproduction = ref("")
|
|
|
//点击excel项时
|
|
|
const funExcelChange = async (obj) => {
|
|
|
excelCheckIds.value = [obj.id] //当为单选展示风机图表时
|
|
@@ -117,8 +119,8 @@ const funSubmit = async () => {
|
|
|
// const lineRes = lineChartRes
|
|
|
if (tempRes.code === 200) {
|
|
|
if (tempRes.data?.length) {
|
|
|
- console.log(tempRes.data)
|
|
|
for (const chart of tempRes.data) {
|
|
|
+ powerproduction.value = `(额定功率=${chart.power.powerproduction}kW)`
|
|
|
barxAxis.data = Object.keys(chart.res1)
|
|
|
barSeries[0].data = Object.values(chart.res1)
|
|
|
chartId++
|
|
@@ -512,7 +514,7 @@ onActivated(() => {
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<div class="relative shadow rounded-[6px] shadow-blue-500 px-[10px] pt-[10px] pb-[10px]">
|
|
|
- <div class="text-[14px] absolute top-[-7px] text-[#B3B3B3] left-[20px]">数据展示</div>
|
|
|
+ <div class="text-[14px] absolute top-[-7px] text-[#838383] left-[20px]">数据展示</div>
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="5">
|
|
|
<tree-cop :data="treeData" @checkChange="funTreeCheckChange" :show-checkbox="false" :height="treeHeight"
|
|
@@ -531,7 +533,7 @@ onActivated(() => {
|
|
|
@click="funActCop({xAxis:barxAxis, yAxis:baryAxis, series: barSeries}, 'barChartCop')">
|
|
|
<ZoomIn />
|
|
|
</el-icon>
|
|
|
- <bar-chart-cop width="100%" height="100%" subtext="平均功率-额定功率" :xAxis="barxAxis" :yAxis="baryAxis" :series="barSeries"></bar-chart-cop>
|
|
|
+ <bar-chart-cop width="100%" height="100%" :subtext="`平均功率-额定功率 ${powerproduction}`" :xAxis="barxAxis" :yAxis="baryAxis" :series="barSeries"></bar-chart-cop>
|
|
|
</div>
|
|
|
<div class="w-[100%] h-[49%] flex flex-col items-end shadow rounded-[6px] shadow-blue-500">
|
|
|
<el-icon class="mr-[10px] mt-[10px] cursor-pointer" size="18"
|
|
@@ -539,7 +541,7 @@ onActivated(() => {
|
|
|
<ZoomIn />
|
|
|
</el-icon>
|
|
|
<line-chart-cop class="" height="100%" width="100%" :xAxis="linexAxis" :yAxis="lineyAxis"
|
|
|
- :series="lineSeries" subtext="额定功率温度分析" :dataset="lineDataSet"></line-chart-cop>
|
|
|
+ :series="lineSeries" :subtext="`额定功率温度分析 ${powerproduction}`" :dataset="lineDataSet"></line-chart-cop>
|
|
|
</div>
|
|
|
<!-- <div class="mr-[10px] w-[49%] h-[49%] flex flex-col items-end shadow rounded-[6px] shadow-blue-500" v-if="!!lineSeries.length"> -->
|
|
|
<!-- <el-icon class="mr-[10px] mt-[10px] cursor-pointer" size="18"
|