jianghaili 7 месяцев назад
Родитель
Сommit
227a72ef0e
2 измененных файлов с 26 добавлено и 22 удалено
  1. 10 7
      package/records/records.vue
  2. 16 15
      pages/recruitmentData/communicationRecords.vue

+ 10 - 7
package/records/records.vue

@@ -48,7 +48,8 @@
               <view class="gwList-box-item-box-label flex align-center flex-wrap">
                 <view class="gw-tag" v-if="item.company && item.company.workRestTime">{{ item.company.workRestTime }}
                 </view>
-                <view class="gw-tag" v-for="(ite, ind) in item.welfareTag ? item.welfareTag.split(';') : []" :key="ind">
+                <view class="gw-tag" v-for="(ite, ind) in (item.welfareTag ? item.welfareTag.split(';') : [])"
+                  :key="ind">
                   {{
                     ite }}</view>
               </view>
@@ -73,7 +74,7 @@
               <view class="gwList-box-item-box-label flex align-center flex-wrap">
                 <view class="gw-tag" v-if="item.company && item.company.workRestTime">{{ item.company.workRestTime }}
                 </view>
-                <view class="gw-tag" v-for="(ite, ind) in item.postPush ? item.postPush.welfareTag.split(';') : []"
+                <view class="gw-tag" v-for="(ite, ind) in (item.postPush ? item.postPush.welfareTag.split(';') : [])"
                   :key="ind">{{
                     ite }}</view>
               </view>
@@ -85,7 +86,7 @@
                   <text class="user-info-name">{{ item.userEntity && item.userEntity.userName || '匿名'
                   }}·{{ item.hr && item.hr.hrPosition || '创始人' }}</text>
                   <view class="info-tag" v-if="item.postPush && item.postPush.salaryTimes">{{ item.postPush.salaryTimes
-                    }}
+                  }}
                   </view>
                 </view>
                 <view class="gwList-box-item-box-info-r">
@@ -118,7 +119,8 @@
                     <view class="gw-tag" v-if="item.company && item.company.workRestTime">{{ item.company.workRestTime
                     }}
                     </view>
-                    <view class="gw-tag" v-for="(ite, ind) in item.company ? item.company.welfare.split(';') : []"
+                    <view class="gw-tag"
+                      v-for="(ite, ind) in (item.company && item.company.welfare ? item.company.welfare.split(';') : [])"
                       :key="ind">{{
                         ite }}</view>
                   </view>
@@ -141,7 +143,8 @@
               <view class="gwList-box-item-box-label flex align-center flex-wrap">
                 <view class="gw-tag" v-if="item.company && item.company.workRestTime">{{ item.company.workRestTime }}
                 </view>
-                <view class="gw-tag" v-for="(ite, ind) in item.welfareTag ? item.welfareTag.split(';') : []" :key="ind">
+                <view class="gw-tag" v-for="(ite, ind) in (item.welfareTag ? item.welfareTag.split(';') : [])"
+                  :key="ind">
                   {{ ite }}
                 </view>
               </view>
