1、重置功能,解决需要多次重置回复到原始状态(选择条件(0 0 0 0 0 1-2 ),需要点击3次重置,才能重置到( * * * * ?)
2、删除表达式自动填充功能,每一项都需要用户自行填写,不支持自动修改
This commit is contained in:
parent
7acb128111
commit
cfdd623179
@ -49,7 +49,8 @@
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-radio v-model='radioValue' :label="7">
|
<el-radio v-model='radioValue' :label="7">
|
||||||
指定
|
指定
|
||||||
<el-select clearable v-model="checkboxList" placeholder="可多选" multiple style="width:100%">
|
<el-select clearable v-model="checkboxList" placeholder="可多选" multiple style="width:100%"
|
||||||
|
@change="selectChange">
|
||||||
<el-option v-for="item in 31" :key="item" :value="item">{{ item }}</el-option>
|
<el-option v-for="item in 31" :key="item" :value="item">{{ item }}</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-radio>
|
</el-radio>
|
||||||
@ -74,6 +75,9 @@ export default {
|
|||||||
name: 'crontab-day',
|
name: 'crontab-day',
|
||||||
props: ['check', 'cron'],
|
props: ['check', 'cron'],
|
||||||
methods: {
|
methods: {
|
||||||
|
selectChange() {
|
||||||
|
this.radioValue = 7
|
||||||
|
},
|
||||||
init() {
|
init() {
|
||||||
this.workday = 1
|
this.workday = 1
|
||||||
this.cycle01 = 1
|
this.cycle01 = 1
|
||||||
|
@ -29,7 +29,8 @@
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-radio v-model='radioValue' :label="4">
|
<el-radio v-model='radioValue' :label="4">
|
||||||
指定
|
指定
|
||||||
<el-select clearable v-model="checkboxList" placeholder="可多选" multiple style="width:100%">
|
<el-select clearable v-model="checkboxList" placeholder="可多选" multiple style="width:100%"
|
||||||
|
@change="selectChange">
|
||||||
<el-option v-for="item in 60" :key="item" :value="item-1">{{ item - 1 }}</el-option>
|
<el-option v-for="item in 60" :key="item" :value="item-1">{{ item - 1 }}</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-radio>
|
</el-radio>
|
||||||
@ -53,6 +54,9 @@ export default {
|
|||||||
name: 'crontab-hour',
|
name: 'crontab-hour',
|
||||||
props: ['check', 'cron'],
|
props: ['check', 'cron'],
|
||||||
methods: {
|
methods: {
|
||||||
|
selectChange() {
|
||||||
|
this.radioValue = 4
|
||||||
|
},
|
||||||
init() {
|
init() {
|
||||||
this.cycle01 = 0
|
this.cycle01 = 0
|
||||||
this.cycle02 = 1
|
this.cycle02 = 1
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-radio v-model='radioValue' :label="4">
|
<el-radio v-model='radioValue' :label="4">
|
||||||
指定
|
指定
|
||||||
<el-select clearable v-model="checkboxList" placeholder="可多选" multiple style="width:100%">
|
<el-select clearable v-model="checkboxList" placeholder="可多选" multiple style="width:100%" @change="selectChange">
|
||||||
<el-option v-for="item in 60" :key="item" :value="item-1">{{item-1}}</el-option>
|
<el-option v-for="item in 60" :key="item" :value="item-1">{{item-1}}</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-radio>
|
</el-radio>
|
||||||
@ -50,6 +50,9 @@ export default {
|
|||||||
name: 'crontab-min',
|
name: 'crontab-min',
|
||||||
props: ['check', 'cron'],
|
props: ['check', 'cron'],
|
||||||
methods: {
|
methods: {
|
||||||
|
selectChange() {
|
||||||
|
this.radioValue = 4
|
||||||
|
},
|
||||||
init() {
|
init() {
|
||||||
this.cycle01 = 1
|
this.cycle01 = 1
|
||||||
this.cycle02 = 2
|
this.cycle02 = 2
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-radio v-model='radioValue' :label="4">
|
<el-radio v-model='radioValue' :label="4">
|
||||||
指定
|
指定
|
||||||
<el-select clearable v-model="checkboxList" placeholder="可多选" multiple style="width:100%">
|
<el-select clearable v-model="checkboxList" placeholder="可多选" multiple style="width:100%" @change="selectChange">
|
||||||
<el-option v-for="item in 12" :key="item" :value="item">{{item}}</el-option>
|
<el-option v-for="item in 12" :key="item" :value="item">{{item}}</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-radio>
|
</el-radio>
|
||||||
@ -48,7 +48,9 @@ export default {
|
|||||||
},
|
},
|
||||||
name: 'crontab-month',
|
name: 'crontab-month',
|
||||||
props: ['check', 'cron'],
|
props: ['check', 'cron'],
|
||||||
methods: {
|
methods: { selectChange() {
|
||||||
|
this.radioValue = 4
|
||||||
|
},
|
||||||
init() {
|
init() {
|
||||||
this.cycle01 = 1
|
this.cycle01 = 1
|
||||||
this.cycle02 = 2
|
this.cycle02 = 2
|
||||||
|
@ -9,24 +9,29 @@
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-radio v-model='radioValue' :label="2">
|
<el-radio v-model='radioValue' :label="2">
|
||||||
周期从
|
周期从
|
||||||
<el-input-number v-model='cycle01' :min="0" :max="60" /> -
|
<el-input-number v-model='cycle01' :min="0" :max="60"/>
|
||||||
<el-input-number v-model='cycle02' :min="0" :max="60" /> 秒
|
-
|
||||||
|
<el-input-number v-model='cycle02' :min="0" :max="60"/>
|
||||||
|
秒
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-radio v-model='radioValue' :label="3">
|
<el-radio v-model='radioValue' :label="3">
|
||||||
从
|
从
|
||||||
<el-input-number v-model='average01' :min="0" :max="60" /> 秒开始,每
|
<el-input-number v-model='average01' :min="0" :max="60"/>
|
||||||
<el-input-number v-model='average02' :min="0" :max="60" /> 秒执行一次
|
秒开始,每
|
||||||
|
<el-input-number v-model='average02' :min="0" :max="60"/>
|
||||||
|
秒执行一次
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-radio v-model='radioValue' :label="4">
|
<el-radio v-model='radioValue' :label="4">
|
||||||
指定
|
指定
|
||||||
<el-select clearable v-model="checkboxList" placeholder="可多选" multiple style="width:100%" @change="ch">
|
<el-select clearable v-model="checkboxList" placeholder="可多选" multiple style="width:100%"
|
||||||
<el-option v-for="item in 60" :key="item" :value="item-1">{{item-1}}</el-option>
|
@change="selectChange">
|
||||||
|
<el-option v-for="item in 60" :key="item" :value="item-1">{{ item - 1 }}</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -49,6 +54,9 @@ export default {
|
|||||||
name: 'crontab-second',
|
name: 'crontab-second',
|
||||||
props: ['check', 'radioParent'],
|
props: ['check', 'radioParent'],
|
||||||
methods: {
|
methods: {
|
||||||
|
selectChange() {
|
||||||
|
this.radioValue = 4
|
||||||
|
},
|
||||||
init() {
|
init() {
|
||||||
this.cycle01 = 1
|
this.cycle01 = 1
|
||||||
this.cycle02 = 2
|
this.cycle02 = 2
|
||||||
|
@ -40,7 +40,8 @@
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-radio v-model='radioValue' :label="6">
|
<el-radio v-model='radioValue' :label="6">
|
||||||
指定
|
指定
|
||||||
<el-select clearable v-model="checkboxDescribeList" placeholder="可多选" multiple style="width:100%">
|
<el-select clearable v-model="checkboxDescribeList" placeholder="可多选" multiple style="width:100%"
|
||||||
|
@change="selectChange">
|
||||||
<el-option v-for="(item,index) of weekList" :key="index" :value="index+1">{{ item }}</el-option>
|
<el-option v-for="(item,index) of weekList" :key="index" :value="index+1">{{ item }}</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-radio>
|
</el-radio>
|
||||||
@ -68,11 +69,16 @@ export default {
|
|||||||
name: 'crontab-week',
|
name: 'crontab-week',
|
||||||
props: ['check', 'cron'],
|
props: ['check', 'cron'],
|
||||||
methods: {
|
methods: {
|
||||||
checkChange(data) {
|
selectChange(data) {
|
||||||
|
console.log(data);
|
||||||
|
this.radioValue = 6
|
||||||
this.checkboxList = []
|
this.checkboxList = []
|
||||||
|
this.checkboxDescribeList = []
|
||||||
data.forEach(value => {
|
data.forEach(value => {
|
||||||
this.weekList.find((item, index) => {
|
this.weekList.forEach((item,index) => {
|
||||||
if (item === value) {
|
if (index+1 === value) {
|
||||||
|
console.log((item));
|
||||||
|
this.checkboxDescribeList.push(this.weekList[index])
|
||||||
this.checkboxList.push(index + 1)
|
this.checkboxList.push(index + 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -90,7 +96,6 @@ export default {
|
|||||||
// 单选按钮值变化时
|
// 单选按钮值变化时
|
||||||
radioChange() {
|
radioChange() {
|
||||||
|
|
||||||
|
|
||||||
switch (this.radioValue) {
|
switch (this.radioValue) {
|
||||||
case 1:
|
case 1:
|
||||||
this.$emit('update', 'week', '*');
|
this.$emit('update', 'week', '*');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user