From 1160de5142cd2bc08ebc61c247a4857f0c4ab7f1 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期五, 22 五月 2026 10:45:11 +0800
Subject: [PATCH] 特色功能:丰富报销清单并添加审批流程详情——新增功能以丰富报销清单行内容,为费用和差旅报销提供审批流程详情。——引入新的实用函数来处理审批流程节点和汇总信息。——更新组件以利用丰富后的审批流程数据,从而更好地展示审批进度。
---
src/components/Crontab/hour.vue | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/components/Crontab/hour.vue b/src/components/Crontab/hour.vue
index f9a6374..d05779e 100644
--- a/src/components/Crontab/hour.vue
+++ b/src/components/Crontab/hour.vue
@@ -1,13 +1,13 @@
<template>
- <el-form size="small">
+ <el-form>
<el-form-item>
- <el-radio v-model='radioValue' :label="1">
+ <el-radio v-model='radioValue' :value="1">
灏忔椂锛屽厑璁哥殑閫氶厤绗, - * /]
</el-radio>
</el-form-item>
<el-form-item>
- <el-radio v-model='radioValue' :label="2">
+ <el-radio v-model='radioValue' :value="2">
鍛ㄦ湡浠�
<el-input-number v-model='cycle01' :min="0" :max="22" /> -
<el-input-number v-model='cycle02' :min="cycle01 + 1" :max="23" /> 鏃�
@@ -15,7 +15,7 @@
</el-form-item>
<el-form-item>
- <el-radio v-model='radioValue' :label="3">
+ <el-radio v-model='radioValue' :value="3">
浠�
<el-input-number v-model='average01' :min="0" :max="22" /> 鏃跺紑濮嬶紝姣�
<el-input-number v-model='average02' :min="1" :max="23 - average01" /> 灏忔椂鎵ц涓�娆�
@@ -23,7 +23,7 @@
</el-form-item>
<el-form-item>
- <el-radio v-model='radioValue' :label="4">
+ <el-radio v-model='radioValue' :value="4">
鎸囧畾
<el-select clearable v-model="checkboxList" placeholder="鍙閫�" multiple :multiple-limit="10">
<el-option v-for="item in 24" :key="item" :label="item - 1" :value="item - 1" />
@@ -77,6 +77,12 @@
watch(() => props.cron.hour, value => changeRadioValue(value))
watch([radioValue, cycleTotal, averageTotal, checkboxString], () => onRadioChange())
function changeRadioValue(value) {
+ if (props.cron.min === '*') {
+ emit('update', 'min', '0', 'hour')
+ }
+ if (props.cron.second === '*') {
+ emit('update', 'second', '0', 'hour')
+ }
if (value === '*') {
radioValue.value = 1
} else if (value.indexOf('-') > -1) {
--
Gitblit v1.9.3