|
@@ -153,13 +153,13 @@
|
|
</div>
|
|
</div>
|
|
<a-tabs class="tabs-box" v-model:activeKey="activeKey" @change="tabChange" id="tabsBox">
|
|
<a-tabs class="tabs-box" v-model:activeKey="activeKey" @change="tabChange" id="tabsBox">
|
|
<a-tab-pane key="1" :tab="deviceType.startsWith('gasDay_normal')
|
|
<a-tab-pane key="1" :tab="deviceType.startsWith('gasDay_normal')
|
|
- ? '当日巡检监测'
|
|
|
|
- : deviceType.startsWith('dustDayReport') ||
|
|
|
|
- deviceType.startsWith('dustDayReport') ||
|
|
|
|
- deviceType.startsWith('bundleDayReport') ||
|
|
|
|
- deviceType.startsWith('bundleSpyDayReport')
|
|
|
|
- ? '最新监测报表'
|
|
|
|
- : '实时监测'
|
|
|
|
|
|
+ ? '当日巡检监测'
|
|
|
|
+ : deviceType.startsWith('dustDayReport') ||
|
|
|
|
+ deviceType.startsWith('dustDayReport') ||
|
|
|
|
+ deviceType.startsWith('bundleDayReport') ||
|
|
|
|
+ deviceType.startsWith('bundleSpyDayReport')
|
|
|
|
+ ? '最新监测报表'
|
|
|
|
+ : '实时监测'
|
|
">
|
|
">
|
|
<template
|
|
<template
|
|
v-if="(deviceType.startsWith('fanlocal') || deviceType.startsWith('fanmain')) && activeKey == '1'">
|
|
v-if="(deviceType.startsWith('fanlocal') || deviceType.startsWith('fanmain')) && activeKey == '1'">
|
|
@@ -167,22 +167,22 @@
|
|
:scroll="scroll" :isAction="true" :isShowSelect="false">
|
|
:scroll="scroll" :isAction="true" :isShowSelect="false">
|
|
<template #action="{ record }">
|
|
<template #action="{ record }">
|
|
<TableAction :actions="haveDetailArr.find((item) => deviceType.startsWith(item))
|
|
<TableAction :actions="haveDetailArr.find((item) => deviceType.startsWith(item))
|
|
- ? [
|
|
|
|
- {
|
|
|
|
- label: '详情',
|
|
|
|
- onClick: goDetail.bind(null, record),
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '定位',
|
|
|
|
- onClick: goLocation.bind(null, record),
|
|
|
|
- },
|
|
|
|
- ]
|
|
|
|
- : [
|
|
|
|
- {
|
|
|
|
- label: '定位',
|
|
|
|
- onClick: goLocation.bind(null, record),
|
|
|
|
- },
|
|
|
|
- ]
|
|
|
|
|
|
+ ? [
|
|
|
|
+ {
|
|
|
|
+ label: '详情',
|
|
|
|
+ onClick: goDetail.bind(null, record),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '定位',
|
|
|
|
+ onClick: goLocation.bind(null, record),
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ : [
|
|
|
|
+ {
|
|
|
|
+ label: '定位',
|
|
|
|
+ onClick: goLocation.bind(null, record),
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
" />
|
|
" />
|
|
</template>
|
|
</template>
|
|
</GroupMonitorTable>
|
|
</GroupMonitorTable>
|
|
@@ -197,22 +197,22 @@
|
|
title="设备监测" :form-config="formConfig" :scroll="{ y: scroll.y - 110 }">
|
|
title="设备监测" :form-config="formConfig" :scroll="{ y: scroll.y - 110 }">
|
|
<template #action="{ record }">
|
|
<template #action="{ record }">
|
|
<TableAction :actions="haveDetailArr.find((item) => deviceType.startsWith(item))
|
|
<TableAction :actions="haveDetailArr.find((item) => deviceType.startsWith(item))
|
|
- ? [
|
|
|
|
- {
|
|
|
|
- label: '详情',
|
|
|
|
- onClick: goDetail.bind(null, record),
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '定位',
|
|
|
|
- onClick: goLocation.bind(null, record),
|
|
|
|
- },
|
|
|
|
- ]
|
|
|
|
- : [
|
|
|
|
- {
|
|
|
|
- label: '定位',
|
|
|
|
- onClick: goLocation.bind(null, record),
|
|
|
|
- },
|
|
|
|
- ]
|
|
|
|
|
|
+ ? [
|
|
|
|
+ {
|
|
|
|
+ label: '详情',
|
|
|
|
+ onClick: goDetail.bind(null, record),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '定位',
|
|
|
|
+ onClick: goLocation.bind(null, record),
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ : [
|
|
|
|
+ {
|
|
|
|
+ label: '定位',
|
|
|
|
+ onClick: goLocation.bind(null, record),
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
" />
|
|
" />
|
|
</template>
|
|
</template>
|
|
<template #filterCell="{ column, record }">
|
|
<template #filterCell="{ column, record }">
|
|
@@ -258,16 +258,18 @@
|
|
</template>
|
|
</template>
|
|
<!-- 瓦斯人工巡检 -->
|
|
<!-- 瓦斯人工巡检 -->
|
|
<template v-else-if="deviceType.startsWith('gasDay_normal') && activeKey == '1'">
|
|
<template v-else-if="deviceType.startsWith('gasDay_normal') && activeKey == '1'">
|
|
- <gaspatrolTable
|
|
|
|
- :tableData="gaspatrolData"
|
|
|
|
- @getSearch="getSearch"
|
|
|
|
- @locate="goLocation"
|
|
|
|
- ></gaspatrolTable>
|
|
|
|
|
|
+ <gaspatrolTable :tableData="gaspatrolData" @getSearch="getSearch" @locate="goLocation"></gaspatrolTable>
|
|
</template>
|
|
</template>
|
|
<!-- 瓦斯日报 -->
|
|
<!-- 瓦斯日报 -->
|
|
- <template v-else-if="deviceType.startsWith('gasDayReport') && activeKey == '1'">
|
|
|
|
- <gasReport :tableData="reportTableData"
|
|
|
|
- @getSearchReport="getSearchReport" @locate="goLocation"></gasReport>
|
|
|
|
|
|
+ <template
|
|
|
|
+ v-else-if="deviceType.startsWith('gasDayReport') && activeKey == '1' && glob.sysOrgCode != 'sdmtjtbetmk'">
|
|
|
|
+ <gasReport :tableData="reportTableData" @getSearchReport="getSearchReport" @locate="goLocation">
|
|
|
|
+ </gasReport>
|
|
|
|
+ </template>
|
|
|
|
+ <template
|
|
|
|
+ v-else-if="deviceType.startsWith('gasDayReport') && activeKey == '1' && glob.sysOrgCode == 'sdmtjtbetmk'">
|
|
|
|
+ <gasReportCount :tableData="reportTableData" @getSearchReport="getSearchReport" @locate="goLocation">
|
|
|
|
+ </gasReportCount>
|
|
</template>
|
|
</template>
|
|
<!-- 粉尘监测报表-->
|
|
<!-- 粉尘监测报表-->
|
|
<template v-else-if="deviceType.startsWith('dustDayReport') && activeKey == '1'">
|
|
<template v-else-if="deviceType.startsWith('dustDayReport') && activeKey == '1'">
|
|
@@ -292,22 +294,22 @@
|
|
title="设备监测" :scroll="{ y: scroll.y - 30 }">
|
|
title="设备监测" :scroll="{ y: scroll.y - 30 }">
|
|
<template #action="{ record }">
|
|
<template #action="{ record }">
|
|
<TableAction :actions="haveDetailArr.find((item) => deviceType.startsWith(item))
|
|
<TableAction :actions="haveDetailArr.find((item) => deviceType.startsWith(item))
|
|
- ? [
|
|
|
|
- {
|
|
|
|
- label: '详情',
|
|
|
|
- onClick: goDetail.bind(null, record),
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '定位',
|
|
|
|
- onClick: goLocation.bind(null, record),
|
|
|
|
- },
|
|
|
|
- ]
|
|
|
|
- : [
|
|
|
|
- {
|
|
|
|
- label: '定位',
|
|
|
|
- onClick: goLocation.bind(null, record),
|
|
|
|
- },
|
|
|
|
- ]
|
|
|
|
|
|
+ ? [
|
|
|
|
+ {
|
|
|
|
+ label: '详情',
|
|
|
|
+ onClick: goDetail.bind(null, record),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '定位',
|
|
|
|
+ onClick: goLocation.bind(null, record),
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ : [
|
|
|
|
+ {
|
|
|
|
+ label: '定位',
|
|
|
|
+ onClick: goLocation.bind(null, record),
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
" />
|
|
" />
|
|
</template>
|
|
</template>
|
|
<template #filterCell="{ column, record }">
|
|
<template #filterCell="{ column, record }">
|
|
@@ -469,6 +471,7 @@ import MonitorTable from '../../../comment/MonitorTable.vue';
|
|
import GroupMonitorTable from '../../../comment/GroupMonitorTable.vue';
|
|
import GroupMonitorTable from '../../../comment/GroupMonitorTable.vue';
|
|
import gaspatrolTable from '../../../comment/gaspatrolTable.vue';
|
|
import gaspatrolTable from '../../../comment/gaspatrolTable.vue';
|
|
import gasReport from '../../../comment/gasReport.vue'
|
|
import gasReport from '../../../comment/gasReport.vue'
|
|
|
|
+import gasReportCount from '../../../comment/gasReportCount.vue'
|
|
import dustMonitorTable from '../../../comment/dustMonitorTable.vue';
|
|
import dustMonitorTable from '../../../comment/dustMonitorTable.vue';
|
|
import bundleMonitorTable from '../../../comment/bundleMonitorTable.vue';
|
|
import bundleMonitorTable from '../../../comment/bundleMonitorTable.vue';
|
|
import DustingTable from '../../../comment/DustingTable.vue';
|
|
import DustingTable from '../../../comment/DustingTable.vue';
|
|
@@ -593,7 +596,8 @@ const scroll = reactive({
|
|
const treeData = ref<TreeProps['treeData']>([]);
|
|
const treeData = ref<TreeProps['treeData']>([]);
|
|
let departmentInfo: Null | Object = null;
|
|
let departmentInfo: Null | Object = null;
|
|
let startMonitorTimer = 0;
|
|
let startMonitorTimer = 0;
|
|
-let searchReportParam = ref('gasDayNight')//瓦斯日报查询条件
|
|
|
|
|
|
+let searchReportParam = ref('gasDayNight')//瓦斯日报查询条件-非布尔台
|
|
|
|
+let searchReportParam1 = ref('gasDay1')//瓦斯日报查询条件-布尔台
|
|
let reportTableData = ref<any[]>([])//瓦斯日报列表数据
|
|
let reportTableData = ref<any[]>([])//瓦斯日报列表数据
|
|
|
|
|
|
//树形菜单选择事件
|
|
//树形菜单选择事件
|
|
@@ -694,7 +698,8 @@ function getMonitor(flag?) {
|
|
if (deviceType.value.startsWith('gasDay_normal')) {
|
|
if (deviceType.value.startsWith('gasDay_normal')) {
|
|
await queryNowGasInsInfoList();//人工瓦斯巡检
|
|
await queryNowGasInsInfoList();//人工瓦斯巡检
|
|
} else if (deviceType.value.startsWith('gasDayReport')) {
|
|
} else if (deviceType.value.startsWith('gasDayReport')) {
|
|
- await getSearchReport(searchReportParam.value)//瓦斯日报
|
|
|
|
|
|
+ let searchParams=glob.sysOrgCode=='sdmtjtbetmk' ? searchReportParam1.value : searchReportParam.value
|
|
|
|
+ await getSearchReport(searchParams)//瓦斯日报
|
|
} else {
|
|
} else {
|
|
await getDataSource();
|
|
await getDataSource();
|
|
}
|
|
}
|
|
@@ -870,7 +875,7 @@ async function getDataSource() {
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
dataSource.value = [];
|
|
dataSource.value = [];
|
|
- }
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -883,7 +888,7 @@ function goLocation(record) {
|
|
actions.setGlobalState({ locationName: record.jcdd, locationObj: null, pageObj: null, type: record['deviceType'] });
|
|
actions.setGlobalState({ locationName: record.jcdd, locationObj: null, pageObj: null, type: record['deviceType'] });
|
|
} else if (deviceType.value == 'gasDay_normal') {
|
|
} else if (deviceType.value == 'gasDay_normal') {
|
|
actions.setGlobalState({ locationName: record.strInstallPos, locationObj: null, pageObj: null, type: record['deviceType'] });
|
|
actions.setGlobalState({ locationName: record.strInstallPos, locationObj: null, pageObj: null, type: record['deviceType'] });
|
|
- } else if(deviceType.value == 'gasDayReport'){
|
|
|
|
|
|
+ } else if (deviceType.value == 'gasDayReport') {
|
|
actions.setGlobalState({ locationName: record.jcdd, locationObj: null, pageObj: null, type: record['deviceType'] });
|
|
actions.setGlobalState({ locationName: record.jcdd, locationObj: null, pageObj: null, type: record['deviceType'] });
|
|
} else {
|
|
} else {
|
|
if (deviceType.value.startsWith('location')) {
|
|
if (deviceType.value.startsWith('location')) {
|
|
@@ -913,10 +918,10 @@ async function queryNowGasInsInfoList() {
|
|
}
|
|
}
|
|
//查询巡检弹窗信息
|
|
//查询巡检弹窗信息
|
|
async function getSearch(param) {
|
|
async function getSearch(param) {
|
|
- addressData.value=param.address
|
|
|
|
- personData.value=param.userName
|
|
|
|
- instypeData.value=param.insType
|
|
|
|
- classData.value=param.class
|
|
|
|
|
|
+ addressData.value = param.address
|
|
|
|
+ personData.value = param.userName
|
|
|
|
+ instypeData.value = param.insType
|
|
|
|
+ classData.value = param.class
|
|
if (!param.insType) {
|
|
if (!param.insType) {
|
|
message.warning('请选择巡检类型!');
|
|
message.warning('请选择巡检类型!');
|
|
} else if (!param.class) {
|
|
} else if (!param.class) {
|
|
@@ -936,7 +941,12 @@ async function getSearch(param) {
|
|
}
|
|
}
|
|
//查询瓦斯日报列表数据
|
|
//查询瓦斯日报列表数据
|
|
async function getSearchReport(param) {
|
|
async function getSearchReport(param) {
|
|
- let res = await queryReportData({ type:param })
|
|
|
|
|
|
+ if(glob.sysOrgCode=='sdmtjtbetmk'){
|
|
|
|
+ searchReportParam1.value=param
|
|
|
|
+ }else {
|
|
|
|
+ searchReportParam.value=param
|
|
|
|
+ }
|
|
|
|
+ let res = await queryReportData({ type: param })
|
|
console.log(res, '瓦斯日报列表')
|
|
console.log(res, '瓦斯日报列表')
|
|
reportTableData.value = JSON.parse(res.content) || []
|
|
reportTableData.value = JSON.parse(res.content) || []
|
|
}
|
|
}
|
|
@@ -1046,11 +1056,11 @@ function goDetail(record?) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function goGasDayReport() {
|
|
function goGasDayReport() {
|
|
- const newPage = router.resolve({ path: '/gas/gas-report/home' });
|
|
|
|
|
|
+ const newPage = router.resolve({ path: '/gas/gas-report-inspect/home' });
|
|
window.open(newPage.href, '_blank');
|
|
window.open(newPage.href, '_blank');
|
|
}
|
|
}
|
|
-function gogasDayReportHis(){
|
|
|
|
- const newPage = router.resolve({ path: '/gas/gas-report-inspect/home' });
|
|
|
|
|
|
+function gogasDayReportHis() {
|
|
|
|
+ const newPage = router.resolve({ path: '/gas/gasDayReport/home' });
|
|
window.open(newPage.href, '_blank');
|
|
window.open(newPage.href, '_blank');
|
|
}
|
|
}
|
|
function goDustDayReport() {
|
|
function goDustDayReport() {
|