import{aI as p,aC as f,bJ as o,bt as c,b9 as b,aH as e,N as v,O as V,a1 as x,a0 as B,aG as n,a8 as C,S as E,i as U}from"./index-Dg4NaXsE.js";/* empty css             *//* empty css                     *//* empty css                 *//* empty css                        *//* empty css                  *//* empty css                        */import{C as k}from"./ConfigPageBase-MHa7yfOO.js";/* empty css               *//* empty css                *//* empty css                  *//* empty css               */import"./PermissionGuard-BlMEkqrL.js";/* empty css                 */import"./reflection-B_glb6eT.js";import"./monitorConfigCache-BigdkiFw.js";const j=p({__name:"TaskAllocationView",setup(w){return(T,t)=>{const m=B,d=x,u=V,i=C,s=E,_=v;return b(),f(k,{section:"task",title:"任务分配机制",description:"负载均衡、就近分配、优先级调度（TaskAllocationPolicy）",defaults:c(U)},{default:o(({payload:l,update:r})=>[e(_,{"label-width":"160px",model:l},{default:o(()=>[e(u,{label:"分配模式"},{default:o(()=>[e(d,{"model-value":l.mode,"onUpdate:modelValue":a=>r({...l,mode:a})},{default:o(()=>[e(m,{value:"roundRobin"},{default:o(()=>[...t[0]||(t[0]=[n("轮询",-1)])]),_:1}),e(m,{value:"nearest"},{default:o(()=>[...t[1]||(t[1]=[n("就近",-1)])]),_:1}),e(m,{value:"leastLoad"},{default:o(()=>[...t[2]||(t[2]=[n("最少负载",-1)])]),_:1}),e(m,{value:"custom"},{default:o(()=>[...t[3]||(t[3]=[n("自定义",-1)])]),_:1})]),_:1},8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(u,{label:"启用负载均衡"},{default:o(()=>[e(i,{"model-value":l.loadBalance,"onUpdate:modelValue":a=>r({...l,loadBalance:!!a})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024),e(u,{label:"单车队列上限"},{default:o(()=>[e(s,{"model-value":l.maxQueuePerCar,min:1,max:100,"onUpdate:modelValue":a=>r({...l,maxQueuePerCar:a??0})},null,8,["model-value","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["model"])]),_:1},8,["defaults"])}}});export{j as default};
