From a6f5b0c56dd7356f75f0d246e90a544f2b2387b8 Mon Sep 17 00:00:00 2001 From: fyy <2717885210@qq.com> Date: Sat, 6 Sep 2025 13:32:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/dashboard/analytics/index.vue | 29 ++-------- .../productManagement/data.ts | 5 +- .../productManagement/index.vue | 54 ++++++++++++++++--- 3 files changed, 54 insertions(+), 34 deletions(-) diff --git a/apps/web-antd/src/views/dashboard/analytics/index.vue b/apps/web-antd/src/views/dashboard/analytics/index.vue index ab1e5711..f330e43d 100644 --- a/apps/web-antd/src/views/dashboard/analytics/index.vue +++ b/apps/web-antd/src/views/dashboard/analytics/index.vue @@ -119,32 +119,9 @@ async function getCarCount() { }, ); const result = await response.json(); - overviewItems.value[1].value = result.data.pageTotals; - const response2 = await fetch( - 'https://server.cqnctc.com:6081/web/thirdParty/queryInParkData', - { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - Accept: 'application/json, text/plain, */*', - }, - body: JSON.stringify({ - pageReq: { - pageNum: 1, - pageSize: 10, - }, - plNos: ['PFN000000012', 'PFN000000022', 'PFN000000025'], - parkInBeginTime: '', - parkInEndTime: '', - orgId: 10012, - parkOrderTypes: [100, 200, 201, 300, 500], - terminalSource: 50, - remark: '', - }), - }, - ); - const result2 = await response2.json(); - overviewItems.value[1].totalValue = result2.data.pageTotals; + overviewItems.value[1].value = result.data.todayCount; + + overviewItems.value[1].totalValue = result.data.allCount; } // 预警 async function getStatisticsCurrDayCount() { diff --git a/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/data.ts b/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/data.ts index e48c3416..c223f1ad 100644 --- a/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/data.ts +++ b/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/data.ts @@ -46,6 +46,7 @@ export const columns: VxeGridProps['columns'] = [ { title: '图片', field: 'imgPath', + slots: { default: 'imgPath' }, }, { title: '规格', @@ -121,9 +122,9 @@ export const modalSchema: FormSchemaGetter = () => [ fieldName: 'rent', component: 'InputNumber', rules: 'required', - componentProps:{ + componentProps: { precision: 2, - } + }, }, { label: '库存数量', diff --git a/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/index.vue b/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/index.vue index c4bdcbb5..10e29afb 100644 --- a/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/index.vue +++ b/apps/web-antd/src/views/property/greenPlantRentalManagement/productManagement/index.vue @@ -1,11 +1,11 @@ + - +