|
@@ -69,7 +69,7 @@
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="elementTag" id="gateBox">
|
|
|
+ <div class="elementTag" id="gateBox" v-if="modalType == 'fm'">
|
|
|
<div class="elementContent">
|
|
|
<p>风门状态:关</p>
|
|
|
<p>风门过风面积:{{ selectData.gas1 ? selectData.gas1 : '-' }}</p>
|
|
@@ -419,8 +419,8 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</a-tab-pane>
|
|
|
- <a-tab-pane key="2" tab="曲线配置" v-if="hasPermission('show:fanEcharts')">
|
|
|
- <div v-if="activeKey == '2'" class="tab-item" style="display: flex">
|
|
|
+ <a-tab-pane key="6" tab="风机曲线" v-if="hasPermission('show:fanEcharts')">
|
|
|
+ <div v-if="activeKey == '6'" class="tab-item" style="display: flex">
|
|
|
<div style="width: calc(50% - 20px); height: 100%">
|
|
|
<div style="color: #fff; width: 100%; text-align: center; margin: 5px 0px">主机</div>
|
|
|
<BarAndLine
|
|
@@ -449,6 +449,21 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-tab-pane>
|
|
|
+ <a-tab-pane key="2" tab="风量实时曲线图" force-render v-if="hasPermission('echart:show')">
|
|
|
+ <div class="tab-item" style="height: 100%; padding-top: 15px">
|
|
|
+ <BarAndLine
|
|
|
+ v-if="activeKey == '2'"
|
|
|
+ class="echarts-line"
|
|
|
+ xAxisPropType="time"
|
|
|
+ :dataSource="historyList"
|
|
|
+ height="100%"
|
|
|
+ width="100%"
|
|
|
+ :chartsColumns="chartsColumnsZDKZ"
|
|
|
+ :option="echatsOption"
|
|
|
+ chartsType="listMonitor"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </a-tab-pane>
|
|
|
</a-tabs>
|
|
|
<a-button
|
|
|
v-if="hasPermission('btn:reportDown')"
|
|
@@ -609,7 +624,7 @@
|
|
|
import lodash from 'lodash';
|
|
|
import { getTableList, list, autoAdjust } from '/@/views/vent/monitorManager/fanLocalMonitor/fanLocal.api';
|
|
|
import { list as baseList } from '../../deviceManager/fanTabel/fan.api';
|
|
|
- import { echatsOption } from './fanLocal.data';
|
|
|
+ import { echatsOption, chartsColumnsZDKZ } from './fanLocal.data';
|
|
|
import { deviceControlApi } from '/@/api/vent/index';
|
|
|
import { setDivHeight } from '/@/utils/event';
|
|
|
import { BorderBox8 as DvBorderBox8 } from '@kjgl77/datav-vue3';
|
|
@@ -814,8 +829,6 @@
|
|
|
const fanControl = ref('');
|
|
|
const targetVolume = ref(600);
|
|
|
const historyList = ref([]);
|
|
|
- // const remoteChartsColumns = getTableHeaderColumns('fanlocal_chart');
|
|
|
- // const chartsColumns = remoteChartsColumns && remoteChartsColumns.length > 0 ? remoteChartsColumns : chartsColumns1;
|
|
|
|
|
|
const passWord = ref('');
|
|
|
// 默认初始是第一行
|
|
@@ -1004,6 +1017,21 @@
|
|
|
echartsDataList.value = dataList;
|
|
|
}
|
|
|
}
|
|
|
+ // 制动控制echarts数据获取
|
|
|
+ let echartsData = dataArr[selectRowIndex.value]['history'] || [];
|
|
|
+ echartsData = echartsData.filter((item) => {
|
|
|
+ item['FanfHz'] = data['Fan1StartStatus'] == '1' ? item['Fan1fHz'] : data['Fan2StartStatus'] == '1' ? item['Fan2fHz'] : 0;
|
|
|
+ item['windQuantity2'] =
|
|
|
+ item['windQuantity2'] ||
|
|
|
+ item['m3'] ||
|
|
|
+ item['ductOutletAirVolume_merge'] ||
|
|
|
+ item['windOutSpeed_merge'] ||
|
|
|
+ item['windOutSpeed1'] ||
|
|
|
+ item['windOutSpeed2'] ||
|
|
|
+ item['windOutSpeed_merge'];
|
|
|
+ return true;
|
|
|
+ });
|
|
|
+ historyList.value = echartsData;
|
|
|
}
|
|
|
} else {
|
|
|
return (dataSource.value = []);
|
|
@@ -1434,7 +1462,7 @@
|
|
|
: { auto: 1, fanlocalId: selectData.deviceID, gasMax: gasWarningVal.value };
|
|
|
autoAdjust(params)
|
|
|
.then(() => {
|
|
|
- activeKey.value = '2';
|
|
|
+ if (hasPermission('echart:show')) activeKey.value = '2';
|
|
|
if (globalConfig.History_Type == 'remote') {
|
|
|
message.success('指令已下发至生产管控平台成功!');
|
|
|
} else {
|
|
@@ -1506,6 +1534,9 @@
|
|
|
:deep(.@{ventSpace}-tabs-tabpane-active) {
|
|
|
height: 100%;
|
|
|
}
|
|
|
+ :deep(.zxm-tabs-content) {
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
.scene-box {
|
|
|
.title-text {
|
|
|
height: 32px;
|