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