Jelajahi Sumber

app-个人信息、求职人员详情显示调整

liao-sea 10 bulan lalu
induk
melakukan
9b517e3d9a
1 mengubah file dengan 20 tambahan dan 17 penghapusan
  1. 20 17
      h5app/src/views/pages/user/myInfo.vue

+ 20 - 17
h5app/src/views/pages/user/myInfo.vue

@@ -34,7 +34,7 @@
         </div>
         <div class="form-input">
           <ion-label>身份证号</ion-label>
-          <ion-input readonly v-model:value="curLoginUserInfo.idCard"></ion-input>
+          <ion-input readonly v-model:value="curLoginUserInfo.idCardShow"></ion-input>
         </div>
         <div class="form-input">
           <ion-label>用户类型</ion-label>
@@ -170,17 +170,18 @@ export default defineComponent({
       createBy:null,
       createTime: "2024-01-12",
       cultureRank: 14,
-      cultureRankName:"硕士研究生",
+      cultureRankName:"",
       email: null,
       errorMessage: null,
       finishSchool: null,
       gender:1,
-      genderName  :"男",
-      idCard: "440923199908021923",
-      institutionID: "5f342f1c-83e5-403d-a81b-836eec2f5191",
+      genderName  :"",
+      idCard: "",
+      idCardShow:"",
+      institutionID: "",
       isFullTime:null,
       isFullTimeName: null,
-      mobile: "15423687457",
+      mobile: "",
       nation: null,
       nationName: null,
       nativePlace: null,
@@ -191,18 +192,18 @@ export default defineComponent({
       politicsStatusID: null,
       politicsStatusName: null,
       profession:null,
-      regionCode: "441302000000000",
-      roleID: 3,
-      roleName: "驿站工作者",
-      siteID: "1ac47c25-085e-4c28-8fbf-22c0b92195ea",
-      siteName:"惠城区驿站",
-      siteUserID: "13b4da57-df93-470d-9924-f1423f76603c",
-      siteUserName: "蒋文白",
+      regionCode: "",
+      roleID: 0,
+      roleName: "",
+      siteID: "",
+      siteName:"",
+      siteUserID: "",
+      siteUserName: "",
       socialSecurityCard: null,
-      updateBy: "9df5c57a-48b5-499b-bdeb-42f7e7ad0662",
-      updateTime: "2024-04-30",
-      userID: "9df5c57a-48b5-499b-bdeb-42f7e7ad0662",
-      userNo: "hctest001",
+      updateBy: "",
+      updateTime: "",
+      userID: "",
+      userNo: "",
     });
 
     const onSetOccupationalID = (data: any)=>{
@@ -212,6 +213,8 @@ export default defineComponent({
 
     getSiteUserByUserID(userInfo.value.userID==undefined?"":userInfo.value.userID).then(data=> {
       curLoginUserInfo.value = data.list[0];
+      const replaceStr =  curLoginUserInfo.value.idCard.substring(3,15);
+      curLoginUserInfo.value.idCardShow = String(curLoginUserInfo.value.idCard).replace(replaceStr,'************');
       console.log("curLoginUserInfo", curLoginUserInfo.value);
     });