From 395a5b3eca434f0d3a5c92cba8843e7e6dd8b94c Mon Sep 17 00:00:00 2001 From: WUSIJIAN <13825895+wsj0228@user.noreply.gitee.com> Date: Wed, 10 Dec 2025 17:25:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BF=AE=E6=94=B9=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=92=8C=E6=93=8D=E4=BD=9C=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/tenant/index.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue index 1187e65..41e6f36 100644 --- a/src/views/system/tenant/index.vue +++ b/src/views/system/tenant/index.vue @@ -21,7 +21,7 @@ - - + + + 删除 - + --> { state.tableData.loading = true; const params = { ...state.tableData.param }; // 处理城市数据:如果是数组(级联选择器返回),取最后一个值 - if (Array.isArray(params.city) && params.city.length > 0) { - let lastCode = String(params.city[params.city.length - 1]); + if (Array.isArray(params.cityCode) && params.cityCode.length > 0) { + let lastCode = String(params.cityCode[params.cityCode.length - 1]); // 特殊处理直辖市:如果选中的是省级代码,转换为市级代码 (市辖区) const municipalityMap: Record = { '11': '110100', '110000': '110100', // 北京 @@ -166,9 +166,9 @@ const tenantList = () => { // 普通省市,如果是4位代码,补齐为6位 lastCode = lastCode + '00'; } - params.city = lastCode; + params.cityCode = lastCode; } else { - params.city = ''; + params.cityCode = ''; } getTenantList(params)