From 7470fbdaec61d1cc3d569f76f8c663dd8aa4dfe4 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 29 十月 2025 14:00:35 +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