|
@@ -569,7 +569,8 @@ const canSyncReport = (item: ReportItemVO): boolean => {
|
|
|
// 处理报告移动
|
|
// 处理报告移动
|
|
|
const handleMoveReport = async (item: ReportItemVO, direction: 'up' | 'down') => {
|
|
const handleMoveReport = async (item: ReportItemVO, direction: 'up' | 'down') => {
|
|
|
try {
|
|
try {
|
|
|
- const sortList = activeTab.value === 'inspection' ? inspectionItems.value : documentItems.value
|
|
|
|
|
|
|
+ const groupedList = activeTab.value === 'inspection' ? inspectionItems.value : documentItems.value
|
|
|
|
|
+ const sortList = Object.values(groupedList).flat()
|
|
|
const currentIndex = sortList.findIndex((report) => report.id === item.id)
|
|
const currentIndex = sortList.findIndex((report) => report.id === item.id)
|
|
|
if (currentIndex === -1) return
|
|
if (currentIndex === -1) return
|
|
|
|
|
|