1 |
- import{d as j,B as A,r as i,g as O,z as Q,T as W,o as s,c as V,i as a,w as t,a as e,U as Z,F as U,C as $,k as p,l as m,D as d,Y as aa,I as ea,G as la,H as ta,q as ra,n as oa,s as na,J as sa,K as _a,L as ca,M as ia,_ as pa,__tla as ma}from"./index-2f799233.js";import{_ as ua,__tla as da}from"./index-e6cd813f.js";import{_ as fa,__tla as ya}from"./DictTag-ea4c6cc2.js";import{_ as ha,__tla as xa}from"./ContentWrap-9da801df.js";import{a as ga,D as Y,__tla as wa}from"./dict-20c916e2.js";import{d as z,__tla as ba}from"./formatTime-2157894c.js";import{d as va}from"./download-20922b56.js";import{D as ka,g as Sa,d as Ca,e as Da,__tla as Ta}from"./Demo01ContactForm-ca858957.js";import{u as Va,__tla as Ua}from"./useMessage-e567ad40.js";import{__tla as Ya}from"./index-1c180a16.js";import"./color-6e929987.js";import{__tla as za}from"./el-card-c64c83d1.js";import{__tla as Ea}from"./Dialog-6fd39e06.js";import{__tla as Ma}from"./UploadImg-d46c0539.js";import{__tla as Na}from"./index-5f6db4a5.js";import{__tla as Fa}from"./el-image-viewer-8e9e3571.js";import{__tla as Ra}from"./Editor-3a97a075.js";let E,qa=Promise.all([(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ea}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Ra}catch{}})()]).then(async()=>{E=pa(j({name:"Demo01Contact",__name:"index",setup(Ha){const x=Va(),{t:M}=A(),g=i(!0),v=i([]),k=i(0),r=O({pageNo:1,pageSize:10,name:null,sex:null,createTime:[]}),S=i(),w=i(!1),u=async()=>{g.value=!0;try{const _=await Sa(r);v.value=_.list,k.value=_.total}finally{g.value=!1}},b=()=>{r.pageNo=1,u()},N=()=>{S.value.resetFields(),b()},C=i(),D=(_,o)=>{C.value.open(_,o)},F=async()=>{try{await x.exportConfirm(),w.value=!0;const _=await Da(r);va.excel(_,"\u793A\u4F8B\u8054\u7CFB\u4EBA.xls")}catch{}finally{w.value=!1}};return Q(()=>{u()}),(_,o)=>{const R=aa,f=ea,q=la,H=ta,K=ra,y=oa,c=na,P=sa,T=ha,n=_a,I=fa,X=ca,B=ua,h=W("hasPermi"),G=ia;return s(),V(U,null,[a(T,null,{default:t(()=>[a(P,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:S,inline:!0,"label-width":"68px"},{default:t(()=>[a(f,{label:"\u540D\u5B57",prop:"name"},{default:t(()=>[a(R,{modelValue:e(r).name,"onUpdate:modelValue":o[0]||(o[0]=l=>e(r).name=l),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: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),V(U,null,$(e(ga)(e(Y).SYSTEM_USER_SEX),l=>(s(),p(q,{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(K,{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:b},{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:F,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(T,null,{default:t(()=>[d((s(),p(X,{data:e(v),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(Y).SYSTEM_USER_SEX,value:l.row.sex},null,8,["type","value"])]),_:1}),a(n,{label:"\u51FA\u751F\u5E74",align:"center",prop:"birthday",formatter:e(z),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(z),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 L=>{try{await x.delConfirm(),await Ca(L),x.success(M("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"])),[[G,e(g)]]),a(B,{total:e(k),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(ka,{ref_key:"formRef",ref:C,onSuccess:u},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/infra/demo/demo01/index.vue"]])});export{qa as __tla,E as default};
|