index-5e1f17b6.js 5.2 KB

1
  1. import{u as D,_ as I,a as M,__tla as N}from"./useTable-21d5d3f6.js";import{d as j,r as F,b as J,a4 as O,o as c,c as L,f as o,A as _,a,k as f,C as i,D as h,F as x,R as Q,Q as q,J as G,cJ as H,_ as K,__tla as T}from"./index-286756b9.js";import{E as W,__tla as X}from"./el-image-73c105b7.js";import{__tla as Y}from"./el-image-viewer-e0e5d3be.js";import{_ as Z,__tla as $}from"./ContentWrap-83998678.js";import{a as E,S as tt,__tla as at}from"./SeckillConfigForm-721c37f2.js";import{b as rt,d as _t,e as lt,__tla as et}from"./seckillConfig-d8718805.js";import{c as ot,__tla as st}from"./index-5a40c383.js";import{C as n}from"./constants-637baed6.js";import{u as ct,__tla as it}from"./useMessage-084b1e70.js";import{__tla as nt}from"./Form-75bb2af4.js";import{__tla as mt}from"./el-virtual-list-76825854.js";import{__tla as ut}from"./el-tree-select-7a83bfa8.js";import{__tla as pt}from"./el-time-select-7234e78f.js";import{__tla as ft}from"./InputPassword-57bce014.js";import{__tla as ht}from"./InputPassword.vue_vue_type_style_index_0_scoped_3f07eb1d_lang-058d317a.js";import{__tla as yt}from"./Editor-514f76f8.js";import{__tla as dt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-6643271d.js";import{__tla as gt}from"./UploadImg-d2713eac.js";import{__tla as kt}from"./UploadImgs-b8116d2f.js";import{__tla as St}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-a65d467a.js";import{__tla as Ct}from"./UploadFile-e148930d.js";import{__tla as vt}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-3e346ba0.js";import{__tla as Pt}from"./index-fb47c94c.js";import{__tla as wt}from"./useForm-2c8a5436.js";import"./download-20922b56.js";import{__tla as Lt}from"./el-card-d3d5a654.js";import{__tla as xt}from"./Dialog-4c2de357.js";import{__tla as Et}from"./formatTime-83e416ef.js";import{__tla as zt}from"./formRules-b40a428a.js";import{__tla as bt}from"./dict-82dca549.js";import{__tla as At}from"./useCrudSchemas-2fd8541b.js";import"./tree-0af4953a.js";import{__tla as Ut}from"./DictTag-f72b04ca.js";import"./color-6e929987.js";let z,Bt=Promise.all([(()=>{try{return N}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return st}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 vt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Ut}catch{}})()]).then(async()=>{let y;y=j({__name:"index",setup(Rt){const b=ct(),{tableObject:e,tableMethods:d}=D({getListApi:rt,delListApi:_t}),{getList:m,setSearchParams:g}=d,k=F(),S=(C,l)=>{k.value.open(C,l)};return J(()=>{m()}),(C,l)=>{const A=q,u=G,U=I,v=Z,B=W,R=H,V=M,p=O("hasPermi");return c(),L(x,null,[o(v,null,{default:_(()=>[o(U,{schema:a(E).searchSchema,onReset:a(g),onSearch:a(g)},{actionMore:_(()=>[f((c(),i(u,{plain:"",type:"primary",onClick:l[0]||(l[0]=t=>S("create"))},{default:_(()=>[o(A,{class:"mr-5px",icon:"ep:plus"}),h(" \u65B0\u589E ")]),_:1})),[[p,["promotion:seckill-config:create"]]])]),_:1},8,["schema","onReset","onSearch"])]),_:1}),o(v,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(E).tableColumns,data:a(e).tableList,loading:a(e).loading,pagination:{total:a(e).total}},{sliderPicUrls:_(({row:t})=>[(c(!0),L(x,null,Q(t.sliderPicUrls,(s,r)=>(c(),i(B,{key:r,src:s,class:"mr-10px h-60px w-60px",onClick:P=>{return w=t.sliderPicUrls,void ot({urlList:w});var w}},null,8,["src","onClick"]))),128))]),status:_(({row:t})=>[o(R,{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 b.confirm('\u786E\u8BA4\u8981"'+P+'""'+r.name+"?"),await lt(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=>S("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 d.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(tt,{ref_key:"formRef",ref:k,onSuccess:a(m)},null,8,["onSuccess"])],64)}}}),z=K(y,[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/promotion/seckill/config/index.vue"]])});export{Bt as __tla,z as default};