index-bfa8b0a7.js 5.3 KB

1
  1. import{d as Q,P as W,r as p,x as X,b as Z,a4 as j,o,c as g,f as a,A as l,a as t,a5 as E,F as D,R as G,C as i,D as m,k as f,a3 as L,a9 as $,V as aa,S as ea,U as ta,I as la,Q as ra,J as sa,W as oa,X as _a,Y as na,Z as ua,_ as ca,__tla as pa}from"./index-286756b9.js";import{_ as ia,__tla as ma}from"./index-ed6c67a8.js";import{_ as da,__tla as fa}from"./DictTag-f72b04ca.js";import{_ as ya,__tla as ha}from"./ContentWrap-83998678.js";import{a as ba,D as M,__tla as wa}from"./dict-82dca549.js";import{d as ga,__tla as va}from"./formatTime-83e416ef.js";import{b as xa,d as ka,__tla as Ca}from"./brand-93287a10.js";import Sa,{__tla as Ua}from"./BrandForm-bf03f4a2.js";import{u as Va,__tla as Ta}from"./useMessage-084b1e70.js";import{__tla as Da}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as Ma}from"./el-card-d3d5a654.js";import{__tla as Ya}from"./Dialog-4c2de357.js";import{__tla as za}from"./UploadImg-d2713eac.js";import{__tla as Na}from"./index-5a40c383.js";import{__tla as Pa}from"./el-image-viewer-e0e5d3be.js";import"./constants-637baed6.js";let Y,Oa=Promise.all([(()=>{try{return pa}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Pa}catch{}})()]).then(async()=>{let v;v=["src"],Y=ca(Q({name:"ProductBrand",__name:"index",setup(Aa){const x=Va(),{t:z}=W(),y=p(!0),k=p(0),C=p([]),s=X({pageNo:1,pageSize:10,name:void 0,status:void 0,createTime:[]}),S=p(),n=async()=>{y.value=!0;try{const u=await xa(s);C.value=u.list,k.value=u.total}finally{y.value=!1}},h=()=>{n()},N=()=>{S.value.resetFields(),h()},U=p(),V=(u,r)=>{U.value.open(u,r)};return Z(()=>{n()}),(u,r)=>{const P=$,d=aa,O=ea,A=ta,F=la,b=ra,c=sa,R=oa,T=ya,_=_a,B=da,H=na,I=ia,w=j("hasPermi"),q=ua;return o(),g(D,null,[a(T,null,{default:l(()=>[a(R,{class:"-mb-15px",model:t(s),ref_key:"queryFormRef",ref:S,inline:!0,"label-width":"68px"},{default:l(()=>[a(d,{label:"\u54C1\u724C\u540D\u79F0",prop:"name"},{default:l(()=>[a(P,{modelValue:t(s).name,"onUpdate:modelValue":r[0]||(r[0]=e=>t(s).name=e),placeholder:"\u8BF7\u8F93\u5165\u54C1\u724C\u540D\u79F0",clearable:"",onKeyup:E(h,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[a(A,{modelValue:t(s).status,"onUpdate:modelValue":r[1]||(r[1]=e=>t(s).status=e),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:"",class:"!w-240px"},{default:l(()=>[(o(!0),g(D,null,G(t(ba)(t(M).COMMON_STATUS),e=>(o(),i(O,{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(F,{modelValue:t(s).createTime,"onUpdate:modelValue":r[2]||(r[2]=e=>t(s).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(c,{onClick:h},{default:l(()=>[a(b,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),a(c,{onClick:N},{default:l(()=>[a(b,{icon:"ep:refresh",class:"mr-5px"}),m(" \u91CD\u7F6E")]),_:1}),f((o(),i(c,{type:"primary",plain:"",onClick:r[3]||(r[3]=e=>V("create"))},{default:l(()=>[a(b,{icon:"ep:plus",class:"mr-5px"}),m(" \u65B0\u589E ")]),_:1})),[[w,["product:brand:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(T,null,{default:l(()=>[f((o(),i(H,{data:t(C),"row-key":"id","default-expand-all":""},{default:l(()=>[a(_,{label:"\u54C1\u724C\u540D\u79F0",prop:"name",sortable:""}),a(_,{label:"\u54C1\u724C\u56FE\u7247",align:"center",prop:"picUrl"},{default:l(e=>[e.row.picUrl?(o(),g("img",{key:0,src:e.row.picUrl,alt:"\u54C1\u724C\u56FE\u7247",class:"h-30px"},null,8,v)):L("",!0)]),_:1}),a(_,{label:"\u54C1\u724C\u6392\u5E8F",align:"center",prop:"sort"}),a(_,{label:"\u5F00\u542F\u72B6\u6001",align:"center",prop:"status"},{default:l(e=>[a(B,{type:t(M).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(_,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:t(ga)},null,8,["formatter"]),a(_,{label:"\u64CD\u4F5C",align:"center"},{default:l(e=>[f((o(),i(c,{link:"",type:"primary",onClick:J=>V("update",e.row.id)},{default:l(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["product:brand:update"]]]),f((o(),i(c,{link:"",type:"danger",onClick:J=>(async K=>{try{await x.delConfirm(),await ka(K),x.success(z("common.delSuccess")),await n()}catch{}})(e.row.id)},{default:l(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["product:brand:delete"]]])]),_:1})]),_:1},8,["data"])),[[q,t(y)]]),a(I,{total:t(k),page:t(s).pageNo,"onUpdate:page":r[4]||(r[4]=e=>t(s).pageNo=e),limit:t(s).pageSize,"onUpdate:limit":r[5]||(r[5]=e=>t(s).pageSize=e),onPagination:n},null,8,["total","page","limit"])]),_:1}),a(Sa,{ref_key:"formRef",ref:U,onSuccess:n},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/brand/index.vue"]])});export{Oa as __tla,Y as default};