1 |
- import{d as L,P as $,r as p,x as ee,b as ae,a4 as te,o as n,c as g,f as e,A as l,a as t,a5 as M,F as x,R as I,C as i,D as c,k as w,E as K,a3 as le,a9 as re,V as oe,S as ne,U as se,I as ce,Q as ie,J as ue,W as pe,X as de,aw as me,Y as _e,Z as fe,_ as ye,__tla as we}from"./index-286756b9.js";import{_ as he,__tla as be}from"./index-ed6c67a8.js";import{_ as ge,__tla as xe}from"./DictTag-f72b04ca.js";import{_ as ve,__tla as ke}from"./ContentWrap-83998678.js";import{a as Ve,D as O,__tla as Ce}from"./dict-82dca549.js";import{d as P,__tla as Te}from"./formatTime-83e416ef.js";import{d as Me}from"./download-20922b56.js";import{T as Ne,g as Se,d as Ue,e as De,__tla as ze}from"./TenantForm-20487cdf.js";import{g as Ye,__tla as Ae}from"./index-52f15aa4.js";import{u as Ie,__tla as Ke}from"./useMessage-084b1e70.js";import{__tla as Oe}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as Pe}from"./el-card-d3d5a654.js";import{__tla as Re}from"./Dialog-4c2de357.js";import"./constants-637baed6.js";let R,Fe=Promise.all([(()=>{try{return we}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Re}catch{}})()]).then(async()=>{R=ye(L({name:"SystemTenant",__name:"index",setup(qe){const v=Ie(),{t:F}=$(),k=p(!0),N=p(0),S=p([]),r=ee({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()=>{k.value=!0;try{const u=await Se(r);S.value=u.list,N.value=u.total}finally{k.value=!1}},f=()=>{r.pageNo=1,_()},q=()=>{U.value.resetFields(),f()},z=p(),Y=(u,o)=>{z.value.open(u,o)},H=async()=>{try{await v.exportConfirm(),V.value=!0;const u=await De(r);Me.excel(u,"\u79DF\u6237\u5217\u8868.xls")}catch{}finally{V.value=!1}};return ae(async()=>{await _(),D.value=await Ye()}),(u,o)=>{const C=re,d=oe,W=ne,B=se,E=ce,h=ie,m=ue,J=pe,A=ve,s=de,T=me,Q=ge,X=_e,Z=he,b=te("hasPermi"),j=fe;return n(),g(x,null,[e(A,null,{default:l(()=>[e(J,{class:"-mb-15px",model:t(r),ref_key:"queryFormRef",ref:U,inline:!0,"label-width":"68px"},{default:l(()=>[e(d,{label:"\u54C1\u724C\u65B9",prop:"name"},{default:l(()=>[e(C,{modelValue:t(r).name,"onUpdate:modelValue":o[0]||(o[0]=a=>t(r).name=a),placeholder:"\u8BF7\u8F93\u5165\u54C1\u724C\u65B9",clearable:"",onKeyup:M(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u8054\u7CFB\u4EBA",prop:"contactName"},{default:l(()=>[e(C,{modelValue:t(r).contactName,"onUpdate:modelValue":o[1]||(o[1]=a=>t(r).contactName=a),placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA",clearable:"",onKeyup:M(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u8054\u7CFB\u624B\u673A",prop:"contactMobile"},{default:l(()=>[e(C,{modelValue:t(r).contactMobile,"onUpdate:modelValue":o[2]||(o[2]=a=>t(r).contactMobile=a),placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u624B\u673A",clearable:"",onKeyup:M(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(d,{label:"\u54C1\u724C\u65B9\u72B6\u6001","label-width":"auto",prop:"status"},{default:l(()=>[e(B,{modelValue:t(r).status,"onUpdate:modelValue":o[3]||(o[3]=a=>t(r).status=a),placeholder:"\u8BF7\u9009\u62E9\u54C1\u724C\u65B9\u72B6\u6001",clearable:"",class:"!w-240px"},{default:l(()=>[(n(!0),g(x,null,I(t(Ve)(t(O).COMMON_STATUS),a=>(n(),i(W,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[e(E,{modelValue:t(r).createTime,"onUpdate:modelValue":o[4]||(o[4]=a=>t(r).createTime=a),"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}),e(d,null,{default:l(()=>[e(m,{onClick:f},{default:l(()=>[e(h,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22 ")]),_:1}),e(m,{onClick:q},{default:l(()=>[e(h,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E ")]),_:1}),w((n(),i(m,{type:"primary",plain:"",onClick:o[5]||(o[5]=a=>Y("create"))},{default:l(()=>[e(h,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E ")]),_:1})),[[b,["system:tenant:create"]]]),w((n(),i(m,{type:"success",plain:"",onClick:H,loading:t(V)},{default:l(()=>[e(h,{icon:"ep:download",class:"mr-5px"}),c(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[b,["system:tenant:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(A,null,{default:l(()=>[w((n(),i(X,{data:t(S)},{default:l(()=>[e(s,{label:"\u54C1\u724C\u65B9\u7F16\u53F7",width:"100",align:"center",prop:"id"}),e(s,{label:"\u54C1\u724C\u65B9",align:"center",prop:"name"}),e(s,{label:"\u54C1\u724C\u65B9\u5957\u9910",width:"120",align:"center",prop:"packageId"},{default:l(a=>[a.row.packageId===0?(n(),i(T,{key:0,type:"danger"},{default:l(()=>[c("\u7CFB\u7EDF\u79DF\u6237")]),_:1})):(n(!0),g(x,{key:1},I(t(D),y=>(n(),g(x,null,[y.id===a.row.packageId?(n(),i(T,{type:"success",key:y.id},{default:l(()=>[c(K(y.name),1)]),_:2},1024)):le("",!0)],64))),256))]),_:1}),e(s,{label:"\u8054\u7CFB\u4EBA",align:"center",prop:"contactName"}),e(s,{label:"\u8054\u7CFB\u624B\u673A",align:"center",prop:"contactMobile"}),e(s,{label:"\u8D26\u53F7\u989D\u5EA6",align:"center",prop:"accountCount"},{default:l(a=>[e(T,null,{default:l(()=>[c(K(a.row.accountCount),1)]),_:2},1024)]),_:1}),e(s,{label:"\u8FC7\u671F\u65F6\u95F4",align:"center",prop:"expireTime",width:"180",formatter:t(P)},null,8,["formatter"]),e(s,{label:"\u7ED1\u5B9A\u57DF\u540D",align:"center",prop:"website",width:"180"}),e(s,{label:"\u54C1\u724C\u65B9\u72B6\u6001",width:"120",align:"center",prop:"status"},{default:l(a=>[e(Q,{type:t(O).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:t(P)},null,8,["formatter"]),e(s,{label:"\u64CD\u4F5C",align:"center","min-width":"110",fixed:"right"},{default:l(a=>[w((n(),i(m,{link:"",type:"primary",onClick:y=>Y("update",a.row.id)},{default:l(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[b,["system:tenant:update"]]]),w((n(),i(m,{link:"",type:"danger",onClick:y=>(async G=>{try{await v.delConfirm(),await Ue(G),v.success(F("common.delSuccess")),await _()}catch{}})(a.row.id)},{default:l(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[b,["system:tenant:delete"]]])]),_:1})]),_:1},8,["data"])),[[j,t(k)]]),e(Z,{total:t(N),page:t(r).pageNo,"onUpdate:page":o[6]||(o[6]=a=>t(r).pageNo=a),limit:t(r).pageSize,"onUpdate:limit":o[7]||(o[7]=a=>t(r).pageSize=a),onPagination:_},null,8,["total","page","limit"])]),_:1}),e(Ne,{ref_key:"formRef",ref:z,onSuccess:_},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/tenant/index.vue"]])});export{Fe as __tla,R as default};
|