|
@@ -281,7 +281,7 @@
|
|
|
:sysId="systemID"
|
|
|
:columns-type="`${deviceType}`"
|
|
|
:device-type="deviceType"
|
|
|
- :device-list-api="getDeviceList.bind(null, { devicekind: deviceType, sysId: systemID, pageSize: 10000 })"
|
|
|
+ :device-list-api="list.bind(null, { devicetype: deviceType, sysId: systemID, pageSize: 10000 })"
|
|
|
designScope="device-history" :scroll="scroll" />
|
|
|
</div>
|
|
|
</a-tab-pane>
|
|
@@ -314,7 +314,7 @@
|
|
|
<script setup lang="ts">
|
|
|
import { ref, onMounted, onUnmounted, ComponentOptions, shallowRef, reactive, defineProps, watch } from 'vue'
|
|
|
import { SendOutlined } from '@ant-design/icons-vue';
|
|
|
-import { list, getDeviceList, getDeviceTypeList } from './device.api'
|
|
|
+import { list, getDeviceList, getDeviceTypeList, devPosition } from './device.api'
|
|
|
import AlarmHistoryTable from '../../../comment/AlarmHistoryTable.vue';
|
|
|
import HistoryTable from '../../../comment/HistoryTable.vue';
|
|
|
import HandlerHistoryTable from '../../../comment/HandlerHistoryTable.vue';
|
|
@@ -334,7 +334,7 @@ import BarAndLine from '/@/components/chart/BarAndLine.vue';
|
|
|
import { nextTick } from 'vue';
|
|
|
// import { BorderBox8 as DvBorderBox8 } from '@kjgl77/datav-vue3';
|
|
|
|
|
|
-const {FiberModal, BundleModal, DustModal, BallvalveModal} = getMonitorComponent()
|
|
|
+const {FiberModal, BundleModal, DustModal, BallvalveModal, AtomizingModal} = getMonitorComponent()
|
|
|
type DeviceType = { deviceType: string, deviceName: string, datalist: any[] };
|
|
|
|
|
|
const props = defineProps({
|
|
@@ -400,16 +400,18 @@ const onSelect: TreeProps['onSelect'] = (keys, e) => {
|
|
|
deviceType.value = ''
|
|
|
systemID.value = ''
|
|
|
deviceList.value = []
|
|
|
+ const title = e.node.title; // 在
|
|
|
+ debugger;
|
|
|
if (e.node.parent && (e.node.parent.node.type.toString()).startsWith('sys')) {
|
|
|
systemType.value = e.node.parent.node.type
|
|
|
deviceType.value = e.node.parent.node.type
|
|
|
systemID.value = e.node.type
|
|
|
// 传递工作面id信息,用于定位
|
|
|
- actions.setGlobalState({ locationObj: { pageType: deviceType.value, deviceid: systemID.value }, pageObj: null });
|
|
|
+ actions.setGlobalState({ locationObj: { pageType: deviceType.value, deviceid: systemID.value }, pageObj: null });
|
|
|
} else {
|
|
|
systemType.value = e.node.type
|
|
|
deviceType.value = e.node.type
|
|
|
- actions.setGlobalState({ locationObj: { pageType: deviceType.value }, pageObj: null });
|
|
|
+ actions.setGlobalState({ locationObj: { pageType: deviceType.value }, pageObj: null });
|
|
|
}
|
|
|
if(timer == null){
|
|
|
timer = undefined
|
|
@@ -630,6 +632,9 @@ function goDetail(record?) {
|
|
|
} else if (deviceType.value.startsWith('ballvalve')) {
|
|
|
currentModal.value = BallvalveModal
|
|
|
modalVisible.value = true;
|
|
|
+ } else if (deviceType.value.startsWith('atomizing')) {
|
|
|
+ currentModal.value = AtomizingModal
|
|
|
+ modalVisible.value = true;
|
|
|
} else if (deviceType.value.indexOf("gate") != -1) {
|
|
|
const newPage = router.resolve({ path: '/monitorChannel/monitor-gate', query: { id: activeID.value } })
|
|
|
window.open(newPage.href, '_blank')
|
|
@@ -816,6 +821,8 @@ onMounted(async () => {
|
|
|
const posShowData = pageObj.locationPlane
|
|
|
if (posShowData) {
|
|
|
locationList.value = posShowData
|
|
|
+ }else{
|
|
|
+ locationList.value = await devPosition({})
|
|
|
}
|
|
|
})
|
|
|
|