接口联调
This commit is contained in:
parent
b8e64b7d8d
commit
3853a6e5e6
|
|
@ -390,7 +390,7 @@ onMounted(() => {
|
||||||
iniTapiMaDevInfoList()
|
iniTapiMaDevInfoList()
|
||||||
iniTapiMaDevInfoTypeList()
|
iniTapiMaDevInfoTypeList()
|
||||||
iniTapiMaDevInfoCompanyList()
|
iniTapiMaDevInfoCompanyList()
|
||||||
iniTapiMaDevInfoMatypeList()
|
// iniTapiMaDevInfoMatypeList()
|
||||||
iniTapiMaOrderInfoTodayList()
|
iniTapiMaOrderInfoTodayList()
|
||||||
iniTapiMaOrderInfoList()
|
iniTapiMaOrderInfoList()
|
||||||
// ==
|
// ==
|
||||||
|
|
@ -420,7 +420,10 @@ const iniTapiMaDevInfoTypeList = async () => {
|
||||||
const res: any = await apiMaDevInfoTypeList()
|
const res: any = await apiMaDevInfoTypeList()
|
||||||
console.log("apiMaDevInfoTypeList", res)
|
console.log("apiMaDevInfoTypeList", res)
|
||||||
equipmentCountInfo.selfCount = res.self.count || 0
|
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) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
}
|
}
|
||||||
|
|
@ -446,18 +449,18 @@ const iniTapiMaDevInfoCompanyList = async () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
const iniTapiMaDevInfoMatypeList = async () => {
|
// const iniTapiMaDevInfoMatypeList = async () => {
|
||||||
// 查询在租以及待租设备数量:
|
// // 查询在租以及待租设备数量:
|
||||||
try {
|
// try {
|
||||||
const res: any = await apiMaDevInfoTypeList()
|
// const res: any = await apiMaDevInfoTypeList()
|
||||||
console.log("apiMaDevInfoMatypeList", res)
|
// console.log("apiMaDevInfoMatypeList", res)
|
||||||
middleCountList.list[2].count = res.use.count || 0
|
// middleCountList.list[2].count = res.use.count || 0
|
||||||
middleCountList.list[3].count = res.rent.count || 0
|
// middleCountList.list[3].count = res.rent.count || 0
|
||||||
} catch (error) {
|
// } catch (error) {
|
||||||
console.log(error)
|
// console.log(error)
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
// }
|
||||||
const iniTapiMaOrderInfoTodayList = async () => {
|
const iniTapiMaOrderInfoTodayList = async () => {
|
||||||
//查询今日订单额以及订单数量:
|
//查询今日订单额以及订单数量:
|
||||||
try {
|
try {
|
||||||
|
|
@ -545,7 +548,7 @@ const InitApiMaLeaseInfoInfoTypeList= async()=>{
|
||||||
const nowTime = ref("")
|
const nowTime = ref("")
|
||||||
|
|
||||||
// 实时获取当前时间, 格式为 2023.11.16 星期四 09:56:12
|
// 实时获取当前时间, 格式为 2023.11.16 星期四 09:56:12
|
||||||
const getCurrentWeather = () => {
|
const getCurrentTime = () => {
|
||||||
const date = new Date()
|
const date = new Date()
|
||||||
const year = date.getFullYear()
|
const year = date.getFullYear()
|
||||||
const month = (date.getMonth() + 1 + '').padStart(2, '0')
|
const month = (date.getMonth() + 1 + '').padStart(2, '0')
|
||||||
|
|
@ -559,7 +562,7 @@ const getCurrentWeather = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
nowTime.value = getCurrentWeather()
|
nowTime.value = getCurrentTime()
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue