|
@ -123,6 +123,9 @@ |
|
|
<Operator |
|
|
<Operator |
|
|
v-if="activeTab == 1 && showOpertor" |
|
|
v-if="activeTab == 1 && showOpertor" |
|
|
:changeShowOperator="changeShowOperator" |
|
|
:changeShowOperator="changeShowOperator" |
|
|
|
|
|
:handleShowKeyBoard="handleShowKeyBoard" |
|
|
|
|
|
:hideKeyBoard="hideKeyBoard" |
|
|
|
|
|
:input="input" |
|
|
/> |
|
|
/> |
|
|
<Progress |
|
|
<Progress |
|
|
v-if="activeTab == 1 && !showOpertor" |
|
|
v-if="activeTab == 1 && !showOpertor" |
|
@ -173,11 +176,19 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</van-overlay> --> |
|
|
</van-overlay> --> |
|
|
|
|
|
<div class="key_wrap" v-if="showkeyboard"> |
|
|
|
|
|
<SimpleKeyboard |
|
|
|
|
|
:hideKeyBoard="hideKeyBoard" |
|
|
|
|
|
@onChange="onChange" |
|
|
|
|
|
:input="input" |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup> |
|
|
<script setup> |
|
|
import { ref, onMounted, onBeforeUnmount } from 'vue' |
|
|
import { ref, onMounted, onBeforeUnmount } from 'vue' |
|
|
|
|
|
import SimpleKeyboard from 'cpns/SimpleKeyboard' |
|
|
import moment from 'moment' |
|
|
import moment from 'moment' |
|
|
import Operator from 'cpns/Operator' |
|
|
import Operator from 'cpns/Operator' |
|
|
import Progress from 'cpns/Progress' |
|
|
import Progress from 'cpns/Progress' |
|
@ -203,6 +214,16 @@ const { socketCommandInstance } = storeToRefs(webSocketStore) |
|
|
webSocketStore.initCommandSocket() |
|
|
webSocketStore.initCommandSocket() |
|
|
webSocketStore.initEventSocket() |
|
|
webSocketStore.initEventSocket() |
|
|
|
|
|
|
|
|
|
|
|
const showkeyboard = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const handleShowKeyBoard = () => { |
|
|
|
|
|
showkeyboard.value = true |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const hideKeyBoard = () => { |
|
|
|
|
|
showkeyboard.value = false |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const showOpertor = ref(true) |
|
|
const showOpertor = ref(true) |
|
|
|
|
|
|
|
|
const operatorStore = useOperatorStore() |
|
|
const operatorStore = useOperatorStore() |
|
@ -214,6 +235,11 @@ const changeShowOperator = flag => { |
|
|
showOpertor.value = flag |
|
|
showOpertor.value = flag |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const input = ref('') |
|
|
|
|
|
const onChange = a => { |
|
|
|
|
|
input.value = a |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const changeTab = index => { |
|
|
const changeTab = index => { |
|
|
activeTab.value = index |
|
|
activeTab.value = index |
|
|
if (index == 5) { |
|
|
if (index == 5) { |
|
@ -234,6 +260,13 @@ onMounted(() => { |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
webSocketStore.sendCommandMsg(getStateJSON) |
|
|
webSocketStore.sendCommandMsg(getStateJSON) |
|
|
}, 1000) |
|
|
}, 1000) |
|
|
|
|
|
document.addEventListener('click', e => { |
|
|
|
|
|
let box = document.getElementById('keyboard') |
|
|
|
|
|
let room = document.getElementById('room_size') |
|
|
|
|
|
if (!box?.contains(e.target) && e.target != room) { |
|
|
|
|
|
hideKeyBoard() |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
onBeforeUnmount(() => { |
|
|
onBeforeUnmount(() => { |
|
@ -253,6 +286,13 @@ const handleLogout = () => { |
|
|
height: 800px; |
|
|
height: 800px; |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
padding: 30px; |
|
|
padding: 30px; |
|
|
|
|
|
.key_wrap { |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
left: 0; |
|
|
|
|
|
right: 0; |
|
|
|
|
|
bottom: 0; |
|
|
|
|
|
height: 230px; |
|
|
|
|
|
} |
|
|
.header_menu { |
|
|
.header_menu { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 80px; |
|
|
height: 80px; |
|
|