import{P as h}from"./page.3b4d44cb.js";import{b7 as T,b as m,ar as k,N as C,E as F,_ as B,c as i,e as y,k as v,i as n,g as $,h as a,f as w,j as E,m as b,t as I,F as P}from"./index.0308b213.js";import{g as A,d as D}from"./tableType.fbccd912.js";const S={components:{Page:h},setup(){const t=T(),l=m({loading:!1,tableData:[]}),g=m({page:1,limit:10,status:-1,keyword:""}),p=()=>{l.loading=!0,A(g).then(e=>{console.log("\u6570\u636E",e),l.tableData=e.list}).finally(()=>{l.loading=!1})},f=()=>{t.push({path:"/store/storeInside/addTableType"}),console.log("\u65B0\u5EFA\u684C\u53F0\u7C7B\u578B")};let u=[];const r=e=>{console.log("\u8F93\u51FA",e),u=e.map(s=>s.id)},o=e=>{F({message:e,type:"success"})},_=(e,s)=>{e==0?t.push({path:"/store/storeInside/addTable",query:{tableTypeId:s.id}}):e==1?t.push({path:"/store/storeInside/addTableType",query:{id:s.id}}):C.prompt("\u786E\u5B9A\u5220\u9664\u5417\uFF1F","\u63D0\u793A",{showInput:!1}).then(d=>{c([s.id])}).catch(d=>{})},c=e=>{D({ids:e||u}).then(s=>{p(),o("\u6279\u91CF\u5220\u9664\u6210\u529F")})};return p(),{...k(l),addTableType:f,tableSelect:r,btn_click:_,del:c}}};const N={class:"container"},R=b("\u65B0\u5EFA\u684C\u53F0\u7C7B\u578B"),V=b("\u6279\u91CF\u5220\u9664");function q(t,l,g,p,f,u){const r=i("el-button"),o=i("el-table-column"),_=i("el-table"),c=i("Page");return y(),v(c,{showBorder:!1,loading:t.loading},{main:n(()=>[$("div",N,[a(r,{class:"add-btn",type:"primary",onClick:l[0]||(l[0]=e=>t.addTableType())},{default:n(()=>[R]),_:1}),a(_,{ref:"multipleTableRef",data:t.tableData,border:"",style:{width:"100%"},onSelectionChange:t.tableSelect},{default:n(()=>[a(o,{type:"selection",width:"55",align:"center"}),a(o,{prop:"title",label:"\u540D\u5B57",align:"center"}),a(o,{prop:"limit_price",label:"\u6700\u4F4E\u6D88\u8D39",align:"center"}),a(o,{prop:"reservation_price",label:"\u9884\u5B9A\u9884\u4ED8\u6B3E",align:"center"}),a(o,{prop:"num",label:"\u684C\u5B50\u6570\u91CF",align:"center"}),a(o,{label:"\u64CD\u4F5C",align:"center"},{default:n(e=>[(y(),w(P,null,E(["\u6DFB\u52A0\u684C\u53F0","\u7F16\u8F91","\u5220\u9664"],(s,d)=>a(r,{key:d,onClick:L=>t.btn_click(d,e.row)},{default:n(()=>[b(I(s),1)]),_:2},1032,["onClick"])),64))]),_:1})]),_:1},8,["data","onSelectionChange"]),a(r,{class:"del-btn",type:"danger",onClick:l[1]||(l[1]=e=>t.del())},{default:n(()=>[V]),_:1})])]),_:1},8,["loading"])}const z=B(S,[["render",q],["__scopeId","data-v-0dc617fd"]]);export{z as default};
