import{_ as a,r as e,b as s,d as t,e as o,f as d,h as r,w as l,g as i,j as m,k as p,i as u,n as c,E as f,q as n,t as v,v as y}from"./index.286e9b79.js";import{v as j}from"./loading.c49775a6.js";import{E as b,a as _}from"./form.ad10dcd5.js";import{E as w,a as k}from"./tab-pane.1cc0f769.js";import"./form-item.9355e6dc.js";import{E as g}from"./input.31de1b37.js";import{_ as h}from"./page-header.29890ed0.js";import{g as x,p as V}from"./http.f588794f.js";import"./_initCloneObject.fb8fbaea.js";import"./strings.8c60bfae.js";import"./event.776e7e11.js";import"./index.ed3ed02e.js";import"./divider.948c4b18.js";const E={class:"editor-card"},C={class:"editor-card-box"},U=(a=>(v("data-v-1f1ea490"),a=a(),y(),a))((()=>r("div",{class:"form-item-tips"},"关键字请使用“|”分割",-1))),q={class:"tool"},F={class:"tool-box"},I=a({__name:"keywords",setup(a){let v=e(!1),y=e(!1),I=e("0"),O=e(),R=s({data:{keywords:""}});const z=s({});y.value=!0,x("system.system/keywords").then((a=>{y.value=!1,a.code&&(R.data.keywords=a.data)}));const A=async()=>{O.value&&await O.value.validate(((a,e)=>{y.value=!1,a?(y.value=!0,V("system.system/keywords",R.data).then((a=>{y.value=!1,a.code?f.success("操作成功"):f.error(a.msg)})).catch((a=>{f.error(a)}))):f.error("请完善内容")}))};return(a,e)=>{const s=h,f=g,x=b,V=w,B=k,D=_,G=n,H=j;return t(),o("div",null,[d(s,{title:"搜索设置"}),r("div",E,[l((t(),m(D,{model:i(R).data,rules:i(z),ref_key:"ruleFormRef",ref:O},{default:p((()=>[r("div",C,[d(B,{modelValue:i(I),"onUpdate:modelValue":e[1]||(e[1]=a=>u(I)?I.value=a:I=a)},{default:p((()=>[d(V,{label:"基本信息",name:"0"},{default:p((()=>[d(x,{label:"关键字",prop:"keywords","label-width":"100px"},{default:p((()=>[d(f,{rows:5,type:"textarea",modelValue:i(R).data.keywords,"onUpdate:modelValue":e[0]||(e[0]=a=>i(R).data.keywords=a)},null,8,["modelValue"]),U])),_:1})])),_:1})])),_:1},8,["modelValue"])])])),_:1},8,["model","rules"])),[[H,i(v)]])]),r("div",q,[r("div",F,[d(G,{type:"primary",loading:i(y),onClick:A},{default:p((()=>[c("保存")])),_:1},8,["loading"])])])])}}},[["__scopeId","data-v-1f1ea490"]]);export{I as default};
