niucloud-admin/niucloud/public/admin/assets/copyright-c244718c.js
wangchen147 c0d930bae5 0.0.8
2023-12-09 11:11:53 +08:00

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-2de02574.js";/* empty css *//* empty css */import{a as N,E as B}from"./el-form-item-aacba116.js";/* empty css *//* empty css */import{_ as C}from"./index-9e72c628.js";import{t as a}from"./index-a7cd5616.js";import{a9 as F,aa as L}from"./index-4ca69875.js";import{u as S}from"./vue-router-834a68c8.js";import{E as j}from"./index-f34dc67c.js";import{E as I}from"./index-409cdc90.js";import{E as O}from"./index-84eb3c18.js";import{v as q}from"./directive-ce271fd4.js";import"./index-53431221.js";import"./event-30fa88cc.js";import"./index-29aaa146.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-11e8968f.js";import"./el-overlay-c29a408e.js";import"./index-fa3f6669.js";import"./focus-trap-852901de.js";import"./index-a556d0d2.js";import"./index-53f4bde2.js";import"./attachment-98d5a55e.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-99061637.js";import"./index-78ade149.js";import"./index-389593d1.js";import"./common-655c495e.js";import"./index-652deeae.js";import"./aria-adfa05c5.js";import"./validator-a9a156f1.js";import"./index-9c3282b5.js";import"./index-54d93aac.js";import"./index-6b1f8a1b.js";import"./index-afc66c39.js";import"./index-17e30841.js";import"./debounce-b627eb85.js";import"./position-a4d7d9b3.js";import"./index-56e41120.js";import"./index-7e51d50f.js";import"./isEqual-aeead489.js";import"./index-f6c4798d.js";import"./index-9868687d.js";import"./index-e3e3f033.js";import"./strings-258503d1.js";import"./index-dfcf0976.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-e049ae93.js";import"./el-main-e7ca7755.js";import"./index-907c8fa3.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"},ro=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{ro as default};