This commit is contained in:
ap 2022-02-25 09:08:07 +08:00
parent 54dbf63b82
commit 0c95adbd2f
2 changed files with 7 additions and 6 deletions

View File

@ -387,8 +387,8 @@ export default defineComponent({
info.every /= 1000;
}
if (!info.limit) {
info.limit = undefined;
if (!info.repeatCount) {
info.repeatCount = undefined;
}
const { setForm } = refs.value.form.open({
@ -431,7 +431,7 @@ export default defineComponent({
on: {
change: (v: number) => {
if (v == 0) {
setForm("limit", undefined);
setForm("repeatCount", undefined);
setForm("every", undefined);
} else {
setForm("cron", undefined);
@ -456,7 +456,7 @@ export default defineComponent({
},
{
label: "次数",
prop: "limit",
prop: "repeatCount",
hidden: ({ scope }: any) => {
return scope.taskType == 0;
},
@ -554,8 +554,8 @@ export default defineComponent({
},
on: {
submit: (data: any, { close, done }: any) => {
if (!data.limit) {
data.limit = null;
if (!data.repeatCount) {
data.repeatCount = null;
}
service.task.info[id ? "update" : "add"]({

View File

@ -43,6 +43,7 @@
:on-error="onError"
:on-progress="onProgress"
:before-upload="beforeUpload"
multiple
>
<el-button size="mini" type="primary">点击上传</el-button>
</cl-upload>