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;
|
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"]({
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user