You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

carManagementDialog.c091325d.js 2.6KB

2 maanden geleden
1
  1. var z=Object.defineProperty,L=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var A=(t,e,a)=>e in t?z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,C=(t,e)=>{for(var a in e||(e={}))$.call(e,a)&&A(t,a,e[a]);if(x)for(var a of x(e))j.call(e,a)&&A(t,a,e[a]);return t},I=(t,e)=>L(t,M(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 q,a as F}from"./driverFile.2f562cad.js";import{_ as O,d as R,r as _,A as h,f as m,g as b,p as k,w as d,e as u,c as E,s as S,F as T,h as w,i as U}from"./index.6d448f34.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=I(C({},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 q({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"),N=m("el-dialog");return b(),k(N,{"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(),k(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};