mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 06:02:38 +08:00
任务
This commit is contained in:
parent
54dbf63b82
commit
0c95adbd2f
@ -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"]({
|
||||
|
@ -43,6 +43,7 @@
|
||||
:on-error="onError"
|
||||
:on-progress="onProgress"
|
||||
:before-upload="beforeUpload"
|
||||
multiple
|
||||
>
|
||||
<el-button size="mini" type="primary">点击上传</el-button>
|
||||
</cl-upload>
|
||||
|
Loading…
Reference in New Issue
Block a user