Files
sgxt_web/gsxt/static/js/chunk-7a67d799.941ddfe0.js
2025-09-16 15:50:24 +08:00

1 line
5.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a67d799"],{"44a8":function(e,t,n){},cda1:function(e,t,n){"use strict";var a=n("7a23"),o=n("b893"),c=(n("560e"),n("c5cb")),d=n("3ef4"),l=n("21a6"),r=n("4e15");const u={class:"cntBox"},b=Object(a["createTextVNode"])("保存"),j=Object(a["createTextVNode"])("下载"),m=Object(a["createTextVNode"])("取消");var i={__name:"index",props:{modelValue:{type:Boolean,default:!1},textContent:{type:String,default:""},placeholder:{type:String,default:"请输入内容。。。。"},heightNumber:{type:Number,default:448}},emits:["update:textContent","changeFn","update:modelValue","SaveReport"],setup(e,{emit:t}){const n=e,i=Object(a["shallowRef"])(),s="default",p={excludeKeys:["blockquote","codeBlock"]},f={withCredentials:!0,placeholder:n.placeholder,MENU_CONF:{uploadImage:{async customUpload(e,t){let n=await Object(o["b"])(e),a=new File([n],n.name,{type:n.type});a.size>2097152?Object(d["a"])({message:"图片超过2MB",type:"success"}):await O(a,t)}},uploadVideo:{async customUpload(e,t){await O(e,t)}}}},O=(e,t)=>{let n=new FormData;n.append("file",e),Object(c["d"])(n,"/mosty-base/minio/image/upload").then(e=>{t(e)})},h=e=>{i.value=e},x=e=>{e.isEmpty()?t("changeFn",e.getText()):t("changeFn",e.getHtml())},y=()=>{t("update:modelValue",!1)};Object(a["onBeforeUnmount"])(()=>{const e=i.value;e&&e.destroy()});const g=()=>{const e=`\n <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >\n <head>\n <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n <title>富文本导出</title>\n </head>\n <body>\n ${n.textContent}\n </body>\n </html>\n `,t=new Blob([e],{type:"application/msword"});Object(l["saveAs"])(t,"styled-document.doc")},C=()=>{t("SaveReport",n.textContent)};return(t,o)=>{const c=Object(a["resolveComponent"])("el-button"),d=Object(a["resolveComponent"])("el-dialog");return Object(a["openBlock"])(),Object(a["createBlock"])(d,{modelValue:e.modelValue,"onUpdate:modelValue":o[1]||(o[1]=e=>Object(a["isRef"])(modelValue)?modelValue.value=e:null),center:"",width:"1000px","destroy-on-close":!0,title:"报告模板",onClose:y,"close-on-click-modal":!1},{footer:Object(a["withCtx"])(()=>[Object(a["createVNode"])(c,{type:"primary",onClick:C},{default:Object(a["withCtx"])(()=>[b]),_:1}),Object(a["createVNode"])(c,{type:"primary",onClick:g},{default:Object(a["withCtx"])(()=>[j]),_:1}),Object(a["createVNode"])(c,{type:"primary",onClick:y},{default:Object(a["withCtx"])(()=>[m]),_:1})]),default:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("div",u,[Object(a["createVNode"])(Object(a["unref"])(r["b"]),{style:{"border-bottom":"1px solid #ccc"},editor:Object(a["unref"])(i),defaultConfig:p,mode:s},null,8,["editor"]),Object(a["createVNode"])(Object(a["unref"])(r["a"]),{style:Object(a["normalizeStyle"])(`height: ${n.heightNumber}px; overflow-y: hidden`),modelValue:e.textContent,"onUpdate:modelValue":o[0]||(o[0]=e=>Object(a["isRef"])(textContent)?textContent.value=e:null),defaultConfig:f,mode:s,onOnCreated:h,onOnChange:x},null,8,["style","modelValue"])])]),_:1},8,["modelValue"])}}},s=(n("f919"),n("d959")),p=n.n(s);const f=p()(i,[["__scopeId","data-v-7befc92e"]]);t["a"]=f},dfc1:function(e,t,n){"use strict";n.d(t,"q",(function(){return d})),n.d(t,"t",(function(){return l})),n.d(t,"r",(function(){return r})),n.d(t,"s",(function(){return u})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return j})),n.d(t,"i",(function(){return m})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return O})),n.d(t,"h",(function(){return h})),n.d(t,"j",(function(){return x})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return g})),n.d(t,"o",(function(){return C})),n.d(t,"p",(function(){return T})),n.d(t,"k",(function(){return w})),n.d(t,"l",(function(){return E}));var a=n("b775");const o="/mosty-api/mosty-gsxt",c="/v1",d=e=>Object(a["a"])({url:o+"/lzJcjPjdb/selectPage",method:"GET",params:e}),l=e=>Object(a["a"])({url:o+"/yyfx/selectPage",method:"GET",params:e}),r=e=>Object(a["a"])({url:o+"/tbGsxtBqgl/selectList",method:"GET",params:e}),u=e=>Object(a["a"])({url:o+"/yyfx/add",method:"POST",data:e}),b=e=>Object(a["a"])({url:c+"/completions",method:"POST",data:e}),j=e=>Object(a["a"])({url:o+"/lzJcjPjdb/fxbgDywdtj",method:"GET",params:e}),m=e=>Object(a["a"])({url:o+"/lzJcjPjdb/getDictItem",method:"GET",params:e}),i=e=>Object(a["a"])({url:o+"/lzJcjPjdb/fxbgJqlxtj",method:"GET",params:e}),s=e=>Object(a["a"])({url:o+"/lzJcjPjdb/fxbgJqlytj",method:"GET",params:e}),p=e=>Object(a["a"])({url:o+"/lzJcjPjdb/fxbgTj",method:"GET",params:e}),f=e=>Object(a["a"])({url:o+"/lzJcjPjdb/fxbgYdfx",method:"GET",params:e}),O=e=>Object(a["a"])({url:o+"/lzJcjPjdb/fxgbCljgfx",method:"GET",params:e}),h=e=>Object(a["a"])({url:o+"/lzJcjPjdb/fxgbCzlfx",method:"GET",params:e}),x=e=>Object(a["a"])({url:o+"/jjdbYp/fxbgDywdtj",method:"GET",params:e}),y=e=>Object(a["a"])({url:o+"/lzJcjPjdb/fxbgJqlxtj",method:"GET",params:e}),g=e=>Object(a["a"])({url:o+"/jjdbYp/fxbgJqlytj",method:"GET",params:e}),C=e=>Object(a["a"])({url:o+"/jjdbYp/fxbgTj",method:"GET",params:e}),T=e=>Object(a["a"])({url:o+"/jjdbYp/fxbgYdfx",method:"GET",params:e}),w=e=>Object(a["a"])({url:o+"/jjdbYp/fxgbCljgfx",method:"GET",params:e}),E=e=>Object(a["a"])({url:o+"/jjdbYp/fxgbCzlfx",method:"GET",params:e})},f919:function(e,t,n){"use strict";n("44a8")}}]);