|
|
|
@ -16,7 +16,7 @@ import { useInfiniteScroll } from '@vueuse/core'
|
|
|
|
|
import { format } from 'date-fns'
|
|
|
|
|
import imagesloaded from 'imagesloaded'
|
|
|
|
|
import { clone, cloneDeep, debounce, pickBy } from 'lodash-es'
|
|
|
|
|
import { useDialog, useMessage } from 'naive-ui'
|
|
|
|
|
import { useDialog, useMessage, useModal } from 'naive-ui'
|
|
|
|
|
import {
|
|
|
|
|
computed,
|
|
|
|
|
onMounted,
|
|
|
|
@ -279,18 +279,27 @@ function overTaskHandelr(item: any) {
|
|
|
|
|
function leaveTaskHandler() {
|
|
|
|
|
overTask.value = null
|
|
|
|
|
}
|
|
|
|
|
function onEsc(event) {
|
|
|
|
|
function onEsc(event: KeyboardEvent) {
|
|
|
|
|
const eles = ['INPUT', 'TEXTAREA']
|
|
|
|
|
const keys = ['KeyC', 'KeyP', 'KeyX']
|
|
|
|
|
const code = event.code
|
|
|
|
|
if (eles.includes(event.target.targName))
|
|
|
|
|
if (!(event.target instanceof Element))
|
|
|
|
|
return
|
|
|
|
|
if (eles.includes(event.target.tagName))
|
|
|
|
|
return
|
|
|
|
|
if (!keys.includes(event.code))
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
if (event.code === 'KeyC') {
|
|
|
|
|
if (isFullScreen.value && !document.querySelector('.n-modal-container')) {
|
|
|
|
|
// 是否有弹窗存在
|
|
|
|
|
const modalClasss = [
|
|
|
|
|
document.querySelector('.n-modal'),
|
|
|
|
|
document.querySelector('.n-dialog'),
|
|
|
|
|
]
|
|
|
|
|
const hasModal = modalClasss.some(i => i)
|
|
|
|
|
if (isFullScreen.value && !hasModal) {
|
|
|
|
|
isFullScreen.value = false
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
const notPassModal = unref(notPassModalRef)! as any
|
|
|
|
@ -299,6 +308,7 @@ function onEsc(event) {
|
|
|
|
|
mainImageModal.closeModal(false)
|
|
|
|
|
confrimModal.closeModal(false)
|
|
|
|
|
notPassModal.closeModal(false)
|
|
|
|
|
dialog.destroyAll()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 审核通过、不通过 批量审核弹窗任意一个存在都不进行下面的操作
|
|
|
|
@ -326,19 +336,12 @@ function onEsc(event) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function resizeImage() {
|
|
|
|
|
const container = document.querySelector('.image-container')!
|
|
|
|
|
const containerWidth = container.offsetWidth
|
|
|
|
|
const containerHeight = container.offsetHeight
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
|
|
workStore.reset()
|
|
|
|
|
document.removeEventListener('keydown', onEsc)
|
|
|
|
|
})
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
document.addEventListener('keydown', onEsc)
|
|
|
|
|
window.addEventListener('resize', resizeImage)
|
|
|
|
|
})
|
|
|
|
|
function immersionHandler() {
|
|
|
|
|
// class="wrapper"
|
|
|
|
@ -539,6 +542,14 @@ function handleRejectdubiousfileyd(pictureid) {
|
|
|
|
|
onPositiveClick: () => {
|
|
|
|
|
dubiousfileyd(pictureid).then(() => {
|
|
|
|
|
refreshHandler()
|
|
|
|
|
const packageid = workStore.getActiveId
|
|
|
|
|
if (isEmpty(packageid)) {
|
|
|
|
|
listData.value.length = 0
|
|
|
|
|
totalCount.value = 0
|
|
|
|
|
taskDetailInfo.value = {}
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
queryDetail(packageid)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
onNegativeClick: () => {},
|
|
|
|
|
去一下log