Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cocktail-party-server
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
cocktail-party
cocktail-party-server
Commits
34f2552c
提交
34f2552c
authored
11月 29, 2021
作者:
fuzui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: crontab组件互斥bug
上级
89e7cb19
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
22 行增加
和
83 行删除
+22
-83
day.vue
ruoyi-ui/src/components/Crontab/day.vue
+5
-14
hour.vue
ruoyi-ui/src/components/Crontab/hour.vue
+3
-11
index.vue
ruoyi-ui/src/components/Crontab/index.vue
+6
-1
min.vue
ruoyi-ui/src/components/Crontab/min.vue
+0
-4
month.vue
ruoyi-ui/src/components/Crontab/month.vue
+3
-17
second.vue
ruoyi-ui/src/components/Crontab/second.vue
+0
-1
week.vue
ruoyi-ui/src/components/Crontab/week.vue
+5
-20
year.vue
ruoyi-ui/src/components/Crontab/year.vue
+0
-15
没有找到文件。
ruoyi-ui/src/components/Crontab/day.vue
浏览文件 @
34f2552c
...
...
@@ -72,23 +72,14 @@ export default {
// 单选按钮值变化时
radioChange
()
{
(
'day rachange'
);
if
(
this
.
radioValue
===
1
)
{
this
.
$emit
(
'update'
,
'day'
,
'*'
,
'day'
);
this
.
$emit
(
'update'
,
'week'
,
'?'
,
'day'
);
this
.
$emit
(
'update'
,
'month'
,
'*'
,
'day'
);
}
else
{
if
(
this
.
cron
.
hour
===
'*'
)
{
this
.
$emit
(
'update'
,
'hour'
,
'0'
,
'day'
);
}
if
(
this
.
cron
.
min
===
'*'
)
{
this
.
$emit
(
'update'
,
'min'
,
'0'
,
'day'
);
}
if
(
this
.
cron
.
second
===
'*'
)
{
this
.
$emit
(
'update'
,
'second'
,
'0'
,
'day'
);
}
if
(
this
.
radioValue
!==
2
&&
this
.
cron
.
week
!==
'?'
)
{
this
.
$emit
(
'update'
,
'week'
,
'?'
,
'day'
)
}
switch
(
this
.
radioValue
)
{
case
1
:
this
.
$emit
(
'update'
,
'day'
,
'*'
);
break
;
case
2
:
this
.
$emit
(
'update'
,
'day'
,
'?'
);
break
;
...
...
ruoyi-ui/src/components/Crontab/hour.vue
浏览文件 @
34f2552c
...
...
@@ -51,18 +51,10 @@ export default {
methods
:
{
// 单选按钮值变化时
radioChange
()
{
if
(
this
.
radioValue
===
1
)
{
this
.
$emit
(
'update'
,
'hour'
,
'*'
,
'hour'
);
this
.
$emit
(
'update'
,
'day'
,
'*'
,
'hour'
);
}
else
{
if
(
this
.
cron
.
min
===
'*'
)
{
this
.
$emit
(
'update'
,
'min'
,
'0'
,
'hour'
);
}
if
(
this
.
cron
.
second
===
'*'
)
{
this
.
$emit
(
'update'
,
'second'
,
'0'
,
'hour'
);
}
}
switch
(
this
.
radioValue
)
{
case
1
:
this
.
$emit
(
'update'
,
'hour'
,
'*'
)
break
;
case
2
:
this
.
$emit
(
'update'
,
'hour'
,
this
.
cycle01
+
'-'
+
this
.
cycle02
);
break
;
...
...
ruoyi-ui/src/components/Crontab/index.vue
浏览文件 @
34f2552c
...
...
@@ -2,7 +2,12 @@
<div>
<el-tabs
type=
"border-card"
>
<el-tab-pane
label=
"秒"
v-if=
"shouldHide('second')"
>
<CrontabSecond
@
update=
"updateCrontabValue"
:check=
"checkNumber"
ref=
"cronsecond"
/>
<CrontabSecond
@
update=
"updateCrontabValue"
:check=
"checkNumber"
:cron=
"crontabValueObj"
ref=
"cronsecond"
/>
</el-tab-pane>
<el-tab-pane
label=
"分钟"
v-if=
"shouldHide('min')"
>
...
...
ruoyi-ui/src/components/Crontab/min.vue
浏览文件 @
34f2552c
...
...
@@ -52,13 +52,9 @@ export default {
methods
:
{
// 单选按钮值变化时
radioChange
()
{
if
(
this
.
radioValue
!==
1
&&
this
.
cron
.
second
===
'*'
)
{
this
.
$emit
(
'update'
,
'second'
,
'0'
,
'min'
);
}
switch
(
this
.
radioValue
)
{
case
1
:
this
.
$emit
(
'update'
,
'min'
,
'*'
,
'min'
);
this
.
$emit
(
'update'
,
'hour'
,
'*'
,
'min'
);
break
;
case
2
:
this
.
$emit
(
'update'
,
'min'
,
this
.
cycle01
+
'-'
+
this
.
cycle02
,
'min'
);
...
...
ruoyi-ui/src/components/Crontab/month.vue
浏览文件 @
34f2552c
...
...
@@ -51,24 +51,10 @@ export default {
methods
:
{
// 单选按钮值变化时
radioChange
()
{
if
(
this
.
radioValue
===
1
)
{
this
.
$emit
(
'update'
,
'month'
,
'*'
);
this
.
$emit
(
'update'
,
'year'
,
'*'
);
}
else
{
if
(
this
.
cron
.
day
===
'*'
)
{
this
.
$emit
(
'update'
,
'day'
,
'0'
,
'month'
);
}
if
(
this
.
cron
.
hour
===
'*'
)
{
this
.
$emit
(
'update'
,
'hour'
,
'0'
,
'month'
);
}
if
(
this
.
cron
.
min
===
'*'
)
{
this
.
$emit
(
'update'
,
'min'
,
'0'
,
'month'
);
}
if
(
this
.
cron
.
second
===
'*'
)
{
this
.
$emit
(
'update'
,
'second'
,
'0'
,
'month'
);
}
}
switch
(
this
.
radioValue
)
{
case
1
:
this
.
$emit
(
'update'
,
'month'
,
'*'
);
break
;
case
2
:
this
.
$emit
(
'update'
,
'month'
,
this
.
cycle01
+
'-'
+
this
.
cycle02
);
break
;
...
...
ruoyi-ui/src/components/Crontab/second.vue
浏览文件 @
34f2552c
...
...
@@ -54,7 +54,6 @@ export default {
switch
(
this
.
radioValue
)
{
case
1
:
this
.
$emit
(
'update'
,
'second'
,
'*'
,
'second'
);
this
.
$emit
(
'update'
,
'min'
,
'*'
,
'second'
);
break
;
case
2
:
this
.
$emit
(
'update'
,
'second'
,
this
.
cycle01
+
'-'
+
this
.
cycle02
);
...
...
ruoyi-ui/src/components/Crontab/week.vue
浏览文件 @
34f2552c
...
...
@@ -67,27 +67,13 @@ export default {
methods
:
{
// 单选按钮值变化时
radioChange
()
{
if
(
this
.
radioValue
===
1
)
{
this
.
$emit
(
'update'
,
'week'
,
'*'
);
this
.
$emit
(
'update'
,
'year'
,
'*'
);
}
else
{
if
(
this
.
cron
.
month
===
'*'
)
{
this
.
$emit
(
'update'
,
'month'
,
'0'
,
'week'
);
}
if
(
this
.
cron
.
day
===
'*'
)
{
this
.
$emit
(
'update'
,
'day'
,
'0'
,
'week'
);
}
if
(
this
.
cron
.
hour
===
'*'
)
{
this
.
$emit
(
'update'
,
'hour'
,
'0'
,
'week'
);
}
if
(
this
.
cron
.
min
===
'*'
)
{
this
.
$emit
(
'update'
,
'min'
,
'0'
,
'week'
);
}
if
(
this
.
cron
.
second
===
'*'
)
{
this
.
$emit
(
'update'
,
'second'
,
'0'
,
'week'
);
}
if
(
this
.
radioValue
!==
2
&&
this
.
cron
.
day
!==
'?'
)
{
this
.
$emit
(
'update'
,
'day'
,
'?'
,
'week'
);
}
switch
(
this
.
radioValue
)
{
case
1
:
this
.
$emit
(
'update'
,
'week'
,
'*'
);
break
;
case
2
:
this
.
$emit
(
'update'
,
'week'
,
'?'
);
break
;
...
...
@@ -105,7 +91,6 @@ export default {
break
;
}
},
// 根据互斥事件,更改radio的值
// 周期两个值变化时
cycleChange
()
{
...
...
ruoyi-ui/src/components/Crontab/year.vue
浏览文件 @
34f2552c
...
...
@@ -59,21 +59,6 @@ export default {
methods
:
{
// 单选按钮值变化时
radioChange
()
{
if
(
this
.
cron
.
month
===
'*'
)
{
this
.
$emit
(
'update'
,
'month'
,
'0'
,
'year'
);
}
if
(
this
.
cron
.
day
===
'*'
)
{
this
.
$emit
(
'update'
,
'day'
,
'0'
,
'year'
);
}
if
(
this
.
cron
.
hour
===
'*'
)
{
this
.
$emit
(
'update'
,
'hour'
,
'0'
,
'year'
);
}
if
(
this
.
cron
.
min
===
'*'
)
{
this
.
$emit
(
'update'
,
'min'
,
'0'
,
'year'
);
}
if
(
this
.
cron
.
second
===
'*'
)
{
this
.
$emit
(
'update'
,
'second'
,
'0'
,
'year'
);
}
switch
(
this
.
radioValue
)
{
case
1
:
this
.
$emit
(
'update'
,
'year'
,
''
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论