Files
Migu2.0/MiGu.Server/wwwroot/assets/VehicleMaintenanceView-BONwcIeP.js
T
zhaowei.huangandCursor be0503c535 chore(web): 重新构建前端静态资源
同步 simple-platform-vue 构建产物与 index.html 入口哈希。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-31 00:16:56 +08:00

2 lines
2.8 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{aG as c,aA as f,bH as l,br as b,b7 as V,aF as t,N as v,O as R,a4 as U,H as h,aE as d,a7 as E,R as B,S as w,k as x}from"./index-D5OuyicD.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-DYlmkUIy.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./PermissionGuard-DhAzkl-X.js";/* empty css */import"./reflection-BmVSriDn.js";import"./monitorConfigCache-deAxNrzx.js";const K=c({__name:"VehicleMaintenanceView",setup(N){return(C,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:l(({payload:e,update:n})=>[t(_,{"label-width":"160px",model:e},{default:l(()=>[t(a,{label:"低电量阈值"},{default:l(()=>[t(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),t(a,{label:"临界电量阈值"},{default:l(()=>[t(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),t(r,{"content-position":"left"},{default:l(()=>[...m[0]||(m[0]=[d("故障上报",-1)])]),_:1}),t(a,{label:"启用"},{default:l(()=>[t(u,{"model-value":e.faultReport.enabled,"onUpdate:modelValue":o=>n({...e,faultReport:{...e.faultReport,enabled:!!o}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),t(a,{label:"接收邮箱"},{default:l(()=>[t(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),t(r,{"content-position":"left"},{default:l(()=>[...m[1]||(m[1]=[d("自动报修",-1)])]),_:1}),t(a,{label:"启用"},{default:l(()=>[t(u,{"model-value":e.autoRepair.enabled,"onUpdate:modelValue":o=>n({...e,autoRepair:{...e.autoRepair,enabled:!!o}})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),t(a,{label:"冷却时间 (秒)"},{default:l(()=>[t(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{K as default};