|
@@ -40,11 +40,10 @@
|
|
<div class="scene-box">
|
|
<div class="scene-box">
|
|
<div class="top-box" v-if="!loading">
|
|
<div class="top-box" v-if="!loading">
|
|
<div class="top-center row">
|
|
<div class="top-center row">
|
|
- <div class="vent-flex-row" id="fanLocalSelectDom">
|
|
|
|
|
|
+ <div class="vent-flex-row" id="fanLocalSelectDom" v-if="getDictItemsByCode('fanlocaltype')">
|
|
<span style="color: #00f5fe; margin-left: 5px;">风机类型:</span>
|
|
<span style="color: #00f5fe; margin-left: 5px;">风机类型:</span>
|
|
<JDictSelectTag v-model:value="devicekide" placeholder="请选择性别" dictCode="fanlocaltype" :getPopupContainer="getPopupContainer" @change="changeDeviceKind" />
|
|
<JDictSelectTag v-model:value="devicekide" placeholder="请选择性别" dictCode="fanlocaltype" :getPopupContainer="getPopupContainer" @change="changeDeviceKind" />
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
<div class="button-box" v-for="(item, index) in modalTypeArr.leftBtnArr" :key="index" @click="showModal(item)">{{ item.value }}</div>
|
|
<div class="button-box" v-for="(item, index) in modalTypeArr.leftBtnArr" :key="index" @click="showModal(item)">{{ item.value }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="top-right row">
|
|
<div class="top-right row">
|
|
@@ -212,17 +211,17 @@
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
<a-tab-pane key="3" tab="历史数据">
|
|
<a-tab-pane key="3" tab="历史数据">
|
|
<div class="tab-item" v-if="activeKey === '3'">
|
|
<div class="tab-item" v-if="activeKey === '3'">
|
|
- <HistoryTable columns-type="fanlocal" device-type="fanlocal" :device-list-api="baseList" designScope="fanlocal-history" :scroll="scroll" />
|
|
|
|
|
|
+ <HistoryTable :columns-type="`${selectData.deviceType}`" :device-type="`${devicekide}`" :device-list-api="baseList" designScope="fanlocal-history" :scroll="scroll" />
|
|
</div>
|
|
</div>
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
<a-tab-pane key="4" tab="报警历史">
|
|
<a-tab-pane key="4" tab="报警历史">
|
|
<div class="tab-item" v-if="activeKey === '4'">
|
|
<div class="tab-item" v-if="activeKey === '4'">
|
|
- <AlarmHistoryTable columns-type="alarm" device-type="fanlocal" :device-list-api="baseList" designScope="alarm-history" :scroll="scroll" />
|
|
|
|
|
|
+ <AlarmHistoryTable columns-type="alarm" :device-type="`${devicekide}`" :device-list-api="baseList" designScope="alarm-history" :scroll="scroll" />
|
|
</div>
|
|
</div>
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
<a-tab-pane key="5" tab="操作历史">
|
|
<a-tab-pane key="5" tab="操作历史">
|
|
<div class="tab-item" v-if="activeKey === '5'">
|
|
<div class="tab-item" v-if="activeKey === '5'">
|
|
- <HandlerHistoryTable columns-type="operator_history" device-type="fanlocal" :device-list-api="baseList" designScope="alarm-history" :scroll="scroll" />
|
|
|
|
|
|
+ <HandlerHistoryTable columns-type="operator_history" :device-type="`${devicekide}`" :device-list-api="baseList" designScope="alarm-history" :scroll="scroll" />
|
|
</div>
|
|
</div>
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
</a-tabs>
|
|
</a-tabs>
|
|
@@ -343,6 +342,7 @@
|
|
import type { BasicColumn } from '/@/components/Table/src/types/table';
|
|
import type { BasicColumn } from '/@/components/Table/src/types/table';
|
|
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
|
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
|
import { getPopupContainer } from '/@/utils';
|
|
import { getPopupContainer } from '/@/utils';
|
|
|
|
+ import { getDictItemsByCode } from '/@/utils/dict';
|
|
|
|
|
|
const globalConfig = inject('globalConfig');
|
|
const globalConfig = inject('globalConfig');
|
|
|
|
|
|
@@ -507,6 +507,7 @@
|
|
devicekide.value = e
|
|
devicekide.value = e
|
|
loading.value = true
|
|
loading.value = true
|
|
nextTick( () => {
|
|
nextTick( () => {
|
|
|
|
+ selectRowIndex.value = 0
|
|
Object.assign(selectData, {})
|
|
Object.assign(selectData, {})
|
|
loading.value = false
|
|
loading.value = false
|
|
})
|
|
})
|
|
@@ -814,7 +815,7 @@
|
|
padding: 10px 5px;
|
|
padding: 10px 5px;
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
z-index: 999;
|
|
z-index: 999;
|
|
- top: 70px;
|
|
|
|
|
|
+ top: 60px;
|
|
.data-item {
|
|
.data-item {
|
|
pointer-events: auto;
|
|
pointer-events: auto;
|
|
.item-header {
|
|
.item-header {
|
|
@@ -868,7 +869,7 @@
|
|
padding: 10px 0;
|
|
padding: 10px 0;
|
|
min-height: 432px;
|
|
min-height: 432px;
|
|
background: linear-gradient(to right, #00deff22, #2081ff05);
|
|
background: linear-gradient(to right, #00deff22, #2081ff05);
|
|
- max-height: 450px;
|
|
|
|
|
|
+ max-height: 440px;
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
.container-group-l {
|
|
.container-group-l {
|