1 |
- import{u as R,_ as j,a as D,__tla as M}from"./useTable-8b826451.js";import{d as N,r as F,z as I,S as q,o as c,c as v,i as o,w as _,a,D as f,j as i,m as h,F as E,C as O,_ as Z,q as G,cZ as H,__tla as J}from"./index-1e808f2e.js";import{E as K,__tla as Q}from"./el-image-263fb014.js";import{__tla as T}from"./el-image-viewer-dddb6285.js";import{_ as W,__tla as X}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{a as w,_ as Y,__tla as $}from"./SeckillConfigForm.vue_vue_type_script_name_SeckillConfigForm_setup_true_lang-9d987d99.js";import{b as tt,d as at,e as rt,__tla as _t}from"./seckillConfig-567c31ab.js";import{c as lt,__tla as et}from"./index-b59955b6.js";import{C as n}from"./constants-e43f22dd.js";import{u as ot,__tla as st}from"./useMessage-5f9e8917.js";import{__tla as ct}from"./Form-18c0747a.js";import{__tla as it}from"./el-virtual-list-c88c2cf8.js";import{__tla as nt}from"./el-tree-select-e8e05888.js";import{__tla as mt}from"./el-time-select-9e66b75c.js";import{__tla as ut}from"./InputPassword-b3d7a3e7.js";import{__tla as pt}from"./InputPassword.vue_vue_type_style_index_0_scoped_38c93dba_lang-ad69fd33.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ft}from"./style.css_vue_type_style_index_0_src_true_lang-507ff6a6.js";import{__tla as ht}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-b3df4382.js";import{__tla as yt}from"./UploadImg-3538b5a5.js";import{__tla as dt}from"./UploadImgs-d9af51cb.js";import{__tla as gt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-531188a2.js";import{__tla as kt}from"./UploadFile-5a50d6dd.js";import{__tla as St}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-d79157f5.js";import{__tla as Ct}from"./index-73afebcf.js";import{__tla as Pt}from"./useForm-66c046ed.js";import"./download-20922b56.js";import{__tla as Lt}from"./el-card-03b3588b.js";import{__tla as vt}from"./Dialog-f44f9d78.js";import{__tla as Et}from"./formatTime-a348c3be.js";import{__tla as wt}from"./formRules-83fad61e.js";import{__tla as bt}from"./dict-a31cb4ba.js";import{__tla as Ut}from"./useCrudSchemas-0ab1b807.js";import"./tree-fd3a041e.js";import{__tla as xt}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import"./color-6e929987.js";let b,zt=Promise.all([(()=>{try{return M}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return X}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=N({__name:"index",setup(At){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=Z,u=G,z=j,C=W,A=K,B=H,V=D,p=q("hasPermi");return c(),v(E,null,[o(C,null,{default:_(()=>[o(z,{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(A,{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(Y,{ref_key:"formRef",ref:g,onSuccess:a(m)},null,8,["onSuccess"])],64)}}})});export{zt as __tla,b as default};
|