moreShopAdmin/build/admin/assets/protocol.40daf6f3.js

2 lines
4.5 KiB
JavaScript

import{_ as F}from"./index.593d2549.js";import{C as U,D,F as A,L as k,w as P}from"./element-plus.7e347b00.js";import{T as R,E as N}from"./@wangeditor.fb055fd4.js";import{_ as T}from"./picker.33651cdf.js";import{w as V}from"./index.e8dd0072.js";import{d as C,s as w,r as x,b as y,C as I,o as b,c as E,U as r,u as t,j as L,a0 as M,ap as O,a as h,L as n,M as j,K as z,R as G,T as H}from"./@vue.18505fe0.js";import{c as K,d as S}from"./website.85bebba8.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.6f70f589.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.6ed59064.js";import"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import"./index.725f1116.js";import"./usePaging.6a6670f9.js";import"./vuedraggable.c5026861.js";import"./vue.1715f83d.js";import"./sortablejs.c62bcaf8.js";import"./lodash.4e6d2a38.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const $=C({__name:"index",props:{modelValue:{default:""},mode:{default:"default"},height:{default:"100%"},width:{default:"auto"},toolbarConfig:{default:()=>({})}},emits:["update:modelValue"],setup(g,{emit:l}){const i=g,_=l,u=w(),a=w(),m=x("");let s;const p={MENU_CONF:{uploadImage:{customBrowseAndUpload(e){var o;m.value="image",(o=a.value)==null||o.showPopup(-1),s=e}},uploadVideo:{customBrowseAndUpload(e){var o;m.value="video",(o=a.value)==null||o.showPopup(-1),s=e}}}},c=y(()=>({height:V(i.height),width:V(i.width)})),d=y({get(){return i.modelValue},set(e){_("update:modelValue",e)}}),f=e=>{e.forEach(o=>{s(o)})};I(()=>{const e=u.value;e!=null&&e.destroy()});const v=e=>{u.value=e};return(e,o)=>(b(),E("div",{class:"border border-br flex flex-col",style:M(t(c))},[r(t(R),{class:"border-b border-br",editor:t(u),defaultConfig:e.toolbarConfig,mode:e.mode},null,8,["editor","defaultConfig","mode"]),r(t(N),{class:"overflow-y-auto flex-1",modelValue:t(d),"onUpdate:modelValue":o[0]||(o[0]=B=>L(d)?d.value=B:null),defaultConfig:p,mode:e.mode,onOnCreated:v},null,8,["modelValue","mode"]),r(T,{ref_key:"materialPickerRef",ref:a,type:t(m),limit:-1,"hidden-upload":"",onChange:f},null,8,["type"])],4))}});const q={class:"xl:flex"},J=h("span",{class:"font-medium"},"\u670D\u52A1\u534F\u8BAE",-1),Q=h("span",{class:"font-medium"},"\u9690\u79C1\u534F\u8BAE",-1),He=C({__name:"protocol",setup(g){const l=x({service_title:"",service_content:"",privacy_title:"",privacy_content:""}),i=async()=>{l.value=await K()},_=async()=>{await S({...l.value}),i()};return i(),(u,a)=>{const m=U,s=D,p=A,c=$,d=k,f=P,v=F,e=O("perms");return b(),E(H,null,[h("div",q,[r(d,{class:"!border-none flex-1 xl:mr-4 mb-4",shadow:"never"},{header:n(()=>[J]),default:n(()=>[r(p,{model:t(l),"label-width":"80px"},{default:n(()=>[r(s,{label:"\u534F\u8BAE\u540D\u79F0"},{default:n(()=>[r(m,{modelValue:t(l).service_title,"onUpdate:modelValue":a[0]||(a[0]=o=>t(l).service_title=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),r(c,{class:"mb-10",modelValue:t(l).service_content,"onUpdate:modelValue":a[1]||(a[1]=o=>t(l).service_content=o),height:"500"},null,8,["modelValue"])]),_:1}),r(d,{class:"!border-none flex-1 mb-4",shadow:"never"},{header:n(()=>[Q]),default:n(()=>[r(p,{model:t(l),"label-width":"80px"},{default:n(()=>[r(s,{label:"\u534F\u8BAE\u540D\u79F0"},{default:n(()=>[r(m,{modelValue:t(l).privacy_title,"onUpdate:modelValue":a[2]||(a[2]=o=>t(l).privacy_title=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),r(c,{class:"mb-10",modelValue:t(l).privacy_content,"onUpdate:modelValue":a[3]||(a[3]=o=>t(l).privacy_content=o),height:"500"},null,8,["modelValue"])]),_:1})]),j((b(),z(v,null,{default:n(()=>[r(f,{type:"primary",onClick:_},{default:n(()=>[G("\u4FDD\u5B58")]),_:1})]),_:1})),[[e,["setting.web.web_setting/setAgreement"]]])],64)}}});export{He as default};