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: '',
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('、');
},
});

View File

@@ -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 {