From d4d337b5489e5fb1fe9aad643408e3e21b5f5f39 Mon Sep 17 00:00:00 2001 From: Austin <1344583166@qq.com> Date: Tue, 7 Jan 2025 15:42:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E8=BD=AE=E5=80=BC=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=8E=92=E9=99=A4=E4=B8=9A=E5=8A=A1=E3=80=81=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E9=83=A8=E5=88=86=E4=B8=9A=E5=8A=A1=20#8922=20#=20Rev?= =?UTF-8?q?iewed,=20transaction=20id:=2028647?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/services/model/monitor/duty-rule.ts | 20 +- .../index/components/edit-rule/Index.vue | 61 +---- .../index/components/edit-rule/RotateBizs.vue | 239 ++++++++++++++++++ 3 files changed, 269 insertions(+), 51 deletions(-) create mode 100644 dbm-ui/frontend/src/views/duty-rule-manage/index/components/edit-rule/RotateBizs.vue diff --git a/dbm-ui/frontend/src/services/model/monitor/duty-rule.ts b/dbm-ui/frontend/src/services/model/monitor/duty-rule.ts index 2379865017..16d12ed2d4 100644 --- a/dbm-ui/frontend/src/services/model/monitor/duty-rule.ts +++ b/dbm-ui/frontend/src/services/model/monitor/duty-rule.ts @@ -30,6 +30,20 @@ export interface DutyCustomItem { } export default class DutyRule { + biz_config: { + exclude?: number[]; + include?: number[]; + }; + biz_config_display: { + exclude?: { + bk_biz_id: number; + bk_biz_name: string; + }; + include?: { + bk_biz_id: number; + bk_biz_name: string; + }; + }; category: string; creator: string; create_at: string; @@ -52,16 +66,18 @@ export default class DutyRule { update_at: string; constructor(payload = {} as DutyRule) { - this.id = payload.id; + this.biz_config = payload.biz_config; + this.biz_config_display = payload.biz_config_display; this.creator = payload.creator; this.create_at = payload.create_at; this.category = payload.category; this.db_type = payload.db_type; this.duty_arranges = payload.duty_arranges; this.effective_time = payload.effective_time; + this.end_time = payload.end_time; + this.id = payload.id; this.is_enabled = payload.is_enabled; this.is_show_edit = false; - this.end_time = payload.end_time; this.name = payload.name; this.permission = payload.permission; this.priority = payload.priority; diff --git a/dbm-ui/frontend/src/views/duty-rule-manage/index/components/edit-rule/Index.vue b/dbm-ui/frontend/src/views/duty-rule-manage/index/components/edit-rule/Index.vue index a8ad21db66..5280d0d6cd 100644 --- a/dbm-ui/frontend/src/views/duty-rule-manage/index/components/edit-rule/Index.vue +++ b/dbm-ui/frontend/src/views/duty-rule-manage/index/components/edit-rule/Index.vue @@ -55,15 +55,9 @@