index-c7ca0789.js 4.4 KB

1
  1. import{d as j,u as q,h as A,r as _,e as B,l as G,Q as K,o as m,c as Q,f as a,w as e,a as t,R as E,n as s,x as d,v as f,F as J,V as L,A as O,B as W,j as $,C as X,D as Z,G as aa,H as ea,I as ta,_ as la,__tla as ra}from"./index-bd9277a1.js";import{_ as oa,__tla as na}from"./index-3118d255.js";import{_ as sa,__tla as ia}from"./ContentWrap-7c73ab26.js";import{d as pa,__tla as ca}from"./formatTime-8639ba1a.js";import{h as _a,i as ma,__tla as ua}from"./property-3e7e4490.js";import da,{__tla as fa}from"./PropertyForm-d98a8256.js";import{u as ya,__tla as ha}from"./useMessage-274788d4.js";import{__tla as ga}from"./index-49ecf2ef.js";import{__tla as wa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5f6a2d0d.js";import{__tla as ka}from"./el-card-bc8cec83.js";import{__tla as va}from"./Dialog-eba103da.js";let N,xa=Promise.all([(()=>{try{return ra}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return va}catch{}})()]).then(async()=>{N=la(j({name:"ProductProperty",__name:"index",setup(Ca){const{push:S}=q(),v=ya(),{t:T}=A(),y=_(!0),x=_(0),C=_([]),o=B({pageNo:1,pageSize:10,name:void 0,createTime:[]}),b=_(),i=async()=>{y.value=!0;try{const p=await _a(o);C.value=p.list,x.value=p.total}finally{y.value=!1}},h=()=>{o.pageNo=1,i()},U=()=>{b.value.resetFields(),h()},V=_(),D=(p,l)=>{V.value.open(p,l)};return G(()=>{i()}),(p,l)=>{const Y=L,g=O,F=W,w=$,n=X,H=Z,P=sa,c=aa,R=ea,I=oa,k=K("hasPermi"),M=ta;return m(),Q(J,null,[a(P,null,{default:e(()=>[a(H,{ref_key:"queryFormRef",ref:b,inline:!0,model:t(o),class:"-mb-15px","label-width":"68px"},{default:e(()=>[a(g,{label:"\u540D\u79F0",prop:"name"},{default:e(()=>[a(Y,{modelValue:t(o).name,"onUpdate:modelValue":l[0]||(l[0]=r=>t(o).name=r),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",onKeyup:E(h,["enter"])},null,8,["modelValue"])]),_:1}),a(g,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:e(()=>[a(F,{modelValue:t(o).createTime,"onUpdate:modelValue":l[1]||(l[1]=r=>t(o).createTime=r),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px","end-placeholder":"\u7ED3\u675F\u65E5\u671F","start-placeholder":"\u5F00\u59CB\u65E5\u671F",type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","default-time"])]),_:1}),a(g,null,{default:e(()=>[a(n,{onClick:h},{default:e(()=>[a(w,{class:"mr-5px",icon:"ep:search"}),s(" \u641C\u7D22 ")]),_:1}),a(n,{onClick:U},{default:e(()=>[a(w,{class:"mr-5px",icon:"ep:refresh"}),s(" \u91CD\u7F6E ")]),_:1}),d((m(),f(n,{plain:"",type:"primary",onClick:l[2]||(l[2]=r=>D("create"))},{default:e(()=>[a(w,{class:"mr-5px",icon:"ep:plus"}),s(" \u65B0\u589E ")]),_:1})),[[k,["product:property:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(P,null,{default:e(()=>[d((m(),f(R,{data:t(C)},{default:e(()=>[a(c,{align:"center",label:"\u7F16\u53F7","min-width":"60",prop:"id"}),a(c,{align:"center",label:"\u5C5E\u6027\u540D\u79F0",prop:"name","min-width":"150"}),a(c,{"show-overflow-tooltip":!0,align:"center",label:"\u5907\u6CE8",prop:"remark"}),a(c,{formatter:t(pa),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),a(c,{align:"center",label:"\u64CD\u4F5C"},{default:e(r=>[d((m(),f(n,{link:"",type:"primary",onClick:z=>D("update",r.row.id)},{default:e(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[k,["product:property:update"]]]),a(n,{link:"",type:"primary",onClick:z=>{return u=r.row.id,void S({name:"ProductPropertyValue",params:{propertyId:u}});var u}},{default:e(()=>[s("\u5C5E\u6027\u503C")]),_:2},1032,["onClick"]),d((m(),f(n,{link:"",type:"danger",onClick:z=>(async u=>{try{await v.delConfirm(),await ma(u),v.success(T("common.delSuccess")),await i()}catch{}})(r.row.id)},{default:e(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[k,["product:property:delete"]]])]),_:1})]),_:1},8,["data"])),[[M,t(y)]]),a(I,{limit:t(o).pageSize,"onUpdate:limit":l[3]||(l[3]=r=>t(o).pageSize=r),page:t(o).pageNo,"onUpdate:page":l[4]||(l[4]=r=>t(o).pageNo=r),total:t(x),onPagination:i},null,8,["limit","page","total"])]),_:1}),a(da,{ref_key:"formRef",ref:V,onSuccess:i},null,512)],64)}}}),[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/mall/product/property/index.vue"]])});export{xa as __tla,N as default};