1 |
- import{d as X,$ as Y,r as s,x as Z,b as $,a3 as j,o as p,c as S,f as a,B as t,a as l,F as N,R as G,A as c,a4 as H,E as d,k as m,Q as J,S as L,U as M,V as O,a8 as aa,_ as ea,K as ta,W as la,X as ra,Y as oa,Z as pa,__tla as sa}from"./index-e8bff8cb.js";import{_ as na,__tla as _a}from"./index.vue_vue_type_script_setup_true_lang-75f84d87.js";import{_ as ia,__tla as ua}from"./ContentWrap.vue_vue_type_script_setup_true_lang-33dea697.js";import{d as ca,__tla as da}from"./formatTime-4fdd5566.js";import{g as ma,a as fa,d as ya,__tla as ha}from"./property-4843ac8f.js";import{_ as ga,__tla as wa}from"./ValueForm.vue_vue_type_script_setup_true_lang-ecad6b75.js";import{u as ba,__tla as ka}from"./useMessage-de42a595.js";import{__tla as va}from"./index-35928fe5.js";import{__tla as xa}from"./el-card-f9558d99.js";import{__tla as Ca}from"./Dialog-4d17ac25.js";import"./_plugin-vue_export-helper-1b428a4d.js";let U,Va=Promise.all([(()=>{try{return sa}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ca}catch{}})()]).then(async()=>{U=X({name:"ProductPropertyValue",__name:"index",setup(Ia){const b=ba(),{t:F}=J(),{params:R}=Y(),f=s(!0),k=s(0),v=s([]),r=Z({pageNo:1,pageSize:10,propertyId:Number(R.propertyId),name:void 0}),x=s(),C=s([]),n=async()=>{f.value=!0;try{const _=await fa(r);v.value=_.list,k.value=_.total}finally{f.value=!1}},y=()=>{r.pageNo=1,n()},z=()=>{x.value.resetFields(),y()},V=s(),I=(_,o)=>{V.value.open(_,r.propertyId,o)};return $(async()=>{await n(),C.value.push(await ma(r.propertyId))}),(_,o)=>{const A=L,K=M,h=O,q=aa,g=ea,i=ta,B=la,P=ia,u=ra,D=oa,E=na,w=j("hasPermi"),Q=pa;return p(),S(N,null,[a(P,null,{default:t(()=>[a(B,{class:"-mb-15px",model:l(r),ref_key:"queryFormRef",ref:x,inline:!0,"label-width":"68px"},{default:t(()=>[a(h,{label:"\u5C5E\u6027\u9879",prop:"propertyId"},{default:t(()=>[a(K,{modelValue:l(r).propertyId,"onUpdate:modelValue":o[0]||(o[0]=e=>l(r).propertyId=e),class:"!w-240px",disabled:""},{default:t(()=>[(p(!0),S(N,null,G(l(C),e=>(p(),c(A,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(h,{label:"\u540D\u79F0",prop:"name"},{default:t(()=>[a(q,{modelValue:l(r).name,"onUpdate:modelValue":o[1]||(o[1]=e=>l(r).name=e),placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",clearable:"",onKeyup:H(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(h,null,{default:t(()=>[a(i,{onClick:y},{default:t(()=>[a(g,{icon:"ep:search",class:"mr-5px"}),d(" \u641C\u7D22")]),_:1}),a(i,{onClick:z},{default:t(()=>[a(g,{icon:"ep:refresh",class:"mr-5px"}),d(" \u91CD\u7F6E")]),_:1}),m((p(),c(i,{plain:"",type:"primary",onClick:o[2]||(o[2]=e=>I("create"))},{default:t(()=>[a(g,{icon:"ep:plus",class:"mr-5px"}),d(" \u65B0\u589E ")]),_:1})),[[w,["product:property:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(P,null,{default:t(()=>[m((p(),c(D,{data:l(v)},{default:t(()=>[a(u,{label:"\u7F16\u53F7",align:"center","min-width":"60",prop:"id"}),a(u,{label:"\u5C5E\u6027\u503C\u540D\u79F0",align:"center","min-width":"150",prop:"name"}),a(u,{label:"\u5907\u6CE8",align:"center",prop:"remark","show-overflow-tooltip":!0}),a(u,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:l(ca)},null,8,["formatter"]),a(u,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[m((p(),c(i,{link:"",type:"primary",onClick:T=>I("update",e.row.id)},{default:t(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["product:property:update"]]]),m((p(),c(i,{link:"",type:"danger",onClick:T=>(async W=>{try{await b.delConfirm(),await ya(W),b.success(F("common.delSuccess")),await n()}catch{}})(e.row.id)},{default:t(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["product:property:delete"]]])]),_:1})]),_:1},8,["data"])),[[Q,l(f)]]),a(E,{total:l(k),page:l(r).pageNo,"onUpdate:page":o[3]||(o[3]=e=>l(r).pageNo=e),limit:l(r).pageSize,"onUpdate:limit":o[4]||(o[4]=e=>l(r).pageSize=e),onPagination:n},null,8,["total","page","limit"])]),_:1}),a(ga,{ref_key:"formRef",ref:V,onSuccess:n},null,512)],64)}}})});export{Va as __tla,U as default};
|