UPDATE: 优化bug
This commit is contained in:
@@ -188,7 +188,10 @@ const dialogSourceVisible = ref(false)
|
|||||||
const devData = ref<any>()
|
const devData = ref<any>()
|
||||||
const activeName = ref<number>(0)
|
const activeName = ref<number>(0)
|
||||||
const checkStore = useCheckStore()
|
const checkStore = useCheckStore()
|
||||||
const currentWhichTimeData = ref<any>({})
|
const currentWhichTimeData = ref({
|
||||||
|
time: '',
|
||||||
|
checkResult: -1
|
||||||
|
})
|
||||||
// 定义 emit 事件
|
// 定义 emit 事件
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'reportGenerated'): void
|
(e: 'reportGenerated'): void
|
||||||
@@ -243,7 +246,7 @@ const handleChooseClick = async () => {
|
|||||||
const checkResult = resultSourceData.value[time].find((item: any) => item.checkResult === 1)
|
const checkResult = resultSourceData.value[time].find((item: any) => item.checkResult === 1)
|
||||||
return { time, checkResult: checkResult ? 1 : 2 }
|
return { time, checkResult: checkResult ? 1 : 2 }
|
||||||
})
|
})
|
||||||
currentWhichTimeData.value = whichTimeData.value[currentResult.whichTime]
|
currentWhichTimeData.value = whichTimeData.value.find((item: any) => item.time == currentResult.whichTime)
|
||||||
sourceData.value = resultSourceData.value[currentResult.whichTime]
|
sourceData.value = resultSourceData.value[currentResult.whichTime]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -251,7 +254,7 @@ const handleChooseClick = async () => {
|
|||||||
}
|
}
|
||||||
const handleTimeChange = (value: any) => {
|
const handleTimeChange = (value: any) => {
|
||||||
sourceData.value = resultSourceData.value[value]
|
sourceData.value = resultSourceData.value[value]
|
||||||
currentWhichTimeData.value = whichTimeData.value[value]
|
currentWhichTimeData.value = whichTimeData.value.find((item: any) => item.time == value)
|
||||||
submitSourceData.resultType = ''
|
submitSourceData.resultType = ''
|
||||||
submitSourceData.checkResult = -1
|
submitSourceData.checkResult = -1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user