Compare commits

..

No commits in common. "c8332049c1e0e248e3ada018bff3af92aebb73ed" and "f8e78506d0f1885bab4e66b2f51573c8f570616b" have entirely different histories.

View File

@ -262,10 +262,6 @@
<div class="form-group row">
<label class="col-sm-2 col-form-label">运行星期</label>
<div class="col-sm-10 col-form-label">
<div class="form-check form-check-inline" title="也可用作任务总开关">
<input class="form-check-input" type="checkbox" :checked="task.runweek.length === 7" @change="toggleAllWeekdays(task)" :indeterminate.prop="task.runweek.length > 0 && task.runweek.length < 7">
<label class="form-check-label">全选</label>
</div>
<div class="form-check form-check-inline" v-for="(day, index) in weekdays" :key="index">
<input class="form-check-input" type="checkbox" v-model="task.runweek" :value="index+1">
<label class="form-check-label" v-html="day"></label>
@ -650,13 +646,6 @@
isPluginDisabled(pluginName) {
const pluginsFlagsArray = this.plugin_flags.split(',');
return pluginsFlagsArray.includes(`-${pluginName}`);
},
toggleAllWeekdays(task) {
if (task.runweek.length === 7) {
task.runweek = [];
} else {
task.runweek = [1, 2, 3, 4, 5, 6, 7];
}
}
}
});