1 |
- import{d as U,B as j,r as y,g as q,T as B,o as c,c as J,i as a,w as l,a as e,D as p,k as u,l as g,F as K,I as L,n as A,s as V,J as W,K as $,L as E,M as G,_ as H,__tla as O}from"./index-2f799233.js";import{_ as Q,__tla as X}from"./index-e6cd813f.js";import{_ as Y,__tla as Z}from"./ContentWrap-9da801df.js";import{d as aa,__tla as ta}from"./formatTime-2157894c.js";import{a as ea,d as la,s as ra,__tla as na}from"./index-85e154b8.js";import sa,{__tla as ca}from"./TagForm-60ec2461.js";import _a,{__tla as oa}from"./main-108765f1.js";import{u as ia,__tla as pa}from"./useMessage-e567ad40.js";import{__tla as ua}from"./index-1c180a16.js";import{__tla as ma}from"./el-card-c64c83d1.js";import{__tla as da}from"./Dialog-6fd39e06.js";import{__tla as fa}from"./index-4c417a29.js";let v,ya=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})()]).then(async()=>{v=H(U({name:"MpTag",__name:"index",setup(ga){const m=ia(),{t:z}=j(),h=y(!0),w=y(0),b=y([]),t=q({pageNo:1,pageSize:10,accountId:-1}),k=y(null),N=n=>{t.accountId=n,t.pageNo=1,_()},_=async()=>{try{h.value=!0;const n=await ea(t);b.value=n.list,w.value=n.total}finally{h.value=!1}},x=(n,r)=>{var o;(o=k.value)==null||o.open(n,t.accountId,r)},S=async()=>{try{await m.confirm("\u662F\u5426\u786E\u8BA4\u540C\u6B65\u6807\u7B7E\uFF1F"),await ra(t.accountId),m.success("\u540C\u6B65\u6807\u7B7E\u6210\u529F"),await _()}catch{}};return(n,r)=>{const o=L,C=A,d=V,T=W,I=Y,i=$,D=E,P=Q,f=B("hasPermi"),F=G;return c(),J(K,null,[a(I,null,{default:l(()=>[a(T,{class:"-mb-15px",model:e(t),ref:"queryFormRef",inline:!0,"label-width":"68px"},{default:l(()=>[a(o,{label:"\u516C\u4F17\u53F7",prop:"accountId"},{default:l(()=>[a(e(_a),{onChange:N})]),_:1}),a(o,null,{default:l(()=>[p((c(),u(d,{type:"primary",plain:"",onClick:r[0]||(r[0]=s=>x("create")),disabled:e(t).accountId===0},{default:l(()=>[a(C,{icon:"ep:plus",class:"mr-5px"}),g(" \u65B0\u589E ")]),_:1},8,["disabled"])),[[f,["mp:tag:create"]]]),p((c(),u(d,{type:"success",plain:"",onClick:S,disabled:e(t).accountId===0},{default:l(()=>[a(C,{icon:"ep:refresh",class:"mr-5px"}),g(" \u540C\u6B65 ")]),_:1},8,["disabled"])),[[f,["mp:tag:sync"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(I,null,{default:l(()=>[p((c(),u(D,{data:e(b)},{default:l(()=>[a(i,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(i,{label:"\u6807\u7B7E\u540D\u79F0",align:"center",prop:"name"}),a(i,{label:"\u7C89\u4E1D\u6570",align:"center",prop:"count"}),a(i,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:e(aa)},null,8,["formatter"]),a(i,{label:"\u64CD\u4F5C",align:"center"},{default:l(s=>[p((c(),u(d,{link:"",type:"primary",onClick:M=>x("update",s.row.id)},{default:l(()=>[g(" \u4FEE\u6539 ")]),_:2},1032,["onClick"])),[[f,["mp:tag:update"]]]),p((c(),u(d,{link:"",type:"danger",onClick:M=>(async R=>{try{await m.delConfirm(),await la(R),m.success(z("common.delSuccess")),await _()}catch{}})(s.row.id)},{default:l(()=>[g(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[f,["mp:tag:delete"]]])]),_:1})]),_:1},8,["data"])),[[F,e(h)]]),a(P,{total:e(w),page:e(t).pageNo,"onUpdate:page":r[1]||(r[1]=s=>e(t).pageNo=s),limit:e(t).pageSize,"onUpdate:limit":r[2]||(r[2]=s=>e(t).pageSize=s),onPagination:_},null,8,["total","page","limit"])]),_:1}),a(sa,{ref_key:"formRef",ref:k,onSuccess:_},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mp/tag/index.vue"]])});export{ya as __tla,v as default};
|