mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-06 04:58:10 +00:00
2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as E}from"./index-f4731ae1.js";import{t as l}from"./index-105fbad0.js";import{G as U,H as P}from"./sys-4abedf95.js";import{u as D}from"./vue-router-79053937.js";import{a as N,E as R}from"./index-61c777fa.js";import{E as C}from"./index-93f2c618.js";import{E as B}from"./index-69523418.js";import{E as F}from"./index-bba9e58c.js";import{v as L}from"./directive-c0c3e9a3.js";import{d as S,r as h,M as g,b as v,e as j,f as n,x as u,u as t,L as q,m as I,p as i,q as a,v as O}from"./runtime-core.esm-bundler-dc7a07d7.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-d0d31f1b.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";import"./attachment-56217309.js";/* empty css *//* empty css *//* empty css */import"./index-7525671c.js";import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-tooltip-58212670.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-cc03da8f.js";import"./index-50a00d09.js";import"./index-a9dd5cf5.js";import"./index-190f0dba.js";import"./index-9f244af6.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./_Uint8Array-6ff3cafa.js";import"./flatten-d5d1dc97.js";import"./index-100b1469.js";import"./index-b933df38.js";import"./index-4f5c40a5.js";import"./strings-4868a118.js";import"./common-080b9b9f.js";import"./common-2cf17469.js";import"./_initCloneObject-28e6bdaa.js";const G={class:"main-container"},H={class:"flex ml-[18px] justify-between items-center mt-[20px]"},M={class:"text-[24px]"},T={class:"panel-title !text-sm"},$={class:"panel-title !text-sm"},z={class:"fixed-footer-wrap"},A={class:"fixed-footer"},Ye=S({__name:"copyright",setup(J){const b=D().meta.title,m=h(!0),o=g({icp:"",gov_record:"",gov_url:"",market_supervision_url:"",logo:"",company_name:"",copyright_link:"",copyright_desc:""});(async(c=0)=>{const e=await(await U()).data;Object.keys(o).forEach(d=>{e[d]!=null&&(o[d]=e[d])}),m.value=!1})();const _=h(),y=g({site_name:[{required:!0,message:l("siteNamePlaceholder"),trigger:"blur"}]}),V=async c=>{m.value||!c||await c.validate(async e=>{e&&(m.value=!0,P(o).then(()=>{m.value=!1}).catch(()=>{m.value=!1}))})};return(c,e)=>{const d=E,p=N,s=C,f=B,x=R,w=F,k=L;return v(),j("div",G,[n("div",H,[n("span",M,u(t(b)),1)]),q((v(),I(x,{model:o,"label-width":"150px",ref_key:"formRef",ref:_,rules:y,class:"page-form"},{default:i(()=>[a(f,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[n("h3",T,u(t(l)("copyrightEdit")),1),a(p,{label:t(l)("logo")},{default:i(()=>[a(d,{modelValue:o.logo,"onUpdate:modelValue":e[0]||(e[0]=r=>o.logo=r)},null,8,["modelValue"])]),_:1},8,["label"]),a(p,{label:t(l)("companyName"),prop:"company_name"},{default:i(()=>[a(s,{modelValue:o.company_name,"onUpdate:modelValue":e[1]||(e[1]=r=>o.company_name=r),placeholder:t(l)("companyNamePlaceholder"),class:"input-width",clearable:"",maxlength:"30"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(p,{label:t(l)("copyrightLink")},{default:i(()=>[a(s,{modelValue:o.copyright_link,"onUpdate:modelValue":e[2]||(e[2]=r=>o.copyright_link=r),placeholder:t(l)("copyrightLinkPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(p,{label:t(l)("copyrightDesc")},{default:i(()=>[a(s,{modelValue:o.copyright_desc,"onUpdate:modelValue":e[3]||(e[3]=r=>o.copyright_desc=r),type:"textarea",rows:"4",clearable:"",placeholder:t(l)("copyrightDescPlaceholder"),class:"input-width",maxlength:"150"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),a(f,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:i(()=>[n("h3",$,u(t(l)("putOnRecordEdit")),1),a(p,{label:t(l)("icp"),prop:"icp"},{default:i(()=>[a(s,{modelValue:o.icp,"onUpdate:modelValue":e[4]||(e[4]=r=>o.icp=r),placeholder:t(l)("icpPlaceholder"),class:"input-width",clearable:"",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(p,{label:t(l)("govRecord")},{default:i(()=>[a(s,{modelValue:o.gov_record,"onUpdate:modelValue":e[5]||(e[5]=r=>o.gov_record=r),placeholder:t(l)("govRecordPlaceholder"),class:"input-width",clearable:"",maxlength:"50"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(p,{label:t(l)("govUrl")},{default:i(()=>[a(s,{modelValue:o.gov_url,"onUpdate:modelValue":e[6]||(e[6]=r=>o.gov_url=r),placeholder:t(l)("govUrlPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(p,{label:t(l)("marketSupervisionUrl")},{default:i(()=>[a(s,{modelValue:o.market_supervision_url,"onUpdate:modelValue":e[7]||(e[7]=r=>o.market_supervision_url=r),rows:"4",clearable:"",placeholder:t(l)("marketSupervisionUrlPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[k,m.value]]),n("div",z,[n("div",A,[a(w,{type:"primary",loading:m.value,onClick:e[8]||(e[8]=r=>V(_.value))},{default:i(()=>[O(u(t(l)("save")),1)]),_:1},8,["loading"])])])])}}});export{Ye as default};
|