1 |
- import{u as R,_ as D,a as N,__tla as j}from"./useTable-309e73a4.js";import{d as F,r as I,b as M,a3 as J,o as c,c as v,f as o,A as _,a,k as f,C as n,D as h,F as E,Q as O,_ as Q,J as T,cC as q,__tla as G}from"./index-1f518666.js";import{E as H,__tla as K}from"./el-image-1ae80d1a.js";import{__tla as W}from"./el-image-viewer-91778fd6.js";import{_ as X,__tla as Y}from"./ContentWrap.vue_vue_type_script_setup_true_lang-a4de6de9.js";import{a as b,_ as Z,__tla as $}from"./SeckillConfigForm.vue_vue_type_script_name_SeckillConfigForm_setup_true_lang-d2c04608.js";import{b as tt,d as at,e as rt,__tla as _t}from"./seckillConfig-901042ef.js";import{c as lt,__tla as et}from"./index-32463859.js";import{C as i}from"./constants-c811e5ff.js";import{u as ot,__tla as st}from"./useMessage-633c11d2.js";import{__tla as ct}from"./Form-7f57868f.js";import{__tla as nt}from"./el-virtual-list-2d1fef5d.js";import{__tla as it}from"./el-tree-select-fc145135.js";import{__tla as mt}from"./el-time-select-873ba52b.js";import{__tla as ut}from"./InputPassword-a5c79952.js";import{__tla as pt}from"./InputPassword.vue_vue_type_style_index_0_scoped_38c93dba_lang-c46d3c28.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ft}from"./style.css_vue_type_style_index_0_src_true_lang-4c80b346.js";import{__tla as ht}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-f02ca529.js";import{__tla as yt}from"./UploadImg-832a2277.js";import{__tla as dt}from"./UploadImgs-cff47360.js";import{__tla as gt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-c1ca9484.js";import{__tla as kt}from"./UploadFile-85a5c4e2.js";import{__tla as Ct}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-d48dad9e.js";import{__tla as Pt}from"./index-a37b14c7.js";import{__tla as St}from"./useForm-6df02e07.js";import"./download-20922b56.js";import{__tla as Lt}from"./el-card-955661ed.js";import{__tla as vt}from"./Dialog-4c960d8c.js";import{__tla as Et}from"./formatTime-a4909bb5.js";import{__tla as bt}from"./formRules-c96b6a75.js";import{__tla as wt}from"./dict-167d9193.js";import{__tla as At}from"./useCrudSchemas-c735f1e7.js";import"./tree-0af4953a.js";import{__tla as Ut}from"./DictTag.vue_vue_type_script_lang-8a012661.js";import"./color-6e929987.js";let w,xt=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return K}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 Ct}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Ut}catch{}})()]).then(async()=>{w=F({__name:"index",setup(zt){const A=ot(),{tableObject:e,tableMethods:y}=R({getListApi:tt,delListApi:at}),{getList:m,setSearchParams:d}=y,g=I(),k=(C,l)=>{g.value.open(C,l)};return M(()=>{m()}),(C,l)=>{const U=Q,u=T,x=D,P=X,z=H,B=q,V=N,p=J("hasPermi");return c(),v(E,null,[o(P,null,{default:_(()=>[o(x,{schema:a(b).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(U,{class:"mr-5px",icon:"ep:plus"}),h(" \u65B0\u589E ")]),_:1})),[[p,["promotion:seckill-config:create"]]])]),_:1},8,["schema","onReset","onSearch"])]),_:1}),o(P,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(b).tableColumns,data:a(e).tableList,loading:a(e).loading,pagination:{total:a(e).total}},{sliderPicUrls:_(({row:t})=>[(c(!0),v(E,null,O(t.sliderPicUrls,(s,r)=>(c(),n(z,{key:r,src:s,class:"mr-10px h-60px w-60px",onClick:S=>{return L=t.sliderPicUrls,void lt({urlList:L});var L}},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 S=r.status===i.ENABLE?"\u542F\u7528":"\u505C\u7528";await A.confirm('\u786E\u8BA4\u8981"'+S+'""'+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{xt as __tla,w as default};
|