import{M as S,I as A,aB as w,av as j,aw as F}from"./index.17037962789732.js";import"./index.170379627897319.js";import"./index.170379627897327.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_name_PermissionButton_lang.1703796278973.js";import"./index.1703796278973308.js";import"./index.170379627897334.js";import"./index.170379627897314.js";import"./index.170379627897315.js";import{a as N}from"./comm.1703796278973.js";import{q as T,a as V}from"./config.1703796278973.js";import $ from"./index.1703796278973236.js";import{d as q,k as m,r as v,o as s,c as f,a as e,u as i,x as c,b as o,z as t,F as z,h as J,A as K,t as M,G as U,H as D}from"./vue.1703796278973.js";import{_ as E}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./index.170379627897320.js";import"./index.170379627897321.js";import"./permission.1703796278973.js";import"./system.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897333.js";import"./default.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";import"./index.1703796278973305.js";import"./index.170379627897317.js";import"./index.1703796278973301.js";import"./index.1703796278973302.js";import"./index.1703796278973303.js";import"./index.170379627897339.js";import"./index.170379627897316.js";import"./index.1703796278973304.js";import"./index.1703796278973315.js";import"./index.1703796278973310.js";import"./input.vue_vue_type_script_setup_true_lang.1703796278973.js";import"./index.170379627897337.js";import"./index.170379627897318.js";import"./index.1703796278973312.js";import"./output.vue_vue_type_script_setup_true_lang.1703796278973.js";import"./marked.esm.1703796278973.js";const g=n=>(U("data-v-febdd788"),n=n(),D(),n),G={key:0},H={class:"alarm-level"},R=g(()=>t("div",{class:"alarmLevelTitle"}," 告警级别配置 ",-1)),O=["src"],Q=g(()=>t("div",{class:"description"},[t("h1",null,"功能说明"),t("div",null," 1、告警级别用于描述告警的严重程度，请根据业务管理方式进行自定义。 "),t("div",null,"2、告警级别将会在告警配置中被引用。"),t("div",null,"3、最多可配置5个级别。")],-1)),W=q({__name:"index",setup(n){const h=m([{key:"config",tab:"告警级别"},{key:"io",tab:"数据流转"}]);let r=m([]),l=m("config");(()=>{T().then(a=>{a.status==200&&(r.value=a.result.levels)})})();const y=async()=>{V(r.value).then(a=>{a.status===200&&S.success("操作成功")})},b=a=>{l.value=a};return(a,Y)=>{const x=A,k=w,I=P,d=v("FullPage"),_=j,L=F,C=v("page-container");return s(),f(C,{tabList:i(h),onTabChange:b,tabActiveKey:i(l)},{default:e(()=>[i(l)=="config"?(s(),c("div",G,[o(L,{gutter:24},{default:e(()=>[o(_,{span:14},{default:e(()=>[o(d,null,{default:e(()=>[t("div",H,[o(k,{headStyle:{borderBottom:"none",padding:0},bodyStyle:{padding:0},bordered:!1},{title:e(()=>[R]),default:e(()=>[(s(!0),c(z,null,J(i(r),(u,p)=>(s(),c("div",{key:p,class:"alarmInputItem"},[t("div",null,[t("img",{src:i(N)(`/alarm/alarm${p+1}.png`),alt:""},null,8,O),t("span",null,K(`级别${p+1}`),1)]),t("div",null,[o(x,{type:"text",value:u.title,"onUpdate:value":B=>u.title=B,maxlength:64},null,8,["value","onUpdate:value"])])]))),128))]),_:1}),o(I,{type:"primary",size:"middle",onClick:y,hasPermission:"rule-engine/Alarm/Config:update"},{default:e(()=>[M("保存")]),_:1})])]),_:1})]),_:1}),o(_,{span:10},{default:e(()=>[o(d,null,{default:e(()=>[Q]),_:1})]),_:1})]),_:1})])):(s(),f($,{key:1}))]),_:1},8,["tabList","tabActiveKey"])}}});const Dt=E(W,[["__scopeId","data-v-febdd788"]]);export{Dt as default};
