index-af69c687.js 5.4 KB

1
  1. import{u as R,_ as M,a as N,__tla as j}from"./useTable-5e3cee6f.js";import{d as D,r as F,k as I,P as q,o as c,c as L,f as o,w as _,a,v as f,q as n,m as h,F as E,n as O,_ as G,B as H,d2 as J,__tla as K}from"./index-2eab2d23.js";import{E as Q,__tla as T}from"./el-image-2171f3ff.js";import{__tla as W}from"./el-image-viewer-5d14bc77.js";import{_ as X,__tla as Y}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as w,_ as Z,__tla as $}from"./SeckillConfigForm.vue_vue_type_script_name_SeckillConfigForm_setup_true_lang-b54f50f1.js";import{b as tt,d as at,e as rt,__tla as _t}from"./seckillConfig-716b9aef.js";import{c as lt,__tla as et}from"./index-d3f876ab.js";import{C as i}from"./constants-40f13f5e.js";import{u as ot,__tla as st}from"./useMessage-171aa63e.js";import{__tla as ct}from"./Form-3e912ee1.js";import{__tla as nt}from"./el-virtual-list-197311ca.js";import{__tla as it}from"./el-tree-select-4ae7c290.js";import{__tla as mt}from"./el-time-select-5c827818.js";import{__tla as ut}from"./InputPassword-37d35f11.js";import{__tla as pt}from"./InputPassword.vue_vue_type_style_index_0_scoped_38c93dba_lang-46e660ed.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ft}from"./style.css_vue_type_style_index_0_src_true_lang-2706eaa9.js";import{__tla as ht}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-4db00aa5.js";import{__tla as yt}from"./UploadImg-90fe71c2.js";import{__tla as dt}from"./UploadImgs-88de5939.js";import{__tla as gt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_0ff04634_lang-20f165d6.js";import{__tla as kt}from"./UploadFile-09195073.js";import{__tla as Pt}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-df9c704a.js";import{__tla as St}from"./fixed-size-list-a23c3278.js";import{__tla as Ct}from"./index-cc63c3c4.js";import{__tla as vt}from"./useForm-a4597643.js";import"./download-20922b56.js";import{__tla as Lt}from"./el-card-c558f0ec.js";import{__tla as Et}from"./Dialog-c2716df6.js";import{__tla as wt}from"./formatTime-41155543.js";import{__tla as bt}from"./formRules-228bd511.js";import{__tla as Ut}from"./dict-1ad71b6f.js";import{__tla as xt}from"./useCrudSchemas-68789bb8.js";import"./tree-fd3a041e.js";import{__tla as At}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import"./color-6e929987.js";let b,zt=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return At}catch{}})()]).then(async()=>{b=D({__name:"index",setup(Bt){const U=ot(),{tableObject:e,tableMethods:y}=R({getListApi:tt,delListApi:at}),{getList:m,setSearchParams:d}=y,g=F(),k=(P,l)=>{g.value.open(P,l)};return I(()=>{m()}),(P,l)=>{const x=G,u=H,A=M,S=X,z=Q,B=J,V=N,p=q("hasPermi");return c(),L(E,null,[o(S,null,{default:_(()=>[o(A,{schema:a(w).searchSchema,onReset:a(d),onSearch:a(d)},{actionMore:_(()=>[f((c(),n(u,{plain:"",type:"primary",onClick:l[0]||(l[0]=t=>k("create"))},{default:_(()=>[o(x,{class:"mr-5px",icon:"ep:plus"}),h(" \u65B0\u589E ")]),_:1})),[[p,["promotion:seckill-config:create"]]])]),_:1},8,["schema","onReset","onSearch"])]),_:1}),o(S,null,{default:_(()=>[o(V,{currentPage:a(e).currentPage,"onUpdate:currentPage":l[1]||(l[1]=t=>a(e).currentPage=t),pageSize:a(e).pageSize,"onUpdate:pageSize":l[2]||(l[2]=t=>a(e).pageSize=t),columns:a(w).tableColumns,data:a(e).tableList,loading:a(e).loading,pagination:{total:a(e).total}},{sliderPicUrls:_(({row:t})=>[(c(!0),L(E,null,O(t.sliderPicUrls,(s,r)=>(c(),n(z,{key:r,src:s,class:"mr-10px h-60px w-60px",onClick:C=>{return v=t.sliderPicUrls,void lt({urlList:v});var v}},null,8,["src","onClick"]))),128))]),status:_(({row:t})=>[o(B,{modelValue:t.status,"onUpdate:modelValue":s=>t.status=s,"active-value":0,"inactive-value":1,onChange:s=>(async r=>{try{const C=r.status===i.ENABLE?"\u542F\u7528":"\u505C\u7528";await U.confirm('\u786E\u8BA4\u8981"'+C+'""'+r.name+"?"),await rt(r.id,r.status),await m()}catch{r.status=r.status===i.ENABLE?i.DISABLE:i.ENABLE}})(t)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),action:_(({row:t})=>[f((c(),n(u,{link:"",type:"primary",onClick:s=>k("update",t.id)},{default:_(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[p,["promotion:seckill-config:update"]]]),f((c(),n(u,{link:"",type:"danger",onClick:s=>{return r=t.id,void y.delList(r,!1);var r}},{default:_(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[p,["promotion:seckill-config:delete"]]])]),_:1},8,["currentPage","pageSize","columns","data","loading","pagination"])]),_:1}),o(Z,{ref_key:"formRef",ref:g,onSuccess:a(m)},null,8,["onSuccess"])],64)}}})});export{zt as __tla,b as default};