1 |
- import{d as Z,Q as j,r as i,x as G,b as I,a3 as L,o as s,c as E,f as a,B as l,a as e,a4 as O,F as T,R as $,A as p,E as m,k as d,a8 as aa,V as ea,S as ta,U as la,J as ra,_ as oa,K as na,W as sa,X as _a,Y as ca,Z as ia,__tla as pa}from"./index-e8bff8cb.js";import{_ as ma,__tla as ua}from"./index.vue_vue_type_script_setup_true_lang-75f84d87.js";import{_ as da,__tla as fa}from"./DictTag.vue_vue_type_script_lang-23f1740b.js";import{_ as ya,__tla as ha}from"./ContentWrap.vue_vue_type_script_setup_true_lang-33dea697.js";import{a as ga,D as Y,__tla as xa}from"./dict-4a54e490.js";import{d as D,__tla as ba}from"./formatTime-4fdd5566.js";import{d as wa}from"./download-20922b56.js";import{_ as va,g as ka,d as Sa,e as Ca,__tla as Va}from"./Demo01ContactForm.vue_vue_type_script_setup_true_lang-669e1175.js";import{u as Ua,__tla as Ea}from"./useMessage-de42a595.js";import{__tla as Ta}from"./index-35928fe5.js";import"./color-6e929987.js";import{__tla as Ya}from"./el-card-f9558d99.js";import{__tla as Da}from"./Dialog-4d17ac25.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ma}from"./UploadImg-7600c145.js";import{__tla as Na}from"./index-32ca9885.js";import{__tla as Ra}from"./el-image-viewer-aab7739e.js";import{__tla as Pa}from"./style.css_vue_type_style_index_0_src_true_lang-d66aa64c.js";let M,Xa=Promise.all([(()=>{try{return pa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Pa}catch{}})()]).then(async()=>{M=Z({name:"Demo01Contact",__name:"index",setup(za){const g=Ua(),{t:N}=j(),x=i(!0),v=i([]),k=i(0),r=G({pageNo:1,pageSize:10,name:null,sex:null,createTime:[]}),S=i(),b=i(!1),u=async()=>{x.value=!0;try{const _=await ka(r);v.value=_.list,k.value=_.total}finally{x.value=!1}},w=()=>{r.pageNo=1,u()},R=()=>{S.value.resetFields(),w()},C=i(),V=(_,o)=>{C.value.open(_,o)},P=async()=>{try{await g.exportConfirm(),b.value=!0;const _=await Ca(r);wa.excel(_,"\u793A\u4F8B\u8054\u7CFB\u4EBA.xls")}catch{}finally{b.value=!1}};return I(()=>{u()}),(_,o)=>{const X=aa,f=ea,z=ta,F=la,K=ra,y=oa,c=na,H=sa,U=ya,n=_a,q=da,A=ca,B=ma,h=L("hasPermi"),J=ia;return s(),E(T,null,[a(U,null,{default:l(()=>[a(H,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:S,inline:!0,"label-width":"68px"},{default:l(()=>[a(f,{label:"\u540D\u5B57",prop:"name"},{default:l(()=>[a(X,{modelValue:e(r).name,"onUpdate:modelValue":o[0]||(o[0]=t=>e(r).name=t),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57",clearable:"",onKeyup:O(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(f,{label:"\u6027\u522B",prop:"sex"},{default:l(()=>[a(F,{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),E(T,null,$(e(ga)(e(Y).SYSTEM_USER_SEX),t=>(s(),p(z,{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(K,{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:w},{default:l(()=>[a(y,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),a(c,{onClick:R},{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:P,loading:e(b)},{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(U,null,{default:l(()=>[d((s(),p(A,{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(q,{type:e(Y).SYSTEM_USER_SEX,value:t.row.sex},null,8,["type","value"])]),_:1}),a(n,{label:"\u51FA\u751F\u5E74",align:"center",prop:"birthday",formatter:e(D),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(D),width:"180px"},null,8,["formatter"]),a(n,{label:"\u64CD\u4F5C",align:"center"},{default:l(t=>[d((s(),p(c,{link:"",type:"primary",onClick:Q=>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:Q=>(async W=>{try{await g.delConfirm(),await Sa(W),g.success(N("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"])),[[J,e(x)]]),a(B,{total:e(k),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{Xa as __tla,M as default};
|