Commit 1bf5e2dd by 张立顺

feat 功能修改

1 parent f63a2418
......@@ -37,7 +37,7 @@ const RECRUITMENT_INFO_CONFIG = [
const RECRUIT_STATUS_CONFIG = {
// mixResult状态映射
0: { text: '待处理', class: 'pending', canProcess: true },
1: { text: '人员不匹配', class: 'mismatch', canProcess: false },
1: { text: '人员不符合', class: 'mismatch', canProcess: false },
2: { text: '面试通过', class: 'pass', canProcess: false },
3: { text: '面试不通过', class: 'fail', canProcess: false }
}
......@@ -400,7 +400,7 @@ Page({
// 当切换"处理结果"标签时,初始化相关表单数据
if (field === 'processResult') {
// 切换到"人员不匹配"时,清空面试相关字段
// 切换到"人员不符合"时,清空面试相关字段
if (value == 1) {
formData.interviewTime = ''
formData.dipalyTime = ''
......
......@@ -155,7 +155,7 @@ page {
background: #52c41a1a;
}
// 人员不匹配状态
// 人员不符合状态
&.tag-mismatch {
color: #ff4d4f;
background: #ff4d4f1a;
......
......@@ -44,7 +44,7 @@ const RECRUITMENT_INFO_CONFIG = [
const RECRUIT_STATUS_CONFIG = {
// mixResult状态映射
0: { text: '待处理', class: 'pending', canProcess: true },
1: { text: '人员不匹配', class: 'mismatch', canProcess: false },
1: { text: '人员不符合', class: 'mismatch', canProcess: false },
2: { text: '面试通过', class: 'pass', canProcess: false },
3: { text: '面试不通过', class: 'fail', canProcess: false }
}
......@@ -85,7 +85,8 @@ Page({
handleShowMessagePop: false, // 控制弹窗显示
timeShow: false, // 控制时间选择器显示
currentDate: new Date().getTime(),
today: new Date().getTime(), // 当前日期,用于限制日期选择器的最大值
minDate: new Date().getTime(), // 最小日期
maxDate: new Date().getTime(), // 最大日期
formData: {}, // 弹窗表单数据
detailLoaded: false, // 标识是否已加载详情
curDataId: '',
......@@ -127,10 +128,26 @@ Page({
})
}
const { popupType } = this.data
const now = new Date().getTime()
let minDate, maxDate
if (popupType === 'initial') {
// 预计面试时间:当前及之后
minDate = now
maxDate = now + 10 * 365 * 24 * 60 * 60 * 1000 // 10年后
} else {
// 面试时间:当前及之前
minDate = now - 10 * 365 * 24 * 60 * 60 * 1000 // 10年前
maxDate = now
}
// 重置为当前日期
this.setData({
timeShow: true,
currentDate: new Date().getTime()
currentDate: now,
minDate,
maxDate
})
},
......@@ -423,7 +440,7 @@ Page({
// 当切换"处理结果"标签时,初始化相关表单数据
if (field === 'processResult') {
// 切换到"人员不匹配"时,清空面试相关字段
// 切换到"人员不符合"时,清空面试相关字段
if (value == 1) {
formData.interviewTime = ''
formData.dipalyTime = ''
......
......@@ -191,7 +191,7 @@ page {
background: #52c41a1a;
}
// 人员不匹配状态
// 人员不符合状态
&.tag-mismatch {
color: #ff4d4f;
background: #ff4d4f1a;
......
......@@ -102,7 +102,7 @@
<view
class="tag tag-{{ item.mixResult !== undefined ? (item.mixResult === 0 ? 'pending' : item.mixResult === 1 ? 'mismatch' : item.mixResult === 2 ? 'pass' : 'fail') : 'completed' }}"
>
{{item.mixResult !== undefined ? (item.mixResult === 0 ? '待处理' : item.mixResult === 1 ? '人员不匹配' : item.mixResult === 2 ? '面试通过' : '面试不通过') : (item.status === 0 ? '待处理' : '已完成')}}
{{item.mixResult !== undefined ? (item.mixResult === 0 ? '待处理' : item.mixResult === 1 ? '人员不符合' : item.mixResult === 2 ? '面试通过' : '面试不通过') : (item.status === 0 ? '待处理' : '已完成')}}
</view>
</view>
<view class="user_bottom">
......@@ -293,7 +293,8 @@
type="date"
value="{{ currentDate }}"
formatter="{{ formatter }}"
max-date="{{ today }}"
min-date="{{ minDate }}"
max-date="{{ maxDate }}"
bind:confirm="bindDateChange"
bind:cancel="calcelDate"
/>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!