彻底修复登陆页面无法点击输入框的BUG
This commit is contained in:
parent
c45277cb8d
commit
129ece6bc0
15
src/App.vue
15
src/App.vue
|
@ -22,17 +22,22 @@ export default defineComponent({
|
|||
window.onresize = (evt: any) =>
|
||||
EventBus.getInstance().emit(EventNamesDefine.WindowResize, evt);
|
||||
|
||||
window.onmousedown = (evt: any) =>
|
||||
window.onmousedown = (evt: MouseEvent) => {
|
||||
EventBus.getInstance().emit(EventNamesDefine.WindowMouseDown, evt);
|
||||
window.onmousemove = (evt: any) =>
|
||||
};
|
||||
window.onmousemove = (evt: any) => {
|
||||
EventBus.getInstance().emit(EventNamesDefine.WindowMouseMove, evt);
|
||||
window.onmouseup = (evt: any) =>
|
||||
};
|
||||
window.onmouseup = (evt: any) => {
|
||||
EventBus.getInstance().emit(EventNamesDefine.WindowMouseUp, evt);
|
||||
window.onmouseout = (evt: any) =>
|
||||
};
|
||||
window.onmouseout = (evt: any) => {
|
||||
EventBus.getInstance().emit(EventNamesDefine.WindowMouseOut, evt);
|
||||
};
|
||||
|
||||
window.document.body.onclick = (evt: any) =>
|
||||
window.document.body.onclick = (evt: any) => {
|
||||
EventBus.getInstance().emit(EventNamesDefine.DocumentBodyClick, evt);
|
||||
};
|
||||
|
||||
document.body.classList.add("overflow-hidden");
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
) ||
|
||||
$t('Please input vaild ip address'),
|
||||
]"
|
||||
@mousedown="(evt) => focusElement(evt)"
|
||||
@keydown="
|
||||
(evt) => {
|
||||
if (evt.keyCode == 13) {
|
||||
|
@ -62,7 +61,6 @@
|
|||
(val) =>
|
||||
(val && val.length > 0) || $t('Please type something'),
|
||||
]"
|
||||
@mousedown="(evt) => focusElement(evt)"
|
||||
@keydown="
|
||||
(evt) => {
|
||||
if (evt.keyCode == 13) {
|
||||
|
@ -93,7 +91,6 @@
|
|||
(val) =>
|
||||
(val && val.length > 0) || $t('Please type something'),
|
||||
]"
|
||||
@mousedown="(evt) => focusElement(evt)"
|
||||
@keydown="
|
||||
(evt) => {
|
||||
if (evt.keyCode == 13) {
|
||||
|
@ -272,11 +269,6 @@ export default defineComponent({
|
|||
data.user_name = null;
|
||||
data.password = null;
|
||||
},
|
||||
focusElement(evt: any) {
|
||||
try {
|
||||
evt.toElement.focus();
|
||||
} catch {}
|
||||
},
|
||||
};
|
||||
},
|
||||
});
|
||||
|
|
|
@ -9,46 +9,47 @@
|
|||
style="background-color: #bce0f0"
|
||||
>
|
||||
<div id="windows" style="position: absolute">
|
||||
<window
|
||||
@reset_geometry_offset="resetGeometryOffset"
|
||||
@commit_geometry="commitGeometry"
|
||||
@close_this_window="closeWindow"
|
||||
@close_other_windows="closeOtherWindows"
|
||||
@close_all_windows="closeAllWindows"
|
||||
@window_fouse_in="windowFocusIn"
|
||||
@dblclick="(evt) => windowDBClick(item.window_id)"
|
||||
@edit_volume="edit_volume"
|
||||
@mute_unmute="mute_unmute"
|
||||
@start_polling="start_polling"
|
||||
@stop_polling="stop_polling"
|
||||
@polling_setting="polling_setting"
|
||||
:ref="'window_' + item.window_id"
|
||||
:id="'window_' + item.window_id"
|
||||
v-for="(item, index) in windows"
|
||||
:uuid="item.uuid"
|
||||
:key="index"
|
||||
:disable="plan_running"
|
||||
class="window"
|
||||
:mouse_area_flag="area_open_window_flag"
|
||||
:signal_source_table_uuid="item.signal_source_table_uuid"
|
||||
:window="item"
|
||||
:style="{
|
||||
top:
|
||||
(item.y * $store.state.device_screen_height) / wall_height_scaler +
|
||||
'px',
|
||||
left:
|
||||
(item.x * $store.state.device_screen_width) / wall_width_scaler +
|
||||
'px',
|
||||
width:
|
||||
(item.width * $store.state.device_screen_width) /
|
||||
wall_width_scaler +
|
||||
'px',
|
||||
height:
|
||||
(item.height * $store.state.device_screen_height) /
|
||||
wall_height_scaler +
|
||||
'px',
|
||||
}"
|
||||
/>
|
||||
<div v-for="(item, index) in windows" :key="index">
|
||||
<window
|
||||
@reset_geometry_offset="resetGeometryOffset"
|
||||
@commit_geometry="commitGeometry"
|
||||
@close_this_window="closeWindow"
|
||||
@close_other_windows="closeOtherWindows"
|
||||
@close_all_windows="closeAllWindows"
|
||||
@window_fouse_in="windowFocusIn"
|
||||
@dblclick="(evt) => windowDBClick(item.window_id)"
|
||||
@edit_volume="edit_volume"
|
||||
@mute_unmute="mute_unmute"
|
||||
@start_polling="start_polling"
|
||||
@stop_polling="stop_polling"
|
||||
@polling_setting="polling_setting"
|
||||
:ref="'window_' + item.window_id"
|
||||
:id="'window_' + item.window_id"
|
||||
:uuid="item.uuid"
|
||||
:disable="plan_running"
|
||||
class="window"
|
||||
:mouse_area_flag="area_open_window_flag"
|
||||
:signal_source_table_uuid="item.signal_source_table_uuid"
|
||||
:window="item"
|
||||
:style="{
|
||||
top:
|
||||
(item.y * $store.state.device_screen_height) /
|
||||
wall_height_scaler +
|
||||
'px',
|
||||
left:
|
||||
(item.x * $store.state.device_screen_width) / wall_width_scaler +
|
||||
'px',
|
||||
width:
|
||||
(item.width * $store.state.device_screen_width) /
|
||||
wall_width_scaler +
|
||||
'px',
|
||||
height:
|
||||
(item.height * $store.state.device_screen_height) /
|
||||
wall_height_scaler +
|
||||
'px',
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div ref="wall_grids" @click="onWallGridsClick">
|
||||
<div
|
||||
|
|
Loading…
Reference in New Issue