服务指令包:周期类型时,对cycleType值修改

This commit is contained in:
1378012178@qq.com 2025-11-11 09:18:04 +08:00
parent bdae86f664
commit d5d5b45dd9
1 changed files with 3 additions and 2 deletions

View File

@ -284,11 +284,12 @@ function onConfirm() {
...directiveInfo.value ...directiveInfo.value
}] }]
if (cycleType.value === 'week') { if (cycleType.value === 'week') {
content_[0].cycleTypeShow = '每周' const weekMap = ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
content_[0].cycleTypeShow = weekMap[selectedDays.value[0]]
content_[0].cycleTypeValue = selectedDays.value[0] content_[0].cycleTypeValue = selectedDays.value[0]
} }
if (cycleType.value === 'month') { if (cycleType.value === 'month') {
content_[0].cycleTypeShow = '每月' content_[0].cycleTypeShow = selectedDaysInMonth.value + '号'
content_[0].cycleTypeValue = selectedDaysInMonth.value content_[0].cycleTypeValue = selectedDaysInMonth.value
} }
checkListData.value.push(content_[0]); checkListData.value.push(content_[0]);