|
@@ -78,7 +78,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
|
-import { reactive, onMounted, ref, nextTick, computed, inject ,onBeforeUnmount } from 'vue';
|
|
|
+import { reactive, onMounted, ref, nextTick, computed, inject, onBeforeUnmount } from 'vue';
|
|
|
import fanMonitor from './components/fan-monitor.vue';
|
|
|
import mainMonitor from './components/main-monitor.vue';
|
|
|
import windDevice from './components/wind-device.vue';
|
|
@@ -117,7 +117,7 @@ const pageType = ref('home');
|
|
|
let router = useRouter();
|
|
|
|
|
|
function goDetail(deviceType) {
|
|
|
- debugger
|
|
|
+ // debugger
|
|
|
|
|
|
// Modal.confirm({
|
|
|
// content: () => '暂未连接井下设备!',
|
|
@@ -141,14 +141,10 @@ function goDetail(deviceType) {
|
|
|
router.push('/monitorChannel/monitor-fanmain');
|
|
|
} else if (deviceType == 'fanLocal') {
|
|
|
router.push('/monitorChannel/monitor-fanlocal');
|
|
|
- } else if(deviceType == 'majorpath') {
|
|
|
-
|
|
|
- } else if(deviceType == 'work'){
|
|
|
- router.push('/monitorChannel/wokerFace-home');
|
|
|
+ } else if (deviceType == 'windrect') {
|
|
|
+ router.push('/monitorChannel/monitor-windrect')
|
|
|
} else if (deviceType == 'warning') {
|
|
|
router.push('/monitorChannel/monitor-alarm-home');
|
|
|
- } else {
|
|
|
- router.push('/monitorChannel/monitor-gate');
|
|
|
}
|
|
|
}
|
|
|
function goHome() {
|
|
@@ -207,8 +203,29 @@ function getList() {
|
|
|
}
|
|
|
|
|
|
flList.value = res.windrect || res.sys_wind;
|
|
|
- lineList.value = res.sys_majorpath || [];
|
|
|
- workList.value = res.sys_surface_caimei || [];
|
|
|
+
|
|
|
+ if (res.sys_majorpath.length != 0) {
|
|
|
+ lineList.value = res.sys_majorpath;
|
|
|
+ } else {
|
|
|
+ let paramArr: any = []
|
|
|
+ paramArr.push({
|
|
|
+ deviceName: '关键-路线',
|
|
|
+ deviceType: 'sys_majorpath',
|
|
|
+ })
|
|
|
+ lineList.value = paramArr
|
|
|
+ }
|
|
|
+
|
|
|
+ if (res.sys_surface_caimei.length != 0) {
|
|
|
+ workList.value = res.sys_surface_caimei;
|
|
|
+ } else {
|
|
|
+ let paramArr: any = []
|
|
|
+ paramArr.push({
|
|
|
+ deviceName: '工作面-6',
|
|
|
+ deviceType: 'sys_surface_caimei',
|
|
|
+ })
|
|
|
+ workList.value = paramArr
|
|
|
+ }
|
|
|
+
|
|
|
warnData.value = res.warn || [];
|
|
|
deviceData.value = res.device || {};
|
|
|
});
|