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

View File

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