1 |
- import{d as A,h as G,r as m,e as H,l as K,Q,o as c,c as T,f as a,w as e,a as l,R as U,n as s,x as d,v as p,F as E,V as M,A as W,j as $,C as B,D as J,G as L,H as N,I as O,_ as X,__tla as Y}from"./index-bd9277a1.js";import{_ as Z,__tla as aa}from"./ContentWrap-7c73ab26.js";import{d as ea,__tla as ta}from"./formatTime-8639ba1a.js";import{g as la,d as ra,__tla as na}from"./index-bd0b8146.js";import ca,{__tla as sa}from"./ProductCategoryForm-3c5d81d0.js";import{h as oa}from"./tree-0af4953a.js";import{u as _a,__tla as ua}from"./useMessage-274788d4.js";import{__tla as ia}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5f6a2d0d.js";import{__tla as ma}from"./el-card-bc8cec83.js";import{__tla as da}from"./Dialog-eba103da.js";let R,pa=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})()]).then(async()=>{R=X(A({name:"CrmProductCategory",__name:"index",setup(fa){const g=_a(),{t:z}=G(),f=m(!0),w=m([]),o=H({name:null}),k=m(),_=async()=>{f.value=!0;try{const u=await la(o);w.value=oa(u,"id","parentId")}finally{f.value=!1}},y=()=>{_()},F=()=>{k.value.resetFields(),y()},C=m(),v=(u,t)=>{C.value.open(u,t)};return K(()=>{_()}),(u,t)=>{const I=M,b=W,h=$,r=B,P=J,V=Z,i=L,D=N,x=Q("hasPermi"),S=O;return c(),T(E,null,[a(V,null,{default:e(()=>[a(P,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:k,inline:!0,"label-width":"68px"},{default:e(()=>[a(b,{label:"\u540D\u79F0",prop:"name"},{default:e(()=>[a(I,{modelValue:l(o).name,"onUpdate:modelValue":t[0]||(t[0]=n=>l(o).name=n),placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",clearable:"",onKeyup:U(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(b,null,{default:e(()=>[a(r,{onClick:y},{default:e(()=>[a(h,{icon:"ep:search",class:"mr-5px"}),s(" \u641C\u7D22")]),_:1}),a(r,{onClick:F},{default:e(()=>[a(h,{icon:"ep:refresh",class:"mr-5px"}),s(" \u91CD\u7F6E")]),_:1}),d((c(),p(r,{type:"primary",plain:"",onClick:t[1]||(t[1]=n=>v("create"))},{default:e(()=>[a(h,{icon:"ep:plus",class:"mr-5px"}),s(" \u65B0\u589E ")]),_:1})),[[x,["crm:product-category:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(V,null,{default:e(()=>[d((c(),p(D,{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(n=>[d((c(),p(r,{link:"",type:"primary",onClick:j=>v("update",n.row.id)},{default:e(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[x,["crm:product-category:update"]]]),d((c(),p(r,{link:"",type:"danger",onClick:j=>(async q=>{try{await g.delConfirm(),await ra(q),g.success(z("common.delSuccess")),await _()}catch{}})(n.row.id)},{default:e(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[x,["crm:product-category:delete"]]])]),_:1})]),_:1},8,["data"])),[[S,l(f)]])]),_:1}),a(ca,{ref_key:"formRef",ref:C,onSuccess:_},null,512)],64)}}}),[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/crm/product/category/index.vue"]])});export{pa as __tla,R as default};
|