diff --git a/src/views/screen/sharePlatform.vue b/src/views/screen/sharePlatform.vue index 448b45d..6cc7be1 100644 --- a/src/views/screen/sharePlatform.vue +++ b/src/views/screen/sharePlatform.vue @@ -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)