gtsoft-snail-job-admin/src/views/job/batch/modules/job-batch-search.vue

46 lines
1.5 KiB
Vue
Raw Normal View History

2024-04-26 01:06:58 +08:00
<script setup lang="ts">
import SelectGroup from '@/components/common/select-group.vue';
2024-04-26 01:06:58 +08:00
import TaskBatchStatus from '@/components/common/task-batch-status.vue';
import { $t } from '@/locales';
defineOptions({
name: 'JobBatchSearch'
});
interface Emits {
(e: 'reset'): void;
(e: 'search'): void;
}
const emit = defineEmits<Emits>();
const model = defineModel<Api.JobBatch.JobBatchSearchParams>('model', { required: true });
function reset() {
emit('reset');
}
function search() {
emit('search');
}
</script>
<template>
<SearchForm btn-span="24 s:24 m:9 l:12 xl:15" :model="model" @search="search" @reset="reset">
2024-04-26 01:06:58 +08:00
<NFormItemGi span="24 s:12 m:6" :label="$t('page.jobBatch.groupName')" path="groupName" class="pr-24px">
<SelectGroup v-model:value="model.groupName" />
2024-04-26 01:06:58 +08:00
</NFormItemGi>
<NFormItemGi span="24 s:12 m:6" :label="$t('page.jobBatch.jobName')" path="jobName" class="pr-24px">
<NInput v-model:value="model.jobName" :placeholder="$t('page.jobBatch.form.jobName')" />
</NFormItemGi>
<NFormItemGi span="24 s:12 m:6" :label="$t('page.jobBatch.taskBatchStatus')" path="taskBatchStatus" class="pr-24px">
<TaskBatchStatus v-model:value="model.taskBatchStatus" />
</NFormItemGi>
<NFormItemGi span="24 s:24 m:15 l:12 xl:9" :label="$t('page.common.createTime')" path="createTime" class="pr-24px">
<DatetimeRange v-model:begin-date="model.beginDate" v-model:end-date="model.endDate" />
</NFormItemGi>
2024-04-26 01:06:58 +08:00
</SearchForm>
</template>
<style scoped></style>