1 |
- import{d as J,P as K,r as m,x as Q,b as T,a4 as U,o as c,c as W,f as a,A as e,a as l,a5 as X,D as n,k as d,C as p,F as j,a9 as B,V as H,Q as M,J as Y,W as Z,X as E,Y as G,Z as L,_ as N,__tla as O}from"./index-286756b9.js";import{_ as $,__tla as aa}from"./ContentWrap-83998678.js";import{d as ea,__tla as ta}from"./formatTime-83e416ef.js";import{g as la,d as ra,__tla as sa}from"./index-0b36d066.js";import ca,{__tla as na}from"./ProductCategoryForm-b02fbb8f.js";import{h as oa}from"./tree-0af4953a.js";import{u as _a,__tla as ua}from"./useMessage-084b1e70.js";import{__tla as ia}from"./el-card-d3d5a654.js";import{__tla as ma}from"./Dialog-4c2de357.js";let V,da=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ma}catch{}})()]).then(async()=>{V=N(J({name:"CrmProductCategory",__name:"index",setup(pa){const k=_a(),{t:D}=K(),f=m(!0),w=m([]),o=Q({name:null}),g=m(),_=async()=>{f.value=!0;try{const u=await la(o);w.value=oa(u,"id","parentId")}finally{f.value=!1}},y=()=>{_()},F=()=>{g.value.resetFields(),y()},C=m(),b=(u,t)=>{C.value.open(u,t)};return T(()=>{_()}),(u,t)=>{const R=B,v=H,h=M,r=Y,S=Z,P=$,i=E,z=G,x=U("hasPermi"),q=L;return c(),W(j,null,[a(P,null,{default:e(()=>[a(S,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:g,inline:!0,"label-width":"68px"},{default:e(()=>[a(v,{label:"\u540D\u79F0",prop:"name"},{default:e(()=>[a(R,{modelValue:l(o).name,"onUpdate:modelValue":t[0]||(t[0]=s=>l(o).name=s),placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",clearable:"",onKeyup:X(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(v,null,{default:e(()=>[a(r,{onClick:y},{default:e(()=>[a(h,{icon:"ep:search",class:"mr-5px"}),n(" \u641C\u7D22")]),_:1}),a(r,{onClick:F},{default:e(()=>[a(h,{icon:"ep:refresh",class:"mr-5px"}),n(" \u91CD\u7F6E")]),_:1}),d((c(),p(r,{type:"primary",plain:"",onClick:t[1]||(t[1]=s=>b("create"))},{default:e(()=>[a(h,{icon:"ep:plus",class:"mr-5px"}),n(" \u65B0\u589E ")]),_:1})),[[x,["crm:product-category:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(P,null,{default:e(()=>[d((c(),p(z,{data:l(w),"row-key":"id","default-expand-all":""},{default:e(()=>[a(i,{label:"\u5206\u7C7B\u7F16\u53F7",align:"center",prop:"id"}),a(i,{label:"\u5206\u7C7B\u540D\u79F0",align:"center",prop:"name"}),a(i,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(ea),width:"180px"},null,8,["formatter"]),a(i,{label:"\u64CD\u4F5C",align:"center"},{default:e(s=>[d((c(),p(r,{link:"",type:"primary",onClick:A=>b("update",s.row.id)},{default:e(()=>[n(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[x,["crm:product-category:update"]]]),d((c(),p(r,{link:"",type:"danger",onClick:A=>(async I=>{try{await k.delConfirm(),await ra(I),k.success(D("common.delSuccess")),await _()}catch{}})(s.row.id)},{default:e(()=>[n(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[x,["crm:product-category:delete"]]])]),_:1})]),_:1},8,["data"])),[[q,l(f)]])]),_:1}),a(ca,{ref_key:"formRef",ref:C,onSuccess:_},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/crm/product/category/index.vue"]])});export{da as __tla,V as default};
|