index-6a9acb2a.js 6.3 KB

1
  1. import{d as L,Q as $,r as n,x as aa,b as ea,a3 as la,o,c as b,f as a,B as l,a as t,a4 as O,F as w,R as V,A as i,E as u,k as y,G as ta,a8 as ra,V as sa,S as oa,U as na,J as ia,_ as ua,K as ca,W as _a,X as pa,av as ma,Y as da,Z as fa,__tla as ya}from"./index-e8bff8cb.js";import{_ as ga,__tla as ha}from"./index.vue_vue_type_script_setup_true_lang-75f84d87.js";import{_ as va,__tla as ba}from"./DictTag.vue_vue_type_script_lang-23f1740b.js";import{_ as wa,__tla as ka}from"./ContentWrap.vue_vue_type_script_setup_true_lang-33dea697.js";import{a as xa,D as R,__tla as Ca}from"./dict-4a54e490.js";import{d as Va,__tla as Sa}from"./formatTime-4fdd5566.js";import{d as Ta}from"./download-20922b56.js";import{a as Ua,b as Ma,d as Na,e as Ya,__tla as Da}from"./index-3d98833f.js";import{_ as za,__tla as Aa}from"./SensitiveWordForm.vue_vue_type_script_setup_true_lang-f6594692.js";import{_ as Fa,__tla as Oa}from"./SensitiveWordTestForm.vue_vue_type_script_setup_true_lang-92dd2767.js";import{u as Ra,__tla as Ha}from"./useMessage-de42a595.js";import{__tla as Ka}from"./index-35928fe5.js";import"./color-6e929987.js";import{__tla as Pa}from"./el-card-f9558d99.js";import{__tla as Wa}from"./Dialog-4d17ac25.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./constants-c811e5ff.js";let H,Qa=Promise.all([(()=>{try{return ya}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Wa}catch{}})()]).then(async()=>{H=L({name:"SystemSensitiveWord",__name:"index",setup(qa){const k=Ra(),{t:K}=$(),x=n(!0),S=n(0),T=n([]),r=aa({pageNo:1,pageSize:10,name:void 0,tag:void 0,status:void 0,createTime:[]}),U=n(),C=n(!1),M=n([]),m=async()=>{x.value=!0;try{const c=await Ma(r);T.value=c.list,S.value=c.total}finally{x.value=!1}},g=()=>{r.pageNo=1,m()},P=()=>{U.value.resetFields(),g()},N=n(),Y=(c,s)=>{N.value.open(c,s)},D=n(),W=()=>{D.value.open()},Q=async()=>{try{await k.exportConfirm(),C.value=!0;const c=await Ya(r);Ta.excel(c,"\u654F\u611F\u8BCD.xls")}catch{}finally{C.value=!1}};return ea(async()=>{await m(),M.value=await Ua()}),(c,s)=>{const q=ra,d=sa,z=oa,A=na,B=ia,f=ua,_=ca,E=_a,F=wa,p=pa,G=va,J=ma,X=da,Z=ga,h=la("hasPermi"),j=fa;return o(),b(w,null,[a(F,null,{default:l(()=>[a(E,{ref_key:"queryFormRef",ref:U,inline:!0,model:t(r),class:"-mb-15px","label-width":"68px"},{default:l(()=>[a(d,{label:"\u654F\u611F\u8BCD",prop:"name"},{default:l(()=>[a(q,{modelValue:t(r).name,"onUpdate:modelValue":s[0]||(s[0]=e=>t(r).name=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u654F\u611F\u8BCD",onKeyup:O(g,["enter"])},null,8,["modelValue"])]),_:1}),a(d,{label:"\u6807\u7B7E",prop:"tag"},{default:l(()=>[a(A,{modelValue:t(r).tag,"onUpdate:modelValue":s[1]||(s[1]=e=>t(r).tag=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6807\u7B7E",onKeyup:O(g,["enter"])},{default:l(()=>[(o(!0),b(w,null,V(t(M),e=>(o(),i(z,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[a(A,{modelValue:t(r).status,"onUpdate:modelValue":s[2]||(s[2]=e=>t(r).status=e),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u542F\u7528\u72B6\u6001"},{default:l(()=>[(o(!0),b(w,null,V(t(xa)(t(R).COMMON_STATUS),e=>(o(),i(z,{key:e.value,label:e.label,value:e.value,class:"!w-240px"},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a(B,{modelValue:t(r).createTime,"onUpdate:modelValue":s[3]||(s[3]=e=>t(r).createTime=e),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px","end-placeholder":"\u7ED3\u675F\u65E5\u671F","start-placeholder":"\u5F00\u59CB\u65E5\u671F",type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","default-time"])]),_:1}),a(d,null,{default:l(()=>[a(_,{onClick:g},{default:l(()=>[a(f,{class:"mr-5px",icon:"ep:search"}),u(" \u641C\u7D22 ")]),_:1}),a(_,{onClick:P},{default:l(()=>[a(f,{class:"mr-5px",icon:"ep:refresh"}),u(" \u91CD\u7F6E ")]),_:1}),y((o(),i(_,{plain:"",type:"primary",onClick:s[4]||(s[4]=e=>Y("create"))},{default:l(()=>[a(f,{class:"mr-5px",icon:"ep:plus"}),u(" \u65B0\u589E ")]),_:1})),[[h,["system:sensitive-word:create"]]]),y((o(),i(_,{loading:t(C),plain:"",type:"success",onClick:Q},{default:l(()=>[a(f,{class:"mr-5px",icon:"ep:download"}),u(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["system:sensitive-word:export"]]]),a(_,{plain:"",type:"warning",onClick:W},{default:l(()=>[a(f,{class:"mr-5px",icon:"ep:document-checked"}),u(" \u6D4B\u8BD5 ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(F,null,{default:l(()=>[y((o(),i(X,{data:t(T)},{default:l(()=>[a(p,{align:"center",label:"\u7F16\u53F7",prop:"id"}),a(p,{align:"center",label:"\u654F\u611F\u8BCD",prop:"name"}),a(p,{align:"center",label:"\u72B6\u6001",prop:"status"},{default:l(e=>[a(G,{type:t(R).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(p,{align:"center",label:"\u63CF\u8FF0",prop:"description"}),a(p,{align:"center",label:"\u6807\u7B7E",prop:"tags"},{default:l(e=>[(o(!0),b(w,null,V(e.row.tags,v=>(o(),i(J,{key:v,"disable-transitions":!0,class:"mr-5px"},{default:l(()=>[u(ta(v),1)]),_:2},1024))),128))]),_:1}),a(p,{formatter:t(Va),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),a(p,{align:"center",label:"\u64CD\u4F5C"},{default:l(e=>[y((o(),i(_,{link:"",type:"primary",onClick:v=>Y("update",e.row.id)},{default:l(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["infra:config:update"]]]),y((o(),i(_,{link:"",type:"danger",onClick:v=>(async I=>{try{await k.delConfirm(),await Na(I),k.success(K("common.delSuccess")),await m()}catch{}})(e.row.id)},{default:l(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["infra:config:delete"]]])]),_:1})]),_:1},8,["data"])),[[j,t(x)]]),a(Z,{limit:t(r).pageSize,"onUpdate:limit":s[5]||(s[5]=e=>t(r).pageSize=e),page:t(r).pageNo,"onUpdate:page":s[6]||(s[6]=e=>t(r).pageNo=e),total:t(S),onPagination:m},null,8,["limit","page","total"])]),_:1}),a(za,{ref_key:"formRef",ref:N,onSuccess:m},null,512),a(Fa,{ref_key:"testFormRef",ref:D},null,512)],64)}}})});export{Qa as __tla,H as default};