1.多状态返回
<text class="card-left-tag-text" >{{ {0: '未交班', 1: '未接班', 2: '已完成', 3: '已延期'}[items.turnoverType] }}
</text>
2.年月拼接,pre,cur,next
let date = new Date();let year = date.getUTCFullYear()let month = date.getUTCMonth() + 1let pre = '';let cur = '';let next = '';cur = year + '-' + (month < 9 ? ('0' + month) : month)pre = month === 1 ? ((year - 1) + '-12') : (year + '-' + (month - 1 < 9 ? ('0' + (month - 1)) : month - 1))next = month === 12 ? ((year + 1) + '-01') : (year + '-' + (month + 1 > 9 ? ('0' + (month + 1)) : month + 1))return schedule({ dutyDate: [pre, cur, next].join(',') }).then(res => {})