2 lines
4.3 KiB
JavaScript
2 lines
4.3 KiB
JavaScript
import{_ as F}from"./index.db110fa6.js";import{C as U,D,F as k,L as A,w as P}from"./element-plus.73c9e9a6.js";import{T as R,E as N}from"./@wangeditor.645ed083.js";import{M as T}from"./picker.903854da.js";import{z as V}from"./index.bd5cd373.js";import{d as C,s as y,r as x,b as w,C as M,o as b,c as E,U as a,u as t,j as I,a0 as z,ap as L,a as h,L as n,M as O,K as j,R as G,T as H}from"./@vue.663bc523.js";import{c as K,d as S}from"./website.946fbccb.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.4b5afb22.js";import"./@element-plus.8b1118e2.js";import"./dayjs.3f38f327.js";import"./axios.18becb61.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.fa58e261.js";import"./index.fec21d03.js";import"./index.vue_vue_type_script_setup_true_lang.317e431e.js";import"./index.b3eba7ba.js";import"./usePaging.77fa9d39.js";import"./vuedraggable.917b44c2.js";import"./vue.648d3a8e.js";import"./sortablejs.86ceda0b.js";import"./lodash.403d4198.js";import"./vue-router.58fac957.js";import"./pinia.068f0ef2.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.e6143ca6.js";import"./color.d79aa98b.js";import"./clone.a63396d9.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.48cb4095.js";import"./vue-clipboard3.6d09ff6e.js";import"./clipboard.564aa4b9.js";import"./echarts.8485a033.js";import"./zrender.b2f30540.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.85e4ac8b.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=y(),r=y(),s=x("");let m;const p={MENU_CONF:{uploadImage:{customBrowseAndUpload(e){var o;s.value="image",(o=r.value)==null||o.showPopup(-1),m=e}},uploadVideo:{customBrowseAndUpload(e){var o;s.value="video",(o=r.value)==null||o.showPopup(-1),m=e}}}},c=w(()=>({height:V(i.height),width:V(i.width)})),d=w({get(){return i.modelValue},set(e){_("update:modelValue",e)}}),f=e=>{e.forEach(o=>{m(o)})};M(()=>{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:z(t(c))},[a(t(R),{class:"border-b border-br",editor:t(u),defaultConfig:e.toolbarConfig,mode:e.mode},null,8,["editor","defaultConfig","mode"]),a(t(N),{class:"overflow-y-auto flex-1",modelValue:t(d),"onUpdate:modelValue":o[0]||(o[0]=B=>I(d)?d.value=B:null),defaultConfig:p,mode:e.mode,onOnCreated:v},null,8,["modelValue","mode"]),a(T,{ref_key:"materialPickerRef",ref:r,type:t(s),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),Ie=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,r)=>{const s=U,m=D,p=k,c=$,d=A,f=P,v=F,e=L("perms");return b(),E(H,null,[h("div",q,[a(d,{class:"!border-none flex-1 xl:mr-4 mb-4",shadow:"never"},{header:n(()=>[J]),default:n(()=>[a(p,{model:t(l),"label-width":"80px"},{default:n(()=>[a(m,{label:"\u534F\u8BAE\u540D\u79F0"},{default:n(()=>[a(s,{modelValue:t(l).service_title,"onUpdate:modelValue":r[0]||(r[0]=o=>t(l).service_title=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),a(c,{class:"mb-10",modelValue:t(l).service_content,"onUpdate:modelValue":r[1]||(r[1]=o=>t(l).service_content=o),height:"500"},null,8,["modelValue"])]),_:1}),a(d,{class:"!border-none flex-1 mb-4",shadow:"never"},{header:n(()=>[Q]),default:n(()=>[a(p,{model:t(l),"label-width":"80px"},{default:n(()=>[a(m,{label:"\u534F\u8BAE\u540D\u79F0"},{default:n(()=>[a(s,{modelValue:t(l).privacy_title,"onUpdate:modelValue":r[2]||(r[2]=o=>t(l).privacy_title=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),a(c,{class:"mb-10",modelValue:t(l).privacy_content,"onUpdate:modelValue":r[3]||(r[3]=o=>t(l).privacy_content=o),height:"500"},null,8,["modelValue"])]),_:1})]),O((b(),j(v,null,{default:n(()=>[a(f,{type:"primary",onClick:_},{default:n(()=>[G("\u4FDD\u5B58")]),_:1})]),_:1})),[[e,["setting.web.web_setting/setAgreement"]]])],64)}}});export{Ie as default};
|