watch(() => props.record, () => {
if (props?.record) {
let recordData = props?.record
console.log('output-> recordData', recordData)
// 2 - 待反馈
if (recordData.status === 2) {
deadline.value = moment(
moment(recordData.createTime).add(!recordData?.feedBackMinute ? 0 : recordData?.feedBackMinute, 'm')
).format('YYYY-MM-DD HH:mm:ss')
}
// 1 - 待签收
if (recordData.status === 1) {
deadline.value = moment(
moment(recordData.createTime).add(!recordData?.signMinute ? 0 : recordData?.signMinute, 'm')
).format('YYYY-MM-DD HH:mm:ss')
}
}
}, { deep: true, immediate: true })
标签:12,ss,30,50,record,moment,props,recordData
From: https://www.cnblogs.com/openmind-ink/p/18126008