|
@@ -155,15 +155,16 @@ const tableConstructionData = ref([])
|
|
|
const tableConstructionLoading = ref(false)
|
|
|
const getTableConstructionData = async () => {
|
|
|
tableConstructionLoading.value = true
|
|
|
- const { error, code, data ,msg } = await constructionApi.queryConstructionPage({
|
|
|
+ const { error, code, data, msg } = await constructionApi.queryConstructionPage({
|
|
|
...searchConstructionForm.value,
|
|
|
projectId: projectId.value,
|
|
|
})
|
|
|
//判断状态
|
|
|
tableConstructionLoading.value = false
|
|
|
if (!error && code === 200) {
|
|
|
- tableConstructionData.value = getArrValue(data['records'])
|
|
|
- searchConstructionForm.value.total = data['total'] || 0
|
|
|
+
|
|
|
+ tableConstructionData.value = getArrValue(data?.records) || []
|
|
|
+ searchConstructionForm.value.total = data?.total || 0
|
|
|
} else {
|
|
|
tableConstructionData.value = []
|
|
|
searchConstructionForm.value.total = 0
|