From 3853a6e5e660c0249a528c8dde523bde17a5c359 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Wed, 27 Mar 2024 16:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/screen/sharePlatform.vue | 33 ++++++++++++++++-------------- 1 file changed, 18 insertions(+), 15 deletions(-) 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)