1 |
- import{d as L,B as A,r as i,f as O,z as Q,S as W,o as s,c as D,i as a,w as l,a as e,T as Z,F as U,C as $,j as p,m,D as d,X as aa,I as ea,G as ta,H as la,p as ra,_ as oa,q as na,J as sa,K as _a,L as ca,M as ia,__tla as pa}from"./index-1e808f2e.js";import{_ as ma,__tla as ua}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as da,__tla as fa}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{_ as ya,__tla as ha}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{a as ga,D as E,__tla as xa}from"./dict-a31cb4ba.js";import{d as Y,__tla as wa}from"./formatTime-a348c3be.js";import{d as ba}from"./download-20922b56.js";import{_ as va,g as Sa,d as ka,e as Ca,__tla as Va}from"./Demo01ContactForm.vue_vue_type_script_setup_true_lang-dbfaac7b.js";import{u as Ta,__tla as Da}from"./useMessage-5f9e8917.js";import{__tla as Ua}from"./index-73afebcf.js";import"./color-6e929987.js";import{__tla as Ea}from"./el-card-03b3588b.js";import{__tla as Ya}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as za}from"./UploadImg-3538b5a5.js";import{__tla as Ma}from"./index-b59955b6.js";import{__tla as Na}from"./el-image-viewer-dddb6285.js";import{__tla as Ha}from"./style.css_vue_type_style_index_0_src_true_lang-507ff6a6.js";let z,Ra=Promise.all([(()=>{try{return pa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ha}catch{}})()]).then(async()=>{z=L({name:"Demo01Contact",__name:"index",setup(Xa){const g=Ta(),{t:M}=A(),x=i(!0),v=i([]),S=i(0),r=O({pageNo:1,pageSize:10,name:null,sex:null,createTime:[]}),k=i(),w=i(!1),u=async()=>{x.value=!0;try{const _=await Sa(r);v.value=_.list,S.value=_.total}finally{x.value=!1}},b=()=>{r.pageNo=1,u()},N=()=>{k.value.resetFields(),b()},C=i(),V=(_,o)=>{C.value.open(_,o)},H=async()=>{try{await g.exportConfirm(),w.value=!0;const _=await Ca(r);ba.excel(_,"\u793A\u4F8B\u8054\u7CFB\u4EBA.xls")}catch{}finally{w.value=!1}};return Q(()=>{u()}),(_,o)=>{const R=aa,f=ea,X=ta,q=la,F=ra,y=oa,c=na,P=sa,T=ya,n=_a,K=da,j=ca,B=ma,h=W("hasPermi"),G=ia;return s(),D(U,null,[a(T,null,{default:l(()=>[a(P,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:k,inline:!0,"label-width":"68px"},{default:l(()=>[a(f,{label:"\u540D\u5B57",prop:"name"},{default:l(()=>[a(R,{modelValue:e(r).name,"onUpdate:modelValue":o[0]||(o[0]=t=>e(r).name=t),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57",clearable:"",onKeyup:Z(b,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(f,{label:"\u6027\u522B",prop:"sex"},{default:l(()=>[a(q,{modelValue:e(r).sex,"onUpdate:modelValue":o[1]||(o[1]=t=>e(r).sex=t),placeholder:"\u8BF7\u9009\u62E9\u6027\u522B",clearable:"",class:"!w-240px"},{default:l(()=>[(s(!0),D(U,null,$(e(ga)(e(E).SYSTEM_USER_SEX),t=>(s(),p(X,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(f,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a(F,{modelValue:e(r).createTime,"onUpdate:modelValue":o[2]||(o[2]=t=>e(r).createTime=t),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),a(f,null,{default:l(()=>[a(c,{onClick:b},{default:l(()=>[a(y,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),a(c,{onClick:N},{default:l(()=>[a(y,{icon:"ep:refresh",class:"mr-5px"}),m(" \u91CD\u7F6E")]),_:1}),d((s(),p(c,{type:"primary",plain:"",onClick:o[3]||(o[3]=t=>V("create"))},{default:l(()=>[a(y,{icon:"ep:plus",class:"mr-5px"}),m(" \u65B0\u589E ")]),_:1})),[[h,["infra:demo01-contact:create"]]]),d((s(),p(c,{type:"success",plain:"",onClick:H,loading:e(w)},{default:l(()=>[a(y,{icon:"ep:download",class:"mr-5px"}),m(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["infra:demo01-contact:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(T,null,{default:l(()=>[d((s(),p(j,{data:e(v),stripe:!0,"show-overflow-tooltip":!0},{default:l(()=>[a(n,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(n,{label:"\u540D\u5B57",align:"center",prop:"name"}),a(n,{label:"\u6027\u522B",align:"center",prop:"sex"},{default:l(t=>[a(K,{type:e(E).SYSTEM_USER_SEX,value:t.row.sex},null,8,["type","value"])]),_:1}),a(n,{label:"\u51FA\u751F\u5E74",align:"center",prop:"birthday",formatter:e(Y),width:"180px"},null,8,["formatter"]),a(n,{label:"\u7B80\u4ECB",align:"center",prop:"description"}),a(n,{label:"\u5934\u50CF",align:"center",prop:"avatar"}),a(n,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(Y),width:"180px"},null,8,["formatter"]),a(n,{label:"\u64CD\u4F5C",align:"center"},{default:l(t=>[d((s(),p(c,{link:"",type:"primary",onClick:I=>V("update",t.row.id)},{default:l(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["infra:demo01-contact:update"]]]),d((s(),p(c,{link:"",type:"danger",onClick:I=>(async J=>{try{await g.delConfirm(),await ka(J),g.success(M("common.delSuccess")),await u()}catch{}})(t.row.id)},{default:l(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["infra:demo01-contact:delete"]]])]),_:1})]),_:1},8,["data"])),[[G,e(x)]]),a(B,{total:e(S),page:e(r).pageNo,"onUpdate:page":o[4]||(o[4]=t=>e(r).pageNo=t),limit:e(r).pageSize,"onUpdate:limit":o[5]||(o[5]=t=>e(r).pageSize=t),onPagination:u},null,8,["total","page","limit"])]),_:1}),a(va,{ref_key:"formRef",ref:C,onSuccess:u},null,512)],64)}}})});export{Ra as __tla,z as default};
|