|
@@ -104,18 +104,18 @@
|
|
|
import ModuleOriginal from './components/ModuleOriginal.vue';
|
|
|
import ModuleCommon from './components/ModuleCommon.vue';
|
|
|
// import { useRoute } from 'vue-router';
|
|
|
- import VentModal from '/@/components/vent/micro/ventModal.vue';
|
|
|
- import { mountedThree, destroy, setModelType, updateText, play } from '/@/views/vent/monitorManager/balancePressMonitor/balancePress.threejs';
|
|
|
+ // import VentModal from '/@/components/vent/micro/ventModal.vue';
|
|
|
+ import { mountedThree, destroy, setModelType, play } from '/@/views/vent/monitorManager/balancePressMonitor/balancePress.threejs';
|
|
|
import { list } from './configurable.api';
|
|
|
- import { useRoute, useRouter } from 'vue-router';
|
|
|
+ import { useRoute } from 'vue-router';
|
|
|
import { useGlobSetting } from '/@/hooks/setting';
|
|
|
// import { testConfigVent, testConfigVentRealtime } from './configurable.data';
|
|
|
|
|
|
- const { sysDataType = 'monitor', title = '智能通风管控系统' } = useGlobSetting();
|
|
|
+ const { sysDataType = 'monitor', title = '智能通风管控系统', sysOrgCode } = useGlobSetting();
|
|
|
const { configs, isOriginal, isCommon, fetchConfigs } = useInitConfigs();
|
|
|
const { mainTitle, enhancedConfigs, hiddenList, data, updateData, updateEnhancedConfigs } = useInitPage(title);
|
|
|
const route = useRoute();
|
|
|
- const router = useRouter();
|
|
|
+ // const router = useRouter();
|
|
|
const isDataRealTime = ref(sysDataType === 'monitor');
|
|
|
// const showBar = ref(true);
|
|
|
const loading = ref(false);
|
|
@@ -179,16 +179,16 @@
|
|
|
}, 60000);
|
|
|
}
|
|
|
|
|
|
- function goMicroApp() {
|
|
|
- router.push({
|
|
|
- path: route.path,
|
|
|
- query: {
|
|
|
- ...route.query,
|
|
|
- type: 'model3D',
|
|
|
- deviceType: 'model3D',
|
|
|
- },
|
|
|
- });
|
|
|
- }
|
|
|
+ // function goMicroApp() {
|
|
|
+ // router.push({
|
|
|
+ // path: route.path,
|
|
|
+ // query: {
|
|
|
+ // ...route.query,
|
|
|
+ // type: 'model3D',
|
|
|
+ // deviceType: 'model3D',
|
|
|
+ // },
|
|
|
+ // });
|
|
|
+ // }
|
|
|
|
|
|
watch(
|
|
|
() => route.query,
|
|
@@ -209,7 +209,11 @@
|
|
|
initInterval();
|
|
|
|
|
|
mountedThree().then(async () => {
|
|
|
- await setModelType('balancePressTun'); //balancePressBase
|
|
|
+ if (sysOrgCode === 'jsnyspmy') {
|
|
|
+ await setModelType('balancePressSp'); //balancePressBase
|
|
|
+ } else {
|
|
|
+ await setModelType('balancePressTun'); //balancePressBase
|
|
|
+ }
|
|
|
loading.value = false;
|
|
|
play('startSmoke', 'top', 30, 'open', 0);
|
|
|
});
|