自测问题修复
This commit is contained in:
parent
3cb8abc19f
commit
7c255da26a
|
|
@ -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)
|
||||
}
|
||||
|
||||
// 工序确定
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
// 日期格式化
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
// 日期格式化
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
// 选择项目
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue