index-9f0ff545.js 5.0 KB

1
  1. import{u as j,_ as D,a as N,__tla as F}from"./useTable-8fd32e7f.js";import{d as I,r as M,B as H,P as J,o as c,c as L,i as o,w as _,a,C as f,l as i,j as h,F as x,k as O,v as T,J as X,c2 as q,_ as G,__tla as K}from"./index-af173888.js";import{E as Q,__tla as W}from"./el-image-fdde0035.js";import{__tla as Y}from"./el-image-viewer-0d82b94c.js";import{_ as Z,__tla as $}from"./ContentWrap-b959c1be.js";import{a as E,S as tt,__tla as at}from"./SeckillConfigForm-744e36dc.js";import{b as rt,d as _t,e as lt,__tla as et}from"./seckillConfig-ca3be4fb.js";import{c as ot,__tla as st}from"./index-4db4ba8b.js";import{C as n}from"./constants-a3c69b57.js";import{u as ct,__tla as it}from"./useMessage-170c1b43.js";import{__tla as nt}from"./Form-1c876ba3.js";import{__tla as mt}from"./el-virtual-list-de299d42.js";import{__tla as ut}from"./el-tree-select-cd58540b.js";import{__tla as pt}from"./el-time-select-6302a345.js";import{__tla as ft}from"./InputPassword-dc4d37fb.js";import{__tla as ht}from"./Editor-c9f3a63b.js";import{__tla as yt}from"./UploadImg-adf73e38.js";import{__tla as dt}from"./UploadImgs-8cdc0566.js";import{__tla as gt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-9154d28f.js";import{__tla as kt}from"./UploadFile-be0ca317.js";import{__tla as Ct}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-d9f75960.js";import{__tla as St}from"./index-54b8f773.js";import{__tla as vt}from"./useForm-b52f5b9f.js";import"./download-20922b56.js";import{__tla as Pt}from"./el-card-178b9654.js";import{__tla as wt}from"./Dialog-987c90a1.js";import{__tla as Lt}from"./formatTime-8a6f6c49.js";import{__tla as xt}from"./formRules-515a78c5.js";import{__tla as Et}from"./dict-093d1dfa.js";import{__tla as Ut}from"./useCrudSchemas-e2a05839.js";import"./tree-02f455f9.js";import{__tla as bt}from"./DictTag-4a35e2b7.js";import"./color-6e929987.js";let U,zt=Promise.all([(()=>{try{return F}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return W}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 Ct}catch{}})(),(()=>{try{return St}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 Ut}catch{}})(),(()=>{try{return bt}catch{}})()]).then(async()=>{let y;y=I({__name:"index",setup(At){const b=ct(),{tableObject:e,tableMethods:d}=j({getListApi:rt,delListApi:_t}),{getList:m,setSearchParams:g}=d,k=M(),C=(S,l)=>{k.value.open(S,l)};return H(()=>{m()}),(S,l)=>{const z=T,u=X,A=D,v=Z,B=Q,R=q,V=N,p=J("hasPermi");return c(),L(x,null,[o(v,null,{default:_(()=>[o(A,{schema:a(E).searchSchema,onReset:a(g),onSearch:a(g)},{actionMore:_(()=>[f((c(),i(u,{plain:"",type:"primary",onClick:l[0]||(l[0]=t=>C("create"))},{default:_(()=>[o(z,{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,O(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=>C("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)}}}),U=G(y,[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/promotion/seckill/config/index.vue"]])});export{zt as __tla,U as default};