|
|
@@ -127,7 +127,6 @@ const { proxy } = getCurrentInstance();
|
|
|
|
|
|
const modalRef = ref(null);
|
|
|
const formRef = ref(null);
|
|
|
-const userInfo = ref({});
|
|
|
const form = ref({
|
|
|
scores: {},
|
|
|
directionStudy: []
|
|
|
@@ -194,12 +193,12 @@ const close = () => {
|
|
|
const getUserInfo = (cardInfo) => {
|
|
|
const { cardId, location, nickName, outDate } = cardInfo;
|
|
|
getUserByCardId(cardId).then(async res => {
|
|
|
- userInfo.value = { ...res.data };
|
|
|
form.value = {
|
|
|
...res.data,
|
|
|
location,
|
|
|
nickName,
|
|
|
- outDate
|
|
|
+ outDate,
|
|
|
+ directionStudy: res.data.directionStudy || []
|
|
|
};
|
|
|
const areaList = await getAreaList();
|
|
|
const area = areaList.find(item => item.areaName === location + '省');
|