|
|
@ -73,6 +73,7 @@ |
|
|
|
<div |
|
|
|
:class="activeTab == 4 ? 'tab_btn active_btn' : 'tab_btn'" |
|
|
|
@click="changeTab(4)" |
|
|
|
v-if="userStore.loginUserPermission != 3" |
|
|
|
> |
|
|
|
<svg |
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
@ -96,6 +97,7 @@ |
|
|
|
<div |
|
|
|
:class="activeTab == 5 ? 'tab_btn active_btn' : 'tab_btn'" |
|
|
|
@click="changeTab(5)" |
|
|
|
v-if="userStore.loginUserPermission != 3" |
|
|
|
> |
|
|
|
<svg |
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
@ -183,13 +185,19 @@ import LiquidHandle from 'cpns/LiquidHandle' |
|
|
|
import Setting from 'cpns/Setting' |
|
|
|
import Test from 'cpns/Test' |
|
|
|
import { storeToRefs } from 'pinia' |
|
|
|
import { useOperatorStore, useWebSocketStore, useSettingStore } from '@/store' |
|
|
|
import { |
|
|
|
useOperatorStore, |
|
|
|
useWebSocketStore, |
|
|
|
useSettingStore, |
|
|
|
useUserStore, |
|
|
|
} from '@/store' |
|
|
|
import { logoutJSON, getStateJSON } from '@/mock/command' |
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
|
|
|
|
const router = useRouter() |
|
|
|
const webSocketStore = useWebSocketStore() |
|
|
|
const settingStore = useSettingStore() |
|
|
|
const userStore = useUserStore() |
|
|
|
const { socketCommandInstance } = storeToRefs(webSocketStore) |
|
|
|
webSocketStore.initCommandSocket() |
|
|
|
webSocketStore.initEventSocket() |
|
|
@ -220,7 +228,7 @@ onMounted(() => { |
|
|
|
}, 1000) |
|
|
|
setTimeout(() => { |
|
|
|
webSocketStore.sendCommandMsg(getStateJSON) |
|
|
|
}, 2000) |
|
|
|
}, 1000) |
|
|
|
}) |
|
|
|
|
|
|
|
onBeforeUnmount(() => { |
|
|
|