自测问题修复

This commit is contained in:
BianLzhaoMin 2025-04-14 16:10:20 +08:00
parent 3cb8abc19f
commit 7c255da26a
8 changed files with 27 additions and 27 deletions

View File

@ -296,7 +296,7 @@ const projectListAll = ref([])
//
const majorList = reactive([])
//
const procedureList = reactive([])
const procedureList = ref([])
const props = defineProps({
// 1. 2. 3.
addAndEditFormType: {
@ -427,8 +427,8 @@ const getProcedureData = async (pid) => {
'',
res,
)
procedureList = []
procedureList.push(res)
procedureList.value = []
procedureList.value.push(res)
}
//

View File

@ -172,17 +172,17 @@ const getCoordinatePhotoListData = async (isTap = false) => {
)
//
total.value = res.total
total.value = res.count
//
if (isTap) {
//
coordinatePhotosList.value = res?.list || []
coordinatePhotosList.value = res?.data || []
//
queryParams.value.pageNum = 1
} else {
//
if (res.list && res.list.length > 0) {
coordinatePhotosList.value = [...coordinatePhotosList.value, ...res.list]
if (res?.data && res?.data.length > 0) {
coordinatePhotosList.value = [...coordinatePhotosList.value, ...res?.data]
}
}

View File

@ -294,7 +294,7 @@ const projectListAll = ref([])
//
const majorList = reactive([])
//
const procedureList = reactive([])
const procedureList = ref([])
//
const addAndEditModel = reactive({
@ -364,8 +364,8 @@ const getProcedureData = async (pid) => {
'',
res,
)
procedureList = []
procedureList.push(res)
procedureList.value = []
procedureList.value.push(res)
}
//

View File

@ -113,17 +113,17 @@ const getImportantMattersListData = async (isTap = false) => {
)
//
total.value = res.total
total.value = res.count
//
if (isTap) {
//
importantMattersList.value = res?.list || []
importantMattersList.value = res?.data || []
//
queryParams.value.pageNum = 1
} else {
//
if (res.list && res.list.length > 0) {
importantMattersList.value = [...importantMattersList.value, ...res.list]
if (res?.data && res?.data.length > 0) {
importantMattersList.value = [...importantMattersList.value, ...res?.data]
}
}

View File

@ -382,7 +382,7 @@ const projectListAll = ref([])
//
const majorList = reactive([])
//
const procedureList = reactive([])
const procedureList = ref([])
//
const deleteFileList = []
@ -503,8 +503,8 @@ const getProcedureData = async (pid) => {
'',
res,
)
procedureList = []
procedureList.push(res)
procedureList.value = []
procedureList.value.push(res)
}
//

View File

@ -375,7 +375,7 @@ const formatter = (type, value) => {
}
//
const procedureList = reactive([])
const procedureList = ref([])
//
const getProcedureData = async (pid) => {
@ -392,8 +392,8 @@ const getProcedureData = async (pid) => {
'',
res,
)
procedureList = []
procedureList.push(res)
procedureList.value = []
procedureList.value.push(res)
}
//

View File

@ -117,17 +117,17 @@ const getSafetyMeasureListData = async (isTap = false) => {
)
//
total.value = res.total
total.value = res.count
//
if (isTap) {
//
safetyMeasureList.value = res?.list || []
safetyMeasureList.value = res?.data || []
//
queryParams.value.pageNum = 1
} else {
//
if (res.list && res.list.length > 0) {
safetyMeasureList.value = [...safetyMeasureList.value, ...res.list]
if (res?.data && res?.data.length > 0) {
safetyMeasureList.value = [...safetyMeasureList.value, ...res?.data]
}
}
safetyMeasureList.value.forEach((e) => {

View File

@ -383,7 +383,7 @@ const projectListAll = ref([])
//
const majorList = reactive([])
//
const procedureList = reactive([])
const procedureList = ref([])
//
const deleteFileList = []
@ -505,8 +505,8 @@ const getProcedureData = async (pid) => {
res,
)
procedureList = []
procedureList.push(res)
procedureList.value = []
procedureList.value.push(res)
}
// getProcedureData()