Browse Source

企业模块提交

master
zy 6 months ago
parent
commit
686b5fc223
  1. 20
      src/views/enterprises/update.vue

20
src/views/enterprises/update.vue

@ -281,7 +281,7 @@ function init() {
// formData.value.startUserSelectAssignees=res.userId;
formData.value = res
})
}else{ formType.value = 'create'}
}else{formType.value = 'create'}
}
//
const showMap = ref(false)
@ -367,8 +367,13 @@ const handleSearch = () => {
onMounted(() => {
init()
//
if(query.id){
getQualificationList()
getInspectionslList()
}
getEnterpriseUserList()
//getInspectionsLogList()
const openMapAndInit = async () => {
@ -505,7 +510,12 @@ const getInspectionslList = async () => {
loading.value = true
try {
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 {
loading.value = false
}
@ -517,7 +527,11 @@ const getInspectionsLogList = async (insprctionsId) => {
loading.value = true
try {
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 {
loading.value = false
}

Loading…
Cancel
Save