WokerTask/public/admin/assets/information.b71634e8.js

2 lines
7.6 KiB
JavaScript

import{_ as w}from"./index.f0c6b824.js";import{B as D,C as v,I as V,D as h,w as x}from"./element-plus.10e48c93.js";import{_ as j}from"./picker.9e3ee151.js";import{a as q,b as U}from"./website.02c7e2d0.js";import{u as k}from"./index.5b774352.js";import{d as g,r as y,$ as O,af as M,o as _,c as P,U as e,L as r,a as i,u as t,M as L,K as G,R as I}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.1f170085.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./index.c406fca1.js";import"./index.vue_vue_type_script_setup_true_lang.579ca8f7.js";import"./index.40544e07.js";import"./index.84506267.js";import"./index.vue_vue_type_script_setup_true_lang.c7e5e9c8.js";import"./usePaging.60d02673.js";import"./vue3-video-play.b911321b.js";import"./vuedraggable.0cb40d3a.js";import"./vue.5de34049.js";import"./sortablejs.ef73fc5c.js";import"./lodash.08438971.js";import"./axios.105476b3.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";const N={class:"website-information"},R=i("div",{class:"text-xl font-medium mb-[20px]"},"\u540E\u53F0\u8BBE\u7F6E",-1),S={class:"w-80"},W=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),K=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),T=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),$=i("div",{class:"text-xl font-medium mb-[20px]"},"\u524D\u53F0\u8BBE\u7F6E",-1),z={class:"w-80"},H=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),J=i("div",{class:"text-xl font-medium mb-[20px]"},"PC\u7AEF\u8BBE\u7F6E",-1),Q=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A120*28px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),X={class:"w-80"},Y=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Z={class:"w-80"},ee={class:"w-80"},ue=g({name:"webInformation"}),Ye=g({...ue,setup(oe){const F=y(),c=k(),u=O({name:"",web_favicon:"",web_logo:"",login_image:"",shop_name:"",shop_logo:"",pc_logo:"",pc_title:"",pc_desc:"",pc_ico:"",pc_keywords:""}),f={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",trigger:["blur"]}],web_favicon:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F51\u7AD9\u56FE\u6807",trigger:["change"]}],web_logo:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F51\u7AD9logo",trigger:["change"]}],login_image:[{required:!0,message:"\u8BF7\u9009\u62E9\u767B\u5F55\u9875\u5E7F\u544A\u56FE",trigger:["change"]}],shop_name:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E97\u94FA/\u5546\u57CE\u540D\u79F0",trigger:["blur"]}],shop_logo:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u57CELOGO",trigger:["change"]}],pc_logo:[{required:!0,message:"\u8BF7\u9009\u62E9PC\u7AEFLOGO",trigger:["change"]}],pc_title:[{required:!0,message:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u6807\u9898",trigger:["blur"]}],pc_ico:[{required:!0,message:"\u8BF7\u9009\u62E9PC\u7AEF\u7F51\u7AD9\u56FE\u6807",trigger:["change"]}]},n=async()=>{const a=await q();for(const o in u)u[o]=a[o]},C=async()=>{var a;await((a=F.value)==null?void 0:a.validate()),await U(u),c.getConfig(),n()};return n(),(a,o)=>{const p=D,s=v,m=j,d=V,A=h,E=x,B=w,b=M("perms");return _(),P("div",N,[e(A,{ref_key:"formRef",ref:F,rules:f,class:"ls-form",model:t(u),"label-width":"120px"},{default:r(()=>[e(d,{shadow:"never",class:"!border-none"},{default:r(()=>[R,e(s,{label:"\u7F51\u7AD9\u540D\u79F0",prop:"name"},{default:r(()=>[i("div",S,[e(p,{modelValue:t(u).name,"onUpdate:modelValue":o[0]||(o[0]=l=>t(u).name=l),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),e(s,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"web_favicon",required:""},{default:r(()=>[i("div",null,[e(m,{modelValue:t(u).web_favicon,"onUpdate:modelValue":o[1]||(o[1]=l=>t(u).web_favicon=l),limit:1},null,8,["modelValue"]),W])]),_:1}),e(s,{label:"\u7F51\u7AD9LOGO",prop:"web_logo",required:""},{default:r(()=>[i("div",null,[e(m,{modelValue:t(u).web_logo,"onUpdate:modelValue":o[2]||(o[2]=l=>t(u).web_logo=l),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),K])]),_:1}),e(s,{label:"\u767B\u5F55\u9875\u5E7F\u544A\u56FE",prop:"login_image",required:""},{default:r(()=>[i("div",null,[e(m,{modelValue:t(u).login_image,"onUpdate:modelValue":o[3]||(o[3]=l=>t(u).login_image=l),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),T])]),_:1})]),_:1}),e(d,{shadow:"never",class:"!border-none mt-4"},{default:r(()=>[$,e(s,{label:"\u524D\u53F0\u540D\u79F0",prop:"shop_name"},{default:r(()=>[i("div",z,[e(p,{modelValue:t(u).shop_name,"onUpdate:modelValue":o[4]||(o[4]=l=>t(u).shop_name=l),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u524D\u53F0\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),e(s,{label:"\u524D\u53F0LOGO",prop:"shop_logo"},{default:r(()=>[i("div",null,[e(m,{modelValue:t(u).shop_logo,"onUpdate:modelValue":o[5]||(o[5]=l=>t(u).shop_logo=l),limit:1},null,8,["modelValue"]),H])]),_:1})]),_:1}),e(d,{shadow:"never",class:"!border-none mt-4"},{default:r(()=>[J,e(s,{label:"PC\u7AEFLOGO",prop:"pc_logo"},{default:r(()=>[i("div",null,[e(m,{modelValue:t(u).pc_logo,"onUpdate:modelValue":o[6]||(o[6]=l=>t(u).pc_logo=l),limit:1},null,8,["modelValue"]),Q])]),_:1}),e(s,{label:"\u7F51\u7AD9\u6807\u9898",prop:"pc_title"},{default:r(()=>[i("div",X,[e(p,{modelValue:t(u).pc_title,"onUpdate:modelValue":o[7]||(o[7]=l=>t(u).pc_title=l),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u6807\u9898",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),e(s,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"pc_ico"},{default:r(()=>[i("div",null,[e(m,{modelValue:t(u).pc_ico,"onUpdate:modelValue":o[8]||(o[8]=l=>t(u).pc_ico=l),limit:1},null,8,["modelValue"]),Y])]),_:1}),e(s,{label:"\u7F51\u7AD9\u63CF\u8FF0",prop:"pc_desc"},{default:r(()=>[i("div",Z,[e(p,{modelValue:t(u).pc_desc,"onUpdate:modelValue":o[9]||(o[9]=l=>t(u).pc_desc=l),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u63CF\u8FF0"},null,8,["modelValue"])])]),_:1}),e(s,{label:"\u7F51\u7AD9\u5173\u952E\u8BCD",prop:"pc_keywords"},{default:r(()=>[i("div",ee,[e(p,{modelValue:t(u).pc_keywords,"onUpdate:modelValue":o[10]||(o[10]=l=>t(u).pc_keywords=l),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u5173\u952E\u8BCD"},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["model"]),L((_(),G(B,null,{default:r(()=>[e(E,{type:"primary",onClick:C},{default:r(()=>[I("\u4FDD\u5B58")]),_:1})]),_:1})),[[b,["setting.web.web_setting/setWebsite"]]])])}}});export{Ye as default};