@@ -367,7 +370,7 @@ export default {
         if (res.code == 0) {
           res.data.records.map((item) => {
             if (item.positionWelfare) {
-              item.positionWelfare = item.positionWelfare.split(",");
+              item.positionWelfare = item.positionWelfare ? item.positionWelfare.split(",") : [];
             }
           });
           this.pages = res.data.pages;
@@ -429,7 +432,7 @@ export default {
         if (res.code == 0) {
           res.data.records.map((item) => {
             if (item.positionWelfare) {
-              item.positionWelfare = item.positionWelfare.split(",");
+              item.positionWelfare = item.positionWelfare ? item.positionWelfare.split(",") : [];
             }
           });
           this.pages = res.data.pages;

+ 16 - 15
pages/recruitmentData/communicationRecords.vue

@@ -82,9 +82,9 @@
                  <view class="current-job" v-if="record.companyName">
                    <image src="../../static/images/aixin.svg" class="job-icon" mode="aspectFit"></image>
                    <text class="job-text">{{ record.companyName }}</text>
-                   <text class="work-period">
+                   <!-- <text class="work-period">
                     <span v-if="getYearMonthInterval(record.lastWorkStartTime, record.lastWorkEndTime)[0] > 0">{{ getYearMonthInterval(record.lastWorkStartTime, record.lastWorkEndTime)[0] }}年</span>
-                    {{ getYearMonthInterval(record.lastWorkStartTime, record.lastWorkEndTime)[1] }}个月</text>
+                    {{ getYearMonthInterval(record.lastWorkStartTime, record.lastWorkEndTime)[1] }}个月</text> -->
                  </view>
                  
                  <!-- 求职期望 -->
@@ -159,8 +159,8 @@
                  </view>
                  <view class="record-divider"></view>
                  <view class="record-right">
-                   <text class="candidate-name">{{ record.resumesListDto[0].userName }}</text>
-                   <text class="candidate-details">{{ record.resumesListDto[0].resumesWorkExperience }}年 {{ record.resumesListDto[0].degree }} {{ record.resumesListDto[0].minSalary }}-{{ record.resumesListDto[0].maxSalary }}</text>
+                   <text class="candidate-name">{{ record.userEntity.userName }}</text>
+                   <text class="candidate-details">{{ record.userEntity.resumesWorkExperience }}年 {{ record.userEntity.degree }} {{ record.userEntity.minSalary }}-{{ record.userEntity.maxSalary }}</text>
                  </view>
                </view>
              </view>
@@ -195,24 +195,24 @@
                     class=""
                     style="color: #212121; font-size: 38rpx; font-weight: 800"
                   >
-                    {{ item.resumesListDto[0].userName }}
+                    {{ item.userEntity.userName }}
                   </view>
                   <view
                     class="flex align-center flex-wrap"
                     style="color: #999999; font-size: 26rpx; margin-top: 10rpx"
                   >
-                    <text>{{ item.resumesListDto[0].userAge }}岁</text>
+                    <text>{{ item.userEntity.userAge }}岁</text>
                     <text style="margin-left: 20rpx; margin-right: 20rpx">|</text>
-                    <text>{{ item.resumesListDto[0].resumesWorkExperience }}年</text>
+                    <text>{{ item.userEntity.resumesWorkExperience }}年</text>
                     <text style="margin-left: 20rpx; margin-right: 20rpx">|</text>
-                    <text>{{ item.resumesListDto[0].school }}</text>
+                    <text>{{ item.userEntity.school }}</text>
                     <text style="margin-left: 20rpx; margin-right: 20rpx">|</text>
-                    <text>期望 {{ item.resumesListDto[0].minSalary }}-{{ item.resumesListDto[0].maxSalary }}</text>
+                    <text>期望 {{ item.userEntity.minSalary }}-{{ item.userEntity.maxSalary }}</text>
                   </view>
                 </view>
                 <view class="qyList-box-item-info-r">
                   <image
-                    :src="item.resumesListDto[0].userAvatar ? item.resumesListDto[0].userAvatar : '../../static/logo.png'"
+                    :src="item.userEntity.userAvatar ? item.userEntity.userAvatar : '../../static/logo.png'"
                     style="width: 95rpx; height: 95rpx; border-radius: 50%"
                     mode=""
                   ></image>
@@ -226,7 +226,7 @@
                   style="margin-right: 16rpx"
                 >
                 </u-icon>
-                期望岗位:{{ item.resumesListDto[0].expectedPosition }}
+                期望岗位:{{ item.userEntity.expectedPosition }}
               </view>
               <view
                 class="qyList-box-item-job flex align-center"
@@ -236,11 +236,11 @@
                   style="width: 30rpx; height: 32rpx; margin-right: 16rpx"
                   mode=""
                 ></image>
-                {{ item.resumesListDto[0].companyName }} /
-                {{ item.resumesListDto[0].lastWorkPosition }}
+                {{ item.userEntity.companyName }} /
+                {{ item.userEntity.lastWorkPosition }}
               </view>
               <view class="qyList-box-item-rem" v-if="item.resumesDetails">
-                优势:{{ item.resumesListDto[0].workContent }}
+                优势:{{ item.userEntity.workContent }}
               </view>
             </view>
           </view>
@@ -419,7 +419,8 @@ export default {
       // 确保传入的是 Date 对象
       const start = new Date(startDate);
       const end = new Date(endDate);
-
+      console.log(start,end,'为啥')
+      return;
       // 确保结束日期在开始日期之后
       if (end < start) {
         throw new Error('结束日期必须在开始日期之后');