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