import{S as C,g as x}from"./index.c3716782.js";import{s as y}from"./columns.04b0bab4.js";import{d as S,r as f,Z as z,j as k,ai as r,o as w,c as V,a as I,U as t,O as n,K as P,am as U,u as b,F as B}from"./vue.adf17aba.js";import{_ as E}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";const O=S({__name:"shopInformation",setup(D){const s=f(null),l=f({}),e=z({border:"inner",height:930,loading:!1,round:!0,rowConfig:{isHover:!0},pagerConfig:{enabled:!0,total:20,currentPage:1,pageSize:20,pageSizes:[10,20,30]},columns:y,data:[]}),d={pageChange({currentPage:a,pageSize:i}){e.pagerConfig&&(e.pagerConfig.currentPage=a,e.pagerConfig.pageSize=i,o())}};async function o(){try{e.loading=!0;const a=await x({page:e.pagerConfig.currentPage,limit:e.pagerConfig.pageSize,...l.value});e.data=a.data,e.pagerConfig.total=a.total}catch(a){console.error("Error fetching task data:",a)}finally{e.loading=!1}}function g(a){l.value=a.value,s.value&&(e.pagerConfig&&(e.pagerConfig.currentPage=1),o(a.value))}const u=()=>({fontSize:"12px",fontWeight:"600"}),m=()=>({fontSize:"14px"});return k(()=>{o()}),(a,i)=>{const c=r("el-card"),_=r("el-switch"),h=r("vxe-grid");return w(),V(B,null,[I("div",null,[t(c,{class:"my-3 mx-8",shadow:"hover"},{default:n(()=>[t(C,{ref_key:"selectorRef",ref:s,showOperationSearch:!0,"onUpdate:filteredData":g},null,512)]),_:1})]),t(c,{class:"mx-8",shadow:"hover"},{default:n(()=>[t(h,P({ref:"xGrid","cell-style":u,"header-cell-style":m,stripe:""},b(e),U(d)),{status_default:n(({row:p})=>[t(_,{modelValue:p.status,"onUpdate:modelValue":v=>p.status=v,disabled:"","active-value":1,"inactive-value":0,"inline-prompt":"",size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:1},16)]),_:1})],64)}}});const K=E(O,[["__scopeId","data-v-3f2e76f4"]]);export{K as default};
