|
@@ -125,17 +125,22 @@
|
|
<FullscreenExitOutlined style="font-size: 18px" />
|
|
<FullscreenExitOutlined style="font-size: 18px" />
|
|
</div>
|
|
</div>
|
|
<!-- 是人员定位表单代码,由于放在tab中,表格对已知刷新,导致表单数据也在刷寻,造成输入一半的中文时会清空输入框的内容,导致的输入不上数据 -->
|
|
<!-- 是人员定位表单代码,由于放在tab中,表格对已知刷新,导致表单数据也在刷寻,造成输入一半的中文时会清空输入框的内容,导致的输入不上数据 -->
|
|
- <div v-if="deviceType.startsWith('location') && activeKey == '1'" class="location-form"
|
|
|
|
- style="position: absolute; z-index: 9999; top: 50px">
|
|
|
|
|
|
+ <div v-if="(deviceType.startsWith('location') || deviceType.startsWith('vehicle')) && activeKey == '1'" class="location-form" style="position: absolute; z-index: 9999; top: 50px">
|
|
<div class="location-form-item">
|
|
<div class="location-form-item">
|
|
- <span class="location-form-label">人员名称:</span>
|
|
|
|
|
|
+ <span class="location-form-label">{{ deviceType.startsWith('location') ? '人员名称:' : '车辆名称' }}</span>
|
|
<Input style="width: 200px" v-model:value="locationForm.strname" />
|
|
<Input style="width: 200px" v-model:value="locationForm.strname" />
|
|
</div>
|
|
</div>
|
|
- <div class="location-form-item">
|
|
|
|
|
|
+ <!-- <div class="location-form-item">
|
|
<span class="location-form-label">所属部门:</span>
|
|
<span class="location-form-label">所属部门:</span>
|
|
- <MTreeSelect style="width: 200px" v-model:value="locationForm.department" placeholder="请选择所属部门"
|
|
|
|
- api="/monitor/getDepartmentInfo" :virtual="false" :isGetPopupContainer="false" />
|
|
|
|
- </div>
|
|
|
|
|
|
+ <MTreeSelect
|
|
|
|
+ style="width: 200px"
|
|
|
|
+ v-model:value="locationForm.department"
|
|
|
|
+ placeholder="请选择所属部门"
|
|
|
|
+ api="/monitor/getDepartmentInfo"
|
|
|
|
+ :virtual="false"
|
|
|
|
+ :isGetPopupContainer="false"
|
|
|
|
+ />
|
|
|
|
+ </div> -->
|
|
<div class="location-form-item">
|
|
<div class="location-form-item">
|
|
<span class="location-form-label">分站名称:</span>
|
|
<span class="location-form-label">分站名称:</span>
|
|
<Input style="width: 200px" v-model:value="locationForm.stationname" />
|
|
<Input style="width: 200px" v-model:value="locationForm.stationname" />
|
|
@@ -233,9 +238,18 @@
|
|
</MonitorTable>
|
|
</MonitorTable>
|
|
</template>
|
|
</template>
|
|
<template v-else-if="deviceType.startsWith('vehicle') && activeKey == '1'">
|
|
<template v-else-if="deviceType.startsWith('vehicle') && activeKey == '1'">
|
|
- <MonitorTable ref="monitorTable" :columnsType="`${deviceType}_monitor`" :deviceType="deviceType"
|
|
|
|
- :dataSource="dataSource" design-scope="device_monitor" :isShowActionColumn="true" :isShowSelect="false"
|
|
|
|
- title="设备监测" :form-config="vehicleFormConfig" :scroll="{ y: scroll.y - 110 }">
|
|
|
|
|
|
+ <MonitorTable
|
|
|
|
+ ref="monitorTable"
|
|
|
|
+ :columnsType="`${deviceType}_monitor`"
|
|
|
|
+ :deviceType="deviceType"
|
|
|
|
+ :dataSource="dataSource"
|
|
|
|
+ design-scope="device_monitor"
|
|
|
|
+ :isShowActionColumn="true"
|
|
|
|
+ :isShowSelect="false"
|
|
|
|
+ title="设备监测"
|
|
|
|
+ :scroll="{ y: scroll.y - 110 }"
|
|
|
|
+ style="margin-top: 60px"
|
|
|
|
+ >
|
|
<template v-if="!noLocationList.includes('location')" #action="{ record }">
|
|
<template v-if="!noLocationList.includes('location')" #action="{ record }">
|
|
<TableAction :actions="[
|
|
<TableAction :actions="[
|
|
{
|
|
{
|
|
@@ -456,8 +470,10 @@
|
|
dict-code="fan_dict" />
|
|
dict-code="fan_dict" />
|
|
</template>
|
|
</template>
|
|
<template v-else-if="deviceType.startsWith('fanlocal')">
|
|
<template v-else-if="deviceType.startsWith('fanlocal')">
|
|
- <HistoryTableNew class="w-100% h-100%" :device-code="`${deviceType}`" :scroll="scroll"
|
|
|
|
- dict-code="fanlocal_dict" />
|
|
|
|
|
|
+ <HistoryTableNew class="w-100% hM-100%" :device-code="`${deviceType}`" :scroll="scroll" dict-code="fanlocal_dict" />
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else-if="deviceType.startsWith('majorpath')">
|
|
|
|
+ <HistoryTableMajorPath class="w-100% h-100%" :sysId="`${systemID}`" :scroll="scroll" columnsType="sys_majorpath" type="table" />
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
<HistoryTable ref="historyTable" :sysId="systemID" :columns-type="`${deviceType}`"
|
|
<HistoryTable ref="historyTable" :sysId="systemID" :columns-type="`${deviceType}`"
|
|
@@ -465,6 +481,11 @@
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
|
|
+ <!-- <a-tab-pane key="5" tab="历史曲线" v-if="deviceType.startsWith('majorpath')">
|
|
|
|
+ <div class="tab-item">
|
|
|
|
+ <HistoryTableMajorPath class="w-100% h-100%" :sysId="`${systemID}`" :scroll="scroll" columnsType="sys_majorpath" type="chart" />
|
|
|
|
+ </div>
|
|
|
|
+ </a-tab-pane> -->
|
|
<a-tab-pane key="3" tab="报警历史" v-if="!noWarningArr.find((item) => deviceType.startsWith(item))">
|
|
<a-tab-pane key="3" tab="报警历史" v-if="!noWarningArr.find((item) => deviceType.startsWith(item))">
|
|
<div class="tab-item">
|
|
<div class="tab-item">
|
|
<AlarmHistoryTable ref="alarmHistoryTable" v-if="activeKey == '3'" :sysId="systemID" columns-type="alarm"
|
|
<AlarmHistoryTable ref="alarmHistoryTable" v-if="activeKey == '3'" :sysId="systemID" columns-type="alarm"
|
|
@@ -510,6 +531,7 @@ import bundleMonitorTable from '../../../comment/bundleMonitorTable.vue';
|
|
import gasInspectDialog from '../../../comment/gasInspectDialog.vue';
|
|
import gasInspectDialog from '../../../comment/gasInspectDialog.vue';
|
|
import DustingTable from '../../../comment/DustingTable.vue';
|
|
import DustingTable from '../../../comment/DustingTable.vue';
|
|
import bundleSpyMonitorTable from '../../../comment/bundleSpyMonitorTable.vue';
|
|
import bundleSpyMonitorTable from '../../../comment/bundleSpyMonitorTable.vue';
|
|
|
|
+import HistoryTableMajorPath from './modal/HistoryTableMajorPath.vue';
|
|
import HistoryBall from './modal/history-ball.vue';
|
|
import HistoryBall from './modal/history-ball.vue';
|
|
import { TreeProps, message, Progress, Input, Select } from 'ant-design-vue';
|
|
import { TreeProps, message, Progress, Input, Select } from 'ant-design-vue';
|
|
import { TableAction } from '/@/components/Table';
|
|
import { TableAction } from '/@/components/Table';
|
|
@@ -1064,26 +1086,6 @@ function goDetail(record?) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-// function goGasDayReport() {
|
|
|
|
-// const newPage = router.resolve({ path: '/gas/gas-report-inspect/home' });
|
|
|
|
-// window.open(newPage.href, '_blank');
|
|
|
|
-// }
|
|
|
|
-// function gogasDayReportHis() {
|
|
|
|
-// const newPage = router.resolve({ path: '/gas/gasDayReport/home' });
|
|
|
|
-// window.open(newPage.href, '_blank');
|
|
|
|
-// }
|
|
|
|
-// function goDustDayReport() {
|
|
|
|
-// const newPage = router.resolve({ path: '/dustDayReport/home' });
|
|
|
|
-// window.open(newPage.href, '_blank');
|
|
|
|
-// }
|
|
|
|
-// function goBundleDayReport() {
|
|
|
|
-// const newPage = router.resolve({ path: '/bundleDayReport/home' });
|
|
|
|
-// window.open(newPage.href, '_blank');
|
|
|
|
-// }
|
|
|
|
-// function goBundleSpyDayReport() {
|
|
|
|
-// const newPage = router.resolve({ path: '/bundleSpyDayReport/home' });
|
|
|
|
-// window.open(newPage.href, '_blank');
|
|
|
|
-// }
|
|
|
|
function exportXls() {
|
|
function exportXls() {
|
|
handleExportXls('瓦斯巡检记录', getExportUrl, { devicetype: deviceType.value });
|
|
handleExportXls('瓦斯巡检记录', getExportUrl, { devicetype: deviceType.value });
|
|
}
|
|
}
|