You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
35 lines
1.1 KiB
<template>
|
|
<div>
|
|
<input type="text" class="form-control" :name="name" ref="cron" :value="value" :title="value" />
|
|
</div>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
props: ['title', 'name', 'value', 'data'],
|
|
watch: {
|
|
value(val) {
|
|
this.$emit('update:value', val)
|
|
},
|
|
},
|
|
mounted: function () {
|
|
$(this.$refs.cron).jqCron({
|
|
lang: 'cn',
|
|
enabled_year: true,
|
|
enabled_minute: true,
|
|
multiple_dom: true,
|
|
multiple_month: true,
|
|
multiple_mins: true,
|
|
multiple_dow: true,
|
|
multiple_time_hours: true,
|
|
multiple_time_minutes: true,
|
|
default_value: $(this.$refs.cron).val().substr(2),
|
|
bind_method: {
|
|
set: function ($element, value) {
|
|
$element.val('0 ' + value);
|
|
}
|
|
},
|
|
no_reset_button: false
|
|
}).jqCronGetInstance();
|
|
}
|
|
};
|
|
</script> |