From 8c648a3707da7b02e845aeb44ec3051b7e63fb9b Mon Sep 17 00:00:00 2001 From: 13218645326 Date: Sat, 2 Dec 2023 18:12:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customCom/hotProvider.vue | 82 +++++++++--------------- src/http/api.md | 8 +++ src/http/api/echartApi.ts | 11 ++++ src/views/screen/sharePlatform.vue | 36 +++++++++-- 4 files changed, 80 insertions(+), 57 deletions(-) diff --git a/src/components/customCom/hotProvider.vue b/src/components/customCom/hotProvider.vue index 3e4b43f..2f38453 100644 --- a/src/components/customCom/hotProvider.vue +++ b/src/components/customCom/hotProvider.vue @@ -15,16 +15,16 @@
-
- +
- {{ item.v_name }} + {{ item.ownCo }}
- 设备数:{{ item.v_device_count }} + 设备数:{{ item.count }}
@@ -35,50 +35,12 @@ @@ -122,9 +99,11 @@ const subTab = (type: any) => { .provider_content { padding-top: 12px; + overflow-y: auto; + height: 396px; .provider_item { - width: 303px; + width: 280px; height: 40px; padding: 0 12px; box-sizing: border-box; @@ -164,6 +143,10 @@ const subTab = (type: any) => { } } + &::-webkit-scrollbar { + display: none; + } + } .cloud_words_out { @@ -171,5 +154,4 @@ const subTab = (type: any) => { height: 340px; margin-top: 12px; background-color: rgba($color: #011B37, $alpha: 0.6); -} - +} diff --git a/src/http/api.md b/src/http/api.md index 8e90edb..3167c64 100644 --- a/src/http/api.md +++ b/src/http/api.md @@ -28,4 +28,12 @@ http://10.40.92.64:9501/bmCompanyInfo/coltd-list http://10.40.92.64:9501/maDevInfo/ma-list +-- + +根据求出租信息查询对应的数量: +http://10.40.92.64:9501/maLeaseInfo/type-list +查询公司对应的热门设备数量: +http://10.40.92.64:9501/maDevInfo/hot-list + + diff --git a/src/http/api/echartApi.ts b/src/http/api/echartApi.ts index 0853e78..21aec4c 100644 --- a/src/http/api/echartApi.ts +++ b/src/http/api/echartApi.ts @@ -41,3 +41,14 @@ export function apibmCompanyInfoColtdList() { export function apiMaDevInfoMaList() { return get('maDevInfo/ma-list', {}) } +// ====== +// 根据求出租信息查询对应的数量: +export function apiMaLeaseInfoInfoTypeList() { + return get('maLeaseInfo/type-list', {}) +} +// 查询公司对应的热门设备数量: +export function apiMaDevInfoHotList() { + return get('maDevInfo/hot-list', {}) +} + + diff --git a/src/views/screen/sharePlatform.vue b/src/views/screen/sharePlatform.vue index e312540..bfefc83 100644 --- a/src/views/screen/sharePlatform.vue +++ b/src/views/screen/sharePlatform.vue @@ -50,19 +50,19 @@
出租信息
-
+
{{ item }}
-
+
+
-
出租信息
+
求租信息
-
+
{{ item }}
-
+
+
@@ -163,7 +163,8 @@ import { getImg } from "utils/index" import { apiMaDevInfoList, apiMaDevInfoTypeList, apiMaDevInfoCompanyList, apiMaDevInfoMatypeList, - apiMaOrderInfoTodayList, apiMaOrderInfoList, apiBmMachinistInfoList, apiBmCompanyInfoTypeList, apiMaDevInfoMaList + apiMaOrderInfoTodayList, apiMaOrderInfoList, apiBmMachinistInfoList, apiBmCompanyInfoTypeList, apiMaDevInfoMaList, + apiMaLeaseInfoInfoTypeList } from "http/api/echartApi" const equipmentCountInfo: any = reactive({ listCount: [], @@ -195,7 +196,10 @@ const middleCountList = reactive({ } ] }) - +const rentWantRent:any=reactive({ + rent:[], + wantRent:[] +}) const platFormInfo: any = reactive({ listCount: [], socailCount: "", @@ -495,6 +499,24 @@ const iniTapiMaDevInfoMaList = async () => { } } + +const InitApiMaLeaseInfoInfoTypeList= async()=>{ + // 根据求出租信息查询对应的数量: + try { + const res: any = await apiMaLeaseInfoInfoTypeList() + console.log("apiMaLeaseInfoInfoTypeList", res) + rentWantRent.rent = (res.rent.count + '').split("") + rentWantRent.wantRent = (res.wantRent.count + '').split("") + + + } catch (error) { + console.log(error) + } +} + +onMounted(()=>{ + InitApiMaLeaseInfoInfoTypeList() +})