This commit is contained in:
parent
29872f2e4e
commit
08755ed857
|
|
@ -118,6 +118,7 @@ const getUserInfoByUserName = async () => {
|
|||
const res = await getUserInfoByUserNameApi({ userName })
|
||||
idCard.value = res.data.idCard
|
||||
console.log('🚀 ~ getUserInfoByUserName ~ idCard.value:', idCard.value)
|
||||
uni.setStorageSync('idCard', idCard.value)
|
||||
} catch (error) {
|
||||
console.log('🚀 ~ getUserInfoByUserName ~ error:', error)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -238,7 +238,14 @@ const getDetailsById = async () => {
|
|||
// 获取班组
|
||||
const getTeamList = async () => {
|
||||
try {
|
||||
const res = await getBmTeamList({ isAll: 0 })
|
||||
const params = {
|
||||
isAll: 0,
|
||||
}
|
||||
if (!opts.value.isOut) {
|
||||
params.idCard = uni.getStorageSync('idCard')
|
||||
}
|
||||
console.log('🚀 ~ getTeamList ~ params:', params)
|
||||
const res = await getBmTeamList(params)
|
||||
// teamRange.value = res.data
|
||||
if (res.data.length > 0) {
|
||||
teamRange.value = res.data.map((item) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue