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