แก้ convertCronToForm
This commit is contained in:
parent
16c02a817a
commit
efe4fd5950
1 changed files with 11 additions and 3 deletions
|
|
@ -208,8 +208,6 @@ export const useDataStore = defineStore("systemStore", () => {
|
|||
}
|
||||
}
|
||||
|
||||
console.log(allValues);
|
||||
|
||||
if (typeReturn === "time") {
|
||||
if (allValues[2].includes("/")) {
|
||||
console.log(allValues[2]);
|
||||
|
|
@ -224,7 +222,16 @@ export const useDataStore = defineStore("systemStore", () => {
|
|||
}
|
||||
|
||||
if (typeReturn === "date") {
|
||||
return `${allValues[5].split(",")}`;
|
||||
if (!allValues[3].includes("*")) {
|
||||
const tempValue = allValues[3].split(",").join(" ");
|
||||
|
||||
return `${tempValue}`;
|
||||
}
|
||||
|
||||
if (!allValues[5].includes("*")) {
|
||||
const tempValue = allValues[5].split(",").join(" ");
|
||||
return `${tempValue}`;
|
||||
}
|
||||
}
|
||||
|
||||
return "";
|
||||
|
|
@ -246,6 +253,7 @@ export const useDataStore = defineStore("systemStore", () => {
|
|||
timeStartEvery:
|
||||
convertCronToForm(item.schedule, "timeStartEvery") || "",
|
||||
startAt: item.startAt,
|
||||
enabled: item.enabled,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue