自测问题修复
This commit is contained in:
parent
3cb8abc19f
commit
7c255da26a
|
|
@ -296,7 +296,7 @@ const projectListAll = ref([])
|
||||||
// 专业数据源
|
// 专业数据源
|
||||||
const majorList = reactive([])
|
const majorList = reactive([])
|
||||||
// 工序数据源
|
// 工序数据源
|
||||||
const procedureList = reactive([])
|
const procedureList = ref([])
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
// 表单类型 1. 新增 2. 修改 3. 详情
|
// 表单类型 1. 新增 2. 修改 3. 详情
|
||||||
addAndEditFormType: {
|
addAndEditFormType: {
|
||||||
|
|
@ -427,8 +427,8 @@ const getProcedureData = async (pid) => {
|
||||||
'',
|
'',
|
||||||
res,
|
res,
|
||||||
)
|
)
|
||||||
procedureList = []
|
procedureList.value = []
|
||||||
procedureList.push(res)
|
procedureList.value.push(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 工序确定
|
// 工序确定
|
||||||
|
|
|
||||||
|
|
@ -172,17 +172,17 @@ const getCoordinatePhotoListData = async (isTap = false) => {
|
||||||
)
|
)
|
||||||
|
|
||||||
// 更新总数
|
// 更新总数
|
||||||
total.value = res.total
|
total.value = res.count
|
||||||
// 处理数据
|
// 处理数据
|
||||||
if (isTap) {
|
if (isTap) {
|
||||||
// 点击搜索时,直接替换数据
|
// 点击搜索时,直接替换数据
|
||||||
coordinatePhotosList.value = res?.list || []
|
coordinatePhotosList.value = res?.data || []
|
||||||
// 重置页码
|
// 重置页码
|
||||||
queryParams.value.pageNum = 1
|
queryParams.value.pageNum = 1
|
||||||
} else {
|
} else {
|
||||||
// 下拉加载时,追加数据
|
// 下拉加载时,追加数据
|
||||||
if (res.list && res.list.length > 0) {
|
if (res?.data && res?.data.length > 0) {
|
||||||
coordinatePhotosList.value = [...coordinatePhotosList.value, ...res.list]
|
coordinatePhotosList.value = [...coordinatePhotosList.value, ...res?.data]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -294,7 +294,7 @@ const projectListAll = ref([])
|
||||||
// 专业数据源
|
// 专业数据源
|
||||||
const majorList = reactive([])
|
const majorList = reactive([])
|
||||||
// 工序数据源
|
// 工序数据源
|
||||||
const procedureList = reactive([])
|
const procedureList = ref([])
|
||||||
|
|
||||||
// 表单数据源
|
// 表单数据源
|
||||||
const addAndEditModel = reactive({
|
const addAndEditModel = reactive({
|
||||||
|
|
@ -364,8 +364,8 @@ const getProcedureData = async (pid) => {
|
||||||
'',
|
'',
|
||||||
res,
|
res,
|
||||||
)
|
)
|
||||||
procedureList = []
|
procedureList.value = []
|
||||||
procedureList.push(res)
|
procedureList.value.push(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 日期格式化
|
// 日期格式化
|
||||||
|
|
|
||||||
|
|
@ -113,17 +113,17 @@ const getImportantMattersListData = async (isTap = false) => {
|
||||||
)
|
)
|
||||||
|
|
||||||
// 更新总数
|
// 更新总数
|
||||||
total.value = res.total
|
total.value = res.count
|
||||||
// 处理数据
|
// 处理数据
|
||||||
if (isTap) {
|
if (isTap) {
|
||||||
// 点击搜索时,直接替换数据
|
// 点击搜索时,直接替换数据
|
||||||
importantMattersList.value = res?.list || []
|
importantMattersList.value = res?.data || []
|
||||||
// 重置页码
|
// 重置页码
|
||||||
queryParams.value.pageNum = 1
|
queryParams.value.pageNum = 1
|
||||||
} else {
|
} else {
|
||||||
// 下拉加载时,追加数据
|
// 下拉加载时,追加数据
|
||||||
if (res.list && res.list.length > 0) {
|
if (res?.data && res?.data.length > 0) {
|
||||||
importantMattersList.value = [...importantMattersList.value, ...res.list]
|
importantMattersList.value = [...importantMattersList.value, ...res?.data]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -382,7 +382,7 @@ const projectListAll = ref([])
|
||||||
// 专业数据源
|
// 专业数据源
|
||||||
const majorList = reactive([])
|
const majorList = reactive([])
|
||||||
// 工序数据源
|
// 工序数据源
|
||||||
const procedureList = reactive([])
|
const procedureList = ref([])
|
||||||
|
|
||||||
// 修改时删除的数据源
|
// 修改时删除的数据源
|
||||||
const deleteFileList = []
|
const deleteFileList = []
|
||||||
|
|
@ -503,8 +503,8 @@ const getProcedureData = async (pid) => {
|
||||||
'',
|
'',
|
||||||
res,
|
res,
|
||||||
)
|
)
|
||||||
procedureList = []
|
procedureList.value = []
|
||||||
procedureList.push(res)
|
procedureList.value.push(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 日期格式化
|
// 日期格式化
|
||||||
|
|
|
||||||
|
|
@ -375,7 +375,7 @@ const formatter = (type, value) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 工序数据源
|
// 工序数据源
|
||||||
const procedureList = reactive([])
|
const procedureList = ref([])
|
||||||
|
|
||||||
// 获取工序
|
// 获取工序
|
||||||
const getProcedureData = async (pid) => {
|
const getProcedureData = async (pid) => {
|
||||||
|
|
@ -392,8 +392,8 @@ const getProcedureData = async (pid) => {
|
||||||
'',
|
'',
|
||||||
res,
|
res,
|
||||||
)
|
)
|
||||||
procedureList = []
|
procedureList.value = []
|
||||||
procedureList.push(res)
|
procedureList.value.push(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 选择项目
|
// 选择项目
|
||||||
|
|
|
||||||
|
|
@ -117,17 +117,17 @@ const getSafetyMeasureListData = async (isTap = false) => {
|
||||||
)
|
)
|
||||||
|
|
||||||
// 更新总数
|
// 更新总数
|
||||||
total.value = res.total
|
total.value = res.count
|
||||||
// 处理数据
|
// 处理数据
|
||||||
if (isTap) {
|
if (isTap) {
|
||||||
// 点击搜索时,直接替换数据
|
// 点击搜索时,直接替换数据
|
||||||
safetyMeasureList.value = res?.list || []
|
safetyMeasureList.value = res?.data || []
|
||||||
// 重置页码
|
// 重置页码
|
||||||
queryParams.value.pageNum = 1
|
queryParams.value.pageNum = 1
|
||||||
} else {
|
} else {
|
||||||
// 下拉加载时,追加数据
|
// 下拉加载时,追加数据
|
||||||
if (res.list && res.list.length > 0) {
|
if (res?.data && res?.data.length > 0) {
|
||||||
safetyMeasureList.value = [...safetyMeasureList.value, ...res.list]
|
safetyMeasureList.value = [...safetyMeasureList.value, ...res?.data]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
safetyMeasureList.value.forEach((e) => {
|
safetyMeasureList.value.forEach((e) => {
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,7 @@ const projectListAll = ref([])
|
||||||
// 专业数据源
|
// 专业数据源
|
||||||
const majorList = reactive([])
|
const majorList = reactive([])
|
||||||
// 工序数据源
|
// 工序数据源
|
||||||
const procedureList = reactive([])
|
const procedureList = ref([])
|
||||||
|
|
||||||
// 修改时删除的数据源
|
// 修改时删除的数据源
|
||||||
const deleteFileList = []
|
const deleteFileList = []
|
||||||
|
|
@ -505,8 +505,8 @@ const getProcedureData = async (pid) => {
|
||||||
res,
|
res,
|
||||||
)
|
)
|
||||||
|
|
||||||
procedureList = []
|
procedureList.value = []
|
||||||
procedureList.push(res)
|
procedureList.value.push(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
// getProcedureData()
|
// getProcedureData()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue