From 0753e59306f7adc4b598227be1553aa795139a7b Mon Sep 17 00:00:00 2001 From: bb_pan Date: Wed, 4 Feb 2026 14:29:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wsScreen/index.js | 3 +- src/views/home/components/provincial/Top2.vue | 31 +++++++++++-------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/src/api/wsScreen/index.js b/src/api/wsScreen/index.js index 86c796e5..36bb5dfb 100644 --- a/src/api/wsScreen/index.js +++ b/src/api/wsScreen/index.js @@ -18,10 +18,11 @@ export const getEquipmentClassificationApi = () => { } // 单位装备配置 / 总价值数 -export const getUnitEquipmentConfigurationApi = () => { +export const getUnitEquipmentConfigurationApi = (data) => { return request({ url: '/material-mall/provinceScreen/getUnitEquipmentConfiguration', method: 'get', + params: data, }) } diff --git a/src/views/home/components/provincial/Top2.vue b/src/views/home/components/provincial/Top2.vue index 25c1ee2f..e1a61742 100644 --- a/src/views/home/components/provincial/Top2.vue +++ b/src/views/home/components/provincial/Top2.vue @@ -20,23 +20,23 @@ - + 0-1000万 1000-2000万 2000万以上 - 在库 - 自用 - 共享 - 维修 + 在库 + 自用 + 共享 + 维修 - - 0-70 - 71-100 - 101-120 + + 0-60 + 61-80 + 81-100 @@ -83,7 +83,7 @@ export default { mechanization: 0, // 机械化率 }, checkList: [], - checkList2: [], + checkList2: ['1', '2', '3', '5'], checkList3: [], radio: 1, // 机械化率总数 @@ -103,8 +103,7 @@ export default { }, changeCheckBox(val) { console.log('🚀 ~ val:', val) - console.log('🚀 ~ val:', this.checkList) - // this.getInfo() + this.getInfo() }, handleRadio(val) { this.getInfo() @@ -138,7 +137,13 @@ export default { } if (this.btnIndex == 2 || this.btnIndex == 3) { - res = await getUnitEquipmentConfigurationApi() + let params = {} + if (this.btnIndex == 2) { + params = { + maStatus: this.checkList2.join(','), + } + } + res = await getUnitEquipmentConfigurationApi(params) if (currentId !== this.requestId || !res.data) return this.cityData = res.data