|
@@ -194,7 +194,7 @@
|
|
<template v-else-if="deviceType.startsWith('gaspatrol') && activeKey == '1'">
|
|
<template v-else-if="deviceType.startsWith('gaspatrol') && activeKey == '1'">
|
|
<gaspatrolTable :addressData="addressData" :personData="personData" :instypeData="instypeData"
|
|
<gaspatrolTable :addressData="addressData" :personData="personData" :instypeData="instypeData"
|
|
:classData="classData" :tableData="gaspatrolData" @addressInput="addressInput" @userInput="userInput"
|
|
:classData="classData" :tableData="gaspatrolData" @addressInput="addressInput" @userInput="userInput"
|
|
- @insTypeChange="insTypeChange" @classChange="classChange"></gaspatrolTable>
|
|
|
|
|
|
+ @insTypeChange="insTypeChange" @classChange="classChange" @getSearch="getSearch"></gaspatrolTable>
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
<!-- 工作面echarts图标 -->
|
|
<!-- 工作面echarts图标 -->
|
|
@@ -365,7 +365,7 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { ref, onMounted, onUnmounted, ComponentOptions, shallowRef, reactive, defineProps, watch } from 'vue';
|
|
import { ref, onMounted, onUnmounted, ComponentOptions, shallowRef, reactive, defineProps, watch } from 'vue';
|
|
import { SendOutlined, FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons-vue';
|
|
import { SendOutlined, FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons-vue';
|
|
-import { list, getDeviceList, getDeviceTypeList, devPosition, getDepartmentInfo, getExportUrl, queryNowGasInsInfo, } from './device.api';
|
|
|
|
|
|
+import { list, getDeviceList, getDeviceTypeList, devPosition, getDepartmentInfo, getExportUrl, queryNowGasInsInfo,queryNowGasSta } from './device.api';
|
|
import AlarmHistoryTable from '../../../comment/AlarmHistoryTable.vue';
|
|
import AlarmHistoryTable from '../../../comment/AlarmHistoryTable.vue';
|
|
import HistoryTable from '../../../comment/HistoryTable.vue';
|
|
import HistoryTable from '../../../comment/HistoryTable.vue';
|
|
import HandlerHistoryTable from '../../../comment/HandlerHistoryTable.vue';
|
|
import HandlerHistoryTable from '../../../comment/HandlerHistoryTable.vue';
|
|
@@ -797,11 +797,23 @@ let userInput = (param) => {
|
|
//巡检类型选项切换
|
|
//巡检类型选项切换
|
|
let insTypeChange = (param) => {
|
|
let insTypeChange = (param) => {
|
|
instypeData.value = param
|
|
instypeData.value = param
|
|
|
|
+
|
|
}
|
|
}
|
|
//巡检班次选项切换
|
|
//巡检班次选项切换
|
|
let classChange = (param) => {
|
|
let classChange = (param) => {
|
|
classData.value = param
|
|
classData.value = param
|
|
}
|
|
}
|
|
|
|
+//查询巡检弹窗信息
|
|
|
|
+async function getSearch(){
|
|
|
|
+ if(!instypeData.value){
|
|
|
|
+ message.warning('请选择巡检类型!')
|
|
|
|
+ }else if(!classData.value){
|
|
|
|
+ message.warning('请选择巡检班次!');
|
|
|
|
+ }else {
|
|
|
|
+ let res=await queryNowGasSta({insType:instypeData.value,class:classData.value})
|
|
|
|
+ console.log(res,'巡检弹窗信息')
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
function goDetail(record?) {
|
|
function goDetail(record?) {
|