替换工程接口

This commit is contained in:
hayu 2025-10-30 19:45:43 +08:00
parent ec74c9bd2f
commit 755b4bf40d
1 changed files with 5 additions and 1 deletions

View File

@ -231,6 +231,7 @@ import {
getProListByDepartApi
} from '@/services/materialsStation'
import { useMemberStore } from '@/stores'
import {getProjectInfoApi} from "../../../services/materialsStation";
const memberStore = useMemberStore()
const userInfo = ref(memberStore.userInfo || {})
@ -408,7 +409,10 @@ const getTeamList = async () => {
//
const getProjectListApi = async () => {
try {
const res = await getProListByDepartApi({ teamName: formData.teamName })
const params = {
teamName: formData.teamName
}
const res = await getProjectInfoApi(params)
if (!res.data || !res.data.length) return
console.log('🚀 ~ getProjectListApi ~ res:', res)
prodRange.value = res.data.map((item) => {