ERP-admin/build/admin/assets/protocol.b8a28235.js

2 lines
5.0 KiB
JavaScript

import{_ as F}from"./index.f4793e80.js";import{C as U,D,F as k,T as A,w as P}from"./element-plus.681b9893.js";import{T as N,E as R}from"./@wangeditor.fb055fd4.js";import{M as T}from"./picker.e5caaa2a.js";import{N as V}from"./index.0c8416f0.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 l,u as t,j as I,a0 as O,ap as j,a as h,L as i,M as z,K as G,R as H,T as K}from"./@vue.18505fe0.js";import{c as L,d as S}from"./website.9b680007.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.a7179cc9.js";import"./index.aa6e526e.js";import"./index.vue_vue_type_script_setup_true_lang.58d80c54.js";import"./index.e954b8f4.js";import"./usePaging.6a6670f9.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";import"./lodash.466e9fe4.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.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"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.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:r}){const m=g,_=r,d=y(),a=y(),n=x("");let s;const u={MENU_CONF:{uploadImage:{customBrowseAndUpload(e){var o;n.value="image",(o=a.value)==null||o.showPopup(-1),s=e}},uploadVideo:{customBrowseAndUpload(e){var o;n.value="video",(o=a.value)==null||o.showPopup(-1),s=e}}}},c=w(()=>({height:V(m.height),width:V(m.width)})),p=w({get(){return m.modelValue},set(e){_("update:modelValue",e)}}),f=e=>{e.forEach(o=>{s(o)})};M(()=>{const e=d.value;e!=null&&e.destroy()});const v=e=>{d.value=e};return(e,o)=>(b(),E("div",{class:"border border-br flex flex-col",style:O(t(c))},[l(t(N),{class:"border-b border-br",editor:t(d),defaultConfig:e.toolbarConfig,mode:e.mode},null,8,["editor","defaultConfig","mode"]),l(t(R),{class:"overflow-y-auto flex-1",modelValue:t(p),"onUpdate:modelValue":o[0]||(o[0]=B=>I(p)?p.value=B:null),defaultConfig:u,mode:e.mode,onOnCreated:v},null,8,["modelValue","mode"]),l(T,{ref_key:"materialPickerRef",ref:a,type:t(n),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),ao=C({__name:"protocol",setup(g){const r=x({service_title:"",service_content:"",privacy_title:"",privacy_content:""}),m=async()=>{r.value=await L()},_=async()=>{await S({...r.value}),m()};return m(),(d,a)=>{const n=U,s=D,u=k,c=$,p=A,f=P,v=F,e=j("perms");return b(),E(K,null,[h("div",q,[l(p,{class:"!border-none flex-1 xl:mr-4 mb-4",shadow:"never"},{header:i(()=>[J]),default:i(()=>[l(u,{model:t(r),"label-width":"80px"},{default:i(()=>[l(s,{label:"\u534F\u8BAE\u540D\u79F0"},{default:i(()=>[l(n,{modelValue:t(r).service_title,"onUpdate:modelValue":a[0]||(a[0]=o=>t(r).service_title=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),l(c,{class:"mb-10",modelValue:t(r).service_content,"onUpdate:modelValue":a[1]||(a[1]=o=>t(r).service_content=o),height:"500"},null,8,["modelValue"])]),_:1}),l(p,{class:"!border-none flex-1 mb-4",shadow:"never"},{header:i(()=>[Q]),default:i(()=>[l(u,{model:t(r),"label-width":"80px"},{default:i(()=>[l(s,{label:"\u534F\u8BAE\u540D\u79F0"},{default:i(()=>[l(n,{modelValue:t(r).privacy_title,"onUpdate:modelValue":a[2]||(a[2]=o=>t(r).privacy_title=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),l(c,{class:"mb-10",modelValue:t(r).privacy_content,"onUpdate:modelValue":a[3]||(a[3]=o=>t(r).privacy_content=o),height:"500"},null,8,["modelValue"])]),_:1})]),z((b(),G(v,null,{default:i(()=>[l(f,{type:"primary",onClick:_},{default:i(()=>[H("\u4FDD\u5B58")]),_:1})]),_:1})),[[e,["setting.web.web_setting/setAgreement"]]])],64)}}});export{ao as default};