|
|
@ -281,7 +281,7 @@ function init() { |
|
|
|
// formData.value.startUserSelectAssignees=res.userId; |
|
|
|
// formData.value.startUserSelectAssignees=res.userId; |
|
|
|
formData.value = res |
|
|
|
formData.value = res |
|
|
|
}) |
|
|
|
}) |
|
|
|
}else{ formType.value = 'create'} |
|
|
|
}else{formType.value = 'create'} |
|
|
|
} |
|
|
|
} |
|
|
|
// 控制地图弹窗显示隐藏 |
|
|
|
// 控制地图弹窗显示隐藏 |
|
|
|
const showMap = ref(false) |
|
|
|
const showMap = ref(false) |
|
|
@ -367,8 +367,13 @@ const handleSearch = () => { |
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
onMounted(() => { |
|
|
|
init() |
|
|
|
init() |
|
|
|
|
|
|
|
//判断是添加删除 |
|
|
|
|
|
|
|
if(query.id){ |
|
|
|
getQualificationList() |
|
|
|
getQualificationList() |
|
|
|
getInspectionslList() |
|
|
|
getInspectionslList() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
getEnterpriseUserList() |
|
|
|
getEnterpriseUserList() |
|
|
|
//getInspectionsLogList() |
|
|
|
//getInspectionsLogList() |
|
|
|
const openMapAndInit = async () => { |
|
|
|
const openMapAndInit = async () => { |
|
|
@ -505,7 +510,12 @@ const getInspectionslList = async () => { |
|
|
|
loading.value = true |
|
|
|
loading.value = true |
|
|
|
try { |
|
|
|
try { |
|
|
|
const data = await EnterpriseInspectionsApi.getEnterpriseInspectionsPage({"enterpriseId":query.id}) |
|
|
|
const data = await EnterpriseInspectionsApi.getEnterpriseInspectionsPage({"enterpriseId":query.id}) |
|
|
|
inspectionslist.value = data.list |
|
|
|
if(!data.list || data.list.length === 0){ |
|
|
|
|
|
|
|
console.log("No data or data is null"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
inspectionslist.value = data.list; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|
loading.value = false |
|
|
|
loading.value = false |
|
|
|
} |
|
|
|
} |
|
|
@ -517,7 +527,11 @@ const getInspectionsLogList = async (insprctionsId) => { |
|
|
|
loading.value = true |
|
|
|
loading.value = true |
|
|
|
try { |
|
|
|
try { |
|
|
|
const data = await EnterpriseInspectionsApi.inspectionsLogList({"inspectionsId":insprctionsId}) |
|
|
|
const data = await EnterpriseInspectionsApi.inspectionsLogList({"inspectionsId":insprctionsId}) |
|
|
|
inspectionsLogList.value = data |
|
|
|
if(!data.list || data.list.length === 0){ |
|
|
|
|
|
|
|
console.log("No data or data is null"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
inspectionsLogList.value = data.list; |
|
|
|
|
|
|
|
} |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|
loading.value = false |
|
|
|
loading.value = false |
|
|
|
} |
|
|
|
} |
|
|
|