feat(1.3.0-beta1): 优化告警通知配置
This commit is contained in:
parent
809dcf4f76
commit
21cac5b9f0
@ -236,7 +236,7 @@ const rules: Record<RuleKey, FormItemRule> = {
|
||||
</NSpace>
|
||||
</NRadioGroup>
|
||||
</NFormItem>
|
||||
<NFormItem path="notifyIds" label="通知场景名称">
|
||||
<NFormItem path="notifyIds" label="告警通知">
|
||||
<NSelect
|
||||
v-model:value="form.notifyIds"
|
||||
value-field="id"
|
||||
|
@ -800,6 +800,7 @@ const local: App.I18n.Schema = {
|
||||
bucketIndex: 'Bucket',
|
||||
description: 'Description',
|
||||
updateDt: 'Update time',
|
||||
notifyId: 'Notify',
|
||||
form: {
|
||||
jobStatus: 'Please enter status',
|
||||
ownerName: 'Please enter ownerName',
|
||||
@ -821,7 +822,8 @@ const local: App.I18n.Schema = {
|
||||
argsStr: 'Please enter executor arguments',
|
||||
shardNum: 'Please enter reduce shard num',
|
||||
groupName: 'Please enter Group name',
|
||||
retryInterval: 'Please enter retry interval'
|
||||
retryInterval: 'Please enter retry interval',
|
||||
notifyId: 'Please select notify config'
|
||||
},
|
||||
addJobTask: 'Add job task',
|
||||
editJobTask: 'Edit job task',
|
||||
|
@ -694,7 +694,7 @@ const local: App.I18n.Schema = {
|
||||
detail: '场景详情',
|
||||
groupName: '组名',
|
||||
sceneName: '场景名',
|
||||
notifyName: '告警通知名称',
|
||||
notifyName: '告警通知',
|
||||
sceneStatus: '状态',
|
||||
backOff: '退避策略',
|
||||
maxRetryCount: '最大重试次数',
|
||||
@ -807,6 +807,7 @@ const local: App.I18n.Schema = {
|
||||
bucketIndex: 'Bucket',
|
||||
description: '描述',
|
||||
updateDt: '更新时间',
|
||||
notifyId: '告警通知',
|
||||
form: {
|
||||
jobStatus: '请输入状态',
|
||||
ownerName: '请输入负责人名称',
|
||||
@ -828,7 +829,8 @@ const local: App.I18n.Schema = {
|
||||
argsStr: '请输入方法参数',
|
||||
shardNum: '请输入 reduce 分片数',
|
||||
groupName: '请输入组名称',
|
||||
retryInterval: '请输入重试间隔'
|
||||
retryInterval: '请输入重试间隔',
|
||||
notifyId: '请输入选择告警配置'
|
||||
},
|
||||
addJobTask: '新增定时任务',
|
||||
editJobTask: '编辑定时任务',
|
||||
|
2
src/typings/app.d.ts
vendored
2
src/typings/app.d.ts
vendored
@ -1007,6 +1007,7 @@ declare namespace App {
|
||||
bucketIndex: string;
|
||||
description: string;
|
||||
updateDt: string;
|
||||
notifyId: string;
|
||||
form: {
|
||||
jobName: string;
|
||||
jobStatus: string;
|
||||
@ -1029,6 +1030,7 @@ declare namespace App {
|
||||
shardNum: string;
|
||||
groupName: string;
|
||||
retryInterval: string;
|
||||
notifyId: string;
|
||||
};
|
||||
addJobTask: string;
|
||||
editJobTask: string;
|
||||
|
@ -708,12 +708,12 @@ const scriptMethodOptions = [
|
||||
</NFormItem>
|
||||
</NGi>
|
||||
</NGrid>
|
||||
<NFormItem :label="$t('page.notifyConfig.notifyName')" path="notifyIds">
|
||||
<NFormItem :label="$t('page.jobTask.notifyId')" path="notifyIds">
|
||||
<NSelect
|
||||
v-model:value="model.notifyIds"
|
||||
value-field="id"
|
||||
label-field="notifyName"
|
||||
:placeholder="$t('page.notifyConfig.form.notifyName')"
|
||||
:placeholder="$t('page.jobTask.form.notifyId')"
|
||||
:options="notifyNameList"
|
||||
clearable
|
||||
multiple
|
||||
|
Loading…
Reference in New Issue
Block a user