diff --git a/src/widget/systemunit/deptOrgPage.vue b/src/widget/systemunit/deptOrgPage.vue index f35932d47..7f1f1c9b5 100644 --- a/src/widget/systemunit/deptOrgPage.vue +++ b/src/widget/systemunit/deptOrgPage.vue @@ -166,20 +166,28 @@ onMounted(()=>{ orgLoading.value = true getUserCont() .then((data:any)=>{ - console.log("获取中午",data) + // console.log("获取中午",data) let orgId = data.data.organization*1 let companyId = data.data.company*1 - if(companyId == null || orgId == ""){ + if(companyId == null || companyId == "" || companyId == "0" || companyId == 0){ companyId = 309 } + if (orgId == null || orgId == "" || orgId == "0" || orgId == 0){ + orgId = "" + } nextTick(()=>{ govthree({id:companyId,all:1}) .then(({data})=>{ - console.log("获取行政组织",data,value.value) + // console.log("获取行政组织",data,value.value) + // console.log("获取行---->政组织",Number.isNaN(value.value),isNaN(value.value)) orgList.value = data - if(value.value == null || value.value == "" || value.value == undefined){ + if(Number.isNaN(value.value) || isNaN(value.value) || value.value == null || value.value == "" || value.value == "0" || value.value == 0 || value.value == undefined ){ nextTick(()=>{ value.value = orgId + + // console.log("行政组织",orgList.value) + // console.log("我的组织",value.value) + // console.log("我的组织1111",orgId) }) } @@ -189,6 +197,7 @@ onMounted(()=>{ }) }) }) + })