import{u as e,r as a,b as t,ad as s,c as r,bQ as i,d as l,e as n,h as o,w as d,g as p,j as c,k as u,f as m,n as g,an as f,aO as b,E as h,p as j,q as y}from"./index.286e9b79.js";import{v as _}from"./loading.c49775a6.js";import{E as v}from"./pagination.22bb50f6.js";import"./input.31de1b37.js";/* empty css            */import"./select.297a82d5.js";import{E as z,a as k}from"./table-column.7b4f59a2.js";import"./checkbox.f06171a4.js";import{g as w}from"./http.f588794f.js";import"./isEqual.57d72c4a.js";import"./_initCloneObject.fb8fbaea.js";import"./event.776e7e11.js";import"./index.ed3ed02e.js";import"./index.27150c7e.js";import"./token.34cb8214.js";import"./strings.8c60bfae.js";import"./scroll.a50153b5.js";import"./_baseIteratee.9ead53a1.js";import"./debounce.caafe00b.js";const x={class:"table-wrap"},C={class:"table-box"},E={class:"tabs-content"},q=o("span",{style:{"font-size":"14px","margin-left":"5px"}},"暂无数据",-1),I={class:"page"},O=o("div",{class:"l"},null,-1),S={class:"r"},U={__name:"index",setup(U){const D=e(),G=a([]);let P=a(!1),Q=a();const R=t({current:1,size:10,total:0}),T=()=>{P.value=!0,w("addons.sms/index",R).then((e=>{P.value=!1,e.code?(G.value=e.data.list,R.total=e.data.total):h.error(e.msg)})).catch((e=>{P.value=!1,h.error(e)}))};s((()=>{T()}));const W=e=>{R.size=e,R.current=1,T()},A=e=>{R.current=e,T()};return(e,a)=>{const t=r("Warning"),s=j,h=z,w=y,U=k,T=v,B=i("auth"),F=_;return l(),n("div",null,[o("div",x,[o("div",C,[o("div",E,[d((l(),c(U,{ref_key:"GoodsTableRef",ref:Q,data:p(G),size:"large",style:{width:"100%"}},{empty:u((()=>[m(s,{size:"18",style:{position:"relative",top:"4px"}},{default:u((()=>[m(t)])),_:1}),q])),default:u((()=>[m(h,{type:"selection",width:"55"}),m(h,{prop:"scene_id",label:"场景ID","header-align":"center",align:"center",width:"80"}),m(h,{prop:"scene_name",label:"通知场景","header-align":"center",align:"center"}),m(h,{prop:"scene_type",label:"通知类型","header-align":"center",align:"center",width:"100"},{default:u((e=>[1==e.row.scene_type?(l(),c(w,{key:0,type:"success",link:"",size:"small"},{default:u((()=>[g("验证码")])),_:1})):f("",!0),2==e.row.scene_type?(l(),c(w,{key:1,type:"danger",link:"",size:"small"},{default:u((()=>[g("业务通知")])),_:1})):f("",!0)])),_:1}),m(h,{prop:"status",label:"状态","header-align":"center",align:"center",width:"100"},{default:u((e=>[1==e.row.status?(l(),c(w,{key:0,type:"success",link:"",size:"small"},{default:u((()=>[g("正常")])),_:1})):f("",!0),0==e.row.status?(l(),c(w,{key:1,type:"danger",link:"",size:"small"},{default:u((()=>[g("关闭")])),_:1})):f("",!0)])),_:1}),m(h,{label:"操作",fixed:"right","header-align":"center",align:"center",width:"150"},{default:u((e=>[d((l(),c(w,{type:"primary",size:"small",onClick:b((a=>{return t=e.row.id,void D.push({path:"/addons/sms/editor",query:{id:t}});var t}),["prevent"]),link:""},{default:u((()=>[g("编辑")])),_:2},1032,["onClick"])),[[B,"addons.sms/editor"]])])),_:1})])),_:1},8,["data"])),[[F,p(P)]])]),o("div",I,[O,o("div",S,[m(T,{"current-page":p(R).current,"onUpdate:currentPage":a[0]||(a[0]=e=>p(R).current=e),"page-size":p(R).size,"onUpdate:pageSize":a[1]||(a[1]=e=>p(R).size=e),small:!0,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"prev, pager, next, jumper, sizes, total",total:p(R).total,onSizeChange:W,onCurrentChange:A},null,8,["current-page","page-size","total"])])])])])])}}};export{U as default};
