Merge pull request 'feat:处理xx键执行异常' (#199) from fix/bug-20240416 into test

Reviewed-on: #199
pull/200/head
刘释隆 1 year ago
commit 2e82f3fe14

@ -225,7 +225,6 @@ const packageName = computed(() => {
const index = workStore.getCurrentIndex const index = workStore.getCurrentIndex
return workStore.getOrderList[index]?.name || '' return workStore.getOrderList[index]?.name || ''
}) })
async function queryDetail(checkDuplicateId: any) { async function queryDetail(checkDuplicateId: any) {
taskDetailInfo.value = await getTaskDetailInfo(checkDuplicateId) taskDetailInfo.value = await getTaskDetailInfo(checkDuplicateId)
const packageid = workStore.getActiveId const packageid = workStore.getActiveId
@ -288,7 +287,6 @@ function onEsc(event: KeyboardEvent) {
return return
if (!keys.includes(event.code)) if (!keys.includes(event.code))
return return
if (event.code === 'KeyC') { if (event.code === 'KeyC') {
// //
const modalClasss = [ const modalClasss = [
@ -313,6 +311,10 @@ function onEsc(event: KeyboardEvent) {
// //
if (rejectDialog.value || passDialog.value) if (rejectDialog.value || passDialog.value)
return return
// 1 2 3
if (taskDetailInfo.value.historyStates !== 1)
return
// p // p
if (code === 'KeyP') { if (code === 'KeyP') {
const currentTime = Date.now() const currentTime = Date.now()
@ -542,8 +544,6 @@ function handleRejectdubiousfileyd(pictureid) {
dubiousfileyd({ pictureid }).then(({ code }) => { dubiousfileyd({ pictureid }).then(({ code }) => {
if (code === 'OK') if (code === 'OK')
message.success('加入成功') message.success('加入成功')
refreshHandler()
const packageid = workStore.getActiveId const packageid = workStore.getActiveId
if (isEmpty(packageid)) { if (isEmpty(packageid)) {
listData.value.length = 0 listData.value.length = 0

Loading…
Cancel
Save