|
- var N=Object.defineProperty,q=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var C=(t,e,a)=>e in t?N(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,I=(t,e)=>{for(var a in e||(e={}))M.call(e,a)&&C(t,a,e[a]);if(x)for(var a of x(e))$.call(e,a)&&C(t,a,e[a]);return t},k=(t,e)=>q(t,L(e));var g=(t,e,a)=>new Promise((f,s)=>{var c=o=>{try{i(a.next(o))}catch(r){s(r)}},p=o=>{try{i(a.throw(o))}catch(r){s(r)}},i=o=>o.done?f(o.value):Promise.resolve(o.value).then(c,p);i((a=a.apply(t,e)).next())});import{d as j,a as F}from"./driverFile.2afd90a3.js";import{_ as O,d as R,r as _,z as h,f as m,g as b,n as A,w as d,e as u,c as E,q as S,F as T,h as w,i as U}from"./index.fdfd5892.js";const G=w(" \u5173\u95ED "),H=w(" \u4FDD\u5B58 "),J=R({name:"carManagementDialog"}),K=Object.assign(J,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(t,{emit:e}){const a=t,{proxy:f}=U(),s=_({}),c=_(),p=_({driverAdminId:[{required:!0,message:"\u8BF7\u9009\u62E9\u8F66\u8F86\u7BA1\u7406\u5458",trigger:"blur"}]}),i=_([]),o=()=>{c.value.validate(r=>g(this,null,function*(){var l;if(r){const v=k(I({},s.value),{driverId:(l=a.data)==null?void 0:l.driverId});yield F(v),f.$message.success("\u8BBE\u7F6E\u6210\u529F\uFF01"),e("close",!0)}}))};return h(()=>a.visible,r=>g(this,null,function*(){var l;r?i.value=(l=(yield j({pageNumber:1,pageSize:999999})).data)==null?void 0:l.records:s.value={}})),(r,l)=>{const v=m("el-option"),B=m("el-select"),D=m("el-form-item"),V=m("el-form"),y=m("el-button"),z=m("el-dialog");return b(),A(z,{"model-value":t.visible,title:"\u8BBE\u7F6E\u8F66\u7BA1\u5458","destroy-on-close":"",onClose:l[2]||(l[2]=n=>e("close"))},{footer:d(()=>[u(y,{type:"info",size:"small",onClick:l[1]||(l[1]=n=>e("close"))},{default:d(()=>[G]),_:1}),u(y,{type:"primary",size:"small",onClick:o},{default:d(()=>[H]),_:1})]),default:d(()=>[u(V,{ref_key:"formRef",ref:c,model:s.value,rules:p.value,"label-suffix":":",class:"formBox"},{default:d(()=>[u(D,{label:"\u8F66\u8F86\u7BA1\u7406\u5458",prop:"driverAdminId"},{default:d(()=>[u(B,{modelValue:s.value.driverAdminId,"onUpdate:modelValue":l[0]||(l[0]=n=>s.value.driverAdminId=n),class:"m-2",placeholder:"\u8BF7\u9009\u62E9"},{default:d(()=>[(b(!0),E(T,null,S(i.value,n=>(b(),A(v,{key:n.id,label:n.realName,value:n.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["model-value"])}}}),X=O(K,[["__scopeId","data-v-95556051"]]);export{X as default};
|