|
|
|
@ -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(()=>{ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
</script> |
|
|
|
<template> |
|
|
|
|