This commit is contained in:
FengHui
2026-05-22 17:11:06 +08:00
parent 75ee6f7682
commit 6b4c4a7bd5
2 changed files with 10 additions and 10 deletions

View File

@@ -187,7 +187,7 @@ const fromValue = reactive({
politicalAffiliation: '', politicalAffiliation: '',
idCard: '', idCard: '',
phone: '', phone: '',
userType: '' userTag: ''
}); });
// 输入校验相关 // 输入校验相关
@@ -280,9 +280,9 @@ function initLoad() {
} }
// 回显人员类型 // 回显人员类型
if (currentUserInfo.userType) { if (currentUserInfo.userTag) {
fromValue.userType = currentUserInfo.userType; fromValue.userTag = currentUserInfo.userTag;
const userTypeValues = currentUserInfo.userType.split(','); const userTypeValues = currentUserInfo.userTag.split(',');
state.userTypeValues = userTypeValues; state.userTypeValues = userTypeValues;
initUserTypeText(userTypeValues); initUserTypeText(userTypeValues);
} }
@@ -355,10 +355,10 @@ function initUserTypeText(userTypeValues) {
getDictSelectOption('user_type').then(data => { getDictSelectOption('user_type').then(data => {
if (!trySetText(data)) { if (!trySetText(data)) {
state.userTypeText = fromValue.userType; state.userTypeText = fromValue.userTag;
} }
}).catch(() => { }).catch(() => {
state.userTypeText = fromValue.userType; state.userTypeText = fromValue.userTag;
}); });
} }
@@ -375,7 +375,7 @@ const confirm = () => {
if (!fromValue.politicalAffiliation) { if (!fromValue.politicalAffiliation) {
return $api.msg('请选择政治面貌'); return $api.msg('请选择政治面貌');
} }
if (!fromValue.userType) { if (!fromValue.userTag) {
return $api.msg('请选择人员类型'); return $api.msg('请选择人员类型');
} }
if (!checkingPhoneRegExp(fromValue.phone)) { if (!checkingPhoneRegExp(fromValue.phone)) {
@@ -724,7 +724,7 @@ async function changeUserType() {
defaultValues: state.userTypeValues, defaultValues: state.userTypeValues,
success: (selectedValues, selectedItems) => { success: (selectedValues, selectedItems) => {
state.userTypeValues = selectedValues; state.userTypeValues = selectedValues;
fromValue.userType = selectedValues.join(','); fromValue.userTag = selectedValues.join(',');
state.userTypeText = selectedItems.map(item => item.label).join('、'); state.userTypeText = selectedItems.map(item => item.label).join('、');
}, },
}); });

View File

@@ -188,8 +188,8 @@ export function createRequest(url, data = {}, method = 'GET', loading = false, h
header, header,
success: resData => { success: resData => {
const responseData = handleResponseData(resData.data) const responseData = handleResponseData(resData.data)
// console.log('[请求] 接口地址:', config.baseUrl + url) console.log('[请求] 接口地址:', config.baseUrl + url)
// console.log('[请求] 解密后数据:', JSON.stringify(responseData)) console.log('[请求] 解密后数据:', JSON.stringify(responseData))
// 响应拦截 // 响应拦截
if (resData.statusCode === 200) { if (resData.statusCode === 200) {
const { const {