import{aG as c,aA as f,bB as t,bm as b,l as V,b3 as v,aF as o,P as U,a5 as h,I as R,aE as d,a8 as B,S as E,T as w,O as T}from"./index-DrvLDslf.js";/* empty css             *//* empty css                     *//* empty css                 *//* empty css                        *//* empty css                  *//* empty css                   *//* empty css                  */import"./el-tooltip-l0sNRNKZ.js";import{C as x}from"./ConfigPageBase-CPF7i-FB.js";/* empty css               *//* empty css                *//* empty css                  *//* empty css               */import"./PermissionGuard-BxagL6-4.js";import"./reflection-Dr3WM5Rz.js";const z=c({__name:"VehicleMaintenanceView",setup(C){return(I,m)=>{const i=h,a=U,r=R,u=B,p=E,s=w,_=T;return v(),f(x,{section:"vehicle",title:"车辆维护策略",description:"电量阈值、故障上报、自动报修（VehicleMaintenancePolicy）",defaults:b(V)},{default:t(({payload:e,update:n})=>[o(_,{"label-width":"160px",model:e},{default:t(()=>[o(a,{label:"低电量阈值"},{default:t(()=>[o(i,{"model-value":e.lowBatteryThreshold*100,min:0,max:100,"format-tooltip":l=>`${l}%`,"onUpdate:modelValue":l=>n({...e,lowBatteryThreshold:(Number(l)||0)/100})},null,8,["model-value","format-tooltip","onUpdate:modelValue"])]),_:2},1024),o(a,{label:"临界电量阈值"},{default:t(()=>[o(i,{"model-value":e.criticalBatteryThreshold*100,min:0,max:100,"format-tooltip":l=>`${l}%`,"onUpdate:modelValue":l=>n({...e,criticalBatteryThreshold:(Number(l)||0)/100})},null,8,["model-value","format-tooltip","onUpdate:modelValue"])]),_:2},1024),o(r,{"content-position":"left"},{default:t(()=>[...m[0]||(m[0]=[d("故障上报",-1)])]),_:1}),o(a,{label:"启用"},{default:t(()=>[o(u,{"model-value":e.faultReport.enabled,"onUpdate:modelValue":l=>n({...e,faultReport:{...e.faultReport,enabled:!!l}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),o(a,{label:"接收邮箱"},{default:t(()=>[o(p,{"model-value":e.faultReport.emailTo.join(", "),"onUpdate:modelValue":l=>n({...e,faultReport:{...e.faultReport,emailTo:l.split(/[,\s]+/).filter(Boolean)}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),o(r,{"content-position":"left"},{default:t(()=>[...m[1]||(m[1]=[d("自动报修",-1)])]),_:1}),o(a,{label:"启用"},{default:t(()=>[o(u,{"model-value":e.autoRepair.enabled,"onUpdate:modelValue":l=>n({...e,autoRepair:{...e.autoRepair,enabled:!!l}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),o(a,{label:"冷却时间 (秒)"},{default:t(()=>[o(s,{"model-value":e.autoRepair.cooldownSec,min:0,max:86400,"onUpdate:modelValue":l=>n({...e,autoRepair:{...e.autoRepair,cooldownSec:l??0}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])]),_:1},8,["defaults"])}}});export{z as default};
