From 86f1030b03245b96e0f573aed261124a9de5d3e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E5=87=AF?= <2448379534@qq.com> Date: Thu, 30 Apr 2026 17:40:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98-=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/register/index.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/src/views/register/index.vue b/frontend/src/views/register/index.vue index 851e123..765af1c 100644 --- a/frontend/src/views/register/index.vue +++ b/frontend/src/views/register/index.vue @@ -123,8 +123,8 @@ - - + @@ -136,7 +136,7 @@ @@ -193,7 +193,7 @@ let smsTimer: any = null; const organizationData = reactive({ groupCode: '', // 集团(单选,字符串) companyCode: '', // 公司(单选,字符串) - rvcdCode: [], // 流域(多选,数组) + hbrvcdCode: [], // 流域(多选,数组) stationCode: [] // 电站(多选,数组) }); @@ -202,7 +202,7 @@ const organizationFormRef = ref(); // ==================== 组织表单验证规则 ==================== const organizationRules = { - rvcdCode: [ + hbrvcdCode: [ { validator: (rule: any, value: any[]) => { if (!value || value.length === 0) { @@ -429,8 +429,8 @@ const onRvcdChange = () => { // 清空电站选择 organizationData.stationCode = []; // 获取当前选中的所有流域ID,加载对应的电站列表 - if (organizationData.rvcdCode && organizationData.rvcdCode.length > 0) { - onBasinChange({ hbrvcds: organizationData.rvcdCode }); + if (organizationData.hbrvcdCode && organizationData.hbrvcdCode.length > 0) { + onBasinChange({ hbrvcds: organizationData.hbrvcdCode }); } else { // 如果没有选择流域,清空电站列表 stationList.value = []; @@ -485,7 +485,7 @@ const handleModalCancel = () => { // 重置组织表单数据 organizationData.groupCode = ''; organizationData.companyCode = ''; - organizationData.rvcdCode = []; + organizationData.hbrvcdCode = []; organizationData.stationCode = []; // 清除表单验证状态 organizationFormRef.value?.clearValidate(); @@ -534,8 +534,8 @@ const onRegister = async () => { } // 可选字段:流域(如果有值才传,数组转逗号分隔字符串) - if (organizationData.rvcdCode && organizationData.rvcdCode.length > 0) { - registerParams.rvcdCode = organizationData.rvcdCode.join(','); + if (organizationData.hbrvcdCode && organizationData.hbrvcdCode.length > 0) { + registerParams.hbrvcdCode = organizationData.hbrvcdCode.join(','); } // 可选字段:电站(如果有值才传,数组转逗号分隔字符串)