接口联调

This commit is contained in:
binbin_pan 2024-03-27 16:19:35 +08:00
parent b8e64b7d8d
commit 3853a6e5e6
1 changed files with 18 additions and 15 deletions

View File

@ -390,7 +390,7 @@ onMounted(() => {
iniTapiMaDevInfoList()
iniTapiMaDevInfoTypeList()
iniTapiMaDevInfoCompanyList()
iniTapiMaDevInfoMatypeList()
// iniTapiMaDevInfoMatypeList()
iniTapiMaOrderInfoTodayList()
iniTapiMaOrderInfoList()
// ==
@ -420,7 +420,10 @@ const iniTapiMaDevInfoTypeList = async () => {
const res: any = await apiMaDevInfoTypeList()
console.log("apiMaDevInfoTypeList", res)
equipmentCountInfo.selfCount = res.self.count || 0
equipmentCountInfo.shelfCount = res.use.count || 0
equipmentCountInfo.shelfCount = res.rent.count || 0
//
middleCountList.list[2].count = res.use.count || 0
middleCountList.list[3].count = res.rent.count || 0
} catch (error) {
console.log(error)
}
@ -446,18 +449,18 @@ const iniTapiMaDevInfoCompanyList = async () => {
}
}
const iniTapiMaDevInfoMatypeList = async () => {
// :
try {
const res: any = await apiMaDevInfoTypeList()
console.log("apiMaDevInfoMatypeList", res)
middleCountList.list[2].count = res.use.count || 0
middleCountList.list[3].count = res.rent.count || 0
} catch (error) {
console.log(error)
}
// const iniTapiMaDevInfoMatypeList = async () => {
// // :
// try {
// const res: any = await apiMaDevInfoTypeList()
// console.log("apiMaDevInfoMatypeList", res)
// middleCountList.list[2].count = res.use.count || 0
// middleCountList.list[3].count = res.rent.count || 0
// } catch (error) {
// console.log(error)
// }
}
// }
const iniTapiMaOrderInfoTodayList = async () => {
//:
try {
@ -545,7 +548,7 @@ const InitApiMaLeaseInfoInfoTypeList= async()=>{
const nowTime = ref("")
// , 2023.11.16 09:56:12
const getCurrentWeather = () => {
const getCurrentTime = () => {
const date = new Date()
const year = date.getFullYear()
const month = (date.getMonth() + 1 + '').padStart(2, '0')
@ -559,7 +562,7 @@ const getCurrentWeather = () => {
}
setInterval(() => {
nowTime.value = getCurrentWeather()
nowTime.value = getCurrentTime()
}, 1000)
</script>