|
@@ -44,13 +44,13 @@ export default class AutoAudit extends Vue {
|
|
defaultIndex: 0,
|
|
defaultIndex: 0,
|
|
data: [{
|
|
data: [{
|
|
label: '10分钟',
|
|
label: '10分钟',
|
|
- value: '*/10 * * * *'
|
|
|
|
|
|
+ value: '0 */10 * * * ?'
|
|
}, {
|
|
}, {
|
|
label: '30分钟',
|
|
label: '30分钟',
|
|
- value: '*/30 * * * *'
|
|
|
|
|
|
+ value: '0 */30 * * * ?'
|
|
}, {
|
|
}, {
|
|
label: '1小时',
|
|
label: '1小时',
|
|
- value: '0 * * * *'
|
|
|
|
|
|
+ value: '0 0 * * * ?'
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -76,7 +76,7 @@ export default class AutoAudit extends Vue {
|
|
const resV = res.rows[0]
|
|
const resV = res.rows[0]
|
|
const v = {
|
|
const v = {
|
|
jobState: resV.jobState === '1' ? true : false,
|
|
jobState: resV.jobState === '1' ? true : false,
|
|
- scheduleConf: resV.time == '1' ? '*/10 * * * *' : resV.time == '2' ? '*/30 * * * *' : '0 * * * *'
|
|
|
|
|
|
+ scheduleConf: resV.time == '1' ? '0 */10 * * * ?' : resV.time == '2' ? '0 */30 * * * ?' : '0 0 * * * ?'
|
|
};
|
|
};
|
|
(this.$refs.form as any).setValue(v);
|
|
(this.$refs.form as any).setValue(v);
|
|
})
|
|
})
|
|
@@ -84,13 +84,13 @@ export default class AutoAudit extends Vue {
|
|
|
|
|
|
btn() {
|
|
btn() {
|
|
let v = (this.$refs.form as any).getValue();
|
|
let v = (this.$refs.form as any).getValue();
|
|
- if (v.scheduleConf === '*/10 * * * *') {
|
|
|
|
|
|
+ if (v.scheduleConf === '0 */10 * * * ?') {
|
|
v.time = '1'
|
|
v.time = '1'
|
|
}
|
|
}
|
|
- if (v.scheduleConf === '*/30 * * * *') {
|
|
|
|
|
|
+ if (v.scheduleConf === '0 */30 * * * ?') {
|
|
v.time = '2'
|
|
v.time = '2'
|
|
}
|
|
}
|
|
- if (v.scheduleConf === '0 * * * *') {
|
|
|
|
|
|
+ if (v.scheduleConf === '0 0 * * * ?') {
|
|
v.time = '3'
|
|
v.time = '3'
|
|
}
|
|
}
|
|
if (v.jobState === undefined || v.jobState === false) {
|
|
if (v.jobState === undefined || v.jobState === false) {
|