1 |
- import{d as z,r as i,x as C,o as _,C as m,A as t,f as u,a as l,D as y,k as T,c as j,F as q,R as D,a2 as R,a9 as A,V as J,S as M,U as P,W as Z,J as B,Z as E,_ as G,__tla as H}from"./index-286756b9.js";import{_ as I,__tla as K}from"./Dialog-4c2de357.js";import{a as L,v as N,__tla as O}from"./index-d3341366.js";import{u as Q,__tla as X}from"./useMessage-084b1e70.js";let g,Y=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return X}catch{}})()]).then(async()=>{g=G(z({name:"SystemSensitiveWordTestForm",__name:"SensitiveWordTestForm",setup($,{expose:x}){const f=Q(),r=i(!1),d=i(!1),s=i({text:"",tags:[]}),h=C({text:[{required:!0,message:"\u6D4B\u8BD5\u6587\u672C\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],tags:[{required:!0,message:"\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),n=i(),c=i([]);x({open:async()=>{r.value=!0,b(),c.value=await L()}});const V=async()=>{if(n&&await n.value.validate()){d.value=!0;try{const o=s.value,e=await N(o);if(e.length===0)return void f.success("\u4E0D\u5305\u542B\u654F\u611F\u8BCD\uFF01");f.warning("\u5305\u542B\u654F\u611F\u8BCD\uFF1A"+e.join(", ")),r.value=!1}finally{d.value=!1}}},b=()=>{var o;s.value={text:"",tags:[]},(o=n.value)==null||o.resetFields()};return(o,e)=>{const w=A,p=J,F=M,k=P,S=Z,v=B,W=I,U=E;return _(),m(W,{modelValue:l(r),"onUpdate:modelValue":e[3]||(e[3]=a=>R(r)?r.value=a:null),title:"\u68C0\u6D4B\u654F\u611F\u8BCD"},{footer:t(()=>[u(v,{disabled:l(d),type:"primary",onClick:V},{default:t(()=>[y("\u68C0 \u6D4B")]),_:1},8,["disabled"]),u(v,{onClick:e[2]||(e[2]=a=>r.value=!1)},{default:t(()=>[y("\u53D6 \u6D88")]),_:1})]),default:t(()=>[T((_(),m(S,{ref_key:"formRef",ref:n,model:l(s),rules:l(h),"label-width":"80px"},{default:t(()=>[u(p,{label:"\u6587\u672C",prop:"text"},{default:t(()=>[u(w,{modelValue:l(s).text,"onUpdate:modelValue":e[0]||(e[0]=a=>l(s).text=a),placeholder:"\u8BF7\u8F93\u5165\u6D4B\u8BD5\u6587\u672C",type:"textarea"},null,8,["modelValue"])]),_:1}),u(p,{label:"\u6807\u7B7E",prop:"tags"},{default:t(()=>[u(k,{modelValue:l(s).tags,"onUpdate:modelValue":e[1]||(e[1]=a=>l(s).tags=a),"allow-create":"",filterable:"",multiple:"",placeholder:"\u8BF7\u9009\u62E9\u6807\u7B7E",style:{width:"380px"}},{default:t(()=>[(_(!0),j(q,null,D(l(c),a=>(_(),m(F,{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[U,l(d)]])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/sensitiveWord/SensitiveWordTestForm.vue"]])});export{Y as __tla,g as default};
|