1 |
- import{u as R,_ as M,a as N,__tla as j}from"./useTable-b25a6b48.js";import{d as D,r as F,y as I,S as q,o as c,c as v,i as o,w as _,a,C as f,k as i,l as h,F as E,B as O,_ as X,q as G,cX as H,__tla as J}from"./index-abaca7e8.js";import{E as K,__tla as Q}from"./el-image-56fee7ab.js";import{__tla as T}from"./el-image-viewer-45c4debe.js";import{_ as W,__tla as Y}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9818245e.js";import{a as w,_ as Z,__tla as $}from"./SeckillConfigForm.vue_vue_type_script_name_SeckillConfigForm_setup_true_lang-168fd517.js";import{b as tt,d as at,e as rt,__tla as _t}from"./seckillConfig-3163c067.js";import{c as lt,__tla as et}from"./index-1a54edc6.js";import{C as n}from"./constants-e43f22dd.js";import{u as ot,__tla as st}from"./useMessage-7c79d01b.js";import{__tla as ct}from"./Form-e797f8a0.js";import{__tla as it}from"./el-virtual-list-f7463add.js";import{__tla as nt}from"./el-tree-select-ae8992fc.js";import{__tla as mt}from"./el-time-select-ed1ed327.js";import{__tla as ut}from"./InputPassword-1c07ac5e.js";import{__tla as pt}from"./InputPassword.vue_vue_type_style_index_0_scoped_38c93dba_lang-7594a8a8.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ft}from"./style.css_vue_type_style_index_0_src_true_lang-097712b4.js";import{__tla as ht}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-8933ee1b.js";import{__tla as yt}from"./UploadImg-47ac0338.js";import{__tla as dt}from"./UploadImgs-9d0787c5.js";import{__tla as gt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-787db1dd.js";import{__tla as kt}from"./UploadFile-fbc2d83d.js";import{__tla as St}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-af6b82f0.js";import{__tla as Ct}from"./index-e37a1056.js";import{__tla as Pt}from"./useForm-52169487.js";import"./download-20922b56.js";import{__tla as Lt}from"./el-card-ff5a526a.js";import{__tla as vt}from"./Dialog-a2f7c92a.js";import{__tla as Et}from"./formatTime-0c1ba065.js";import{__tla as wt}from"./formRules-04bbe1b7.js";import{__tla as bt}from"./dict-885a7988.js";import{__tla as Ut}from"./useCrudSchemas-00ad7968.js";import"./tree-fd3a041e.js";import{__tla as xt}from"./DictTag.vue_vue_type_script_lang-c84a7172.js";import"./color-6e929987.js";let b,At=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return T}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 it}catch{}})(),(()=>{try{return nt}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 St}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return xt}catch{}})()]).then(async()=>{b=D({__name:"index",setup(zt){const U=ot(),{tableObject:e,tableMethods:y}=R({getListApi:tt,delListApi:at}),{getList:m,setSearchParams:d}=y,g=F(),k=(S,l)=>{g.value.open(S,l)};return I(()=>{m()}),(S,l)=>{const x=X,u=G,A=M,C=W,z=K,B=H,V=N,p=q("hasPermi");return c(),v(E,null,[o(C,null,{default:_(()=>[o(A,{schema:a(w).searchSchema,onReset:a(d),onSearch:a(d)},{actionMore:_(()=>[f((c(),i(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(C,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),v(E,null,O(t.sliderPicUrls,(s,r)=>(c(),i(z,{key:r,src:s,class:"mr-10px h-60px w-60px",onClick:P=>{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 P=r.status===n.ENABLE?"\u542F\u7528":"\u505C\u7528";await U.confirm('\u786E\u8BA4\u8981"'+P+'""'+r.name+"?"),await rt(r.id,r.status),await m()}catch{r.status=r.status===n.ENABLE?n.DISABLE:n.ENABLE}})(t)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),action:_(({row:t})=>[f((c(),i(u,{link:"",type:"primary",onClick:s=>k("update",t.id)},{default:_(()=>[h(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[p,["promotion:seckill-config:update"]]]),f((c(),i(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{At as __tla,b as default};
|