This commit is contained in:
bb_pan 2025-07-11 19:10:31 +08:00
parent 18dbf7481d
commit 4edb4d3f94
4 changed files with 8 additions and 7 deletions

View File

@ -185,8 +185,9 @@ onShow(async () => {
userInfo.value = memberStore.userInfo || {}
// console.log('🚀 ~ onShow ~ userInfo.value:', userInfo.value)
getToolsLedgerDetailsList()
await Promise.all([getUserInfoByUserName(), projectInfoList()])
getUserInfoByIdCard()
getUserInfoByUserName()
// await Promise.all([getUserInfoByUserName(), projectInfoList()])
// getUserInfoByIdCard()
getTeamList()
})
</script>

View File

@ -97,8 +97,8 @@ const back = () => {
//
const getTeamList = async () => {
try {
const idCard = uni.getStorageSync('idCard') || ''
const res = await getBmTeamList({ isAll: 0, idCard })
const idCard = userInfo.value.userName || ''
const res = await getBmTeamList({ isAll: 0 })
if (res.data.length > 0) {
teamList.value = res.data.map((item) => {
return {

View File

@ -131,8 +131,8 @@ onMounted(() => {
//
const getTeamList = async () => {
try {
const idCard = uni.getStorageSync('idCard') || ''
const res = await getBmTeamList({ isAll: 0, idCard })
const idCard = userInfo.value.userName || ''
const res = await getBmTeamList({ isAll: 0 })
if (res.data.length > 0) {
teamList.value = res.data.map((item) => {
return {

View File

@ -49,7 +49,7 @@ export function getToolsLedgerDetailsListApi(data) {
export const getBmTeamList = (data) => {
return http({
method: 'GET',
url: '/material/bmTeam/list',
url: '/material/bmTeam/getListByIdCard',
data,
})
}