index-83fbe4c9.js 5.4 KB

1
  1. import{d as Q,Q as W,r as p,x as X,b as Z,a3 as j,o,c as w,f as a,B as l,a as t,a4 as G,F as D,R as I,A as i,E as m,k as f,D as L,a8 as $,V as aa,S as ea,U as ta,J as la,_ as ra,K as sa,W as oa,X as _a,Y as na,Z as ua,__tla as ca}from"./index-e8bff8cb.js";import{_ as pa,__tla as ia}from"./index.vue_vue_type_script_setup_true_lang-75f84d87.js";import{_ as ma,__tla as da}from"./DictTag.vue_vue_type_script_lang-23f1740b.js";import{_ as fa,__tla as ya}from"./ContentWrap.vue_vue_type_script_setup_true_lang-33dea697.js";import{a as ha,D as M,__tla as ba}from"./dict-4a54e490.js";import{d as ga,__tla as wa}from"./formatTime-4fdd5566.js";import{b as ka,d as va,__tla as xa}from"./brand-bcf9728d.js";import{_ as Ua,__tla as Ca}from"./BrandForm.vue_vue_type_script_setup_true_lang-361ca79e.js";import{u as Sa,__tla as Va}from"./useMessage-de42a595.js";import{__tla as Ta}from"./index-35928fe5.js";import"./color-6e929987.js";import{__tla as Da}from"./el-card-f9558d99.js";import{__tla as Ma}from"./Dialog-4d17ac25.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Na}from"./UploadImg-7600c145.js";import{__tla as Pa}from"./index-32ca9885.js";import{__tla as Ya}from"./el-image-viewer-aab7739e.js";import"./constants-c811e5ff.js";let N,za=Promise.all([(()=>{try{return ca}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ya}catch{}})()]).then(async()=>{let k;k=["src"],N=Q({name:"ProductBrand",__name:"index",setup(Aa){const v=Sa(),{t:P}=W(),y=p(!0),x=p(0),U=p([]),s=X({pageNo:1,pageSize:10,name:void 0,status:void 0,createTime:[]}),C=p(),n=async()=>{y.value=!0;try{const u=await ka(s);U.value=u.list,x.value=u.total}finally{y.value=!1}},h=()=>{n()},Y=()=>{C.value.resetFields(),h()},S=p(),V=(u,r)=>{S.value.open(u,r)};return Z(()=>{n()}),(u,r)=>{const z=$,d=aa,A=ea,O=ta,F=la,b=ra,c=sa,R=oa,T=fa,_=_a,B=ma,H=na,K=pa,g=j("hasPermi"),q=ua;return o(),w(D,null,[a(T,null,{default:l(()=>[a(R,{class:"-mb-15px",model:t(s),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:l(()=>[a(d,{label:"\u54C1\u724C\u540D\u79F0",prop:"name"},{default:l(()=>[a(z,{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:G(h,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[a(O,{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),w(D,null,I(t(ha)(t(M).COMMON_STATUS),e=>(o(),i(A,{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:Y},{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})),[[g,["product:brand:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(T,null,{default:l(()=>[f((o(),i(H,{data:t(U),"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(),w("img",{key:0,src:e.row.picUrl,alt:"\u54C1\u724C\u56FE\u7247",class:"h-30px"},null,8,k)):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:E=>V("update",e.row.id)},{default:l(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["product:brand:update"]]]),f((o(),i(c,{link:"",type:"danger",onClick:E=>(async J=>{try{await v.delConfirm(),await va(J),v.success(P("common.delSuccess")),await n()}catch{}})(e.row.id)},{default:l(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["product:brand:delete"]]])]),_:1})]),_:1},8,["data"])),[[q,t(y)]]),a(K,{total:t(x),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(Ua,{ref_key:"formRef",ref:S,onSuccess:n},null,512)],64)}}})});export{za as __tla,N as default};