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)