fix: path="userName"

This commit is contained in:
dhb52 2024-04-24 22:09:03 +08:00
parent d114a844ed
commit 559003f9dc
5 changed files with 15 additions and 11 deletions

View File

@ -25,7 +25,7 @@ function search() {
<template> <template>
<SearchForm :model="model" @search="search" @reset="reset"> <SearchForm :model="model" @search="search" @reset="reset">
<NFormItemGi span="24 s:12 m:6" :label="$t('page.namespace.keyword')" path="userName" class="pr-24px"> <NFormItemGi span="24 s:12 m:6" :label="$t('page.namespace.keyword')" path="keyword" class="pr-24px">
<NInput v-model:value="model.keyword" :placeholder="$t('page.namespace.form.keyword')" /> <NInput v-model:value="model.keyword" :placeholder="$t('page.namespace.form.keyword')" />
</NFormItemGi> </NFormItemGi>
</SearchForm> </SearchForm>

View File

@ -32,12 +32,12 @@ function search() {
span="24 s:12 m:6" span="24 s:12 m:6"
:label-width="100" :label-width="100"
:label="$t('page.notifyRecipient.recipientName')" :label="$t('page.notifyRecipient.recipientName')"
path="userName" path="recipientName"
class="pr-24px" class="pr-24px"
> >
<NInput v-model:value="model.recipientName" :placeholder="$t('page.notifyRecipient.form.recipientName')" /> <NInput v-model:value="model.recipientName" :placeholder="$t('page.notifyRecipient.form.recipientName')" />
</NFormItemGi> </NFormItemGi>
<NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyRecipient.notifyType')" path="userName" class="pr-24px"> <NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyRecipient.notifyType')" path="notifyType" class="pr-24px">
<NSelect <NSelect
v-model:value="model.notifyType" v-model:value="model.notifyType"
:options="translateOptions(alarmTypeRecordOptions)" :options="translateOptions(alarmTypeRecordOptions)"

View File

@ -25,13 +25,13 @@ function search() {
<template> <template>
<SearchForm :model="model" @search="search" @reset="reset"> <SearchForm :model="model" @search="search" @reset="reset">
<NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.groupName')" path="userName" class="pr-24px"> <NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.groupName')" path="groupName" class="pr-24px">
<NSelect v-model:value="model.groupName" :placeholder="$t('page.notifyConfig.groupName')" clearable /> <NSelect v-model:value="model.groupName" :placeholder="$t('page.notifyConfig.groupName')" clearable />
</NFormItemGi> </NFormItemGi>
<NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.notifyStatus')" path="userName" class="pr-24px"> <NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.notifyStatus')" path="notifyStatus" class="pr-24px">
<NSelect v-model:value="model.notifyStatus" :placeholder="$t('page.notifyConfig.notifyStatus')" clearable /> <NSelect v-model:value="model.notifyStatus" :placeholder="$t('page.notifyConfig.notifyStatus')" clearable />
</NFormItemGi> </NFormItemGi>
<NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.notifyScene')" path="userName" class="pr-24px"> <NFormItemGi span="24 s:12 m:6" :label="$t('page.notifyConfig.notifyScene')" path="notifyScene" class="pr-24px">
<NSelect v-model:value="model.notifyScene" :placeholder="$t('page.notifyConfig.notifyScene')" clearable /> <NSelect v-model:value="model.notifyScene" :placeholder="$t('page.notifyConfig.notifyScene')" clearable />
</NFormItemGi> </NFormItemGi>
</SearchForm> </SearchForm>

View File

@ -27,10 +27,10 @@ function search() {
<template> <template>
<SearchForm :model="model" @search="search" @reset="reset"> <SearchForm :model="model" @search="search" @reset="reset">
<NFormItemGi span="24 s:12 m:6" :label="$t('page.retryScene.groupName')" path="userName" class="pr-24px"> <NFormItemGi span="24 s:12 m:6" :label="$t('page.retryScene.groupName')" path="groupName" class="pr-24px">
<SelectGroup v-model="model.groupName" /> <SelectGroup v-model="model.groupName" />
</NFormItemGi> </NFormItemGi>
<NFormItemGi span="24 s:12 m:6" :label="$t('page.retryScene.sceneName')" path="userName" class="pr-24px"> <NFormItemGi span="24 s:12 m:6" :label="$t('page.retryScene.sceneName')" path="sceneName" class="pr-24px">
<SelectScene v-model:value="model.sceneName" :group-name="model.groupName as string" /> <SelectScene v-model:value="model.sceneName" :group-name="model.groupName as string" />
</NFormItemGi> </NFormItemGi>
</SearchForm> </SearchForm>

View File

@ -2,7 +2,6 @@
import { ref } from 'vue'; import { ref } from 'vue';
import { $t } from '@/locales'; import { $t } from '@/locales';
import SelectGroup from '@/components/common/select-group.vue'; import SelectGroup from '@/components/common/select-group.vue';
import TaskBatchStatus from '@/components/common/task-batch-status.vue';
import { fetchGetWorkflowNameList } from '@/service/api'; import { fetchGetWorkflowNameList } from '@/service/api';
@ -51,8 +50,13 @@ async function groupNameUpdate(groupName: string) {
filterable filterable
/> />
</NFormItemGi> </NFormItemGi>
<NFormItemGi span="24 s:12 m:6" :label="$t('common.taskBatchStatus.label')" path="taskBatchStatus" class="pr-24px"> <NFormItemGi
<TaskBatchStatus v-model:value="model.taskBatchStatus" /> span="24 s:12 m:6"
:label="$t('page.workflowBatch.taskBatchStatus')"
path="taskBatchStatus"
class="pr-24px"
>
<NInput v-model:value="model.taskBatchStatus" :placeholder="$t('page.workflowBatch.form.taskBatchStatus')" />
</NFormItemGi> </NFormItemGi>
</SearchForm> </SearchForm>
</template> </template>