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