From 6b4c4a7bd5cac22ebb9695a09b2a79629ba54c55 Mon Sep 17 00:00:00 2001 From: FengHui Date: Fri, 22 May 2026 17:11:06 +0800 Subject: [PATCH] 111 --- packageA/pages/personalInfo/personalInfo.vue | 16 ++++++++-------- utils/request.js | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packageA/pages/personalInfo/personalInfo.vue b/packageA/pages/personalInfo/personalInfo.vue index 28135c4..f8e778f 100644 --- a/packageA/pages/personalInfo/personalInfo.vue +++ b/packageA/pages/personalInfo/personalInfo.vue @@ -187,7 +187,7 @@ const fromValue = reactive({ politicalAffiliation: '', idCard: '', phone: '', - userType: '' + userTag: '' }); // 输入校验相关 @@ -280,9 +280,9 @@ function initLoad() { } // 回显人员类型 - if (currentUserInfo.userType) { - fromValue.userType = currentUserInfo.userType; - const userTypeValues = currentUserInfo.userType.split(','); + if (currentUserInfo.userTag) { + fromValue.userTag = currentUserInfo.userTag; + const userTypeValues = currentUserInfo.userTag.split(','); state.userTypeValues = userTypeValues; initUserTypeText(userTypeValues); } @@ -355,10 +355,10 @@ function initUserTypeText(userTypeValues) { getDictSelectOption('user_type').then(data => { if (!trySetText(data)) { - state.userTypeText = fromValue.userType; + state.userTypeText = fromValue.userTag; } }).catch(() => { - state.userTypeText = fromValue.userType; + state.userTypeText = fromValue.userTag; }); } @@ -375,7 +375,7 @@ const confirm = () => { if (!fromValue.politicalAffiliation) { return $api.msg('请选择政治面貌'); } - if (!fromValue.userType) { + if (!fromValue.userTag) { return $api.msg('请选择人员类型'); } if (!checkingPhoneRegExp(fromValue.phone)) { @@ -724,7 +724,7 @@ async function changeUserType() { defaultValues: state.userTypeValues, success: (selectedValues, selectedItems) => { state.userTypeValues = selectedValues; - fromValue.userType = selectedValues.join(','); + fromValue.userTag = selectedValues.join(','); state.userTypeText = selectedItems.map(item => item.label).join('、'); }, }); diff --git a/utils/request.js b/utils/request.js index 40012de..4b1b9cf 100644 --- a/utils/request.js +++ b/utils/request.js @@ -188,8 +188,8 @@ export function createRequest(url, data = {}, method = 'GET', loading = false, h header, success: resData => { const responseData = handleResponseData(resData.data) - // console.log('[请求] 接口地址:', config.baseUrl + url) - // console.log('[请求] 解密后数据:', JSON.stringify(responseData)) + console.log('[请求] 接口地址:', config.baseUrl + url) + console.log('[请求] 解密后数据:', JSON.stringify(responseData)) // 响应拦截 if (resData.statusCode === 200) { const {