feat(1.3.0-beta1): 优化通知配置

This commit is contained in:
opensnail 2024-12-26 22:32:44 +08:00
parent fcad1db885
commit 8772b82c6a

View File

@ -27,7 +27,10 @@ function search() {
</script> </script>
<template> <template>
<SearchForm :model="model" @search="search" @reset="reset"> <SearchForm btn-span="12 s:24 m:24 1:24 xl:24" :model="model" @search="search" @reset="reset">
<NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.notifyName')" path="notifyName" class="pr-24px">
<NInput v-model:value="model.notifyName" :placeholder="$t('page.notifyConfig.form.notifyName')" clearable />
</NFormItemGi>
<NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.groupName')" path="groupName" class="pr-24px"> <NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.groupName')" path="groupName" class="pr-24px">
<SelectGroup v-model:value="model.groupName" clearable /> <SelectGroup v-model:value="model.groupName" clearable />
</NFormItemGi> </NFormItemGi>
@ -39,11 +42,6 @@ function search() {
> >
<SystemTaskType v-model:value="model.systemTaskType" clearable /> <SystemTaskType v-model:value="model.systemTaskType" clearable />
</NFormItemGi> </NFormItemGi>
<!--
<NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.notifyScene')" path="notifyScene" class="pr-24px">
<SelectScene v-model:value="model.notifyScene" :group-name="model.groupName as string" clearable/>
</NFormItemGi>
-->
<NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.notifyStatus')" path="notifyStatus" class="pr-24px"> <NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.notifyStatus')" path="notifyStatus" class="pr-24px">
<NSelect <NSelect
v-model:value="model.notifyStatus" v-model:value="model.notifyStatus"
@ -52,9 +50,6 @@ function search() {
clearable clearable
/> />
</NFormItemGi> </NFormItemGi>
<NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.notifyName')" path="notifyName" class="pr-24px">
<NInput v-model:value="model.notifyName" :placeholder="$t('page.notifyConfig.form.notifyName')" clearable />
</NFormItemGi>
</SearchForm> </SearchForm>
</template> </template>