mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-29 01:40:16 +00:00
2 lines
5.6 KiB
JavaScript
2 lines
5.6 KiB
JavaScript
import{d as E,r as g,R as h,e as v,f as U,g as n,B as u,u as l,Q as P,v as R,x as i,y as t,A as D}from"./base-06478700.js";/* empty css *//* empty css */import{a as N,E as B}from"./el-form-item-314d006d.js";/* empty css *//* empty css */import{_ as C}from"./index-d312949b.js";import{t as a}from"./index-e5b4f072.js";import{ac as F,ad as L}from"./index-0d58768e.js";import{u as S}from"./vue-router-d09a2c28.js";import{E as j}from"./index-b68e8463.js";import{E as I}from"./index-e10fccde.js";import{E as O}from"./index-c2f001d3.js";import{v as q}from"./directive-cb2d3366.js";import"./index-2fcd1254.js";import"./event-10eba222.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-53d85138.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./attachment-27789be1.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-b52d0f2a.js";import"./index-a0c6fc63.js";import"./index-2a269c7c.js";import"./common-92a35870.js";import"./index-01f6e375.js";import"./validator-6e9db238.js";import"./index-e4abfaa5.js";import"./index-41a974fa.js";import"./index-c17093ae.js";import"./index-543fb162.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";import"./index-b56195b5.js";import"./index-40e21e72.js";import"./isEqual-42d4b10f.js";import"./index-137757c0.js";import"./index-35e821cc.js";import"./index-34d55b7e.js";import"./strings-fe930bc4.js";import"./index-5a0d60aa.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./index-9ee9102c.js";const A={class:"main-container"},Q={class:"flex ml-[18px] justify-between items-center mt-[20px]"},T={class:"text-[20px]"},$={class:"panel-title !text-sm"},z={class:"panel-title !text-sm"},G={class:"fixed-footer-wrap"},H={class:"fixed-footer"},to=E({__name:"copyright",setup(J){const b=S().meta.title,m=g(!0),o=h({icp:"",gov_record:"",gov_url:"",market_supervision_url:"",logo:"",company_name:"",copyright_link:"",copyright_desc:""});(async(c=0)=>{const e=await(await F()).data;Object.keys(o).forEach(d=>{e[d]!=null&&(o[d]=e[d])}),m.value=!1})();const _=g(),y=h({site_name:[{required:!0,message:a("siteNamePlaceholder"),trigger:"blur"}]}),V=async c=>{m.value||!c||await c.validate(async e=>{e&&(m.value=!0,L(o).then(()=>{m.value=!1}).catch(()=>{m.value=!1}))})};return(c,e)=>{const d=C,p=N,s=j,f=I,x=B,w=O,k=q;return v(),U("div",A,[n("div",Q,[n("span",T,u(l(b)),1)]),P((v(),R(x,{model:o,"label-width":"150px",ref_key:"formRef",ref:_,rules:y,class:"page-form"},{default:i(()=>[t(f,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[n("h3",$,u(l(a)("copyrightEdit")),1),t(p,{label:l(a)("logo")},{default:i(()=>[t(d,{modelValue:o.logo,"onUpdate:modelValue":e[0]||(e[0]=r=>o.logo=r)},null,8,["modelValue"])]),_:1},8,["label"]),t(p,{label:l(a)("companyName"),prop:"company_name"},{default:i(()=>[t(s,{modelValue:o.company_name,"onUpdate:modelValue":e[1]||(e[1]=r=>o.company_name=r),placeholder:l(a)("companyNamePlaceholder"),class:"input-width",clearable:"",maxlength:"30"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(p,{label:l(a)("copyrightLink")},{default:i(()=>[t(s,{modelValue:o.copyright_link,"onUpdate:modelValue":e[2]||(e[2]=r=>o.copyright_link=r),placeholder:l(a)("copyrightLinkPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(p,{label:l(a)("copyrightDesc")},{default:i(()=>[t(s,{modelValue:o.copyright_desc,"onUpdate:modelValue":e[3]||(e[3]=r=>o.copyright_desc=r),type:"textarea",rows:"4",clearable:"",placeholder:l(a)("copyrightDescPlaceholder"),class:"input-width",maxlength:"150"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),t(f,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:i(()=>[n("h3",z,u(l(a)("putOnRecordEdit")),1),t(p,{label:l(a)("icp"),prop:"icp"},{default:i(()=>[t(s,{modelValue:o.icp,"onUpdate:modelValue":e[4]||(e[4]=r=>o.icp=r),placeholder:l(a)("icpPlaceholder"),class:"input-width",clearable:"",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(p,{label:l(a)("govRecord")},{default:i(()=>[t(s,{modelValue:o.gov_record,"onUpdate:modelValue":e[5]||(e[5]=r=>o.gov_record=r),placeholder:l(a)("govRecordPlaceholder"),class:"input-width",clearable:"",maxlength:"50"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(p,{label:l(a)("govUrl")},{default:i(()=>[t(s,{modelValue:o.gov_url,"onUpdate:modelValue":e[6]||(e[6]=r=>o.gov_url=r),placeholder:l(a)("govUrlPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(p,{label:l(a)("marketSupervisionUrl")},{default:i(()=>[t(s,{modelValue:o.market_supervision_url,"onUpdate:modelValue":e[7]||(e[7]=r=>o.market_supervision_url=r),rows:"4",clearable:"",placeholder:l(a)("marketSupervisionUrlPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[k,m.value]]),n("div",G,[n("div",H,[t(w,{type:"primary",loading:m.value,onClick:e[8]||(e[8]=r=>V(_.value))},{default:i(()=>[D(u(l(a)("save")),1)]),_:1},8,["loading"])])])])}}});export{to as default};
|