import{_ as e,r as l,b as a,cK as o,d,e as r,f as s,h as p,w as t,g as i,j as u,k as c,i as m,n,E as v,q as f}from"./index.286e9b79.js";import{v as _}from"./loading.c49775a6.js";import{E as y,a as b}from"./form.ad10dcd5.js";import{E as V,a as g}from"./tab-pane.1cc0f769.js";import"./form-item.9355e6dc.js";import{E as h}from"./input.31de1b37.js";import{_ as j}from"./page-header.29890ed0.js";import{g as x,p as k}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 w={class:"editor-card"},U={class:"editor-card-box"},C={class:"tool"},E={class:"tool-box"},I=e({__name:"copy",setup(e){let I=l(!1),P=l(!1),q=l("0"),F=l(),K=a({copy:{icp:"",operate:"",gov_record:"",gov_link:"",supervision_url:""}});const O=a({});P.value=!0,x("system.system/copy").then((e=>{P.value=!1,e.code&&!o(e.data)&&(K.copy=e.data)}));const R=async()=>{F.value&&await F.value.validate(((e,l)=>{P.value=!1,e?(P.value=!0,k("system.system/copy",K).then((e=>{P.value=!1,e.code?v.success("操作成功"):v.error(e.msg)})).catch((e=>{v.error(e)}))):v.error("请完善内容")}))};return(e,l)=>{const a=j,o=h,v=y,x=V,k=g,z=b,A=f,B=_;return d(),r("div",null,[s(a,{title:"版权设置"}),p("div",w,[t((d(),u(z,{model:i(K).copy,rules:i(O),ref_key:"ruleFormRef",ref:F},{default:c((()=>[p("div",U,[s(k,{modelValue:i(q),"onUpdate:modelValue":l[5]||(l[5]=e=>m(q)?q.value=e:q=e)},{default:c((()=>[s(x,{label:"基本信息",name:"0"},{default:c((()=>[s(v,{label:"ICP备案号",prop:"icp","label-width":"100px"},{default:c((()=>[s(o,{modelValue:i(K).copy.icp,"onUpdate:modelValue":l[0]||(l[0]=e=>i(K).copy.icp=e),placeholder:"请输入ICP备案号"},null,8,["modelValue"])])),_:1}),s(v,{label:"经营备案",prop:"operate","label-width":"100px"},{default:c((()=>[s(o,{modelValue:i(K).copy.operate,"onUpdate:modelValue":l[1]||(l[1]=e=>i(K).copy.operate=e),placeholder:"请输入经营备案"},null,8,["modelValue"])])),_:1}),s(v,{label:"公安备案",prop:"gov_record","label-width":"100px"},{default:c((()=>[s(o,{modelValue:i(K).copy.gov_record,"onUpdate:modelValue":l[2]||(l[2]=e=>i(K).copy.gov_record=e),placeholder:"请输入公安备案"},null,8,["modelValue"])])),_:1}),s(v,{label:"公安链接",prop:"gov_link","label-width":"100px"},{default:c((()=>[s(o,{modelValue:i(K).copy.gov_link,"onUpdate:modelValue":l[3]||(l[3]=e=>i(K).copy.gov_link=e),placeholder:"请输入公安链接"},null,8,["modelValue"])])),_:1}),s(v,{label:"监督管理局",prop:"supervision_url","label-width":"100px"},{default:c((()=>[s(o,{modelValue:i(K).copy.supervision_url,"onUpdate:modelValue":l[4]||(l[4]=e=>i(K).copy.supervision_url=e),placeholder:"请输入监督管理局"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1},8,["modelValue"])])])),_:1},8,["model","rules"])),[[B,i(I)]])]),p("div",C,[p("div",E,[s(A,{type:"primary",loading:i(P),onClick:R},{default:c((()=>[n("保存")])),_:1},8,["loading"])])])])}}},[["__scopeId","data-v-72eb3451"]]);export{I as default};
