1 |
- import{d as Z,P as $,r as p,x as aa,b as ea,a3 as ta,o as n,c as w,f as a,A as l,a as t,a4 as M,F as v,Q as O,C as u,D as c,k as h,E as P,a2 as la,a8 as ra,U as oa,R as na,S as sa,I as ca,_ as ua,J as ia,V as pa,W as da,av as ma,X as _a,Y as fa,__tla as ya}from"./index-6e0fa573.js";import{_ as ha,__tla as ba}from"./index.vue_vue_type_script_setup_true_lang-cd12277f.js";import{_ as ga,__tla as wa}from"./DictTag.vue_vue_type_script_lang-66c5118d.js";import{_ as va,__tla as ka}from"./ContentWrap.vue_vue_type_script_setup_true_lang-bed37a76.js";import{a as xa,D as R,__tla as Va}from"./dict-33efee75.js";import{d as z,__tla as Ca}from"./formatTime-4408999b.js";import{d as Ta}from"./download-20922b56.js";import{T as Ma,g as Na,d as Sa,e as Ua,__tla as Da}from"./TenantForm-87f685ab.js";import{g as Ia,__tla as Ya}from"./index-682d7fda.js";import{u as Aa,__tla as Oa}from"./useMessage-7f978edc.js";import{__tla as Pa}from"./index-99c4720b.js";import"./color-6e929987.js";import{__tla as Ra}from"./el-card-f999e23d.js";import{__tla as za}from"./Dialog-a16029e3.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./constants-c811e5ff.js";let F,Fa=Promise.all([(()=>{try{return ya}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return za}catch{}})()]).then(async()=>{F=Z({name:"SystemTenant",__name:"index",setup(Ha){const k=Aa(),{t:H}=$(),x=p(!0),N=p(0),S=p([]),r=aa({pageNo:1,pageSize:10,name:void 0,contactName:void 0,contactMobile:void 0,status:void 0,createTime:[]}),U=p(),V=p(!1),D=p([]),_=async()=>{x.value=!0;try{const i=await Na(r);S.value=i.list,N.value=i.total}finally{x.value=!1}},f=()=>{r.pageNo=1,_()},K=()=>{U.value.resetFields(),f()},I=p(),Y=(i,o)=>{I.value.open(i,o)},J=async()=>{try{await k.exportConfirm(),V.value=!0;const i=await Ua(r);Ta.excel(i,"\u79DF\u6237\u5217\u8868.xls")}catch{}finally{V.value=!1}};return ea(async()=>{await _(),D.value=await Ia()}),(i,o)=>{const C=ra,d=oa,Q=na,q=sa,E=ca,b=ua,m=ia,W=pa,A=va,s=da,T=ma,X=ga,j=_a,B=ha,g=ta("hasPermi"),G=fa;return n(),w(v,null,[a(A,null,{default:l(()=>[a(W,{class:"-mb-15px",model:t(r),ref_key:"queryFormRef",ref:U,inline:!0,"label-width":"68px"},{default:l(()=>[a(d,{label:"\u54C1\u724C\u65B9",prop:"name"},{default:l(()=>[a(C,{modelValue:t(r).name,"onUpdate:modelValue":o[0]||(o[0]=e=>t(r).name=e),placeholder:"\u8BF7\u8F93\u5165\u54C1\u724C\u65B9",clearable:"",onKeyup:M(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u8054\u7CFB\u4EBA",prop:"contactName"},{default:l(()=>[a(C,{modelValue:t(r).contactName,"onUpdate:modelValue":o[1]||(o[1]=e=>t(r).contactName=e),placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA",clearable:"",onKeyup:M(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u8054\u7CFB\u624B\u673A",prop:"contactMobile"},{default:l(()=>[a(C,{modelValue:t(r).contactMobile,"onUpdate:modelValue":o[2]||(o[2]=e=>t(r).contactMobile=e),placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u624B\u673A",clearable:"",onKeyup:M(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u54C1\u724C\u65B9\u72B6\u6001","label-width":"auto",prop:"status"},{default:l(()=>[a(q,{modelValue:t(r).status,"onUpdate:modelValue":o[3]||(o[3]=e=>t(r).status=e),placeholder:"\u8BF7\u9009\u62E9\u54C1\u724C\u65B9\u72B6\u6001",clearable:"",class:"!w-240px"},{default:l(()=>[(n(!0),w(v,null,O(t(xa)(t(R).COMMON_STATUS),e=>(n(),u(Q,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a(E,{modelValue:t(r).createTime,"onUpdate:modelValue":o[4]||(o[4]=e=>t(r).createTime=e),"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(d,null,{default:l(()=>[a(m,{onClick:f},{default:l(()=>[a(b,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22 ")]),_:1}),a(m,{onClick:K},{default:l(()=>[a(b,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E ")]),_:1}),h((n(),u(m,{type:"primary",plain:"",onClick:o[5]||(o[5]=e=>Y("create"))},{default:l(()=>[a(b,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E ")]),_:1})),[[g,["system:tenant:create"]]]),h((n(),u(m,{type:"success",plain:"",onClick:J,loading:t(V)},{default:l(()=>[a(b,{icon:"ep:download",class:"mr-5px"}),c(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[g,["system:tenant:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(A,null,{default:l(()=>[h((n(),u(j,{data:t(S)},{default:l(()=>[a(s,{label:"\u54C1\u724C\u65B9\u7F16\u53F7",width:"100",align:"center",prop:"id"}),a(s,{label:"\u54C1\u724C\u65B9",align:"center",prop:"name"}),a(s,{label:"\u54C1\u724C\u65B9\u5957\u9910",width:"120",align:"center",prop:"packageId"},{default:l(e=>[e.row.packageId===0?(n(),u(T,{key:0,type:"danger"},{default:l(()=>[c("\u7CFB\u7EDF\u79DF\u6237")]),_:1})):(n(!0),w(v,{key:1},O(t(D),y=>(n(),w(v,null,[y.id===e.row.packageId?(n(),u(T,{type:"success",key:y.id},{default:l(()=>[c(P(y.name),1)]),_:2},1024)):la("",!0)],64))),256))]),_:1}),a(s,{label:"\u8054\u7CFB\u4EBA",align:"center",prop:"contactName"}),a(s,{label:"\u8054\u7CFB\u624B\u673A",align:"center",prop:"contactMobile"}),a(s,{label:"\u8D26\u53F7\u989D\u5EA6",align:"center",prop:"accountCount"},{default:l(e=>[a(T,null,{default:l(()=>[c(P(e.row.accountCount),1)]),_:2},1024)]),_:1}),a(s,{label:"\u8FC7\u671F\u65F6\u95F4",align:"center",prop:"expireTime",width:"180",formatter:t(z)},null,8,["formatter"]),a(s,{label:"\u7ED1\u5B9A\u57DF\u540D",align:"center",prop:"website",width:"180"}),a(s,{label:"\u54C1\u724C\u65B9\u72B6\u6001",width:"120",align:"center",prop:"status"},{default:l(e=>[a(X,{type:t(R).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(s,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:t(z)},null,8,["formatter"]),a(s,{label:"\u64CD\u4F5C",align:"center","min-width":"110",fixed:"right"},{default:l(e=>[h((n(),u(m,{link:"",type:"primary",onClick:y=>Y("update",e.row.id)},{default:l(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["system:tenant:update"]]]),h((n(),u(m,{link:"",type:"danger",onClick:y=>(async L=>{try{await k.delConfirm(),await Sa(L),k.success(H("common.delSuccess")),await _()}catch{}})(e.row.id)},{default:l(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["system:tenant:delete"]]])]),_:1})]),_:1},8,["data"])),[[G,t(x)]]),a(B,{total:t(N),page:t(r).pageNo,"onUpdate:page":o[6]||(o[6]=e=>t(r).pageNo=e),limit:t(r).pageSize,"onUpdate:limit":o[7]||(o[7]=e=>t(r).pageSize=e),onPagination:_},null,8,["total","page","limit"])]),_:1}),a(Ma,{ref_key:"formRef",ref:I,onSuccess:_},null,512)],64)}}})});export{Fa as __tla,F as default};
|