一检问题修改

pull/290/head
lihui_ocr 1 year ago
parent b8913f3c6e
commit dacacfb8f3

@ -1080,7 +1080,7 @@ defineExpose({
background: url(/src/assets/images/pocitypass.png) no-repeat;
background-size: 100% 100%;
border-radius: 17px;
box-shadow: 0px 2px 6px 0px rgba(116, 153, 253, 0.3);
// box-shadow: 0px 2px 6px 0px rgba(116, 153, 253, 0.3);
display: flex;
align-items: center;
justify-content: center;

@ -826,7 +826,7 @@ defineExpose({
background: url(/src/assets/images/pocitypass.png) no-repeat;
background-size: 100% 100%;
border-radius: 17px;
box-shadow: 0px 2px 6px 0px rgba(116, 153, 253, 0.3);
// box-shadow: 0px 2px 6px 0px rgba(116, 153, 253, 0.3);
display: flex;
align-items: center;
justify-content: center;

@ -72,6 +72,7 @@ const pagination = reactive({
pageNo: 0,
pageSize: 30,
})
function onCheckChange(checked: any, item: any) {
const index = selectItems.value.indexOf(item)
item.checked = checked
@ -122,7 +123,10 @@ onMounted(() => {
taskIndex.value = route.query.taskindex as string
isDetail.value = true
getDetail()
}
window.addEventListener('keydown', onEsc)
})
function changeimgbigshow() {
@ -131,12 +135,7 @@ function changeimgbigshow() {
//
useKeydown('right', forwardHandler)
useKeydown('left', backHandler)
useKeydown('c', () => {
isFullScreen.value = false
imgbigshow.value = false
const modal = unref(imgdetailref)! as any
modal.closeModal()
})
useKeydown('p p', () => {
const item = taskDetailInfo.value
if (item?.userapprove?.statshis === 2 || item?.userapprove?.statshis == 3) {
@ -439,10 +438,22 @@ function showActionsModal() {
const modal = unref(CustomSettingModalRef)! as any
modal.showModal()
}
function onEsc(event: KeyboardEvent) {
if (event.code === 'KeyC') {
const modal = unref(MapModalRef)! as any
const modal2 = unref(imgdetailref)! as any
modal?.closeModal()
modal2?.closeModal()
imgbigshow.value = true
isFullScreen.value = false
}
}
onUnmounted(() => {
taskStore.reset()
window.removeEventListener('keydown', onEsc)
window.removeEventListener('scroll', checkBottom)
})
function immersionHandler() {

@ -105,18 +105,6 @@ function nopassfun(e= taskDetailInfo.value){
emit('nopassfun', e);
// closeModal()
}
useKeydown('c', () => {
closeModal()
})
useKeydown('p p', () => {
passfun()
})
useKeydown('x x', () => {
nopassfun()
})
onMounted(async () => {

@ -37,11 +37,6 @@ function closeModal(){
show.value=false
}
useKeydown('c', () => {
closeModal()
})
onMounted(async () => {

@ -313,6 +313,7 @@ function leaveTaskHandler() {
overTask.value = null
}
function onEsc(event: KeyboardEvent) {
const eles = ['INPUT', 'TEXTAREA']
const keys = ['KeyC', 'KeyP', 'KeyX']
const code = event.code

Loading…
Cancel
Save