1 |
- import{d as W,i as j,r as i,f as L,l as O,R as Q,o as s,c as T,g as a,w as t,a as e,S as Z,F as U,v as $,x as p,n as m,y as d,W as aa,B as ea,z as la,A as ta,C as ra,q as oa,D as na,G as sa,H as _a,I as ca,J as ia,_ as pa,__tla as ma}from"./index-b362e1d5.js";import{_ as ua,__tla as da}from"./index-ccc64a6d.js";import{_ as fa,__tla as ya}from"./DictTag-e097450d.js";import{_ as ha,__tla as xa}from"./ContentWrap-a3bb871b.js";import{a as ga,D as z,__tla as wa}from"./dict-9948b178.js";import{d as E,__tla as va}from"./formatTime-053b1c05.js";import{d as ba}from"./download-20922b56.js";import{D as Sa,g as ka,d as Ca,e as Da,__tla as Va}from"./Demo01ContactForm-f27a4655.js";import{u as Ta,__tla as Ua}from"./useMessage-7c1dd10e.js";import{__tla as za}from"./index-39b44010.js";import"./color-6e929987.js";import{__tla as Ea}from"./el-card-732e29b8.js";import{__tla as Ra}from"./Dialog-71bebaff.js";import{__tla as Ya}from"./UploadImg-badad53e.js";import{__tla as Na}from"./index-6b00d885.js";import{__tla as Ma}from"./el-image-viewer-68ae3e49.js";import{__tla as qa}from"./Editor-e146bd91.js";let R,Fa=Promise.all([(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return qa}catch{}})()]).then(async()=>{R=pa(W({name:"Demo01Contact",__name:"index",setup(Ha){const x=Ta(),{t:Y}=j(),g=i(!0),b=i([]),S=i(0),r=L({pageNo:1,pageSize:10,name:null,sex:null,createTime:[]}),k=i(),w=i(!1),u=async()=>{g.value=!0;try{const _=await ka(r);b.value=_.list,S.value=_.total}finally{g.value=!1}},v=()=>{r.pageNo=1,u()},N=()=>{k.value.resetFields(),v()},C=i(),D=(_,o)=>{C.value.open(_,o)},M=async()=>{try{await x.exportConfirm(),w.value=!0;const _=await Da(r);ba.excel(_,"\u793A\u4F8B\u8054\u7CFB\u4EBA.xls")}catch{}finally{w.value=!1}};return O(()=>{u()}),(_,o)=>{const q=aa,f=ea,F=la,H=ta,P=ra,y=oa,c=na,G=sa,V=ha,n=_a,I=fa,X=ca,A=ua,h=Q("hasPermi"),B=ia;return s(),T(U,null,[a(V,null,{default:t(()=>[a(G,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:k,inline:!0,"label-width":"68px"},{default:t(()=>[a(f,{label:"\u540D\u5B57",prop:"name"},{default:t(()=>[a(q,{modelValue:e(r).name,"onUpdate:modelValue":o[0]||(o[0]=l=>e(r).name=l),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57",clearable:"",onKeyup:Z(v,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(f,{label:"\u6027\u522B",prop:"sex"},{default:t(()=>[a(H,{modelValue:e(r).sex,"onUpdate:modelValue":o[1]||(o[1]=l=>e(r).sex=l),placeholder:"\u8BF7\u9009\u62E9\u6027\u522B",clearable:"",class:"!w-240px"},{default:t(()=>[(s(!0),T(U,null,$(e(ga)(e(z).SYSTEM_USER_SEX),l=>(s(),p(F,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(f,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[a(P,{modelValue:e(r).createTime,"onUpdate:modelValue":o[2]||(o[2]=l=>e(r).createTime=l),"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:t(()=>[a(c,{onClick:v},{default:t(()=>[a(y,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),a(c,{onClick:N},{default:t(()=>[a(y,{icon:"ep:refresh",class:"mr-5px"}),m(" \u91CD\u7F6E")]),_:1}),d((s(),p(c,{type:"primary",plain:"",onClick:o[3]||(o[3]=l=>D("create"))},{default:t(()=>[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:M,loading:e(w)},{default:t(()=>[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(V,null,{default:t(()=>[d((s(),p(X,{data:e(b),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[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:t(l=>[a(I,{type:e(z).SYSTEM_USER_SEX,value:l.row.sex},null,8,["type","value"])]),_:1}),a(n,{label:"\u51FA\u751F\u5E74",align:"center",prop:"birthday",formatter:e(E),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(E),width:"180px"},null,8,["formatter"]),a(n,{label:"\u64CD\u4F5C",align:"center"},{default:t(l=>[d((s(),p(c,{link:"",type:"primary",onClick:J=>D("update",l.row.id)},{default:t(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["infra:demo01-contact:update"]]]),d((s(),p(c,{link:"",type:"danger",onClick:J=>(async K=>{try{await x.delConfirm(),await Ca(K),x.success(Y("common.delSuccess")),await u()}catch{}})(l.row.id)},{default:t(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["infra:demo01-contact:delete"]]])]),_:1})]),_:1},8,["data"])),[[B,e(g)]]),a(A,{total:e(S),page:e(r).pageNo,"onUpdate:page":o[4]||(o[4]=l=>e(r).pageNo=l),limit:e(r).pageSize,"onUpdate:limit":o[5]||(o[5]=l=>e(r).pageSize=l),onPagination:u},null,8,["total","page","limit"])]),_:1}),a(Sa,{ref_key:"formRef",ref:C,onSuccess:u},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/demo/demo01/index.vue"]])});export{Fa as __tla,R as default};
|