import{_ as e}from"./index133.js?v=1761009159";import{c as a,q as s,H as l,I as t,y as m,v as o,x as r,z as d,e as n,B as i,Q as p,$ as u,F as c,D as _,C as y,N as f,b0 as x,J as b,T as V,ab as j,an as v,G as g,a9 as k,A as z}from"./base-lib.js?v=1761009159";import{aH as w}from"./validator.js?v=1761009159";import{u as U,k as h,_ as C}from"./utils-lib.js?v=1761009159";import{i as B,o as N,v as S,u as H,c as I,a as M,r as T,m as q,b as A}from"./index453.js?v=1761009159";import"./index106.js?v=1761009159";import"./index.vue_vue_type_style_index_0_scoped_cdc7f4d3_lang.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./column.js?v=1761009159";import"./site.js?v=1761009159";import"./useStore4.js?v=1761009159";import"./cataluge-setting.js?v=1761009159";import"./index115.js?v=1761009159";import"./ace.js?v=1761009159";import"./index103.js?v=1761009159";import"./useController6.js?v=1761009159";const D={class:"p-[2rem] container-dialog"},F={class:"relative"},G={class:"tip"},J={class:"mt-[8px] leading-10 list-disc ml-[20px]"},Q={class:"text-secondary"},$={class:"items-center leading-[2.4rem]"},E=C(a({__name:"capacity-quota",setup(a,{expose:C}){const{payment:E}=U(),{authType:K}=E.value;return s(B),C({init:B,onConfirm:N}),(a,s)=>{var U;const C=V,B=j,E=v,L=h,O=w,P=g,R=k,W=e,X=l("bt-loading");return t((o(),r("div",D,[d("div",F,[n(R,{ref_key:"capsiteInfo",ref:M,model:m(I),rules:m(T),class:"","label-width":"10rem"},{default:i(()=>[n(B,{label:"当前已用容量："},{default:i(()=>[n(C,{modelValue:m(H),"onUpdate:modelValue":s[0]||(s[0]=e=>p(H)?H.value=e:null),readonly:"",class:"!w-[22rem]"},u({_:2},["number"==typeof m(H)?{name:"append",fn:i(()=>[s[6]||(s[6]=d("span",{class:"text-gray-500"},"MB",-1))]),key:"0"}:void 0]),1032,["modelValue"])]),_:1}),n(B,{label:"当前容量配额：",prop:"size"},{default:i(()=>[n(C,{modelValue:m(I).size,"onUpdate:modelValue":s[1]||(s[1]=e=>m(I).size=e),min:0,type:"number",class:"!w-[22rem]"},{append:i(()=>s[7]||(s[7]=[d("span",{class:"text-gray-500"},"MB",-1)])),_:1},8,["modelValue"])]),_:1}),n(B,{label:"设置告警：",prop:"status"},{default:i(()=>[n(E,{modelValue:m(I).status,"onUpdate:modelValue":s[2]||(s[2]=e=>m(I).status=e)},null,8,["modelValue"])]),_:1}),m(I).status?(o(),r(c,{key:0},[n(B,{label:"触发告警大小：",class:"my-[1.6rem]",prop:"alarmSize"},{default:i(()=>[n(C,{modelValue:m(I).alarmSize,"onUpdate:modelValue":s[3]||(s[3]=e=>m(I).alarmSize=e),min:0,type:"number",class:"!w-[22rem]"},{append:i(()=>s[8]||(s[8]=[d("span",{class:"text-gray-500"},"MB",-1)])),_:1},8,["modelValue"])]),_:1}),n(B,{label:"告警次数：",prop:"alarmNum"},{default:i(()=>[n(L,{modelValue:m(I).alarmNum,"onUpdate:modelValue":s[4]||(s[4]=e=>m(I).alarmNum=e),min:0,type:"number",prependText:"每日最多触发",width:"26rem","text-type":"次"},null,8,["modelValue"])]),_:1}),n(B,{label:"告警方式：",prop:"module"},{default:i(()=>[n(O,{modelValue:m(I).module,"onUpdate:modelValue":s[5]||(s[5]=e=>m(I).module=e)},null,8,["modelValue"])]),_:1})],64)):_("",!0),n(B,{label:" "},{default:i(()=>[n(P,{onClick:m(N),type:"primary"},{default:i(()=>s[9]||(s[9]=[y("保存",-1)])),_:1,__:[9]},8,["onClick"])]),_:1})]),_:1},8,["model","rules"]),m(q)?(o(),f(W,{key:0,width:"32rem"},{content:i(()=>s[10]||(s[10]=[y("指定xfs分区未开启目录配额功能",-1)])),_:1})):_("",!0)]),d("div",G,[d("ul",J,[(null==(U=m(A))?void 0:U.length)?(o(!0),r(c,{key:0},x(m(A),(e,a)=>(o(),r("li",{key:a,class:"items-center leading-[2.4rem]"},[d("span",Q,z(e),1)]))),128)):(o(),r(c,{key:1},[t(d("li",$,s[11]||(s[11]=[d("span",{class:"text-danger"},"温馨提示：此功能为企业版专享功能",-1)]),512),[[b,"ltd"!==m(K)]]),s[12]||(s[12]=d("li",{class:"items-center leading-[2.4rem]"},[d("span",{class:"text-secondary"},"配额容量：如需取消容量配额，请设为“0”")],-1))],64))])])])),[[X,m(S)]])}}}),[["__scopeId","data-v-1d316853"]]);export{E as default};
