diff --git a/src/http/api/screen/index.ts b/src/http/api/screen/index.ts
index a45b514..6a1930c 100644
--- a/src/http/api/screen/index.ts
+++ b/src/http/api/screen/index.ts
@@ -17,6 +17,11 @@ export const getLeaseCouplesApi = (data: any = {}) => {
return get('/material-mall/largeScreen/getCompanyNum', data)
}
+// 出租租赁数
+export const getLeaseAndRentCountApi = (data: any = {}) => {
+ return get('/material-mall/largeScreen/devLeaseAndRentCount', data)
+}
+
// 装备上架统计
export const getDevCountApi = (data: any = {}) => {
return get('/material-mall/largeScreen/devCount', data)
diff --git a/src/views/big-screen/model-components/left-two-model-new.vue b/src/views/big-screen/model-components/left-two-model-new.vue
index 55fdb63..cd450e4 100644
--- a/src/views/big-screen/model-components/left-two-model-new.vue
+++ b/src/views/big-screen/model-components/left-two-model-new.vue
@@ -14,10 +14,10 @@
输电线路类
- {{ leftData_3[0].deviceCount || 0 }}
+ {{ leftData_3[0]?.deviceCount || 0 }}
个
-
{{ leftData_3[0].ratio }}%
+
{{ leftData_3[0]?.ratio }}%
@@ -31,10 +31,10 @@
变电安装类
- {{ leftData_3[1].deviceCount || 0 }}
+ {{ leftData_3[1]?.deviceCount || 0 }}
个
-
{{ leftData_3[1].ratio }}%
+
{{ leftData_3[1]?.ratio }}%
@@ -48,10 +48,10 @@
检修调试类
- {{ leftData_3[2].deviceCount || 0 }}
+ {{ leftData_3[2]?.deviceCount || 0 }}
个
-
{{ leftData_3[2].ratio }}%
+
{{ leftData_3[2]?.ratio }}%
@@ -74,10 +74,11 @@ const getLeaseCountByTypeNameData = async () => {
}
const leftData_3 = ref([])
-getLeaseCountByTypeNameData()
+// getLeaseCountByTypeNameData()
const getLeaseCountData = async () => {
const { data: res }: any = await getLeaseCountApi()
+ console.log(res, '---')
leftData_3.value = res
}
getLeaseCountData()
diff --git a/src/views/big-screen/model-components/right-three-model-new.vue b/src/views/big-screen/model-components/right-three-model-new.vue
index 0d6b2b8..5f21397 100644
--- a/src/views/big-screen/model-components/right-three-model-new.vue
+++ b/src/views/big-screen/model-components/right-three-model-new.vue
@@ -2,9 +2,13 @@