接口联调
This commit is contained in:
parent
b8e64b7d8d
commit
3853a6e5e6
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue