diff --git a/zyplayer-doc-ui/wiki-ui/src/views/page/editor/WangEditor.vue b/zyplayer-doc-ui/wiki-ui/src/views/page/editor/WangEditor.vue index d3f03526..35e3d2a0 100644 --- a/zyplayer-doc-ui/wiki-ui/src/views/page/editor/WangEditor.vue +++ b/zyplayer-doc-ui/wiki-ui/src/views/page/editor/WangEditor.vue @@ -47,7 +47,6 @@ let editorConfig = ref({ // 最大支持50M图片上传 maxFileSize: 50 * 1024 * 1024, withCredentials: true, - meta: {pageId: route.query.pageId}, }, uploadVideo: { server: import.meta.env.VITE_APP_BASE_API + '/zyplayer-doc-wiki/page/file/wangEditor/upload', @@ -55,7 +54,6 @@ let editorConfig = ref({ // 最大支持300M图片上传 maxFileSize: 300 * 1024 * 1024, withCredentials: true, - meta: {pageId: route.query.pageId}, } } }); diff --git a/zyplayer-doc-wiki/src/main/resources/dist/assets/main.9dd36b37.js b/zyplayer-doc-wiki/src/main/resources/dist/assets/main.4dc645e3.js similarity index 96% rename from zyplayer-doc-wiki/src/main/resources/dist/assets/main.9dd36b37.js rename to zyplayer-doc-wiki/src/main/resources/dist/assets/main.4dc645e3.js index 295a783b..0f1740cc 100644 --- a/zyplayer-doc-wiki/src/main/resources/dist/assets/main.9dd36b37.js +++ b/zyplayer-doc-wiki/src/main/resources/dist/assets/main.4dc645e3.js @@ -22,4 +22,4 @@ import{H as _v}from"./highlight.js.b879387e.js";import{bq as tt,br as It,bs as u \u5347\u7EA7\u5730\u5740\uFF1A`+r.data.upgradeUrl+` \u5F53\u524D\u7248\u672C\uFF1A`+r.data.nowVersion+` \u6700\u65B0\u7248\u672C\uFF1A`+r.data.lastVersion+` -\u5347\u7EA7\u5185\u5BB9\uFF1A`+r.data.upgradeContent)))})};return t({show:a}),(r,i)=>{const u=re("el-tab-pane"),c=re("el-divider"),f=re("el-tabs"),d=re("el-dialog");return k(),Z(d,{title:"\u5173\u4E8E",modelValue:o(n),"onUpdate:modelValue":i[0]||(i[0]=p=>$t(n)?n.value=p:n=p),width:"600px",class:"about-zyplayer-doc"},{default:N(()=>[M("div",kA,[CA,M("div",SA,[M("div",null,"\u7248\u672C "+ae(o(l).nowVersion||"1.0.0"),1),_A]),T(f,{type:"border-card"},{default:N(()=>[T(u,{label:"\u652F\u6301"},{default:N(()=>[EA]),_:1}),T(u,{label:"\u5F00\u6E90\u8F6F\u4EF6"},{default:N(()=>[M("div",$A,[TA,T(c,{"content-position":"left"},{default:N(()=>[Ce("\u540E\u7AEF")]),_:1}),IA,T(c,{"content-position":"left"},{default:N(()=>[Ce("\u524D\u7AEF")]),_:1}),NA])]),_:1}),o(l).lastVersion?(k(),Z(u,{key:0,label:"\u8F6F\u4EF6\u66F4\u65B0"},{label:N(()=>[MA]),default:N(()=>[M("div",PA,[M("div",null,"\u5F53\u524D\u7248\u672C\uFF1A"+ae(o(l).nowVersion),1),M("div",null,"\u6700\u65B0\u7248\u672C\uFF1A"+ae(o(l).lastVersion),1),M("div",null,[Ce(" \u5347\u7EA7\u5730\u5740\uFF1A"),M("a",{target:"_blank",href:o(l).upgradeUrl},ae(o(l).upgradeUrl),9,OA)]),RA,M("pre",LA,ae(o(l).upgradeContent),1)])]),_:1})):Q("",!0)]),_:1})])]),_:1},8,["modelValue"])}}},cv=Br("wikiDisplay",{state:()=>({viewMenuWidth:300})}),dv=Br("userData",{state:()=>({userInfo:{}})});const VA={class:"global-layout-vue"},DA={style:{padding:"10px",height:"100%","box-sizing":"border-box",background:"#fafafa"}},BA={style:{"margin-bottom":"10px"}},xA={align:"center"},zA={class:"search-option-item"},FA={class:"title"},HA=["innerHTML"],KA=["innerHTML"],WA={class:"wiki-page-tree-box"},UA={class:"page-tree-node"},jA={class:"label"},qA={class:"text"},YA={class:"header-right-user-name"},GA={style:{"margin-bottom":"10px"}},XA=M("span",{style:{"font-size":"14px","font-weight":"bold"}},"\u901A\u77E5",-1),ZA={class:"header-user-message"},JA={class:"page-info-box"},QA={__name:"GlobalLayout",setup(e){let t=bn(),n=Nn();const l=cv();let a=_(!0);_(!1),_([]);let s=_({children:"children",label:"name"}),r=_([]),i=_([]),u=_(""),c=_({}),f=_("");_(new Map);let d=_(""),p=_([]);_({});let v=_([]),m=_({}),h=_([]),g=_(!1),b=_(!1),w=_(0),y=_({sysType:2,pageNum:1,pageSize:20}),S=_(300);qe(()=>{q(),W(),ee()});const E=he=>{he=he||{},J(he.parentId,he.node)},I=()=>{a.value=!a.value,setTimeout(()=>{a.value?Te(S.value+1):Te(1)},100)},P=()=>{u.value>0?n.push({path:"/page/edit",query:{parentId:f.value}}):Bt.warning("\u8BF7\u5148\u9009\u62E9\u6216\u521B\u5EFA\u7A7A\u95F4")},O=he=>{},L=(he,be)=>{if(!he||!he.trim()){be([]);return}St.pageNews({spaceId:u.value,keywords:he}).then(Pe=>{let Ye=Pe.data||[];be(Ye)})},A=he=>{d.value="",n.push({path:"/page/show",query:{pageId:he.pageId}})};let K=_();const F=he=>{f.value=he.id,n.push({path:"/page/show",query:{pageId:he.id}}),H(he)},H=he=>{he.children&&he.children.length>0&&he.children[0].needLoad&&(console.log("\u52A0\u8F7D\u8282\u70B9\uFF1A",he),J(he.id))},U=(he,be,Pe,Ye)=>{console.log("tree drop: ",he.data,be.data,Pe);var Xe={id:he.data.id,parentId:be.data.parentId};Pe=="inner"?Xe.parentId=be.data.id:Pe=="before"?Xe.beforeSeq=be.data.seqNo:Pe=="after"&&(Xe.afterSeq=be.data.seqNo),St.pageChangeParent(Xe).then($e=>{J()})},W=()=>{Xn.getUserMessageList(y.value).then(he=>{h.value=he.data||[],w.value=he.total||0,g.value=h.value.filter(be=>be.msgStatus==0).length>0})},z=he=>{he.msgStatus==0&&Xn.readUserMessage({ids:he.id}).then(()=>{W()}),he.msgType>=2&&he.msgType<=12&&(n.push({path:"/page/show",query:{pageId:he.dataId}}),b.value=!1)},D=()=>{let he=[];h.value.filter(be=>be.msgStatus==0).forEach(be=>{he.push(be.id)}),!(he.length<=0)&&Xn.readUserMessage({ids:he.join(",")}).then(()=>{Bt.success("\u6807\u8BB0\u6210\u529F"),W()})},x=he=>{y.value.pageNum=he,W()},V=(he,be)=>!he||!be.name?!0:be.name.toLowerCase().indexOf(he.toLowerCase())!==-1;let Y=_();const ne=he=>{if(he==0)Y.value.show();else if(he==-1)n.push({path:"/space/manage"});else{u.value=he;for(let be=0;be{St.spaceList({}).then(be=>{i.value=be.data||[];let Pe=[];if(i.value.forEach(Ye=>Pe.push({label:Ye.name,value:Ye.id})),r.value=Pe,i.value.length>0){let Ye=he,Xe=i.value.find($e=>$e.id==he);Xe||(Xe=i.value[0],Ye=Xe.id),Xe.value=Xe,u.value=Ye,f.value="",J();try{t.path==="/home"&&n.push({path:"/home",query:{spaceId:Ye}})}catch($e){console.log($e)}}})},J=(he,be)=>{let Pe={spaceId:u.value};St.pageList(Pe).then(Ye=>{p.value=Ye.data||[],Ne(()=>{f.value=t.query.pageId,f.value&&K.value.setCurrentKey(f.value)})})};let se=_();const me=he=>{console.log("command:"+he),he=="userSignOut"?ye():he=="aboutDoc"?se.value.show():he=="myInfo"?n.push({path:"/user/myInfo"}):he=="console"?window.open("./","_blank"):Bt.warning("\u6682\u672A\u5F00\u653E")},ye=()=>{Xn.userLogout().then(()=>{location.reload()})};let le=dv();const ee=()=>{Xn.getSelfUserInfo().then(he=>{m.value=he.data,le.userInfo=he.data})},ie=he=>{for(let be=0;be{he=parseInt(he),u.value!=he&&(u.value=he,J())},Te=he=>{l.viewMenuWidth=he};return(he,be)=>{const Pe=re("el-option"),Ye=re("el-option-group"),Xe=re("el-select"),$e=re("el-button"),Be=re("el-autocomplete"),Oe=re("el-icon"),je=re("el-tooltip"),He=re("el-tree"),ke=re("el-aside"),Ke=re("el-col"),Ge=re("el-badge"),lt=re("el-link"),gt=re("el-table-column"),kt=re("el-table"),ot=re("el-pagination"),j=re("el-popover"),oe=re("el-dropdown-item"),ge=re("el-dropdown-menu"),B=re("el-dropdown"),X=re("el-row"),ce=re("el-header"),we=re("router-view"),Ee=re("el-main"),De=re("el-container");return k(),R("div",VA,[T(De,null,{default:N(()=>[ze(T(ke,{style:Me({width:o(S)+"px"})},{default:N(()=>[M("div",DA,[M("div",BA,[T(Xe,{"model-value":o(u),filterable:"",placeholder:"\u9009\u62E9\u7A7A\u95F4",style:{width:"100%"},onChange:ne},{default:N(()=>[T(Ye,{label:""},{default:N(()=>[T(Pe,{key:"0",label:"\u521B\u5EFA\u7A7A\u95F4",value:"0"}),T(Pe,{key:"-1",label:"\u7A7A\u95F4\u7BA1\u7406",value:"-1"})]),_:1}),T(Ye,{label:""}),(k(!0),R(Re,null,Je(o(r),Fe=>(k(),Z(Pe,{key:Fe.value,label:Fe.label,value:Fe.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"])]),M("div",xA,[T($e,{icon:o(us),style:{width:"100%"},onClick:P},{default:N(()=>[Ce("\u521B\u5EFA\u6587\u6863")]),_:1},8,["icon"])]),T(Be,{modelValue:o(d),"onUpdate:modelValue":be[0]||(be[0]=Fe=>$t(d)?d.value=Fe:d=Fe),"fetch-suggestions":L,placeholder:"\u5728\u5F53\u524D\u7A7A\u95F4\u641C\u7D22","popper-class":"search-autocomplete",style:{width:"100%",margin:"10px 0"},onSelect:A},{default:N(({item:Fe})=>[M("div",zA,[M("div",FA,[M("span",{innerHTML:Fe.pageTitle||"-"},null,8,HA)]),M("span",{class:"content",innerHTML:Fe.previewContent||"-"},null,8,KA)])]),_:1},8,["modelValue"]),M("div",WA,[T(He,{ref_key:"wikiPageTreeRef",ref:K,"current-node-key":o(f),data:o(p),"default-expanded-keys":o(v),"expand-on-click-node":!0,"filter-node-method":V,props:o(s),draggable:"","highlight-current":"","node-key":"id",style:{"background-color":"#fafafa"},onNodeClick:F,onNodeExpand:H,onNodeDrop:U},{default:N(({node:Fe,data:bt})=>[M("div",UA,[T(je,{content:Fe.label,placement:"top-start","show-after":1e3},{default:N(()=>[M("span",jA,[T(Oe,null,{default:N(()=>[T(o(Vr))]),_:1}),M("span",qA,ae(Fe.label),1)])]),_:2},1032,["content"])])]),_:1},8,["current-node-key","data","default-expanded-keys","props"])])])]),_:1},8,["style"]),[[nt,o(a)]]),ze(T(uv,{value:o(S),"onUpdate:value":be[1]||(be[1]=Fe=>$t(S)?S.value=Fe:S=Fe),onChange:Te},null,8,["value"]),[[nt,o(a)]]),T(De,null,{default:N(()=>[T(ce,null,{default:N(()=>[T(X,null,{default:N(()=>[T(Ke,{span:12},{default:N(()=>[o(a)?(k(),Z($e,{key:0,onClick:I,text:"",icon:o(Sm),class:"fold-btn"},null,8,["icon"])):(k(),Z($e,{key:1,onClick:I,text:"",icon:o(_m),class:"fold-btn"},null,8,["icon"]))]),_:1}),T(Ke,{span:12,style:{"text-align":"right"}},{default:N(()=>[M("span",YA,ae(o(m).userName),1),T(j,{visible:o(b),"onUpdate:visible":be[2]||(be[2]=Fe=>$t(b)?b.value=Fe:b=Fe),placement:"bottom",trigger:"click",width:"600"},{reference:N(()=>[T(Ge,{"is-dot":o(g),style:{margin:"0 20px"}},{default:N(()=>[T(Oe,{class:"head-icon",style:{"margin-right":"0"}},{default:N(()=>[T(o(Em))]),_:1})]),_:1},8,["is-dot"])]),default:N(()=>[M("div",GA,[XA,o(g)?(k(),Z(lt,{key:0,icon:o(Vl),style:{float:"right"},type:"primary",onClick:D},{default:N(()=>[Ce("\u672C\u9875\u6807\u8BB0\u5DF2\u8BFB")]),_:1},8,["icon"])):Q("",!0)]),M("div",ZA,[T(kt,{data:o(h),border:"","max-height":"500",size:"small",style:{width:"100%","margin-bottom":"5px"}},{default:N(()=>[T(gt,{label:"\u64CD\u4F5C\u4EBA",prop:"operatorUserName",width:"100px"}),T(gt,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"creationTime",width:"140px"}),T(gt,{label:"\u5185\u5BB9"},{default:N(Fe=>[Ce(ae(Fe.row.msgContent)+" ",1),T(Ge,{"is-dot":Fe.row.msgStatus==0,style:{"line-height":"10px","padding-right":"5px"}},{default:N(()=>[T(lt,{type:"primary",onClick:bt=>z(Fe.row)},{default:N(()=>[Ce("\u67E5\u770B")]),_:2},1032,["onClick"])]),_:2},1032,["is-dot"])]),_:1})]),_:1},8,["data"]),M("div",JA,[T(ot,{"current-page":o(y).pageNum,"page-size":o(y).pageSize,total:o(w),layout:"prev, pager, next, total",onCurrentChange:x},null,8,["current-page","page-size","total"])])])]),_:1},8,["visible"]),T(B,{trigger:"click",onCommand:me,style:{"vertical-align":"middle"}},{dropdown:N(()=>[T(ge,null,{default:N(()=>[T(oe,{command:"console"},{default:N(()=>[Ce("\u63A7\u5236\u53F0")]),_:1}),T(oe,{command:"aboutDoc"},{default:N(()=>[Ce("\u5173\u4E8E")]),_:1}),T(oe,{command:"userSignOut",divided:""},{default:N(()=>[Ce("\u9000\u51FA\u767B\u5F55")]),_:1})]),_:1})]),default:N(()=>[T(Oe,{class:"head-icon"},{default:N(()=>[T(o($m))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),T(Ee,{style:{padding:"0","border-left":"1px solid #dcdfe6"}},{default:N(()=>[T(we,{spaceId:o(u),spaceInfo:ie(o(u)),onChangeExpandedKeys:O,onLoadPageList:E,onLoadSpace:q,onSwitchSpace:fe},{default:N(({Component:Fe})=>[(k(),Z(at(Fe)))]),_:1},8,["spaceId","spaceInfo"])]),_:1})]),_:1})]),_:1}),T(o(iv),{ref_key:"createSpaceRef",ref:Y,onSuccess:q},null,512),T(o(AA),{ref_key:"aboutDialogRef",ref:se},null,512)])}}};const eV=e=>(ls("data-v-377d275d"),e=e(),os(),e),tV={style:{height:"100%"}},nV={class:"logo"},lV={style:{padding:"10px","box-sizing":"border-box",background:"#fafafa"}},oV={style:{"font-size":"14px"}},aV=eV(()=>M("div",{class:"build-info"},[Ce("\u672C\u6587\u6863\u4F7F\u7528"),M("a",{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"},"zyplayer-doc"),Ce("\u6784\u5EFA")],-1)),sV={__name:"ShareLayout",setup(e){let t=_(!0),n=_({children:"children",label:"name"}),l=_(""),a=_(""),s=_({}),r=_(""),i=_([]),u=_([]),c=_(300),f=bn(),d=Nn();qe(()=>{l.value=f.query.space||"",b(),g()});const p=(w,y)=>!w||!y.name?!0:y.name.toLowerCase().indexOf(w.toLowerCase())!==-1,v=w=>{a.value!=w.id&&(a.value=w.id,d.push({path:"/page/share/view",query:{pageId:w.id,space:l.value}}))};let m=_();const h=()=>{m.value.filter(r.value)},g=()=>{St.openPageList({space:l.value}).then(w=>{i.value=w.data||[],a.value=""})},b=()=>{St.openSpaceInfo({space:l.value}).then(w=>{s.value=w.data})};return(w,y)=>{const S=re("el-button"),E=re("el-input"),I=re("el-icon"),P=re("el-tree"),O=re("el-aside"),L=re("router-view"),A=re("el-main"),K=re("el-container");return k(),R("div",tV,[T(K,null,{default:N(()=>[ze(T(O,{width:"300px",style:Me([{"background-color":"#fafafa"},{width:o(c)+"px"}])},{default:N(()=>[M("div",nV,ae(o(s).name),1),M("div",lV,[T(E,{modelValue:o(r),"onUpdate:modelValue":y[0]||(y[0]=F=>$t(r)?r.value=F:r=F),onKeyup:pt(h,["enter"]),placeholder:"\u641C\u7D22\u6587\u6863",style:{margin:"10px 0"}},{append:N(()=>[T(S,{icon:o(Ar),onClick:h},null,8,["icon"])]),_:1},8,["modelValue","onKeyup"]),T(P,{props:o(n),data:o(i),onNodeClick:v,ref_key:"wikiPageTreeRef",ref:m,"filter-node-method":p,"highlight-current":"","expand-on-click-node":!0,"default-expanded-keys":o(u),"node-key":"id",style:{"background-color":"#fafafa","padding-bottom":"30px"}},{default:N(({node:F,data:H})=>[M("span",oV,[T(I,null,{default:N(()=>[T(o(Vr))]),_:1}),Ce("\xA0 "),M("span",null,ae(F.label),1)])]),_:1},8,["props","data","default-expanded-keys"]),aV])]),_:1},8,["style"]),[[nt,o(t)]]),ze(T(uv,{value:o(c),"onUpdate:value":y[1]||(y[1]=F=>$t(c)?c.value=F:c=F)},null,8,["value"]),[[nt,o(t)]]),T(K,null,{default:N(()=>[T(A,{class:"doc-body-box"},{default:N(()=>[T(L)]),_:1})]),_:1})]),_:1})])}}};var rV=ca(sV,[["__scopeId","data-v-377d275d"]]);const iV=["onClick"],uV=["onClick"],cV={__name:"PageTree",props:{pageList:Array},emits:["pageChange"],setup(e,{emit:t}){const n=a=>{t("pageChange",a)};let l=_([]);return(a,s)=>{const r=re("page-tree",!0),i=re("van-collapse-item"),u=re("van-collapse");return k(),Z(u,{modelValue:o(l),"onUpdate:modelValue":s[0]||(s[0]=c=>$t(l)?l.value=c:l=c)},{default:N(()=>[(k(!0),R(Re,null,Je(e.pageList,c=>(k(),R(Re,null,[c.children?(k(),Z(i,{key:1,name:c.id},{title:N(()=>[M("span",{onClick:f=>n(c.id)},ae(c.name),9,uV)]),default:N(()=>[T(r,{"page-list":c.children,onPageChange:n},null,8,["page-list"])]),_:2},1032,["name"])):(k(),R("div",{key:0,onClick:f=>n(c.id),class:"van-cell van-cell--clickable"},ae(c.name),9,iV))],64))),256))]),_:1},8,["modelValue"])}}};const dV=e=>(ls("data-v-69b5e618"),e=e(),os(),e),fV={class:"share-mobile-layout"},pV={class:"header"},vV={class:"main"},mV=dV(()=>M("div",{class:"build-info"},[Ce("\u672C\u6587\u6863\u4F7F\u7528"),M("a",{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"},"zyplayer-doc"),Ce("\u6784\u5EFA")],-1)),hV={__name:"ShareMobileLayout",setup(e){_({children:"children",label:"name"});let t=_(""),n=_(""),l=_({}),a=_([]),s=_(!1);_([]);let r=bn(),i=Nn();qe(()=>{t.value=r.query.space||"",d(),f()});const u=p=>{s.value=!1,i.replace({path:"/page/share/mobile/view",query:{pageId:p,space:t.value}})},c=p=>{s.value=p},f=()=>{St.openPageList({space:t.value}).then(p=>{a.value=p.data||[],n.value=""})},d=()=>{St.openSpaceInfo({space:t.value}).then(p=>{l.value=p.data})};return(p,v)=>{const m=re("van-nav-bar"),h=re("van-popup"),g=re("router-view");return k(),R("div",fV,[T(h,{show:o(s),"onUpdate:show":v[0]||(v[0]=b=>$t(s)?s.value=b:s=b),closeable:"",position:"left",class:"popup-module",style:{height:"100%",width:"80%"}},{default:N(()=>[M("div",pV,[T(m,{title:o(l).name},null,8,["title"])]),M("div",vV,[T(o(cV),{"page-list":o(a),onPageChange:u},null,8,["page-list"]),mV])]),_:1},8,["show"]),T(g,{onPopupShow:c})])}}};var gV=ca(hV,[["__scopeId","data-v-69b5e618"]]),da="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAqFBMVEX///9wcHBwcHBwcHBwcHB8fHxwcHB6enpwcHCDg4NwcHB8fHx6enqSkpJ8fHxycnJwcHDp6el2dnZwcHD////39/f19fXz8/Pw8PDr6+vn5+fj4+PZ2dnX19fHx8fExMS9vb20tLSrq6uhoaGenp6MjIyKioqDg4N8fHx6enp4eHh0dHRycnKZmZmOjo6KioqDg4OAgIB/f396enp4eHh2dnZycnJwcHDyRjyJAAAALXRSTlMAETNEVWZmd3eIiJmqu7u7u93d3e7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u6OCyV0AAAAi0lEQVQYGXXBRwKCMBAF0B9Q7Io6RJGo2LAEu8zc/2YuyCILfQ/4R8k5gK+zy0v4TilZeAZb2rTCSMHp3bV+jeJpDEDFIvagSRtNJAro2vHjSo4owOYzNlTTAoDnGZNjLABOFkzOagigWiecUW3fBNB/L5+33GgiSksFQE1YPkUlciwuETxhox3ghy8Wng9K1E9YIwAAAABJRU5ErkJggg==";const yV={style:{background:"#f1f1f1","min-height":"100%"},class:"page-search-vue"},bV={style:{"max-width":"1200px",margin:"0 auto",background:"#fff",padding:"20px","min-height":"100%","box-sizing":"border-box"}},wV={style:{"margin-bottom":"20px"}},kV={key:0,class:"empty-news"},CV={class:"line-box"},SV={class:"line-title"},_V={class:"text-link"},EV={class:"text-link"},$V={class:"page-preview-box"},TV=["onClick","innerHTML"],IV=["innerHTML"],NV=M("img",{src:da,class:"zan-img"},null,-1),MV={class:"page-info-box"},PV={__name:"Search",setup(e){let t=bn();Nn(),qe(()=>{c(t)});let n=_(0),l=_({spaceId:"",keywords:"",newsType:1,pageNum:1,pageSize:20}),a=_([]);const s=()=>{St.pageSearchByEs(l.value).then(f=>{a.value=f.data||[],n.value=f.total})},r=f=>{l.value.pageSize=f,s()},i=f=>{window.open("#/page/show?pageId="+f.pageId)},u=f=>{l.value.pageNum=f,s()},c=f=>{l.value={keywords:f.query.keywords,spaceId:f.query.spaceId,newsType:1,pageNum:1,pageSize:20},s()};return(f,d)=>{const p=re("el-input"),v=re("el-col"),m=re("el-button"),h=re("el-row"),g=re("el-icon"),b=re("el-pagination");return k(),R("div",yV,[M("div",bV,[M("div",wV,[T(h,{gutter:20,style:{"max-width":"700px",margin:"0 auto"}},{default:N(()=>[T(v,{span:20},{default:N(()=>[T(p,{modelValue:o(l).keywords,"onUpdate:modelValue":d[0]||(d[0]=w=>o(l).keywords=w),onKeyup:pt(s,["enter"]),placeholder:"",style:{width:"100%"}},null,8,["modelValue","onKeyup"])]),_:1}),T(v,{span:4},{default:N(()=>[T(m,{type:"primary",onClick:s,icon:o(Ar)},{default:N(()=>[Ce("\u641C\u7D22\u4E00\u4E0B")]),_:1},8,["icon"])]),_:1})]),_:1})]),o(a).length<=0?(k(),R("div",kV,"\u6682\u65E0\u6570\u636E")):(k(!0),R(Re,{key:1},Je(o(a),w=>(k(),R("div",CV,[M("div",SV,[M("span",_V,ae(w.createUserName),1),Ce(" \u53D1\u5E03\u4E8E "),M("span",EV,ae(w.spaceName),1)]),M("div",$V,[M("div",{class:"page-preview-title",onClick:y=>i(w),innerHTML:w.pageTitle},null,8,TV),M("div",{class:"page-preview-content",innerHTML:w.previewContent},null,8,IV),M("div",null,[M("span",null,[NV,Ce(ae(w.zanNum)+"\u3000",1)]),M("span",null,[T(g,{class:"view-img"},{default:N(()=>[T(o(la))]),_:1}),Ce(ae(w.viewNum)+"\u3000",1)]),M("span",null,ae(w.updateTime||w.createTime),1)])])]))),256)),M("div",MV,[T(b,{onSizeChange:r,onCurrentChange:u,"page-sizes":[20,50,100],"page-size":20,"current-page":o(l).pageNum,layout:"prev, pager, next, jumper, sizes, total",total:o(n)},null,8,["current-page","total"])])])])}}},OV={__name:"NoAuth",setup(e){return(t,n)=>(k(),R("div",null,"\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u6A21\u5757"))}};const RV={style:{padding:"10px"},class:"home-vue"},LV={style:{"max-width":"800px",margin:"0 auto"}},AV={key:0,class:"empty-news"},VV={class:"line-box"},DV={class:"line-title"},BV={class:"text-link"},xV={class:"text-link"},zV={class:"page-preview-box"},FV=["onClick","innerHTML"],HV=["innerHTML"],KV=M("img",{src:da,class:"zan-img"},null,-1),WV={__name:"Home",setup(e){_(0);let t=_({spaceId:"",newsType:1,pageNum:1,pageSize:20}),n=_([]),l=_([{key:1,val:"\u6700\u8FD1\u66F4\u65B0"},{key:2,val:"\u6700\u65B0\u521B\u5EFA"},{key:3,val:"\u67E5\u770B\u6700\u591A"},{key:4,val:"\u70B9\u8D5E\u6700\u591A"},{key:5,val:"\u67E5\u770B+\u70B9\u8D5E\u6700\u591A"}]),a=_({});ko(f=>{c(f)});let s=bn(),r=Nn();qe(()=>{c(s)});const i=()=>{St.pageNews(t.value).then(f=>{n.value=f.data||[]})},u=f=>{let d={pageId:f.pageId};r.push({path:"/page/show",query:d})},c=f=>{t.value={spaceId:f.query.spaceId,newsType:1,pageNum:1,pageSize:20},t.value.spaceId&&i(),a.value={},l.value.forEach(d=>a.value[d.key]=d.val)};return(f,d)=>{const p=re("el-icon"),v=re("el-tab-pane"),m=re("el-tabs");return k(),R("div",RV,[M("div",LV,[T(m,{"model-value":"first"},{default:N(()=>[T(v,{label:o(a)[o(t).newsType],name:"first"},{default:N(()=>[o(n).length<=0?(k(),R("div",AV," \u6682\u65E0\u6570\u636E ")):(k(!0),R(Re,{key:1},Je(o(n),h=>(k(),R("div",VV,[M("div",DV,[M("span",BV,ae(h.createUserName),1),Ce(" \u53D1\u5E03\u4E8E "),M("span",xV,ae(h.spaceName),1)]),M("div",zV,[M("div",{class:"page-preview-title",onClick:g=>u(h),innerHTML:h.pageTitle},null,8,FV),M("div",{class:"page-preview-content",innerHTML:h.previewContent},null,8,HV),M("div",null,[M("span",null,[KV,Ce(ae(h.zanNum)+"\u3000",1)]),M("span",null,[T(p,{class:"view-img"},{default:N(()=>[T(o(la))]),_:1}),Ce(ae(h.viewNum)+"\u3000",1)]),M("span",null,ae(h.updateTime||h.createTime),1)])])]))),256))]),_:1},8,["label"])]),_:1})])])}}};const UV={class:"my-info-vue"},jV={style:{margin:"0 auto","max-width":"1000px"}},qV=M("div",{class:"clearfix"},"\u6211\u7684\u4FE1\u606F",-1),YV={__name:"MyInfo",setup(e){let t=_({});qe(()=>{n()});const n=()=>{Xn.getSelfUserInfo().then(l=>{t.value=l.data})};return(l,a)=>{const s=re("el-form-item"),r=re("el-form"),i=re("el-card");return k(),R("div",UV,[M("div",jV,[T(i,{class:"box-card"},{header:N(()=>[qV]),default:N(()=>[T(r,{class:"search-form-box","label-width":"100px"},{default:N(()=>[T(s,{label:"\u8D26\u53F7\uFF1A"},{default:N(()=>[Ce(ae(o(t).userNo),1)]),_:1}),T(s,{label:"\u7528\u6237\u540D\uFF1A"},{default:N(()=>[Ce(ae(o(t).userName),1)]),_:1}),T(s,{label:"\u624B\u673A\u53F7\uFF1A"},{default:N(()=>[Ce(ae(o(t).phone),1)]),_:1}),T(s,{label:"\u90AE\u7BB1\uFF1A"},{default:N(()=>[Ce(ae(o(t).email),1)]),_:1}),T(s,{label:"\u72B6\u6001\uFF1A"},{default:N(()=>[Ce(ae(o(t).delFlag==0?"\u6B63\u5E38":"\u505C\u7528"),1)]),_:1}),T(s,{label:"\u6027\u522B\uFF1A"},{default:N(()=>[Ce(ae(o(t).sex==0?"\u5973":"\u7537"),1)]),_:1})]),_:1})]),_:1})])])}}};var GV={computeFileSize(e){if(!e)return"-";let t="";e<.1*1024?t=e.toFixed(2)+"B":e<.1*1024*1024?t=(e/1024).toFixed(2)+"KB":e<.1*1024*1024*1024?t=(e/(1024*1024)).toFixed(2)+"MB":t=(e/(1024*1024*1024)).toFixed(2)+"GB";let n=t+"",l=n.indexOf(".");return n.substr(l+1,2)=="00"?n.substring(0,l)+n.substr(l+3,2):t}},fv={createNavigationHeading(){let e=[],t=document.querySelector(".wiki-page-content").querySelectorAll("h1,h2,h3,h4,h5,h6");return t.length<=0?[]:(t.forEach(n=>{let l=n.innerHTML.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/<\/?[^>]+(>|$)/g,"");e.push({node:n,level:parseInt(n.tagName.replace(/[h]/i,""),10),text:l})}),e)}};const XV={class:"navigation"},ZV=["onClick"],pv={__name:"Navigation",props:{heading:{type:Array,default:[]}},setup(e){const t=cv();let n=_("100px");qe(()=>{window.onresize=()=>{a()},setTimeout(()=>a(),100)}),pe(()=>t.viewMenuWidth,r=>{a()});let l=_();const a=()=>{n.value=window.getComputedStyle(l.value,null).width},s=r=>{r.node.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})};return(r,i)=>(k(),R("div",XV,[M("div",{ref_key:"navigationRef",ref:l,style:{display:"inline-block",width:"100%"}},null,512),M("div",{class:"navigation-heading",style:Me({width:o(n)})},[(k(!0),R(Re,null,Je(e.heading,u=>(k(),R("div",{class:$("heading-item heading-"+u.level),onClick:c=>s(u)},ae(u.text),11,ZV))),256))],4)]))}},vv=Br("pageData",{state:()=>({pageInfo:{}})});const JV={key:0,class:"action-box-empty"},QV={key:1,class:"comment-list"},eD={class:"comment-user-name"},tD={class:"comment-content"},nD={class:"comment-input-box"},lD={__name:"Comment",setup(e){let t={colorArr:["#67C23A","#409EFF","#E6A23C","#F56C6C","#909399","#303133"],userHeadColor:{}},n=_(""),l=_([]),a=_({});bn(),Nn();let s=vv(),r=dv();pe(()=>s.pageInfo,h=>{c()}),qe(()=>{c()});let i=_();const u=()=>{setTimeout(()=>{let h=i.value;h.scrollTop=h.scrollHeight},0)},c=()=>{!s.pageInfo||!s.pageInfo.id||(p(),St.pageCommentList({pageId:s.pageInfo.id}).then(h=>{let g=h.data||[];for(let b=0;br.userInfo.id===h.createUserId||r.userInfo.id===s.pageInfo.createUserId;const d=h=>{St.deletePageComment({id:h}).then(()=>{c()})},p=()=>{a.value={}},v=()=>{if(n.value.length<=0){Bt.error("\u8BF7\u8F93\u5165\u8BC4\u8BBA\u5185\u5BB9");return}let h={pageId:s.pageInfo.id,content:n.value,parentId:a.value.id};St.updatePageComment(h).then(g=>{let b=g.data;b.color=m(b.createUserId),n.value="",c()})},m=h=>{let g=t.userHeadColor[h];return g||(g=t.colorArr[Math.ceil(Math.random()*t.colorArr.length)-1],t.userHeadColor[h]=g),g};return(h,g)=>{const b=re("el-icon"),w=re("el-popconfirm"),y=re("el-card"),S=re("el-timeline-item"),E=re("el-timeline"),I=re("el-button");return k(),R(Re,null,[M("div",{class:"comment-box",ref_key:"actionTabCommentRef",ref:i},[o(l).length<=0?(k(),R("div",JV," \u6682\u65E0\u8BC4\u8BBA ")):(k(),R("div",QV,[T(E,null,{default:N(()=>[(k(!0),R(Re,null,Je(o(l),P=>(k(),Z(S,{timestamp:P.createTime,placement:"top"},{default:N(()=>[T(y,{class:"box-card comment-card","body-style":{padding:"10px"}},{default:N(()=>[M("div",{style:Me("background-color: "+P.color),class:"head"},ae(P.createUserName.substr(0,1)),5),M("div",eD,[Ce(ae(P.createUserName)+" ",1),o(f)(P)?(k(),Z(w,{key:0,placement:"top",width:"160",trigger:"click","confirm-button-text":"\u5220\u9664","cancel-button-text":"\u53D6\u6D88",onConfirm:O=>d(P.id),title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u8BC4\u8BBA\u5417\uFF1F"},{reference:N(()=>[T(b,{class:"icon-delete"},{default:N(()=>[T(o(Dr))]),_:1})]),_:2},1032,["onConfirm"])):Q("",!0)]),M("pre",tD,ae(P.content),1)]),_:2},1024)]),_:2},1032,["timestamp"]))),256))]),_:1})]))],512),M("div",nD,[ze(M("textarea",{rows:"5",placeholder:"\u53D1\u8868\u8BC4\u8BBA","onUpdate:modelValue":g[0]||(g[0]=P=>$t(n)?n.value=P:n=P),maxlength:500},null,512),[[na,o(n)]]),T(I,{style:{float:"right",margin:"2px 5px"},type:"primary",size:"small",onClick:v},{default:N(()=>[Ce("\u53D1\u9001")]),_:1})])],64)}}};const Di=e=>(ls("data-v-9782fa54"),e=e(),os(),e),oD={class:"page-show-vue"},aD={style:{"max-width":"1000px",margin:"0 auto","padding-left":"10px"}},sD={class:"wiki-author"},rD={key:0},iD={key:1,class:"create-user-time"},uD={class:"wiki-files"},cD=["innerHTML"],dD=["innerHTML"],fD={style:{"margin-top":"40px","font-size":"14px"}},pD={style:{"vertical-align":"top"},class:"is-link"},vD=Di(()=>M("img",{src:da,style:{"vertical-align":"middle"}},null,-1)),mD=Di(()=>M("img",{src:da,style:{"vertical-align":"middle",transform:"rotateX(180deg)"}},null,-1)),hD={style:{"margin-left":"10px","vertical-align":"top"}},gD={key:0},yD={key:1},bD={key:2},wD={key:3},kD={style:{"margin-left":"10px"}},CD={class:"action-tab-box"},SD={key:0,class:"action-box-empty"},_D={style:{"text-align":"center"}},ED={class:"mobile-qr"},$D=Di(()=>M("div",null,"\u4F7F\u7528\u5FAE\u4FE1\u6216\u624B\u673A\u6D4F\u89C8\u5668\u626B\u4E00\u626B\u67E5\u770B",-1)),TD=["href"],ID=["action"],ND=["name","value"],MD={__name:"Show",props:{spaceInfo:Object},emits:["switchSpace","changeExpandedKeys","loadPageList"],setup(e,{emit:t}){const n=e;let l=_({}),a=_({}),s=_({}),r=_([]),i=_(0);_([]);let u=_({pageId:0}),c=_(!1),f=_([]),d=_({}),p=_(""),v=_(!1),m=_(".//zyplayer-doc-wiki/page/file/upload"),h=_(!1),g=_([]),b=_([]),w=_(""),y=_(!1),S=_(!1),E=_("comment"),I=_(""),P=_(""),O=_({}),L=_([]),A=_(1),K=_([]),F=_(0),H=_(!1),U=_([]);_({fullscreen:!0,readmodel:!0});let W=_({url:"zyplayer-doc-wiki/page/download",param:{}}),z=bn(),D=Nn(),x=vv();ko(Ee=>{we(Ee)}),qe(()=>{we(z)});const V=()=>{let Ee={pageId:d.value.pageId};St.pageLock(Ee).then(()=>{D.push({path:"/page/edit",query:{pageId:d.value.pageId}})})},Y=Ee=>{Ee!=""&&(y.value=!0,Xn.getUserBaseInfo({search:Ee}).then(De=>{b.value=De.data||[],y.value=!1}))},ne=Ee=>{Ee=="editAuth"?ee():Ee=="deletePage"?Te():Ee=="showPageHistory"?Ye():Ee=="showOpenPage"?se():Ee=="showMobileView"?ye():Ee=="exportWord"&&J()};let q=_();const J=()=>{W.value.param={pageId:l.value.id},setTimeout(()=>q.value.submit(),0)},se=()=>{if(n.spaceInfo.openDoc!==1)Bt.warning("\u8BE5\u7A7A\u95F4\u672A\u5F00\u653E\uFF0C\u65E0\u6CD5\u67E5\u770B\u5F00\u653E\u6587\u6863\u5730\u5740");else{let Ee=D.resolve({path:"/page/share/view",query:{pageId:l.value.id,space:n.spaceInfo.uuid}});window.open(Ee.href,"_blank")}};let me=_();const ye=()=>{if(n.spaceInfo.openDoc!==1)Bt.warning("\u8BE5\u7A7A\u95F4\u672A\u5F00\u653E\uFF0C\u65E0\u6CD5\u67E5\u770B\u5F00\u653E\u6587\u6863\u5730\u5740");else{let Ee=D.resolve({path:"/page/share/mobile/view",query:{pageId:l.value.id,space:n.spaceInfo.uuid}});v.value=!0;let De=window.location.href.split("#")[0];setTimeout(()=>{p.value=De+Ee.href,Am.toCanvas(me.value,p.value,{scale:5,height:250,wight:250},Fe=>{Fe&&console.error(Fe)})},0)}},le=()=>{if(w.value.length<=0){Bt.warning("\u8BF7\u5148\u9009\u62E9\u7528\u6237");return}if(b.value.find(De=>De.userId==w.value)){w.value="";return}let Ee="";for(let De=0;De{w.value=[],g.value=[];let Ee={pageId:l.value.id};St.getPageUserAuthList(Ee).then(De=>{g.value=De.data||[],h.value=!0})},ie=()=>{let Ee={pageId:l.value.id,authList:JSON.stringify(g.value)};St.assignPageUserAuth(Ee).then(()=>{Bt.success("\u4FDD\u5B58\u6210\u529F\uFF01")})},fe=Ee=>{let De=[];for(let Fe=0;Fe{go.confirm("\u786E\u5B9A\u8981\u5220\u9664\u6B64\u9875\u9762\u53CA\u5176\u6240\u6709\u5B50\u9875\u9762\u5417\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{let Ee={pageId:l.value.id};St.pageDelete(Ee).then(()=>{t("loadPageList"),D.push({path:"/home",query:{spaceId:l.value.spaceId}})})}).catch(()=>{})},he=Ee=>{Ee.name==="comment"?Pe():Ee.name==="history"&&Ye()},be=()=>{S.value=!1,je(),$e()},Pe=()=>{S.value=!0,E.value="comment",$e()},Ye=()=>{S.value=!0,E.value="history",je(),$e()};let Xe=_();const $e=()=>{setTimeout(()=>{Xe.value&&Xe.value.computeNavigationWidth()},100)},Be=(Ee,De)=>{De==1&&(L.value=[],A.value=1);let Fe={pageId:Ee,pageNum:De};St.pageHistoryList(Fe).then(bt=>{let Ct=bt.data||[];Ct.length<=0?A.value=0:(Ct.forEach(ft=>ft.loading=0),L.value=L.value.concat(Ct))})},Oe=Ee=>{O.value.id===Ee.id&&!!I.value||(O.value.loading=0,O.value=Ee,Ee.content?(Ee.loading=2,I.value=Ee.content,P.value=Ee.content,setTimeout(()=>{kt(),Ge()},500)):(Ee.loading=1,St.pageHistoryDetail({id:Ee.id}).then(De=>{Ee.loading=2,Ee.content=De.data||"--",l.value.editorType===2&&(Ee.content=xo.exports.mavonEditor.getMarkdownIt().render(Ee.content)),I.value=Ee.content,P.value=Ee.content,setTimeout(()=>{kt(),Ge()},500)}).catch(()=>{Ee.loading=3})))},je=()=>{O.value.loading=0,I.value="",O.value={},L.value.forEach(Ee=>Ee.loading=0),P.value=s.value.content},He=Ee=>GV.computeFileSize(Ee),ke=Ee=>{je(),St.pageDetail({id:Ee}).then(De=>{let Fe=De.data||{},bt=Fe.wikiPage||{};bt.selfZan=Fe.selfZan||0,l.value=bt,s.value=Fe.pageContent||{},r.value=Fe.fileList||[],i.value=Fe.selfUserId||0,u.value={pageId:l.value.id},a.value={canEdit:Fe.canEdit,canDelete:Fe.canDelete,canUploadFile:Fe.canUploadFile,canDeleteFile:Fe.canDeleteFile,canConfigAuth:Fe.canConfigAuth},l.value.editorType===2&&(s.value.content=xo.exports.mavonEditor.getMarkdownIt().render(s.value.content)),P.value=s.value.content,document.title=bt.name||"WIKI-\u5185\u5BB9\u5C55\u793A",t("switchSpace",l.value.spaceId),t("changeExpandedKeys",Ee),setTimeout(()=>{kt(),Ge()},500),x.pageInfo=bt}),Be(Ee,1)};let Ke=_();const Ge=()=>{let Ee=fv.createNavigationHeading();if(Ee.length>0){let De=l.value.name||"WIKI-\u5185\u5BB9\u5C55\u793A";Ee.unshift({level:1,node:Ke.value,text:De})}Ee.value=Ee},lt=()=>{H.value=!1};let gt=_();const kt=()=>{const Ee=[];gt.value.querySelectorAll("img").forEach((Fe,bt)=>{Ee.push(Fe.src),Fe.onclick=()=>{F.value=bt,U.value=Ee,H.value=!0,setTimeout(()=>j(),0)}})};let ot=_();const j=()=>{ot.value.querySelectorAll(".el-image-viewer__mask").forEach(De=>{De.onclick=()=>{H.value=!1}})},oe=Ee=>{let De={yn:Ee,pageId:l.value.id};St.updatePageZan(De).then(()=>{l.value.selfZan=Ee,l.value.zanNum=l.value.zanNum+(Ee==1?1:-1)})},ge=()=>{c.value=!0,f.value=[];let Ee={pageId:l.value.id};St.pageZanList(Ee).then(De=>{f.value=De.data})},B=Ee=>{Bt.error("\u4E0A\u4F20\u5931\u8D25\uFF0C"+Ee)},X=Ee=>{Ee.errCode==200?(r.value.push(Ee.data),Bt.success("\u4E0A\u4F20\u6210\u529F\uFF01")):Bt("\u4E0A\u4F20\u5931\u8D25\uFF1A"+(Ee.errMsg||"\u672A\u77E5\u9519\u8BEF"))},ce=Ee=>{go.confirm("\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6587\u4EF6\u5417\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{let De={id:Ee.id};St.deletePageFile(De).then(()=>{let Fe=[];for(let bt=0;bt{d.value={pageId:Ee.query.pageId},d.value.pageId&&ke(d.value.pageId)};return(Ee,De)=>{const Fe=re("el-col"),bt=re("el-link"),Ct=re("el-upload"),ft=re("el-icon"),ve=re("el-dropdown-item"),xe=re("el-dropdown-menu"),rt=re("el-dropdown"),yt=re("el-row"),zt=re("el-table-column"),nn=re("el-button"),ul=re("el-table"),Bi=re("el-tab-pane"),hv=re("el-tag"),gv=re("el-timeline-item"),yv=re("el-timeline"),bv=re("el-tabs"),_s=re("el-dialog"),wv=re("el-option"),kv=re("el-select"),_o=re("el-checkbox"),Cv=re("el-image-viewer"),Sv=no("highlight");return k(),R("div",oD,[T(yt,{type:"border-card",style:{height:"100%"}},{default:N(()=>[T(Fe,{span:o(S)?18:24,style:{padding:"20px","border-right":"1px solid #f1f1f1",height:"100%",overflow:"auto"}},{default:N(()=>[T(yt,null,{default:N(()=>[T(Fe,{span:o(K).length>0?18:24},{default:N(()=>[M("div",aD,[M("div",{class:"wiki-title",ref_key:"wikiTitleRef",ref:Ke},ae(o(l).name),513),M("div",sD,[T(yt,null,{default:N(()=>[T(Fe,{span:12},{default:N(()=>[o(l).updateUserName?(k(),R("span",rD,ae(o(l).updateUserName)+"\u3000\u4E8E\u3000"+ae(o(l).updateTime)+"\u3000\u4FEE\u6539",1)):(k(),R("span",iD,ae(o(l).createUserName)+"\u3000\u4E8E\u3000"+ae(o(l).createTime)+"\u3000\u521B\u5EFA",1))]),_:1}),T(Fe,{span:12,style:{"text-align":"right"}},{default:N(()=>[T(bt,{type:"primary",icon:o(Tm),underline:!1,onClick:Pe,style:{"margin-right":"15px"}},{default:N(()=>[Ce("\u8BC4\u8BBA")]),_:1},8,["icon"]),o(a).canUploadFile===1?(k(),Z(Ct,{key:0,"on-success":X,"on-error":B,action:o(m),data:o(u),"with-credentials":!0,class:"upload-page-file",name:"files","show-file-list":"",multiple:"",limit:999,style:{display:"inline","margin-right":"15px","vertical-align":"middle"}},{default:N(()=>[T(bt,{type:"primary",underline:!1,icon:o(Im)},{default:N(()=>[Ce("\u4E0A\u4F20\u9644\u4EF6")]),_:1},8,["icon"])]),_:1},8,["action","data"])):Q("",!0),o(a).canEdit===1?(k(),Z(bt,{key:1,type:"primary",underline:!1,icon:o(Nm),onClick:V,style:{"margin-right":"15px"}},{default:N(()=>[Ce("\u7F16\u8F91")]),_:1},8,["icon"])):Q("",!0),T(rt,{style:{"margin-right":"15px","vertical-align":"middle"},trigger:"click",onCommand:ne},{dropdown:N(()=>[T(xe,null,{default:N(()=>[T(ve,{command:"showPageHistory",icon:o(Mm)},{default:N(()=>[Ce("\u67E5\u770B\u5386\u53F2\u7248\u672C")]),_:1},8,["icon"]),o(a).canConfigAuth==1?(k(),Z(ve,{key:0,command:"editAuth",icon:o(Pm)},{default:N(()=>[Ce("\u6743\u9650\u8BBE\u7F6E")]),_:1},8,["icon"])):Q("",!0),e.spaceInfo.openDoc==1?(k(),Z(ve,{key:1,command:"showOpenPage",icon:o(Om)},{default:N(()=>[Ce("\u67E5\u770B\u5F00\u653E\u6587\u6863")]),_:1},8,["icon"])):Q("",!0),e.spaceInfo.openDoc==1?(k(),Z(ve,{key:2,command:"showMobileView",icon:o(Rm)},{default:N(()=>[Ce("\u624B\u673A\u7AEF\u67E5\u770B")]),_:1},8,["icon"])):Q("",!0),T(ve,{command:"exportWord",icon:o(Lm)},{default:N(()=>[Ce("\u5BFC\u51FA\u4E3AWord\u6587\u6863")]),_:1},8,["icon"]),o(a).canDelete==1?(k(),Z(ve,{key:3,command:"deletePage",icon:o(Dr)},{default:N(()=>[Ce("\u5220\u9664")]),_:1},8,["icon"])):Q("",!0)]),_:1})]),default:N(()=>[T(bt,{type:"primary",underline:!1},{default:N(()=>[Ce(" \u66F4\u591A "),T(ft,{class:"el-icon--right"},{default:N(()=>[T(o(ol))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),M("div",uD,[ze(T(ul,{data:o(r),border:"",style:{width:"100%","margin-bottom":"5px"}},{default:N(()=>[T(zt,{label:"\u6587\u4EF6\u540D","show-overflow-tooltip":""},{default:N(dt=>[T(bt,{target:"_blank",href:dt.row.fileUrl,type:"primary"},{default:N(()=>[Ce(ae(dt.row.fileName),1)]),_:2},1032,["href"])]),_:1}),T(zt,{prop:"createUserName",label:"\u521B\u5EFA\u4EBA",width:"110px","show-overflow-tooltip":""}),T(zt,{label:"\u6587\u4EF6\u5927\u5C0F",width:"120px"},{default:N(dt=>[Ce(ae(He(dt.row.fileSize)),1)]),_:1}),T(zt,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4",width:"160px"}),T(zt,{prop:"downloadNum",label:"\u4E0B\u8F7D\u6B21\u6570",width:"90px"},{default:N(dt=>[Ce(ae(dt.row.downloadNum||0),1)]),_:1}),o(a).canDeleteFile==1?(k(),Z(zt,{key:0,label:"\u64CD\u4F5C",width:"90px"},{default:N(dt=>[T(nn,{onClick:dn=>ce(dt.row)},{default:N(()=>[Ce("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})):Q("",!0)]),_:1},8,["data"]),[[nt,o(r).length>0]])]),M("div",{ref_key:"pageContentRef",ref:gt,class:"wiki-page-content"},[o(l).editorType==2?ze((k(),R("div",{key:0,innerHTML:o(P),class:"markdown-body"},null,8,cD)),[[Sv]]):(k(),R("div",{key:1,innerHTML:o(P),class:"wang-editor-body"},null,8,dD))],512),M("div",fD,[M("span",pD,[ze(M("span",{onClick:De[0]||(De[0]=dt=>oe(1))},[vD,Ce("\u8D5E")],512),[[nt,o(l).selfZan==0]]),ze(M("span",{onClick:De[1]||(De[1]=dt=>oe(0))},[mD,Ce("\u8E29")],512),[[nt,o(l).selfZan==1]])]),M("span",hD,[o(l).selfZan==0&&o(l).zanNum<=0?(k(),R("span",gD,"\u6210\u4E3A\u7B2C\u4E00\u4E2A\u8D5E\u540C\u8005")):o(l).selfZan==0&&o(l).zanNum>0?(k(),R("span",yD,[M("span",{class:"is-link",onClick:ge},ae(o(l).zanNum)+"\u4EBA",1),Ce("\u8D5E\u4E86\u5B83 ")])):o(l).selfZan==1&&o(l).zanNum<=1?(k(),R("span",bD,"\u6211\u8D5E\u4E86\u5B83")):o(l).selfZan==1&&o(l).zanNum>1?(k(),R("span",wD,[M("span",{class:"is-link",onClick:ge},"\u6211\u548C"+ae(o(l).zanNum-1)+"\u4E2A\u5176\u4ED6\u4EBA",1),Ce("\u8D5E\u4E86\u5B83 ")])):Q("",!0)]),M("span",kD,[T(ft,{style:{"font-size":"16px",color:"#666","vertical-align":"middle"}},{default:N(()=>[T(o(la))]),_:1}),Ce(ae(o(l).viewNum)+"\u6B21\u9605\u8BFB ",1)])])])]),_:1},8,["span"]),o(K).length>0?(k(),Z(Fe,{key:0,span:o(K).length>0?6:0},{default:N(()=>[T(pv,{ref_key:"navigationRef",ref:Xe,heading:o(K)},null,8,["heading"])]),_:1},8,["span"])):Q("",!0)]),_:1})]),_:1},8,["span"]),ze(T(Fe,{span:6,style:{height:"100%"}},{default:N(()=>[T(ft,{onClick:be,class:"close-action-tab"},{default:N(()=>[T(o(En))]),_:1}),T(bv,{modelValue:o(E),"onUpdate:modelValue":De[2]||(De[2]=dt=>$t(E)?E.value=dt:E=dt),onTabClick:he},{default:N(()=>[T(Bi,{label:"\u8BC4\u8BBA",name:"comment"},{default:N(()=>[T(lD)]),_:1}),T(Bi,{label:"\u4FEE\u6539\u5386\u53F2",name:"history"},{default:N(()=>[M("div",CD,[o(L).length<=0?(k(),R("div",SD," \u6682\u65E0\u4FEE\u6539\u5386\u53F2\u8BB0\u5F55 ")):(k(),Z(yv,{key:1},{default:N(()=>[(k(!0),R(Re,null,Je(o(L),dt=>(k(),Z(gv,null,{default:N(()=>[T(hv,{type:o(O).id===dt.id?dt.loading===3?"danger":"success":"info",class:"history-item",onClick:dn=>Oe(dt)},{default:N(()=>[M("div",null,ae(dt.createUserName),1),M("div",null,ae(dt.createTime),1)]),_:2},1032,["type","onClick"]),ze(T(ft,{class:"history-loading-status"},{default:N(()=>[T(o(nl))]),_:2},1536),[[nt,dt.loading===1]]),ze(T(ft,{class:"history-loading-status"},{default:N(()=>[T(o(ss))]),_:2},1536),[[nt,dt.loading===2]]),ze(T(ft,{class:"history-loading-status"},{default:N(()=>[T(o(ll))]),_:2},1536),[[nt,dt.loading===3]])]),_:2},1024))),256))]),_:1}))])]),_:1})]),_:1},8,["modelValue"])]),_:1},512),[[nt,o(S)]])]),_:1}),T(_s,{title:"\u624B\u673A\u626B\u7801\u67E5\u770B",modelValue:o(v),"onUpdate:modelValue":De[3]||(De[3]=dt=>$t(v)?v.value=dt:v=dt),width:"400px"},{default:N(()=>[M("div",_D,[M("div",ED,[M("canvas",{ref_key:"qrCodeDivRef",ref:me},null,512)]),$D,M("div",null,[Ce("\u6216 "),M("a",{target:"_blank",href:o(p)},"\u76F4\u63A5\u8BBF\u95EE",8,TD)])])]),_:1},8,["modelValue"]),T(_s,{title:"\u8D5E\u4E86\u5B83\u7684\u4EBA",modelValue:o(c),"onUpdate:modelValue":De[4]||(De[4]=dt=>$t(c)?c.value=dt:c=dt),width:"600px"},{default:N(()=>[T(ul,{data:o(f),border:"","show-header":!1,style:{width:"100%","margin-bottom":"5px"}},{default:N(()=>[T(zt,{prop:"createUserName",label:"\u7528\u6237"}),T(zt,{prop:"createTime",label:"\u65F6\u95F4"})]),_:1},8,["data"])]),_:1},8,["modelValue"]),T(_s,{title:"\u9875\u9762\u6743\u9650",modelValue:o(h),"onUpdate:modelValue":De[6]||(De[6]=dt=>$t(h)?h.value=dt:h=dt),width:"900px"},{default:N(()=>[T(yt,null,{default:N(()=>[T(kv,{modelValue:o(w),"onUpdate:modelValue":De[5]||(De[5]=dt=>$t(w)?w.value=dt:w=dt),filterable:"",remote:"","reserve-keyword":"",autoComplete:"new-password",placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57\u3001\u90AE\u7BB1\u3001\u8D26\u53F7\u641C\u7D22\u7528\u6237","remote-method":Y,loading:o(y),style:{width:"750px","margin-right":"10px"}},{default:N(()=>[(k(!0),R(Re,null,Je(o(b),dt=>(k(),Z(wv,{key:dt.id,label:dt.userName,value:dt.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"]),T(nn,{onClick:le},{default:N(()=>[Ce("\u6DFB\u52A0")]),_:1})]),_:1}),T(ul,{data:o(g),border:"",style:{width:"100%",margin:"10px 0"}},{default:N(()=>[T(zt,{prop:"userName",label:"\u7528\u6237",width:"150"}),T(zt,{label:"\u6743\u9650"},{default:N(dt=>[T(_o,{"true-label":1,"false-label":0,modelValue:dt.row.editPage,"onUpdate:modelValue":dn=>dt.row.editPage=dn},{default:N(()=>[Ce("\u7F16\u8F91")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(_o,{"true-label":1,"false-label":0,modelValue:dt.row.deletePage,"onUpdate:modelValue":dn=>dt.row.deletePage=dn},{default:N(()=>[Ce("\u5220\u9664")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(_o,{"true-label":1,"false-label":0,modelValue:dt.row.pageFileUpload,"onUpdate:modelValue":dn=>dt.row.pageFileUpload=dn},{default:N(()=>[Ce("\u6587\u4EF6\u4E0A\u4F20")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(_o,{"true-label":1,"false-label":0,modelValue:dt.row.pageFileDelete,"onUpdate:modelValue":dn=>dt.row.pageFileDelete=dn},{default:N(()=>[Ce("\u6587\u4EF6\u5220\u9664")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(_o,{"true-label":1,"false-label":0,modelValue:dt.row.pageAuthManage,"onUpdate:modelValue":dn=>dt.row.pageAuthManage=dn},{default:N(()=>[Ce("\u6743\u9650\u7BA1\u7406")]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),T(zt,{label:"\u64CD\u4F5C",width:"80"},{default:N(dt=>[T(nn,{size:"small",type:"danger",plain:"",onClick:dn=>fe(dt.row)},{default:N(()=>[Ce("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),M("div",null,[T(nn,{type:"primary",onClick:ie},{default:N(()=>[Ce("\u4FDD\u5B58\u914D\u7F6E")]),_:1})])]),_:1},8,["modelValue"]),M("div",{ref_key:"imagePreviewRef",ref:ot},[o(H)?(k(),Z(Cv,{key:0,"url-list":o(U),"on-close":lt,"initial-index":o(F)},null,8,["url-list","initial-index"])):Q("",!0)],512),M("form",{method:"post",ref_key:"downloadFormRef",ref:q,action:o(W).url,target:"_blank"},[(k(!0),R(Re,null,Je(o(W).param,(dt,dn)=>(k(),R("input",{type:"hidden",name:dn,value:dt},null,8,ND))),256))],8,ID)])}}};var PD=ca(MD,[["__scopeId","data-v-9782fa54"]]);const OD={class:"wang-editor-box"},RD={class:"editor-toolbar-box fix-top"},LD={class:"wang-editor-content"},AD={class:"editor-container"},VD={class:"title-container"},DD={__name:"WangEditor",props:{},setup(e,{expose:t}){let n={excludeKeys:["fullScreen","undo","redo","emotion","|","lineHeight","fontFamily"]},l=bn(),a=_({placeholder:"\u8BF7\u8F93\u5165\u6587\u6863\u5185\u5BB9",scroll:!1,MENU_CONF:{uploadImage:{server:".//zyplayer-doc-wiki/page/file/wangEditor/upload",fieldName:"files",maxFileSize:50*1024*1024,withCredentials:!0,meta:{pageId:l.query.pageId}},uploadVideo:{server:".//zyplayer-doc-wiki/page/file/wangEditor/upload",fieldName:"files",maxFileSize:300*1024*1024,withCredentials:!0,meta:{pageId:l.query.pageId}}}}),s="default";const r=Nt();let i=_("");const u=v=>{r.value=v},c=v=>{v.target.classList&&v.target.classList.contains("page-editor-body")&&(r.value.blur(),r.value.focus(!0))},f=()=>({title:i.value,html:r.value.getHtml(),text:r.value.getText()}),d=v=>{i.value=v},p=v=>{r.value.select([]),r.value.deleteFragment(),r.value.dangerouslyInsertHtml(v)};return Vt(()=>{const v=r.value;v!=null&&v.destroy()}),t({setTitle:d,setHtml:p,getPageData:f}),(v,m)=>(k(),R("div",OD,[M("div",RD,[T(o(Wm),{class:"editor-toolbar",defaultConfig:o(n),mode:o(s),editor:o(r)},null,8,["defaultConfig","mode","editor"])]),M("div",LD,[M("div",AD,[M("div",VD,[ze(M("input",{"onUpdate:modelValue":m[0]||(m[0]=h=>$t(i)?i.value=h:i=h),placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",maxlength:40},null,512),[[na,o(i)]])]),M("div",{onClick:c,class:"page-editor-body"},[T(o(Um),{defaultConfig:o(a),mode:o(s),onOnCreated:u},null,8,["defaultConfig","mode"])])])])]))}};const mv=e=>(ls("data-v-1c39dcda"),e=e(),os(),e),BD={style:{height:"100%"},class:"page-edit-vue"},xD={style:{"box-sizing":"border-box",background:"#f5f5f5",overflow:"hidden"}},zD={style:{padding:"8px","font-size":"14px",background:"#fff"}},FD=mv(()=>M("span",null,"\u7F16\u8F91\u65B9\u5F0F\uFF1A",-1)),HD={class:"parent-name"},KD=mv(()=>M("span",{style:{"margin-left":"50px"}},"\u7F16\u8F91\u65B9\u5F0F\uFF1A",-1)),WD={style:{padding:"0 10px 10px 10px",background:"#fff"}},UD={__name:"Edit",props:{spaceId:Number},emits:["loadPageList"],setup(e,{emit:t}){const n=e;let l=_({}),a=_({editorType:2,pageTitle:""}),s=_({}),r=_({}),i=_([]),u=_({}),c=_(!1),f=_(""),d=_(""),p=_(""),v=_(".//zyplayer-doc-wiki/page/file/wangEditor/upload"),m={bold:!0,italic:!0,header:!0,underline:!0,strikethrough:!0,mark:!0,superscript:!0,subscript:!0,quote:!0,ol:!0,ul:!0,link:!0,imagelink:!0,code:!0,table:!0,fullscreen:!0,readmodel:!0,undo:!0,redo:!0,trash:!0,save:!0,navigation:!0,alignleft:!0,aligncenter:!0,alignright:!0,subfield:!0,preview:!0};ko(U=>{A(U)});let h=bn(),g=Nn();bo(()=>{y()}),qe(()=>{H(),A(h);let U=this;window.onunload=function(){U.unlockPage()},window.onbeforeunload=function(){U.unlockPage()}});const b=()=>{d.value="",u.value={}},w=()=>{},y=()=>{c.value||(c.value=!0,St.pageUnlock({pageId:f.value}))},S=()=>{go.confirm("\u786E\u5B9A\u8981\u53D6\u6D88\u7F16\u8F91\u5417\uFF1F\u60A8\u7F16\u8F91\u7684\u5185\u5BB9\u5C06\u4E0D\u4F1A\u88AB\u4FDD\u5B58\u54E6~","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u7EE7\u7EED\u7F16\u8F91",type:"warning"}).then(()=>{y(),g.back()})};let E=_();const I=U=>{let W="",z="";if(a.value.editorType===2)W=p.value,z=p.value;else{let V=E.value.getPageData();W=V.html,z=V.text,a.value.pageTitle=V.title}if(!a.value.pageTitle){Bt.warning("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}let D=f.value>0?"":d.value,x={spaceId:n.spaceId,parentId:D,id:s.value.id,name:a.value.pageTitle,editorType:a.value.editorType,content:W,preview:z};St.updatePage(x).then(V=>{Bt.success("\u4FDD\u5B58\u6210\u529F\uFF01"),t("loadPageList"),f.value=V.data.id,U==1?g.push({path:"/page/show",query:{pageId:f.value}}):P.value(f.value)})},P=U=>{St.pageDetail({id:U}).then(W=>{s.value=W.data.wikiPage||{},r.value=W.data.pageContent||{},i.value=W.data.fileList||[],a.value.pageTitle=s.value.name,a.value.editorType=s.value.editorType,a.value.editorType===2?p.value=r.value.content||"":setTimeout(()=>{E.value.setTitle(s.value.name||""),E.value.setHtml(r.value.content||"")},0)})},O=U=>{!U||St.pageDetail({id:U}).then(W=>{u.value=W.data.wikiPage||{}})},L=()=>{s.value={},r.value={},i.value=[],a.value.pageTitle="",l.value.txt&&l.value.txt.html("")},A=U=>{f.value=U.query.pageId,d.value=U.query.parentId,f.value?(P(f.value),St.pageLock({pageId:f.value}).catch(W=>{go.alert(W.errMsg||"\u672A\u77E5\u9519\u8BEF","\u9519\u8BEF",{confirmButtonText:"\u786E\u5B9A",callback:()=>{g.back()}})})):(O(d.value),L())};let K=_();const F=(U,W)=>{let z=new FormData;z.append("files",W),Bc({url:v.value,method:"post",data:z,headers:{"Content-Type":"multipart/form-data"},timeout:1e4,withCredentials:!0}).then(D=>{let x=D.data.data||{};x.url?K.value.$img2Url(U,x.url):Bt.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8FD4\u56DE\u6570\u636E\u4E3A\u7A7A")}).catch(D=>{Bt.warning("\u4E0A\u4F20\u5931\u8D25\uFF1A"+D.message)})},H=()=>{};return(U,W)=>{const z=re("el-option"),D=re("el-select"),x=re("el-link"),V=re("el-tooltip"),Y=re("el-col"),ne=re("el-button"),q=re("el-row"),J=re("el-input");return k(),R("div",BD,[M("div",xD,[M("div",zD,[T(q,null,{default:N(()=>[T(Y,{span:16},{default:N(()=>[o(f)?(k(),R(Re,{key:0},[FD,T(D,{modelValue:o(a).editorType,"onUpdate:modelValue":W[0]||(W[0]=se=>o(a).editorType=se),onChange:w,disabled:!!o(f),size:"small"},{default:N(()=>[T(z,{label:"Markdown",value:2}),T(z,{label:"HTML",value:1})]),_:1},8,["modelValue","disabled"])],64)):(k(),R(Re,{key:1},[M("span",HD,"\u7236\u7EA7\uFF1A"+ae(o(u).name||"/"),1),o(d)?(k(),Z(V,{key:0,class:"item",content:"\u5728\u6839\u76EE\u5F55\u521B\u5EFA\u6587\u6863"},{default:N(()=>[T(x,{onClick:b,type:"primary",size:"small",style:{padding:"0 10px"}},{default:N(()=>[Ce("\u6839\u76EE\u5F55")]),_:1})]),_:1})):Q("",!0),KD,T(D,{modelValue:o(a).editorType,"onUpdate:modelValue":W[1]||(W[1]=se=>o(a).editorType=se),onChange:w,disabled:!!o(f),size:"small"},{default:N(()=>[T(z,{label:"Markdown",value:2}),T(z,{label:"HTML",value:1})]),_:1},8,["modelValue","disabled"])],64))]),_:1}),T(Y,{span:8,style:{"text-align":"right"}},{default:N(()=>[T(ne,{type:"primary",onClick:W[2]||(W[2]=se=>I(1)),size:"small",icon:o(Vm)},{default:N(()=>[Ce("\u4FDD\u5B58\u5E76\u67E5\u770B")]),_:1},8,["icon"]),T(ne,{type:"success",onClick:W[3]||(W[3]=se=>I(0)),size:"small",icon:o(Vl)},{default:N(()=>[Ce("\u4EC5\u4FDD\u5B58")]),_:1},8,["icon"]),T(ne,{onClick:S,size:"small",icon:o(Lc)},{default:N(()=>[Ce("\u53D6\u6D88")]),_:1},8,["icon"])]),_:1})]),_:1})]),ze(M("div",WD,[T(J,{modelValue:o(a).pageTitle,"onUpdate:modelValue":W[4]||(W[4]=se=>o(a).pageTitle=se),maxlength:40,placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",class:"page-title-input"},null,8,["modelValue"]),T(o(xo.exports.mavonEditor),{ref_key:"mavonEditorRef",ref:K,modelValue:o(p),"onUpdate:modelValue":W[5]||(W[5]=se=>$t(p)?p.value=se:p=se),toolbars:o(m),externalLink:!1,style:{height:"calc(100vh - 155px)"},onSave:W[6]||(W[6]=se=>I(0)),onImgAdd:F,placeholder:"\u8BF7\u5F55\u5165\u6587\u6863\u5185\u5BB9",class:"page-content-editor wang-editor-body"},null,8,["modelValue","toolbars"])],512),[[nt,o(a).editorType===2]]),ze(M("div",null,[T(DD,{ref_key:"wangEditorRef",ref:E},null,512)],512),[[nt,o(a).editorType===1]])])])}}};var jD=ca(UD,[["__scopeId","data-v-1c39dcda"]]);const qD={style:{"min-height":"100%"},class:"space-manage-vue"},YD={style:{"max-width":"1200px",margin:"0 auto",background:"#fff",padding:"20px","min-height":"100%","box-sizing":"border-box"}},GD={style:{"text-align":"right","margin-bottom":"10px"}},XD={style:{float:"left","line-height":"40px"}},ZD={key:1},JD={class:"page-info-box"},QD={style:{"text-align":"right"}},eB={__name:"Manage",emits:"loadSpace",setup(e,{emit:t}){let n=_(!1);_([]);let l=_([]);_(""),_({}),_({id:"",name:"",spaceExplain:"",treeLazyLoad:0,openDoc:0,uuid:"",type:1});let a=_({}),s=_(""),r=_(!1),i=_(""),u=_([]),c=_({}),f=_([]),d=_({wiki_only_show_favorite:0});bn();let p=Nn();qe(()=>{A(),W(),U()});const v=z=>{let D=p.resolve({path:"/page/share/home",query:{space:z}});window.open(D.href,"_blank")};let m=_();const h=()=>{m.value.show()},g=z=>{m.value.show(z.id)},b=()=>{if(!i.value){Bt.warning("\u8BF7\u5148\u9009\u62E9\u5206\u7EC4");return}if(f.value.find(z=>z.groupId==i.value)){i.value="";return}f.value.push({groupId:i.value,editPage:0,commentPage:0,deletePage:0,pageFileUpload:0,pageFileDelete:0,pageAuthManage:0}),i.value=""},w=z=>{let D=z.favorite==1?1:0;St.spaceFavoriteUpdate({spaceId:z.id,delFlag:D}).then(x=>{z.favorite=z.favorite==1?0:1})},y=()=>{let z={spaceId:s.value,authList:JSON.stringify(f.value)};St.spaceAuthAssign(z).then(D=>{Bt.success("\u6388\u6743\u6210\u529F\uFF01")})},S=()=>{let z=location.href.substring(0,location.href.indexOf("/doc-wiki"))+"#/console/userGroupList";window.open(z,"_blank")},E=z=>{f.value=f.value.filter(D=>D.groupId!=z.groupId)},I=z=>{s.value=z.id,i.value="",f.value=[],Xn.userGroupList().then(D=>{u.value=D.data||[],u.value.forEach(x=>c.value[x.id]=x.name)}),St.spaceAuthList({spaceId:z.id}).then(D=>{f.value=D.data||[],r.value=!0})},P=z=>{go.confirm("\u786E\u5B9A\u8981\u5220\u9664\u6B64\u7A7A\u95F4\u53CA\u4E0B\u9762\u7684\u6240\u6709\u6587\u6863\u5417\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{let D={id:z.id,delFlag:1};St.updateSpace(D).then(()=>{Bt.success("\u5220\u9664\u6210\u529F"),A(),t("loadSpace")})})};let O=_(0),L=_({ignoreFavorite:1,pageNum:1,pageSize:10});const A=()=>{n.value=!0,St.spaceList(L.value).then(z=>{l.value=z.data||[],L.value.pageNum===1&&(O.value=z.total),setTimeout(()=>n.value=!1,500)})},K=z=>{L.value.pageSize=z,A()},F=z=>{L.value.pageNum=z,A()},H=()=>{let z={name:"wiki_only_show_favorite",value:d.value.wiki_only_show_favorite};St.spaceSettingUpdate(z).then(D=>{t("loadSpace")})},U=()=>{St.spaceSettingList().then(z=>{let D=z.data||{};d.value={wiki_only_show_favorite:D.wiki_only_show_favorite||0}})},W=()=>{Xn.getSelfUserInfo().then(z=>{a.value=z.data})};return(z,D)=>{const x=re("el-breadcrumb-item"),V=re("el-breadcrumb"),Y=re("el-switch"),ne=re("el-icon"),q=re("el-tooltip"),J=re("el-button"),se=re("el-table-column"),me=re("el-link"),ye=re("el-table"),le=re("el-pagination"),ee=re("el-option"),ie=re("el-select"),fe=re("el-row"),Te=re("el-checkbox"),he=re("el-dialog");return k(),R("div",qD,[T(V,{"separator-class":"el-icon-arrow-right",style:{padding:"20px 10px"}},{default:N(()=>[T(x,null,{default:N(()=>[Ce("WIKI\u6587\u6863")]),_:1}),T(x,null,{default:N(()=>[Ce("\u7A7A\u95F4\u7BA1\u7406")]),_:1})]),_:1}),M("div",YD,[M("div",GD,[M("span",XD,[Ce(" \u4EC5\u5C55\u793A\u6211\u6536\u85CF\u7684\u7A7A\u95F4\uFF1A "),T(Y,{modelValue:o(d).wiki_only_show_favorite,"onUpdate:modelValue":D[0]||(D[0]=be=>o(d).wiki_only_show_favorite=be),"inactive-value":"0","active-value":"1",onChange:H},null,8,["modelValue"]),T(q,{class:"item",effect:"dark",content:"\u63A7\u5236\u5DE6\u4E0A\u89D2\u7A7A\u95F4\u4E0B\u62C9\u5217\u8868\u4EC5\u5C55\u793A\u6211\u6536\u85CF\u7684\u7A7A\u95F4",placement:"top-start"},{default:N(()=>[T(ne,{style:{"vertical-align":"middle","margin-left":"10px",color:"#999"}},{default:N(()=>[T(o(Dm))]),_:1})]),_:1})]),T(J,{onClick:A,icon:o(Bm),loading:o(n)},{default:N(()=>[Ce("\u5237\u65B0")]),_:1},8,["icon","loading"]),T(J,{type:"primary",onClick:h,icon:o(us)},{default:N(()=>[Ce("\u521B\u5EFA\u7A7A\u95F4")]),_:1},8,["icon"])]),T(ye,{data:o(l),border:"",style:{width:"100%","margin-bottom":"5px"}},{default:N(()=>[T(se,{prop:"id",label:"ID",width:"60"}),T(se,{prop:"name",label:"\u540D\u5B57"}),T(se,{prop:"spaceExplain",label:"\u8BF4\u660E"}),T(se,{label:"\u5F00\u653E\u5730\u5740"},{default:N(be=>[be.row.openDoc==1?(k(),Z(me,{key:0,onClick:Pe=>v(be.row.uuid)},{default:N(()=>[Ce(ae(be.row.name),1)]),_:2},1032,["onClick"])):(k(),R("span",ZD,"\u6682\u672A\u5F00\u653E"))]),_:1}),T(se,{prop:"createUserName",label:"\u521B\u5EFA\u4EBA"}),T(se,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"}),T(se,{prop:"favorite",label:"\u6536\u85CF",width:"60"},{default:N(be=>[be.row.favorite===1?(k(),Z(ne,{key:0,onClick:Pe=>w(be.row),class:"favorite-icon el-icon-star-on"},{default:N(()=>[T(o(Mo))]),_:2},1032,["onClick"])):(k(),Z(ne,{key:1,onClick:Pe=>w(be.row),class:"favorite-icon el-icon-star-off"},{default:N(()=>[T(o(Ac))]),_:2},1032,["onClick"]))]),_:1}),T(se,{label:"\u64CD\u4F5C",width:"220"},{default:N(be=>[o(a).id==be.row.createUserId?(k(),R(Re,{key:0},[T(J,{size:"small",type:"primary",onClick:Pe=>g(be.row)},{default:N(()=>[Ce("\u7F16\u8F91")]),_:2},1032,["onClick"]),T(J,{size:"small",type:"warning",onClick:Pe=>I(be.row)},{default:N(()=>[Ce("\u6388\u6743")]),_:2},1032,["onClick"]),T(J,{size:"small",type:"danger",onClick:Pe=>P(be.row)},{default:N(()=>[Ce("\u5220\u9664")]),_:2},1032,["onClick"])],64)):Q("",!0)]),_:1})]),_:1},8,["data"]),M("div",JD,[T(le,{onSizeChange:K,onCurrentChange:F,"page-sizes":[10,30,50],"page-size":10,"current-page":o(L).pageNum,layout:"prev, pager, next, jumper, sizes, total",total:o(O)},null,8,["current-page","total"])])]),T(he,{title:"\u6743\u9650\u7BA1\u7406",modelValue:o(r),"onUpdate:modelValue":D[2]||(D[2]=be=>$t(r)?r.value=be:r=be),width:"900px","close-on-click-modal":!1},{default:N(()=>[T(fe,null,{default:N(()=>[T(ie,{modelValue:o(i),"onUpdate:modelValue":D[1]||(D[1]=be=>$t(i)?i.value=be:i=be),filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5206\u7EC4",style:{width:"750px","margin-right":"10px"}},{default:N(()=>[(k(!0),R(Re,null,Je(o(u),be=>(k(),Z(ee,{key:be.id,label:o(c)[be.id],value:be.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),T(J,{onClick:b},{default:N(()=>[Ce("\u6DFB\u52A0")]),_:1})]),_:1}),T(ye,{data:o(f),border:"",style:{width:"100%",margin:"10px 0"}},{default:N(()=>[T(se,{prop:"groupId",label:"\u5206\u7EC4\u540D",width:"150"},{default:N(be=>[Ce(ae(o(c)[be.row.groupId]),1)]),_:1}),T(se,{label:"\u6743\u9650"},{default:N(be=>[T(Te,{"true-label":1,"false-label":0,modelValue:be.row.editPage,"onUpdate:modelValue":Pe=>be.row.editPage=Pe},{default:N(()=>[Ce("\u7F16\u8F91")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(Te,{"true-label":1,"false-label":0,modelValue:be.row.deletePage,"onUpdate:modelValue":Pe=>be.row.deletePage=Pe},{default:N(()=>[Ce("\u5220\u9664")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(Te,{"true-label":1,"false-label":0,modelValue:be.row.pageFileUpload,"onUpdate:modelValue":Pe=>be.row.pageFileUpload=Pe},{default:N(()=>[Ce("\u6587\u4EF6\u4E0A\u4F20")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(Te,{"true-label":1,"false-label":0,modelValue:be.row.pageFileDelete,"onUpdate:modelValue":Pe=>be.row.pageFileDelete=Pe},{default:N(()=>[Ce("\u6587\u4EF6\u5220\u9664")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(Te,{"true-label":1,"false-label":0,modelValue:be.row.pageAuthManage,"onUpdate:modelValue":Pe=>be.row.pageAuthManage=Pe},{default:N(()=>[Ce("\u6743\u9650\u7BA1\u7406")]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),T(se,{label:"\u64CD\u4F5C",width:"80"},{default:N(be=>[T(J,{size:"small",type:"danger",plain:"",onClick:Pe=>E(be.row)},{default:N(()=>[Ce("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),M("div",QD,[T(J,{onClick:S},{default:N(()=>[Ce("\u5206\u7EC4\u7BA1\u7406")]),_:1}),T(J,{type:"primary",onClick:y},{default:N(()=>[Ce("\u4FDD\u5B58\u914D\u7F6E")]),_:1})])]),_:1},8,["modelValue"]),T(o(iv),{ref_key:"createSpaceRef",ref:m,onSuccess:A},null,512)])}}};const tB={style:{padding:"10px"},class:"page-share-home-vue"},nB={style:{"max-width":"800px",margin:"0 auto"}},lB={key:0,class:"empty-news"},oB={class:"line-box"},aB={class:"line-title"},sB={class:"text-link"},rB={class:"text-link"},iB={class:"page-preview-box"},uB=["onClick","innerHTML"],cB=["innerHTML"],dB=M("img",{src:da,class:"zan-img"},null,-1),fB={class:"page-info-box"},pB={__name:"Home",setup(e){let t=_(0),n=_({spaceId:"",newsType:1,pageNum:1,pageSize:20}),l=_([]);ko(d=>{f(d)});let a=bn(),s=Nn();qe(()=>{f(a)});const r=()=>{St.openPageNews(n.value).then(d=>{l.value=d.data||[],t.value=d.total})},i=d=>{n.value.pageSize=d,r()},u=d=>{let p={space:d.space,pageId:d.pageId};s.push({path:"/page/share/view",query:p})},c=d=>{n.value.pageNum=d,r()},f=d=>{n.value={space:d.query.space,newsType:1,pageNum:1,pageSize:20},n.value.space&&r()};return(d,p)=>{const v=re("el-icon"),m=re("el-pagination");return k(),R("div",tB,[M("div",nB,[o(l).length<=0?(k(),R("div",lB,"\u6682\u65E0\u6570\u636E")):(k(!0),R(Re,{key:1},Je(o(l),h=>(k(),R("div",oB,[M("div",aB,[M("span",sB,ae(h.createUserName),1),Ce(" \u53D1\u5E03\u4E8E "),M("span",rB,ae(h.spaceName),1)]),M("div",iB,[M("div",{class:"page-preview-title",onClick:g=>u(h),innerHTML:h.pageTitle},null,8,uB),M("div",{class:"page-preview-content",innerHTML:h.previewContent},null,8,cB),M("div",null,[M("span",null,[dB,Ce(ae(h.zanNum)+"\u3000",1)]),M("span",null,[T(v,{class:"view-img"},{default:N(()=>[T(o(la))]),_:1}),Ce(" "+ae(h.viewNum)+"\u3000",1)]),M("span",null,ae(h.updateTime||h.createTime),1)])])]))),256)),M("div",fB,[T(m,{onSizeChange:i,onCurrentChange:c,"page-sizes":[20,50,100],"page-size":20,"current-page":o(n).pageNum,layout:"prev, pager, next, jumper, sizes, total",total:o(t)},null,8,["current-page","total"])])])])}}};const vB={class:"page-share-view-vue"},mB={style:{"max-width":"1000px","padding-left":"10px",margin:"0 auto"}},hB={class:"wiki-author"},gB={key:0},yB={key:1},bB={class:"wiki-files"},wB=["href"],kB=["innerHTML"],CB=["innerHTML"],SB={__name:"View",setup(e){let t=_(""),n=_(""),l=_({}),a=_([]),s=_(""),r=_(0),i=_(!1),u=_([]),c=_([]);ko(S=>{v(S)});let f=bn();Nn(),qe(()=>{v(f)});let d=_();const p=S=>{let E={pageId:S,space:t.value};St.openPageDetail(E).then(I=>{let P=I.data.wikiPage||{};P.selfZan=I.data.selfZan||0,P.value=P;let O=I.data.pageContent||{};a.value=I.data.fileList||[],P.value.editorType===2&&(O.content=xo.exports.mavonEditor.getMarkdownIt().render(O.content)),s.value=O.content;let L=P.name||"WIKI-\u5185\u5BB9\u5C55\u793A";document.title=L,setTimeout(()=>{b();let A=fv.createNavigationHeading();A.length>0&&A.unshift({level:1,node:d.value,text:L}),A.value=A},500)})},v=S=>{t.value=S.query.space,n.value=S.query.pageId,n.value&&p(n.value)},m=S=>{if(!S)return"-";let E="";S<.1*1024?E=S.toFixed(2)+"B":S<.1*1024*1024?E=(S/1024).toFixed(2)+"KB":S<.1*1024*1024*1024?E=(S/(1024*1024)).toFixed(2)+"MB":E=(S/(1024*1024*1024)).toFixed(2)+"GB";let I=E+"",P=I.indexOf(".");return I.substr(P+1,2)=="00"?I.substring(0,P)+I.substr(P+3,2):E},h=()=>{i.value=!1};let g=_();const b=()=>{const S=[];g.value.querySelectorAll("img").forEach((I,P)=>{S.push(I.src),I.onclick=()=>{r.value=P,u.value=S,i.value=!0,setTimeout(()=>y.value(),0)}})};let w=_();const y=()=>{w.value.querySelectorAll(".el-image-viewer__mask").forEach(E=>{E.onclick=()=>i.value=!1})};return(S,E)=>{const I=re("el-col"),P=re("el-table-column"),O=re("el-table"),L=re("el-row"),A=re("el-image-viewer");return k(),R("div",vB,[T(L,{type:"border-card"},{default:N(()=>[T(L,null,{default:N(()=>[o(c).length>0?(k(),Z(I,{key:0,xs:0,sm:4,md:4,lg:6,xl:6},{default:N(()=>[T(pv,{heading:o(c)},null,8,["heading"])]),_:1})):Q("",!0),T(I,{xs:24,sm:o(c).length>0?20:24,md:o(c).length>0?20:24,lg:o(c).length>0?18:24,xl:o(c).length>0?18:24},{default:N(()=>[M("div",mB,[M("div",{class:"wiki-title",ref_key:"wikiTitleRef",ref:d},ae(o(l).name),513),M("div",hB,[o(l).updateTime?(k(),R("span",gB,"\u6700\u540E\u4FEE\u6539\uFF1A"+ae(o(l).updateTime),1)):(k(),R("span",yB,"\u521B\u5EFA\u65F6\u95F4\uFF1A"+ae(o(l).createTime),1))]),M("div",bB,[ze(T(O,{data:o(a),border:"",style:{width:"100%","margin-bottom":"5px"}},{default:N(()=>[T(P,{label:"\u6587\u4EF6\u540D"},{default:N(K=>[M("a",{target:"_blank",href:K.row.fileUrl},ae(K.row.fileName),9,wB)]),_:1}),T(P,{label:"\u6587\u4EF6\u5927\u5C0F"},{default:N(K=>[Ce(ae(m(K.row.fileSize)),1)]),_:1}),T(P,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4",width:"180px"}),T(P,{prop:"downloadNum",label:"\u4E0B\u8F7D\u6B21\u6570",width:"80px"})]),_:1},8,["data"]),[[nt,o(a).length>0]])]),M("div",{ref_key:"pageContentRef",ref:g,class:"wiki-page-content"},[o(l).editorType==2?(k(),R("div",{key:0,innerHTML:o(s),class:"markdown-body"},null,8,kB)):(k(),R("div",{key:1,innerHTML:o(s),class:"wang-editor-body"},null,8,CB))],512)])]),_:1},8,["sm","md","lg","xl"])]),_:1})]),_:1}),M("div",{ref_key:"imagePreviewRef",ref:w},[o(i)?(k(),Z(A,{key:0,"url-list":o(u),"on-close":h,"initial-index":o(r)},null,8,["url-list","initial-index"])):Q("",!0)],512)])}}};const _B={class:"page-share-view-vue"},EB={style:{"max-width":"950px",margin:"0 auto"}},$B={class:"wiki-author"},TB={key:0},IB={key:1},NB={class:"wiki-files"},MB=["href"],PB=["innerHTML"],OB=["innerHTML"],RB={__name:"View",emits:["popupShow"],setup(e,{emit:t}){let n=_(""),l=_(""),a=_({}),s=_([]),r=_(""),i=_(0),u=_([]);ko(g=>{p(g)});let c=bn();Nn(),qe(()=>{p(c)});const f=()=>{t("popupShow",!0)},d=g=>{let b={pageId:g,space:n.value};St.openPageDetail(b).then(w=>{let y=w.data.wikiPage||{};y.selfZan=w.data.selfZan||0,a.value=y;let S=w.data.pageContent||{};s.value=w.data.fileList||[],a.value.editorType===2&&(S.content=xo.exports.mavonEditor.getMarkdownIt().render(S.content)),r.value=S.content,document.title=y.name||"WIKI-\u5185\u5BB9\u5C55\u793A",setTimeout(()=>h(),500)})},p=g=>{n.value=g.query.space,l.value=g.query.pageId,l.value&&d(l.value)},v=g=>{if(!g)return"-";let b="";g<.1*1024?b=g.toFixed(2)+"B":g<.1*1024*1024?b=(g/1024).toFixed(2)+"KB":g<.1*1024*1024*1024?b=(g/(1024*1024)).toFixed(2)+"MB":b=(g/(1024*1024*1024)).toFixed(2)+"GB";let w=b+"",y=w.indexOf(".");return w.substr(y+1,2)=="00"?w.substring(0,y)+w.substr(y+3,2):b};let m=_();const h=()=>{const g=[];m.value.querySelectorAll("img").forEach((w,y)=>{g.push(w.src),w.onclick=()=>{i.value=y,u.value=g,Hm({images:g,startPosition:y})}})};return(g,b)=>{const w=re("van-icon"),y=re("van-nav-bar"),S=re("el-table-column"),E=re("el-table"),I=re("el-row");return k(),R("div",_B,[T(y,{title:o(a).name,class:"header"},{left:N(()=>[T(w,{name:"wap-nav",size:"20",onClick:f})]),_:1},8,["title"]),T(I,{type:"border-card",class:"main"},{default:N(()=>[M("div",EB,[M("div",$B,[o(a).updateTime?(k(),R("span",TB,"\u6700\u540E\u4FEE\u6539\uFF1A"+ae(o(a).updateTime),1)):(k(),R("span",IB,"\u521B\u5EFA\u65F6\u95F4\uFF1A"+ae(o(a).createTime),1))]),M("div",NB,[ze(T(E,{data:o(s),border:"",style:{width:"100%","margin-bottom":"5px"}},{default:N(()=>[T(S,{label:"\u6587\u4EF6\u540D"},{default:N(P=>[M("a",{target:"_blank",href:P.row.fileUrl},ae(P.row.fileName),9,MB)]),_:1}),T(S,{label:"\u6587\u4EF6\u5927\u5C0F"},{default:N(P=>[Ce(ae(v(P.row.fileSize)),1)]),_:1}),T(S,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4",width:"180px"}),T(S,{prop:"downloadNum",label:"\u4E0B\u8F7D\u6B21\u6570",width:"80px"})]),_:1},8,["data"]),[[nt,o(s).length>0]])]),M("div",{ref_key:"pageContentRef",ref:m,class:"wiki-page-content"},[o(a).editorType==2?(k(),R("div",{key:0,innerHTML:o(r),class:"markdown-body"},null,8,PB)):(k(),R("div",{key:1,innerHTML:o(r),class:"wang-editor-body"},null,8,OB))],512)])]),_:1})])}}};let LB=[{path:"/",redirect:"/home"},{path:"/page/search",name:"WIKI-\u5168\u5C40\u641C\u7D22",component:PV},{path:"/common/noAuth",name:"WIKI-\u6CA1\u6709\u6743\u9650",component:OV},{path:"/",name:"\u6587\u6863\u7BA1\u7406",component:QA,children:[{path:"/home",name:"WIKI\u6587\u6863\u7BA1\u7406",component:WV},{path:"/user/myInfo",name:"WIKI-\u6211\u7684\u4FE1\u606F",component:YV},{path:"/page/show",name:"WIKI-\u9875\u9762\u67E5\u770B",component:PD},{path:"/page/edit",name:"WIKI-\u7F16\u8F91\u5185\u5BB9",component:jD},{path:"/space/manage",name:"WIKI-\u7A7A\u95F4\u7BA1\u7406",component:eB}]},{path:"/",name:"PC\u7AEF\u5F00\u653E\u6587\u6863",component:rV,children:[{path:"/page/share/home",name:"WIKI-\u5F00\u653E\u6587\u6863",component:pB},{path:"/page/share/view",name:"WIKI-\u5185\u5BB9\u5C55\u793A",component:SB}]},{path:"/",name:"APP\u7AEF\u5F00\u653E\u6587\u6863",component:gV,children:[{path:"/page/share/mobile/view",name:"WIKI-\u5F00\u653E\u6587\u6863",component:RB}]}];const AB=xm({history:zm(),routes:LB}),xl=Ec(uA);xl.config.productionTip=!1;xl.use(iA,{locale:cA});xl.use(Km);xl.use(AB);xl.use(Fm());xl.mount("#app");xl.directive("highlight",function(e){e.querySelectorAll("pre code").forEach(n=>{_v.highlightBlock(n)})}); +\u5347\u7EA7\u5185\u5BB9\uFF1A`+r.data.upgradeContent)))})};return t({show:a}),(r,i)=>{const u=re("el-tab-pane"),c=re("el-divider"),f=re("el-tabs"),d=re("el-dialog");return k(),Z(d,{title:"\u5173\u4E8E",modelValue:o(n),"onUpdate:modelValue":i[0]||(i[0]=p=>$t(n)?n.value=p:n=p),width:"600px",class:"about-zyplayer-doc"},{default:N(()=>[M("div",kA,[CA,M("div",SA,[M("div",null,"\u7248\u672C "+ae(o(l).nowVersion||"1.0.0"),1),_A]),T(f,{type:"border-card"},{default:N(()=>[T(u,{label:"\u652F\u6301"},{default:N(()=>[EA]),_:1}),T(u,{label:"\u5F00\u6E90\u8F6F\u4EF6"},{default:N(()=>[M("div",$A,[TA,T(c,{"content-position":"left"},{default:N(()=>[Ce("\u540E\u7AEF")]),_:1}),IA,T(c,{"content-position":"left"},{default:N(()=>[Ce("\u524D\u7AEF")]),_:1}),NA])]),_:1}),o(l).lastVersion?(k(),Z(u,{key:0,label:"\u8F6F\u4EF6\u66F4\u65B0"},{label:N(()=>[MA]),default:N(()=>[M("div",PA,[M("div",null,"\u5F53\u524D\u7248\u672C\uFF1A"+ae(o(l).nowVersion),1),M("div",null,"\u6700\u65B0\u7248\u672C\uFF1A"+ae(o(l).lastVersion),1),M("div",null,[Ce(" \u5347\u7EA7\u5730\u5740\uFF1A"),M("a",{target:"_blank",href:o(l).upgradeUrl},ae(o(l).upgradeUrl),9,OA)]),RA,M("pre",LA,ae(o(l).upgradeContent),1)])]),_:1})):Q("",!0)]),_:1})])]),_:1},8,["modelValue"])}}},cv=Br("wikiDisplay",{state:()=>({viewMenuWidth:300})}),dv=Br("userData",{state:()=>({userInfo:{}})});const VA={class:"global-layout-vue"},DA={style:{padding:"10px",height:"100%","box-sizing":"border-box",background:"#fafafa"}},BA={style:{"margin-bottom":"10px"}},xA={align:"center"},zA={class:"search-option-item"},FA={class:"title"},HA=["innerHTML"],KA=["innerHTML"],WA={class:"wiki-page-tree-box"},UA={class:"page-tree-node"},jA={class:"label"},qA={class:"text"},YA={class:"header-right-user-name"},GA={style:{"margin-bottom":"10px"}},XA=M("span",{style:{"font-size":"14px","font-weight":"bold"}},"\u901A\u77E5",-1),ZA={class:"header-user-message"},JA={class:"page-info-box"},QA={__name:"GlobalLayout",setup(e){let t=bn(),n=Nn();const l=cv();let a=_(!0);_(!1),_([]);let s=_({children:"children",label:"name"}),r=_([]),i=_([]),u=_(""),c=_({}),f=_("");_(new Map);let d=_(""),p=_([]);_({});let v=_([]),m=_({}),h=_([]),g=_(!1),b=_(!1),w=_(0),y=_({sysType:2,pageNum:1,pageSize:20}),S=_(300);qe(()=>{q(),W(),ee()});const E=he=>{he=he||{},J(he.parentId,he.node)},I=()=>{a.value=!a.value,setTimeout(()=>{a.value?Te(S.value+1):Te(1)},100)},P=()=>{u.value>0?n.push({path:"/page/edit",query:{parentId:f.value}}):Bt.warning("\u8BF7\u5148\u9009\u62E9\u6216\u521B\u5EFA\u7A7A\u95F4")},O=he=>{},L=(he,be)=>{if(!he||!he.trim()){be([]);return}St.pageNews({spaceId:u.value,keywords:he}).then(Pe=>{let Ye=Pe.data||[];be(Ye)})},A=he=>{d.value="",n.push({path:"/page/show",query:{pageId:he.pageId}})};let K=_();const F=he=>{f.value=he.id,n.push({path:"/page/show",query:{pageId:he.id}}),H(he)},H=he=>{he.children&&he.children.length>0&&he.children[0].needLoad&&(console.log("\u52A0\u8F7D\u8282\u70B9\uFF1A",he),J(he.id))},U=(he,be,Pe,Ye)=>{console.log("tree drop: ",he.data,be.data,Pe);var Xe={id:he.data.id,parentId:be.data.parentId};Pe=="inner"?Xe.parentId=be.data.id:Pe=="before"?Xe.beforeSeq=be.data.seqNo:Pe=="after"&&(Xe.afterSeq=be.data.seqNo),St.pageChangeParent(Xe).then($e=>{J()})},W=()=>{Xn.getUserMessageList(y.value).then(he=>{h.value=he.data||[],w.value=he.total||0,g.value=h.value.filter(be=>be.msgStatus==0).length>0})},z=he=>{he.msgStatus==0&&Xn.readUserMessage({ids:he.id}).then(()=>{W()}),he.msgType>=2&&he.msgType<=12&&(n.push({path:"/page/show",query:{pageId:he.dataId}}),b.value=!1)},D=()=>{let he=[];h.value.filter(be=>be.msgStatus==0).forEach(be=>{he.push(be.id)}),!(he.length<=0)&&Xn.readUserMessage({ids:he.join(",")}).then(()=>{Bt.success("\u6807\u8BB0\u6210\u529F"),W()})},x=he=>{y.value.pageNum=he,W()},V=(he,be)=>!he||!be.name?!0:be.name.toLowerCase().indexOf(he.toLowerCase())!==-1;let Y=_();const ne=he=>{if(he==0)Y.value.show();else if(he==-1)n.push({path:"/space/manage"});else{u.value=he;for(let be=0;be{St.spaceList({}).then(be=>{i.value=be.data||[];let Pe=[];if(i.value.forEach(Ye=>Pe.push({label:Ye.name,value:Ye.id})),r.value=Pe,i.value.length>0){let Ye=he,Xe=i.value.find($e=>$e.id==he);Xe||(Xe=i.value[0],Ye=Xe.id),Xe.value=Xe,u.value=Ye,f.value="",J();try{t.path==="/home"&&n.push({path:"/home",query:{spaceId:Ye}})}catch($e){console.log($e)}}})},J=(he,be)=>{let Pe={spaceId:u.value};St.pageList(Pe).then(Ye=>{p.value=Ye.data||[],Ne(()=>{f.value=t.query.pageId,f.value&&K.value.setCurrentKey(f.value)})})};let se=_();const me=he=>{console.log("command:"+he),he=="userSignOut"?ye():he=="aboutDoc"?se.value.show():he=="myInfo"?n.push({path:"/user/myInfo"}):he=="console"?window.open("./","_blank"):Bt.warning("\u6682\u672A\u5F00\u653E")},ye=()=>{Xn.userLogout().then(()=>{location.reload()})};let le=dv();const ee=()=>{Xn.getSelfUserInfo().then(he=>{m.value=he.data,le.userInfo=he.data})},ie=he=>{for(let be=0;be{he=parseInt(he),u.value!=he&&(u.value=he,J())},Te=he=>{l.viewMenuWidth=he};return(he,be)=>{const Pe=re("el-option"),Ye=re("el-option-group"),Xe=re("el-select"),$e=re("el-button"),Be=re("el-autocomplete"),Oe=re("el-icon"),je=re("el-tooltip"),He=re("el-tree"),ke=re("el-aside"),Ke=re("el-col"),Ge=re("el-badge"),lt=re("el-link"),gt=re("el-table-column"),kt=re("el-table"),ot=re("el-pagination"),j=re("el-popover"),oe=re("el-dropdown-item"),ge=re("el-dropdown-menu"),B=re("el-dropdown"),X=re("el-row"),ce=re("el-header"),we=re("router-view"),Ee=re("el-main"),De=re("el-container");return k(),R("div",VA,[T(De,null,{default:N(()=>[ze(T(ke,{style:Me({width:o(S)+"px"})},{default:N(()=>[M("div",DA,[M("div",BA,[T(Xe,{"model-value":o(u),filterable:"",placeholder:"\u9009\u62E9\u7A7A\u95F4",style:{width:"100%"},onChange:ne},{default:N(()=>[T(Ye,{label:""},{default:N(()=>[T(Pe,{key:"0",label:"\u521B\u5EFA\u7A7A\u95F4",value:"0"}),T(Pe,{key:"-1",label:"\u7A7A\u95F4\u7BA1\u7406",value:"-1"})]),_:1}),T(Ye,{label:""}),(k(!0),R(Re,null,Je(o(r),Fe=>(k(),Z(Pe,{key:Fe.value,label:Fe.label,value:Fe.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"])]),M("div",xA,[T($e,{icon:o(us),style:{width:"100%"},onClick:P},{default:N(()=>[Ce("\u521B\u5EFA\u6587\u6863")]),_:1},8,["icon"])]),T(Be,{modelValue:o(d),"onUpdate:modelValue":be[0]||(be[0]=Fe=>$t(d)?d.value=Fe:d=Fe),"fetch-suggestions":L,placeholder:"\u5728\u5F53\u524D\u7A7A\u95F4\u641C\u7D22","popper-class":"search-autocomplete",style:{width:"100%",margin:"10px 0"},onSelect:A},{default:N(({item:Fe})=>[M("div",zA,[M("div",FA,[M("span",{innerHTML:Fe.pageTitle||"-"},null,8,HA)]),M("span",{class:"content",innerHTML:Fe.previewContent||"-"},null,8,KA)])]),_:1},8,["modelValue"]),M("div",WA,[T(He,{ref_key:"wikiPageTreeRef",ref:K,"current-node-key":o(f),data:o(p),"default-expanded-keys":o(v),"expand-on-click-node":!0,"filter-node-method":V,props:o(s),draggable:"","highlight-current":"","node-key":"id",style:{"background-color":"#fafafa"},onNodeClick:F,onNodeExpand:H,onNodeDrop:U},{default:N(({node:Fe,data:bt})=>[M("div",UA,[T(je,{content:Fe.label,placement:"top-start","show-after":1e3},{default:N(()=>[M("span",jA,[T(Oe,null,{default:N(()=>[T(o(Vr))]),_:1}),M("span",qA,ae(Fe.label),1)])]),_:2},1032,["content"])])]),_:1},8,["current-node-key","data","default-expanded-keys","props"])])])]),_:1},8,["style"]),[[nt,o(a)]]),ze(T(uv,{value:o(S),"onUpdate:value":be[1]||(be[1]=Fe=>$t(S)?S.value=Fe:S=Fe),onChange:Te},null,8,["value"]),[[nt,o(a)]]),T(De,null,{default:N(()=>[T(ce,null,{default:N(()=>[T(X,null,{default:N(()=>[T(Ke,{span:12},{default:N(()=>[o(a)?(k(),Z($e,{key:0,onClick:I,text:"",icon:o(Sm),class:"fold-btn"},null,8,["icon"])):(k(),Z($e,{key:1,onClick:I,text:"",icon:o(_m),class:"fold-btn"},null,8,["icon"]))]),_:1}),T(Ke,{span:12,style:{"text-align":"right"}},{default:N(()=>[M("span",YA,ae(o(m).userName),1),T(j,{visible:o(b),"onUpdate:visible":be[2]||(be[2]=Fe=>$t(b)?b.value=Fe:b=Fe),placement:"bottom",trigger:"click",width:"600"},{reference:N(()=>[T(Ge,{"is-dot":o(g),style:{margin:"0 20px"}},{default:N(()=>[T(Oe,{class:"head-icon",style:{"margin-right":"0"}},{default:N(()=>[T(o(Em))]),_:1})]),_:1},8,["is-dot"])]),default:N(()=>[M("div",GA,[XA,o(g)?(k(),Z(lt,{key:0,icon:o(Vl),style:{float:"right"},type:"primary",onClick:D},{default:N(()=>[Ce("\u672C\u9875\u6807\u8BB0\u5DF2\u8BFB")]),_:1},8,["icon"])):Q("",!0)]),M("div",ZA,[T(kt,{data:o(h),border:"","max-height":"500",size:"small",style:{width:"100%","margin-bottom":"5px"}},{default:N(()=>[T(gt,{label:"\u64CD\u4F5C\u4EBA",prop:"operatorUserName",width:"100px"}),T(gt,{label:"\u64CD\u4F5C\u65F6\u95F4",prop:"creationTime",width:"140px"}),T(gt,{label:"\u5185\u5BB9"},{default:N(Fe=>[Ce(ae(Fe.row.msgContent)+" ",1),T(Ge,{"is-dot":Fe.row.msgStatus==0,style:{"line-height":"10px","padding-right":"5px"}},{default:N(()=>[T(lt,{type:"primary",onClick:bt=>z(Fe.row)},{default:N(()=>[Ce("\u67E5\u770B")]),_:2},1032,["onClick"])]),_:2},1032,["is-dot"])]),_:1})]),_:1},8,["data"]),M("div",JA,[T(ot,{"current-page":o(y).pageNum,"page-size":o(y).pageSize,total:o(w),layout:"prev, pager, next, total",onCurrentChange:x},null,8,["current-page","page-size","total"])])])]),_:1},8,["visible"]),T(B,{trigger:"click",onCommand:me,style:{"vertical-align":"middle"}},{dropdown:N(()=>[T(ge,null,{default:N(()=>[T(oe,{command:"console"},{default:N(()=>[Ce("\u63A7\u5236\u53F0")]),_:1}),T(oe,{command:"aboutDoc"},{default:N(()=>[Ce("\u5173\u4E8E")]),_:1}),T(oe,{command:"userSignOut",divided:""},{default:N(()=>[Ce("\u9000\u51FA\u767B\u5F55")]),_:1})]),_:1})]),default:N(()=>[T(Oe,{class:"head-icon"},{default:N(()=>[T(o($m))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),T(Ee,{style:{padding:"0","border-left":"1px solid #dcdfe6"}},{default:N(()=>[T(we,{spaceId:o(u),spaceInfo:ie(o(u)),onChangeExpandedKeys:O,onLoadPageList:E,onLoadSpace:q,onSwitchSpace:fe},{default:N(({Component:Fe})=>[(k(),Z(at(Fe)))]),_:1},8,["spaceId","spaceInfo"])]),_:1})]),_:1})]),_:1}),T(o(iv),{ref_key:"createSpaceRef",ref:Y,onSuccess:q},null,512),T(o(AA),{ref_key:"aboutDialogRef",ref:se},null,512)])}}};const eV=e=>(ls("data-v-377d275d"),e=e(),os(),e),tV={style:{height:"100%"}},nV={class:"logo"},lV={style:{padding:"10px","box-sizing":"border-box",background:"#fafafa"}},oV={style:{"font-size":"14px"}},aV=eV(()=>M("div",{class:"build-info"},[Ce("\u672C\u6587\u6863\u4F7F\u7528"),M("a",{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"},"zyplayer-doc"),Ce("\u6784\u5EFA")],-1)),sV={__name:"ShareLayout",setup(e){let t=_(!0),n=_({children:"children",label:"name"}),l=_(""),a=_(""),s=_({}),r=_(""),i=_([]),u=_([]),c=_(300),f=bn(),d=Nn();qe(()=>{l.value=f.query.space||"",b(),g()});const p=(w,y)=>!w||!y.name?!0:y.name.toLowerCase().indexOf(w.toLowerCase())!==-1,v=w=>{a.value!=w.id&&(a.value=w.id,d.push({path:"/page/share/view",query:{pageId:w.id,space:l.value}}))};let m=_();const h=()=>{m.value.filter(r.value)},g=()=>{St.openPageList({space:l.value}).then(w=>{i.value=w.data||[],a.value=""})},b=()=>{St.openSpaceInfo({space:l.value}).then(w=>{s.value=w.data})};return(w,y)=>{const S=re("el-button"),E=re("el-input"),I=re("el-icon"),P=re("el-tree"),O=re("el-aside"),L=re("router-view"),A=re("el-main"),K=re("el-container");return k(),R("div",tV,[T(K,null,{default:N(()=>[ze(T(O,{width:"300px",style:Me([{"background-color":"#fafafa"},{width:o(c)+"px"}])},{default:N(()=>[M("div",nV,ae(o(s).name),1),M("div",lV,[T(E,{modelValue:o(r),"onUpdate:modelValue":y[0]||(y[0]=F=>$t(r)?r.value=F:r=F),onKeyup:pt(h,["enter"]),placeholder:"\u641C\u7D22\u6587\u6863",style:{margin:"10px 0"}},{append:N(()=>[T(S,{icon:o(Ar),onClick:h},null,8,["icon"])]),_:1},8,["modelValue","onKeyup"]),T(P,{props:o(n),data:o(i),onNodeClick:v,ref_key:"wikiPageTreeRef",ref:m,"filter-node-method":p,"highlight-current":"","expand-on-click-node":!0,"default-expanded-keys":o(u),"node-key":"id",style:{"background-color":"#fafafa","padding-bottom":"30px"}},{default:N(({node:F,data:H})=>[M("span",oV,[T(I,null,{default:N(()=>[T(o(Vr))]),_:1}),Ce("\xA0 "),M("span",null,ae(F.label),1)])]),_:1},8,["props","data","default-expanded-keys"]),aV])]),_:1},8,["style"]),[[nt,o(t)]]),ze(T(uv,{value:o(c),"onUpdate:value":y[1]||(y[1]=F=>$t(c)?c.value=F:c=F)},null,8,["value"]),[[nt,o(t)]]),T(K,null,{default:N(()=>[T(A,{class:"doc-body-box"},{default:N(()=>[T(L)]),_:1})]),_:1})]),_:1})])}}};var rV=ca(sV,[["__scopeId","data-v-377d275d"]]);const iV=["onClick"],uV=["onClick"],cV={__name:"PageTree",props:{pageList:Array},emits:["pageChange"],setup(e,{emit:t}){const n=a=>{t("pageChange",a)};let l=_([]);return(a,s)=>{const r=re("page-tree",!0),i=re("van-collapse-item"),u=re("van-collapse");return k(),Z(u,{modelValue:o(l),"onUpdate:modelValue":s[0]||(s[0]=c=>$t(l)?l.value=c:l=c)},{default:N(()=>[(k(!0),R(Re,null,Je(e.pageList,c=>(k(),R(Re,null,[c.children?(k(),Z(i,{key:1,name:c.id},{title:N(()=>[M("span",{onClick:f=>n(c.id)},ae(c.name),9,uV)]),default:N(()=>[T(r,{"page-list":c.children,onPageChange:n},null,8,["page-list"])]),_:2},1032,["name"])):(k(),R("div",{key:0,onClick:f=>n(c.id),class:"van-cell van-cell--clickable"},ae(c.name),9,iV))],64))),256))]),_:1},8,["modelValue"])}}};const dV=e=>(ls("data-v-69b5e618"),e=e(),os(),e),fV={class:"share-mobile-layout"},pV={class:"header"},vV={class:"main"},mV=dV(()=>M("div",{class:"build-info"},[Ce("\u672C\u6587\u6863\u4F7F\u7528"),M("a",{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"},"zyplayer-doc"),Ce("\u6784\u5EFA")],-1)),hV={__name:"ShareMobileLayout",setup(e){_({children:"children",label:"name"});let t=_(""),n=_(""),l=_({}),a=_([]),s=_(!1);_([]);let r=bn(),i=Nn();qe(()=>{t.value=r.query.space||"",d(),f()});const u=p=>{s.value=!1,i.replace({path:"/page/share/mobile/view",query:{pageId:p,space:t.value}})},c=p=>{s.value=p},f=()=>{St.openPageList({space:t.value}).then(p=>{a.value=p.data||[],n.value=""})},d=()=>{St.openSpaceInfo({space:t.value}).then(p=>{l.value=p.data})};return(p,v)=>{const m=re("van-nav-bar"),h=re("van-popup"),g=re("router-view");return k(),R("div",fV,[T(h,{show:o(s),"onUpdate:show":v[0]||(v[0]=b=>$t(s)?s.value=b:s=b),closeable:"",position:"left",class:"popup-module",style:{height:"100%",width:"80%"}},{default:N(()=>[M("div",pV,[T(m,{title:o(l).name},null,8,["title"])]),M("div",vV,[T(o(cV),{"page-list":o(a),onPageChange:u},null,8,["page-list"]),mV])]),_:1},8,["show"]),T(g,{onPopupShow:c})])}}};var gV=ca(hV,[["__scopeId","data-v-69b5e618"]]),da="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAqFBMVEX///9wcHBwcHBwcHBwcHB8fHxwcHB6enpwcHCDg4NwcHB8fHx6enqSkpJ8fHxycnJwcHDp6el2dnZwcHD////39/f19fXz8/Pw8PDr6+vn5+fj4+PZ2dnX19fHx8fExMS9vb20tLSrq6uhoaGenp6MjIyKioqDg4N8fHx6enp4eHh0dHRycnKZmZmOjo6KioqDg4OAgIB/f396enp4eHh2dnZycnJwcHDyRjyJAAAALXRSTlMAETNEVWZmd3eIiJmqu7u7u93d3e7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u6OCyV0AAAAi0lEQVQYGXXBRwKCMBAF0B9Q7Io6RJGo2LAEu8zc/2YuyCILfQ/4R8k5gK+zy0v4TilZeAZb2rTCSMHp3bV+jeJpDEDFIvagSRtNJAro2vHjSo4owOYzNlTTAoDnGZNjLABOFkzOagigWiecUW3fBNB/L5+33GgiSksFQE1YPkUlciwuETxhox3ghy8Wng9K1E9YIwAAAABJRU5ErkJggg==";const yV={style:{background:"#f1f1f1","min-height":"100%"},class:"page-search-vue"},bV={style:{"max-width":"1200px",margin:"0 auto",background:"#fff",padding:"20px","min-height":"100%","box-sizing":"border-box"}},wV={style:{"margin-bottom":"20px"}},kV={key:0,class:"empty-news"},CV={class:"line-box"},SV={class:"line-title"},_V={class:"text-link"},EV={class:"text-link"},$V={class:"page-preview-box"},TV=["onClick","innerHTML"],IV=["innerHTML"],NV=M("img",{src:da,class:"zan-img"},null,-1),MV={class:"page-info-box"},PV={__name:"Search",setup(e){let t=bn();Nn(),qe(()=>{c(t)});let n=_(0),l=_({spaceId:"",keywords:"",newsType:1,pageNum:1,pageSize:20}),a=_([]);const s=()=>{St.pageSearchByEs(l.value).then(f=>{a.value=f.data||[],n.value=f.total})},r=f=>{l.value.pageSize=f,s()},i=f=>{window.open("#/page/show?pageId="+f.pageId)},u=f=>{l.value.pageNum=f,s()},c=f=>{l.value={keywords:f.query.keywords,spaceId:f.query.spaceId,newsType:1,pageNum:1,pageSize:20},s()};return(f,d)=>{const p=re("el-input"),v=re("el-col"),m=re("el-button"),h=re("el-row"),g=re("el-icon"),b=re("el-pagination");return k(),R("div",yV,[M("div",bV,[M("div",wV,[T(h,{gutter:20,style:{"max-width":"700px",margin:"0 auto"}},{default:N(()=>[T(v,{span:20},{default:N(()=>[T(p,{modelValue:o(l).keywords,"onUpdate:modelValue":d[0]||(d[0]=w=>o(l).keywords=w),onKeyup:pt(s,["enter"]),placeholder:"",style:{width:"100%"}},null,8,["modelValue","onKeyup"])]),_:1}),T(v,{span:4},{default:N(()=>[T(m,{type:"primary",onClick:s,icon:o(Ar)},{default:N(()=>[Ce("\u641C\u7D22\u4E00\u4E0B")]),_:1},8,["icon"])]),_:1})]),_:1})]),o(a).length<=0?(k(),R("div",kV,"\u6682\u65E0\u6570\u636E")):(k(!0),R(Re,{key:1},Je(o(a),w=>(k(),R("div",CV,[M("div",SV,[M("span",_V,ae(w.createUserName),1),Ce(" \u53D1\u5E03\u4E8E "),M("span",EV,ae(w.spaceName),1)]),M("div",$V,[M("div",{class:"page-preview-title",onClick:y=>i(w),innerHTML:w.pageTitle},null,8,TV),M("div",{class:"page-preview-content",innerHTML:w.previewContent},null,8,IV),M("div",null,[M("span",null,[NV,Ce(ae(w.zanNum)+"\u3000",1)]),M("span",null,[T(g,{class:"view-img"},{default:N(()=>[T(o(la))]),_:1}),Ce(ae(w.viewNum)+"\u3000",1)]),M("span",null,ae(w.updateTime||w.createTime),1)])])]))),256)),M("div",MV,[T(b,{onSizeChange:r,onCurrentChange:u,"page-sizes":[20,50,100],"page-size":20,"current-page":o(l).pageNum,layout:"prev, pager, next, jumper, sizes, total",total:o(n)},null,8,["current-page","total"])])])])}}},OV={__name:"NoAuth",setup(e){return(t,n)=>(k(),R("div",null,"\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u6A21\u5757"))}};const RV={style:{padding:"10px"},class:"home-vue"},LV={style:{"max-width":"800px",margin:"0 auto"}},AV={key:0,class:"empty-news"},VV={class:"line-box"},DV={class:"line-title"},BV={class:"text-link"},xV={class:"text-link"},zV={class:"page-preview-box"},FV=["onClick","innerHTML"],HV=["innerHTML"],KV=M("img",{src:da,class:"zan-img"},null,-1),WV={__name:"Home",setup(e){_(0);let t=_({spaceId:"",newsType:1,pageNum:1,pageSize:20}),n=_([]),l=_([{key:1,val:"\u6700\u8FD1\u66F4\u65B0"},{key:2,val:"\u6700\u65B0\u521B\u5EFA"},{key:3,val:"\u67E5\u770B\u6700\u591A"},{key:4,val:"\u70B9\u8D5E\u6700\u591A"},{key:5,val:"\u67E5\u770B+\u70B9\u8D5E\u6700\u591A"}]),a=_({});ko(f=>{c(f)});let s=bn(),r=Nn();qe(()=>{c(s)});const i=()=>{St.pageNews(t.value).then(f=>{n.value=f.data||[]})},u=f=>{let d={pageId:f.pageId};r.push({path:"/page/show",query:d})},c=f=>{t.value={spaceId:f.query.spaceId,newsType:1,pageNum:1,pageSize:20},t.value.spaceId&&i(),a.value={},l.value.forEach(d=>a.value[d.key]=d.val)};return(f,d)=>{const p=re("el-icon"),v=re("el-tab-pane"),m=re("el-tabs");return k(),R("div",RV,[M("div",LV,[T(m,{"model-value":"first"},{default:N(()=>[T(v,{label:o(a)[o(t).newsType],name:"first"},{default:N(()=>[o(n).length<=0?(k(),R("div",AV," \u6682\u65E0\u6570\u636E ")):(k(!0),R(Re,{key:1},Je(o(n),h=>(k(),R("div",VV,[M("div",DV,[M("span",BV,ae(h.createUserName),1),Ce(" \u53D1\u5E03\u4E8E "),M("span",xV,ae(h.spaceName),1)]),M("div",zV,[M("div",{class:"page-preview-title",onClick:g=>u(h),innerHTML:h.pageTitle},null,8,FV),M("div",{class:"page-preview-content",innerHTML:h.previewContent},null,8,HV),M("div",null,[M("span",null,[KV,Ce(ae(h.zanNum)+"\u3000",1)]),M("span",null,[T(p,{class:"view-img"},{default:N(()=>[T(o(la))]),_:1}),Ce(ae(h.viewNum)+"\u3000",1)]),M("span",null,ae(h.updateTime||h.createTime),1)])])]))),256))]),_:1},8,["label"])]),_:1})])])}}};const UV={class:"my-info-vue"},jV={style:{margin:"0 auto","max-width":"1000px"}},qV=M("div",{class:"clearfix"},"\u6211\u7684\u4FE1\u606F",-1),YV={__name:"MyInfo",setup(e){let t=_({});qe(()=>{n()});const n=()=>{Xn.getSelfUserInfo().then(l=>{t.value=l.data})};return(l,a)=>{const s=re("el-form-item"),r=re("el-form"),i=re("el-card");return k(),R("div",UV,[M("div",jV,[T(i,{class:"box-card"},{header:N(()=>[qV]),default:N(()=>[T(r,{class:"search-form-box","label-width":"100px"},{default:N(()=>[T(s,{label:"\u8D26\u53F7\uFF1A"},{default:N(()=>[Ce(ae(o(t).userNo),1)]),_:1}),T(s,{label:"\u7528\u6237\u540D\uFF1A"},{default:N(()=>[Ce(ae(o(t).userName),1)]),_:1}),T(s,{label:"\u624B\u673A\u53F7\uFF1A"},{default:N(()=>[Ce(ae(o(t).phone),1)]),_:1}),T(s,{label:"\u90AE\u7BB1\uFF1A"},{default:N(()=>[Ce(ae(o(t).email),1)]),_:1}),T(s,{label:"\u72B6\u6001\uFF1A"},{default:N(()=>[Ce(ae(o(t).delFlag==0?"\u6B63\u5E38":"\u505C\u7528"),1)]),_:1}),T(s,{label:"\u6027\u522B\uFF1A"},{default:N(()=>[Ce(ae(o(t).sex==0?"\u5973":"\u7537"),1)]),_:1})]),_:1})]),_:1})])])}}};var GV={computeFileSize(e){if(!e)return"-";let t="";e<.1*1024?t=e.toFixed(2)+"B":e<.1*1024*1024?t=(e/1024).toFixed(2)+"KB":e<.1*1024*1024*1024?t=(e/(1024*1024)).toFixed(2)+"MB":t=(e/(1024*1024*1024)).toFixed(2)+"GB";let n=t+"",l=n.indexOf(".");return n.substr(l+1,2)=="00"?n.substring(0,l)+n.substr(l+3,2):t}},fv={createNavigationHeading(){let e=[],t=document.querySelector(".wiki-page-content").querySelectorAll("h1,h2,h3,h4,h5,h6");return t.length<=0?[]:(t.forEach(n=>{let l=n.innerHTML.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/<\/?[^>]+(>|$)/g,"");e.push({node:n,level:parseInt(n.tagName.replace(/[h]/i,""),10),text:l})}),e)}};const XV={class:"navigation"},ZV=["onClick"],pv={__name:"Navigation",props:{heading:{type:Array,default:[]}},setup(e){const t=cv();let n=_("100px");qe(()=>{window.onresize=()=>{a()},setTimeout(()=>a(),100)}),pe(()=>t.viewMenuWidth,r=>{a()});let l=_();const a=()=>{n.value=window.getComputedStyle(l.value,null).width},s=r=>{r.node.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})};return(r,i)=>(k(),R("div",XV,[M("div",{ref_key:"navigationRef",ref:l,style:{display:"inline-block",width:"100%"}},null,512),M("div",{class:"navigation-heading",style:Me({width:o(n)})},[(k(!0),R(Re,null,Je(e.heading,u=>(k(),R("div",{class:$("heading-item heading-"+u.level),onClick:c=>s(u)},ae(u.text),11,ZV))),256))],4)]))}},vv=Br("pageData",{state:()=>({pageInfo:{}})});const JV={key:0,class:"action-box-empty"},QV={key:1,class:"comment-list"},eD={class:"comment-user-name"},tD={class:"comment-content"},nD={class:"comment-input-box"},lD={__name:"Comment",setup(e){let t={colorArr:["#67C23A","#409EFF","#E6A23C","#F56C6C","#909399","#303133"],userHeadColor:{}},n=_(""),l=_([]),a=_({});bn(),Nn();let s=vv(),r=dv();pe(()=>s.pageInfo,h=>{c()}),qe(()=>{c()});let i=_();const u=()=>{setTimeout(()=>{let h=i.value;h.scrollTop=h.scrollHeight},0)},c=()=>{!s.pageInfo||!s.pageInfo.id||(p(),St.pageCommentList({pageId:s.pageInfo.id}).then(h=>{let g=h.data||[];for(let b=0;br.userInfo.id===h.createUserId||r.userInfo.id===s.pageInfo.createUserId;const d=h=>{St.deletePageComment({id:h}).then(()=>{c()})},p=()=>{a.value={}},v=()=>{if(n.value.length<=0){Bt.error("\u8BF7\u8F93\u5165\u8BC4\u8BBA\u5185\u5BB9");return}let h={pageId:s.pageInfo.id,content:n.value,parentId:a.value.id};St.updatePageComment(h).then(g=>{let b=g.data;b.color=m(b.createUserId),n.value="",c()})},m=h=>{let g=t.userHeadColor[h];return g||(g=t.colorArr[Math.ceil(Math.random()*t.colorArr.length)-1],t.userHeadColor[h]=g),g};return(h,g)=>{const b=re("el-icon"),w=re("el-popconfirm"),y=re("el-card"),S=re("el-timeline-item"),E=re("el-timeline"),I=re("el-button");return k(),R(Re,null,[M("div",{class:"comment-box",ref_key:"actionTabCommentRef",ref:i},[o(l).length<=0?(k(),R("div",JV," \u6682\u65E0\u8BC4\u8BBA ")):(k(),R("div",QV,[T(E,null,{default:N(()=>[(k(!0),R(Re,null,Je(o(l),P=>(k(),Z(S,{timestamp:P.createTime,placement:"top"},{default:N(()=>[T(y,{class:"box-card comment-card","body-style":{padding:"10px"}},{default:N(()=>[M("div",{style:Me("background-color: "+P.color),class:"head"},ae(P.createUserName.substr(0,1)),5),M("div",eD,[Ce(ae(P.createUserName)+" ",1),o(f)(P)?(k(),Z(w,{key:0,placement:"top",width:"160",trigger:"click","confirm-button-text":"\u5220\u9664","cancel-button-text":"\u53D6\u6D88",onConfirm:O=>d(P.id),title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u8BC4\u8BBA\u5417\uFF1F"},{reference:N(()=>[T(b,{class:"icon-delete"},{default:N(()=>[T(o(Dr))]),_:1})]),_:2},1032,["onConfirm"])):Q("",!0)]),M("pre",tD,ae(P.content),1)]),_:2},1024)]),_:2},1032,["timestamp"]))),256))]),_:1})]))],512),M("div",nD,[ze(M("textarea",{rows:"5",placeholder:"\u53D1\u8868\u8BC4\u8BBA","onUpdate:modelValue":g[0]||(g[0]=P=>$t(n)?n.value=P:n=P),maxlength:500},null,512),[[na,o(n)]]),T(I,{style:{float:"right",margin:"2px 5px"},type:"primary",size:"small",onClick:v},{default:N(()=>[Ce("\u53D1\u9001")]),_:1})])],64)}}};const Di=e=>(ls("data-v-9782fa54"),e=e(),os(),e),oD={class:"page-show-vue"},aD={style:{"max-width":"1000px",margin:"0 auto","padding-left":"10px"}},sD={class:"wiki-author"},rD={key:0},iD={key:1,class:"create-user-time"},uD={class:"wiki-files"},cD=["innerHTML"],dD=["innerHTML"],fD={style:{"margin-top":"40px","font-size":"14px"}},pD={style:{"vertical-align":"top"},class:"is-link"},vD=Di(()=>M("img",{src:da,style:{"vertical-align":"middle"}},null,-1)),mD=Di(()=>M("img",{src:da,style:{"vertical-align":"middle",transform:"rotateX(180deg)"}},null,-1)),hD={style:{"margin-left":"10px","vertical-align":"top"}},gD={key:0},yD={key:1},bD={key:2},wD={key:3},kD={style:{"margin-left":"10px"}},CD={class:"action-tab-box"},SD={key:0,class:"action-box-empty"},_D={style:{"text-align":"center"}},ED={class:"mobile-qr"},$D=Di(()=>M("div",null,"\u4F7F\u7528\u5FAE\u4FE1\u6216\u624B\u673A\u6D4F\u89C8\u5668\u626B\u4E00\u626B\u67E5\u770B",-1)),TD=["href"],ID=["action"],ND=["name","value"],MD={__name:"Show",props:{spaceInfo:Object},emits:["switchSpace","changeExpandedKeys","loadPageList"],setup(e,{emit:t}){const n=e;let l=_({}),a=_({}),s=_({}),r=_([]),i=_(0);_([]);let u=_({pageId:0}),c=_(!1),f=_([]),d=_({}),p=_(""),v=_(!1),m=_(".//zyplayer-doc-wiki/page/file/upload"),h=_(!1),g=_([]),b=_([]),w=_(""),y=_(!1),S=_(!1),E=_("comment"),I=_(""),P=_(""),O=_({}),L=_([]),A=_(1),K=_([]),F=_(0),H=_(!1),U=_([]);_({fullscreen:!0,readmodel:!0});let W=_({url:"zyplayer-doc-wiki/page/download",param:{}}),z=bn(),D=Nn(),x=vv();ko(Ee=>{we(Ee)}),qe(()=>{we(z)});const V=()=>{let Ee={pageId:d.value.pageId};St.pageLock(Ee).then(()=>{D.push({path:"/page/edit",query:{pageId:d.value.pageId}})})},Y=Ee=>{Ee!=""&&(y.value=!0,Xn.getUserBaseInfo({search:Ee}).then(De=>{b.value=De.data||[],y.value=!1}))},ne=Ee=>{Ee=="editAuth"?ee():Ee=="deletePage"?Te():Ee=="showPageHistory"?Ye():Ee=="showOpenPage"?se():Ee=="showMobileView"?ye():Ee=="exportWord"&&J()};let q=_();const J=()=>{W.value.param={pageId:l.value.id},setTimeout(()=>q.value.submit(),0)},se=()=>{if(n.spaceInfo.openDoc!==1)Bt.warning("\u8BE5\u7A7A\u95F4\u672A\u5F00\u653E\uFF0C\u65E0\u6CD5\u67E5\u770B\u5F00\u653E\u6587\u6863\u5730\u5740");else{let Ee=D.resolve({path:"/page/share/view",query:{pageId:l.value.id,space:n.spaceInfo.uuid}});window.open(Ee.href,"_blank")}};let me=_();const ye=()=>{if(n.spaceInfo.openDoc!==1)Bt.warning("\u8BE5\u7A7A\u95F4\u672A\u5F00\u653E\uFF0C\u65E0\u6CD5\u67E5\u770B\u5F00\u653E\u6587\u6863\u5730\u5740");else{let Ee=D.resolve({path:"/page/share/mobile/view",query:{pageId:l.value.id,space:n.spaceInfo.uuid}});v.value=!0;let De=window.location.href.split("#")[0];setTimeout(()=>{p.value=De+Ee.href,Am.toCanvas(me.value,p.value,{scale:5,height:250,wight:250},Fe=>{Fe&&console.error(Fe)})},0)}},le=()=>{if(w.value.length<=0){Bt.warning("\u8BF7\u5148\u9009\u62E9\u7528\u6237");return}if(b.value.find(De=>De.userId==w.value)){w.value="";return}let Ee="";for(let De=0;De{w.value=[],g.value=[];let Ee={pageId:l.value.id};St.getPageUserAuthList(Ee).then(De=>{g.value=De.data||[],h.value=!0})},ie=()=>{let Ee={pageId:l.value.id,authList:JSON.stringify(g.value)};St.assignPageUserAuth(Ee).then(()=>{Bt.success("\u4FDD\u5B58\u6210\u529F\uFF01")})},fe=Ee=>{let De=[];for(let Fe=0;Fe{go.confirm("\u786E\u5B9A\u8981\u5220\u9664\u6B64\u9875\u9762\u53CA\u5176\u6240\u6709\u5B50\u9875\u9762\u5417\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{let Ee={pageId:l.value.id};St.pageDelete(Ee).then(()=>{t("loadPageList"),D.push({path:"/home",query:{spaceId:l.value.spaceId}})})}).catch(()=>{})},he=Ee=>{Ee.name==="comment"?Pe():Ee.name==="history"&&Ye()},be=()=>{S.value=!1,je(),$e()},Pe=()=>{S.value=!0,E.value="comment",$e()},Ye=()=>{S.value=!0,E.value="history",je(),$e()};let Xe=_();const $e=()=>{setTimeout(()=>{Xe.value&&Xe.value.computeNavigationWidth()},100)},Be=(Ee,De)=>{De==1&&(L.value=[],A.value=1);let Fe={pageId:Ee,pageNum:De};St.pageHistoryList(Fe).then(bt=>{let Ct=bt.data||[];Ct.length<=0?A.value=0:(Ct.forEach(ft=>ft.loading=0),L.value=L.value.concat(Ct))})},Oe=Ee=>{O.value.id===Ee.id&&!!I.value||(O.value.loading=0,O.value=Ee,Ee.content?(Ee.loading=2,I.value=Ee.content,P.value=Ee.content,setTimeout(()=>{kt(),Ge()},500)):(Ee.loading=1,St.pageHistoryDetail({id:Ee.id}).then(De=>{Ee.loading=2,Ee.content=De.data||"--",l.value.editorType===2&&(Ee.content=xo.exports.mavonEditor.getMarkdownIt().render(Ee.content)),I.value=Ee.content,P.value=Ee.content,setTimeout(()=>{kt(),Ge()},500)}).catch(()=>{Ee.loading=3})))},je=()=>{O.value.loading=0,I.value="",O.value={},L.value.forEach(Ee=>Ee.loading=0),P.value=s.value.content},He=Ee=>GV.computeFileSize(Ee),ke=Ee=>{je(),St.pageDetail({id:Ee}).then(De=>{let Fe=De.data||{},bt=Fe.wikiPage||{};bt.selfZan=Fe.selfZan||0,l.value=bt,s.value=Fe.pageContent||{},r.value=Fe.fileList||[],i.value=Fe.selfUserId||0,u.value={pageId:l.value.id},a.value={canEdit:Fe.canEdit,canDelete:Fe.canDelete,canUploadFile:Fe.canUploadFile,canDeleteFile:Fe.canDeleteFile,canConfigAuth:Fe.canConfigAuth},l.value.editorType===2&&(s.value.content=xo.exports.mavonEditor.getMarkdownIt().render(s.value.content)),P.value=s.value.content,document.title=bt.name||"WIKI-\u5185\u5BB9\u5C55\u793A",t("switchSpace",l.value.spaceId),t("changeExpandedKeys",Ee),setTimeout(()=>{kt(),Ge()},500),x.pageInfo=bt}),Be(Ee,1)};let Ke=_();const Ge=()=>{let Ee=fv.createNavigationHeading();if(Ee.length>0){let De=l.value.name||"WIKI-\u5185\u5BB9\u5C55\u793A";Ee.unshift({level:1,node:Ke.value,text:De})}Ee.value=Ee},lt=()=>{H.value=!1};let gt=_();const kt=()=>{const Ee=[];gt.value.querySelectorAll("img").forEach((Fe,bt)=>{Ee.push(Fe.src),Fe.onclick=()=>{F.value=bt,U.value=Ee,H.value=!0,setTimeout(()=>j(),0)}})};let ot=_();const j=()=>{ot.value.querySelectorAll(".el-image-viewer__mask").forEach(De=>{De.onclick=()=>{H.value=!1}})},oe=Ee=>{let De={yn:Ee,pageId:l.value.id};St.updatePageZan(De).then(()=>{l.value.selfZan=Ee,l.value.zanNum=l.value.zanNum+(Ee==1?1:-1)})},ge=()=>{c.value=!0,f.value=[];let Ee={pageId:l.value.id};St.pageZanList(Ee).then(De=>{f.value=De.data})},B=Ee=>{Bt.error("\u4E0A\u4F20\u5931\u8D25\uFF0C"+Ee)},X=Ee=>{Ee.errCode==200?(r.value.push(Ee.data),Bt.success("\u4E0A\u4F20\u6210\u529F\uFF01")):Bt("\u4E0A\u4F20\u5931\u8D25\uFF1A"+(Ee.errMsg||"\u672A\u77E5\u9519\u8BEF"))},ce=Ee=>{go.confirm("\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6587\u4EF6\u5417\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{let De={id:Ee.id};St.deletePageFile(De).then(()=>{let Fe=[];for(let bt=0;bt{d.value={pageId:Ee.query.pageId},d.value.pageId&&ke(d.value.pageId)};return(Ee,De)=>{const Fe=re("el-col"),bt=re("el-link"),Ct=re("el-upload"),ft=re("el-icon"),ve=re("el-dropdown-item"),xe=re("el-dropdown-menu"),rt=re("el-dropdown"),yt=re("el-row"),zt=re("el-table-column"),nn=re("el-button"),ul=re("el-table"),Bi=re("el-tab-pane"),hv=re("el-tag"),gv=re("el-timeline-item"),yv=re("el-timeline"),bv=re("el-tabs"),_s=re("el-dialog"),wv=re("el-option"),kv=re("el-select"),_o=re("el-checkbox"),Cv=re("el-image-viewer"),Sv=no("highlight");return k(),R("div",oD,[T(yt,{type:"border-card",style:{height:"100%"}},{default:N(()=>[T(Fe,{span:o(S)?18:24,style:{padding:"20px","border-right":"1px solid #f1f1f1",height:"100%",overflow:"auto"}},{default:N(()=>[T(yt,null,{default:N(()=>[T(Fe,{span:o(K).length>0?18:24},{default:N(()=>[M("div",aD,[M("div",{class:"wiki-title",ref_key:"wikiTitleRef",ref:Ke},ae(o(l).name),513),M("div",sD,[T(yt,null,{default:N(()=>[T(Fe,{span:12},{default:N(()=>[o(l).updateUserName?(k(),R("span",rD,ae(o(l).updateUserName)+"\u3000\u4E8E\u3000"+ae(o(l).updateTime)+"\u3000\u4FEE\u6539",1)):(k(),R("span",iD,ae(o(l).createUserName)+"\u3000\u4E8E\u3000"+ae(o(l).createTime)+"\u3000\u521B\u5EFA",1))]),_:1}),T(Fe,{span:12,style:{"text-align":"right"}},{default:N(()=>[T(bt,{type:"primary",icon:o(Tm),underline:!1,onClick:Pe,style:{"margin-right":"15px"}},{default:N(()=>[Ce("\u8BC4\u8BBA")]),_:1},8,["icon"]),o(a).canUploadFile===1?(k(),Z(Ct,{key:0,"on-success":X,"on-error":B,action:o(m),data:o(u),"with-credentials":!0,class:"upload-page-file",name:"files","show-file-list":"",multiple:"",limit:999,style:{display:"inline","margin-right":"15px","vertical-align":"middle"}},{default:N(()=>[T(bt,{type:"primary",underline:!1,icon:o(Im)},{default:N(()=>[Ce("\u4E0A\u4F20\u9644\u4EF6")]),_:1},8,["icon"])]),_:1},8,["action","data"])):Q("",!0),o(a).canEdit===1?(k(),Z(bt,{key:1,type:"primary",underline:!1,icon:o(Nm),onClick:V,style:{"margin-right":"15px"}},{default:N(()=>[Ce("\u7F16\u8F91")]),_:1},8,["icon"])):Q("",!0),T(rt,{style:{"margin-right":"15px","vertical-align":"middle"},trigger:"click",onCommand:ne},{dropdown:N(()=>[T(xe,null,{default:N(()=>[T(ve,{command:"showPageHistory",icon:o(Mm)},{default:N(()=>[Ce("\u67E5\u770B\u5386\u53F2\u7248\u672C")]),_:1},8,["icon"]),o(a).canConfigAuth==1?(k(),Z(ve,{key:0,command:"editAuth",icon:o(Pm)},{default:N(()=>[Ce("\u6743\u9650\u8BBE\u7F6E")]),_:1},8,["icon"])):Q("",!0),e.spaceInfo.openDoc==1?(k(),Z(ve,{key:1,command:"showOpenPage",icon:o(Om)},{default:N(()=>[Ce("\u67E5\u770B\u5F00\u653E\u6587\u6863")]),_:1},8,["icon"])):Q("",!0),e.spaceInfo.openDoc==1?(k(),Z(ve,{key:2,command:"showMobileView",icon:o(Rm)},{default:N(()=>[Ce("\u624B\u673A\u7AEF\u67E5\u770B")]),_:1},8,["icon"])):Q("",!0),T(ve,{command:"exportWord",icon:o(Lm)},{default:N(()=>[Ce("\u5BFC\u51FA\u4E3AWord\u6587\u6863")]),_:1},8,["icon"]),o(a).canDelete==1?(k(),Z(ve,{key:3,command:"deletePage",icon:o(Dr)},{default:N(()=>[Ce("\u5220\u9664")]),_:1},8,["icon"])):Q("",!0)]),_:1})]),default:N(()=>[T(bt,{type:"primary",underline:!1},{default:N(()=>[Ce(" \u66F4\u591A "),T(ft,{class:"el-icon--right"},{default:N(()=>[T(o(ol))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),M("div",uD,[ze(T(ul,{data:o(r),border:"",style:{width:"100%","margin-bottom":"5px"}},{default:N(()=>[T(zt,{label:"\u6587\u4EF6\u540D","show-overflow-tooltip":""},{default:N(dt=>[T(bt,{target:"_blank",href:dt.row.fileUrl,type:"primary"},{default:N(()=>[Ce(ae(dt.row.fileName),1)]),_:2},1032,["href"])]),_:1}),T(zt,{prop:"createUserName",label:"\u521B\u5EFA\u4EBA",width:"110px","show-overflow-tooltip":""}),T(zt,{label:"\u6587\u4EF6\u5927\u5C0F",width:"120px"},{default:N(dt=>[Ce(ae(He(dt.row.fileSize)),1)]),_:1}),T(zt,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4",width:"160px"}),T(zt,{prop:"downloadNum",label:"\u4E0B\u8F7D\u6B21\u6570",width:"90px"},{default:N(dt=>[Ce(ae(dt.row.downloadNum||0),1)]),_:1}),o(a).canDeleteFile==1?(k(),Z(zt,{key:0,label:"\u64CD\u4F5C",width:"90px"},{default:N(dt=>[T(nn,{onClick:dn=>ce(dt.row)},{default:N(()=>[Ce("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})):Q("",!0)]),_:1},8,["data"]),[[nt,o(r).length>0]])]),M("div",{ref_key:"pageContentRef",ref:gt,class:"wiki-page-content"},[o(l).editorType==2?ze((k(),R("div",{key:0,innerHTML:o(P),class:"markdown-body"},null,8,cD)),[[Sv]]):(k(),R("div",{key:1,innerHTML:o(P),class:"wang-editor-body"},null,8,dD))],512),M("div",fD,[M("span",pD,[ze(M("span",{onClick:De[0]||(De[0]=dt=>oe(1))},[vD,Ce("\u8D5E")],512),[[nt,o(l).selfZan==0]]),ze(M("span",{onClick:De[1]||(De[1]=dt=>oe(0))},[mD,Ce("\u8E29")],512),[[nt,o(l).selfZan==1]])]),M("span",hD,[o(l).selfZan==0&&o(l).zanNum<=0?(k(),R("span",gD,"\u6210\u4E3A\u7B2C\u4E00\u4E2A\u8D5E\u540C\u8005")):o(l).selfZan==0&&o(l).zanNum>0?(k(),R("span",yD,[M("span",{class:"is-link",onClick:ge},ae(o(l).zanNum)+"\u4EBA",1),Ce("\u8D5E\u4E86\u5B83 ")])):o(l).selfZan==1&&o(l).zanNum<=1?(k(),R("span",bD,"\u6211\u8D5E\u4E86\u5B83")):o(l).selfZan==1&&o(l).zanNum>1?(k(),R("span",wD,[M("span",{class:"is-link",onClick:ge},"\u6211\u548C"+ae(o(l).zanNum-1)+"\u4E2A\u5176\u4ED6\u4EBA",1),Ce("\u8D5E\u4E86\u5B83 ")])):Q("",!0)]),M("span",kD,[T(ft,{style:{"font-size":"16px",color:"#666","vertical-align":"middle"}},{default:N(()=>[T(o(la))]),_:1}),Ce(ae(o(l).viewNum)+"\u6B21\u9605\u8BFB ",1)])])])]),_:1},8,["span"]),o(K).length>0?(k(),Z(Fe,{key:0,span:o(K).length>0?6:0},{default:N(()=>[T(pv,{ref_key:"navigationRef",ref:Xe,heading:o(K)},null,8,["heading"])]),_:1},8,["span"])):Q("",!0)]),_:1})]),_:1},8,["span"]),ze(T(Fe,{span:6,style:{height:"100%"}},{default:N(()=>[T(ft,{onClick:be,class:"close-action-tab"},{default:N(()=>[T(o(En))]),_:1}),T(bv,{modelValue:o(E),"onUpdate:modelValue":De[2]||(De[2]=dt=>$t(E)?E.value=dt:E=dt),onTabClick:he},{default:N(()=>[T(Bi,{label:"\u8BC4\u8BBA",name:"comment"},{default:N(()=>[T(lD)]),_:1}),T(Bi,{label:"\u4FEE\u6539\u5386\u53F2",name:"history"},{default:N(()=>[M("div",CD,[o(L).length<=0?(k(),R("div",SD," \u6682\u65E0\u4FEE\u6539\u5386\u53F2\u8BB0\u5F55 ")):(k(),Z(yv,{key:1},{default:N(()=>[(k(!0),R(Re,null,Je(o(L),dt=>(k(),Z(gv,null,{default:N(()=>[T(hv,{type:o(O).id===dt.id?dt.loading===3?"danger":"success":"info",class:"history-item",onClick:dn=>Oe(dt)},{default:N(()=>[M("div",null,ae(dt.createUserName),1),M("div",null,ae(dt.createTime),1)]),_:2},1032,["type","onClick"]),ze(T(ft,{class:"history-loading-status"},{default:N(()=>[T(o(nl))]),_:2},1536),[[nt,dt.loading===1]]),ze(T(ft,{class:"history-loading-status"},{default:N(()=>[T(o(ss))]),_:2},1536),[[nt,dt.loading===2]]),ze(T(ft,{class:"history-loading-status"},{default:N(()=>[T(o(ll))]),_:2},1536),[[nt,dt.loading===3]])]),_:2},1024))),256))]),_:1}))])]),_:1})]),_:1},8,["modelValue"])]),_:1},512),[[nt,o(S)]])]),_:1}),T(_s,{title:"\u624B\u673A\u626B\u7801\u67E5\u770B",modelValue:o(v),"onUpdate:modelValue":De[3]||(De[3]=dt=>$t(v)?v.value=dt:v=dt),width:"400px"},{default:N(()=>[M("div",_D,[M("div",ED,[M("canvas",{ref_key:"qrCodeDivRef",ref:me},null,512)]),$D,M("div",null,[Ce("\u6216 "),M("a",{target:"_blank",href:o(p)},"\u76F4\u63A5\u8BBF\u95EE",8,TD)])])]),_:1},8,["modelValue"]),T(_s,{title:"\u8D5E\u4E86\u5B83\u7684\u4EBA",modelValue:o(c),"onUpdate:modelValue":De[4]||(De[4]=dt=>$t(c)?c.value=dt:c=dt),width:"600px"},{default:N(()=>[T(ul,{data:o(f),border:"","show-header":!1,style:{width:"100%","margin-bottom":"5px"}},{default:N(()=>[T(zt,{prop:"createUserName",label:"\u7528\u6237"}),T(zt,{prop:"createTime",label:"\u65F6\u95F4"})]),_:1},8,["data"])]),_:1},8,["modelValue"]),T(_s,{title:"\u9875\u9762\u6743\u9650",modelValue:o(h),"onUpdate:modelValue":De[6]||(De[6]=dt=>$t(h)?h.value=dt:h=dt),width:"900px"},{default:N(()=>[T(yt,null,{default:N(()=>[T(kv,{modelValue:o(w),"onUpdate:modelValue":De[5]||(De[5]=dt=>$t(w)?w.value=dt:w=dt),filterable:"",remote:"","reserve-keyword":"",autoComplete:"new-password",placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57\u3001\u90AE\u7BB1\u3001\u8D26\u53F7\u641C\u7D22\u7528\u6237","remote-method":Y,loading:o(y),style:{width:"750px","margin-right":"10px"}},{default:N(()=>[(k(!0),R(Re,null,Je(o(b),dt=>(k(),Z(wv,{key:dt.id,label:dt.userName,value:dt.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"]),T(nn,{onClick:le},{default:N(()=>[Ce("\u6DFB\u52A0")]),_:1})]),_:1}),T(ul,{data:o(g),border:"",style:{width:"100%",margin:"10px 0"}},{default:N(()=>[T(zt,{prop:"userName",label:"\u7528\u6237",width:"150"}),T(zt,{label:"\u6743\u9650"},{default:N(dt=>[T(_o,{"true-label":1,"false-label":0,modelValue:dt.row.editPage,"onUpdate:modelValue":dn=>dt.row.editPage=dn},{default:N(()=>[Ce("\u7F16\u8F91")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(_o,{"true-label":1,"false-label":0,modelValue:dt.row.deletePage,"onUpdate:modelValue":dn=>dt.row.deletePage=dn},{default:N(()=>[Ce("\u5220\u9664")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(_o,{"true-label":1,"false-label":0,modelValue:dt.row.pageFileUpload,"onUpdate:modelValue":dn=>dt.row.pageFileUpload=dn},{default:N(()=>[Ce("\u6587\u4EF6\u4E0A\u4F20")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(_o,{"true-label":1,"false-label":0,modelValue:dt.row.pageFileDelete,"onUpdate:modelValue":dn=>dt.row.pageFileDelete=dn},{default:N(()=>[Ce("\u6587\u4EF6\u5220\u9664")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(_o,{"true-label":1,"false-label":0,modelValue:dt.row.pageAuthManage,"onUpdate:modelValue":dn=>dt.row.pageAuthManage=dn},{default:N(()=>[Ce("\u6743\u9650\u7BA1\u7406")]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),T(zt,{label:"\u64CD\u4F5C",width:"80"},{default:N(dt=>[T(nn,{size:"small",type:"danger",plain:"",onClick:dn=>fe(dt.row)},{default:N(()=>[Ce("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),M("div",null,[T(nn,{type:"primary",onClick:ie},{default:N(()=>[Ce("\u4FDD\u5B58\u914D\u7F6E")]),_:1})])]),_:1},8,["modelValue"]),M("div",{ref_key:"imagePreviewRef",ref:ot},[o(H)?(k(),Z(Cv,{key:0,"url-list":o(U),"on-close":lt,"initial-index":o(F)},null,8,["url-list","initial-index"])):Q("",!0)],512),M("form",{method:"post",ref_key:"downloadFormRef",ref:q,action:o(W).url,target:"_blank"},[(k(!0),R(Re,null,Je(o(W).param,(dt,dn)=>(k(),R("input",{type:"hidden",name:dn,value:dt},null,8,ND))),256))],8,ID)])}}};var PD=ca(MD,[["__scopeId","data-v-9782fa54"]]);const OD={class:"wang-editor-box"},RD={class:"editor-toolbar-box fix-top"},LD={class:"wang-editor-content"},AD={class:"editor-container"},VD={class:"title-container"},DD={__name:"WangEditor",props:{},setup(e,{expose:t}){let n={excludeKeys:["fullScreen","undo","redo","emotion","|","lineHeight","fontFamily"]};bn();let l=_({placeholder:"\u8BF7\u8F93\u5165\u6587\u6863\u5185\u5BB9",scroll:!1,MENU_CONF:{uploadImage:{server:".//zyplayer-doc-wiki/page/file/wangEditor/upload",fieldName:"files",maxFileSize:50*1024*1024,withCredentials:!0},uploadVideo:{server:".//zyplayer-doc-wiki/page/file/wangEditor/upload",fieldName:"files",maxFileSize:300*1024*1024,withCredentials:!0}}}),a="default";const s=Nt();let r=_("");const i=p=>{s.value=p},u=p=>{p.target.classList&&p.target.classList.contains("page-editor-body")&&(s.value.blur(),s.value.focus(!0))},c=()=>({title:r.value,html:s.value.getHtml(),text:s.value.getText()}),f=p=>{r.value=p},d=p=>{s.value.select([]),s.value.deleteFragment(),s.value.dangerouslyInsertHtml(p)};return Vt(()=>{const p=s.value;p!=null&&p.destroy()}),t({setTitle:f,setHtml:d,getPageData:c}),(p,v)=>(k(),R("div",OD,[M("div",RD,[T(o(Wm),{class:"editor-toolbar",defaultConfig:o(n),mode:o(a),editor:o(s)},null,8,["defaultConfig","mode","editor"])]),M("div",LD,[M("div",AD,[M("div",VD,[ze(M("input",{"onUpdate:modelValue":v[0]||(v[0]=m=>$t(r)?r.value=m:r=m),placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",maxlength:40},null,512),[[na,o(r)]])]),M("div",{onClick:u,class:"page-editor-body"},[T(o(Um),{defaultConfig:o(l),mode:o(a),onOnCreated:i},null,8,["defaultConfig","mode"])])])])]))}};const mv=e=>(ls("data-v-1c39dcda"),e=e(),os(),e),BD={style:{height:"100%"},class:"page-edit-vue"},xD={style:{"box-sizing":"border-box",background:"#f5f5f5",overflow:"hidden"}},zD={style:{padding:"8px","font-size":"14px",background:"#fff"}},FD=mv(()=>M("span",null,"\u7F16\u8F91\u65B9\u5F0F\uFF1A",-1)),HD={class:"parent-name"},KD=mv(()=>M("span",{style:{"margin-left":"50px"}},"\u7F16\u8F91\u65B9\u5F0F\uFF1A",-1)),WD={style:{padding:"0 10px 10px 10px",background:"#fff"}},UD={__name:"Edit",props:{spaceId:Number},emits:["loadPageList"],setup(e,{emit:t}){const n=e;let l=_({}),a=_({editorType:2,pageTitle:""}),s=_({}),r=_({}),i=_([]),u=_({}),c=_(!1),f=_(""),d=_(""),p=_(""),v=_(".//zyplayer-doc-wiki/page/file/wangEditor/upload"),m={bold:!0,italic:!0,header:!0,underline:!0,strikethrough:!0,mark:!0,superscript:!0,subscript:!0,quote:!0,ol:!0,ul:!0,link:!0,imagelink:!0,code:!0,table:!0,fullscreen:!0,readmodel:!0,undo:!0,redo:!0,trash:!0,save:!0,navigation:!0,alignleft:!0,aligncenter:!0,alignright:!0,subfield:!0,preview:!0};ko(U=>{A(U)});let h=bn(),g=Nn();bo(()=>{y()}),qe(()=>{H(),A(h);let U=this;window.onunload=function(){U.unlockPage()},window.onbeforeunload=function(){U.unlockPage()}});const b=()=>{d.value="",u.value={}},w=()=>{},y=()=>{c.value||(c.value=!0,St.pageUnlock({pageId:f.value}))},S=()=>{go.confirm("\u786E\u5B9A\u8981\u53D6\u6D88\u7F16\u8F91\u5417\uFF1F\u60A8\u7F16\u8F91\u7684\u5185\u5BB9\u5C06\u4E0D\u4F1A\u88AB\u4FDD\u5B58\u54E6~","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u7EE7\u7EED\u7F16\u8F91",type:"warning"}).then(()=>{y(),g.back()})};let E=_();const I=U=>{let W="",z="";if(a.value.editorType===2)W=p.value,z=p.value;else{let V=E.value.getPageData();W=V.html,z=V.text,a.value.pageTitle=V.title}if(!a.value.pageTitle){Bt.warning("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}let D=f.value>0?"":d.value,x={spaceId:n.spaceId,parentId:D,id:s.value.id,name:a.value.pageTitle,editorType:a.value.editorType,content:W,preview:z};St.updatePage(x).then(V=>{Bt.success("\u4FDD\u5B58\u6210\u529F\uFF01"),t("loadPageList"),f.value=V.data.id,U==1?g.push({path:"/page/show",query:{pageId:f.value}}):P.value(f.value)})},P=U=>{St.pageDetail({id:U}).then(W=>{s.value=W.data.wikiPage||{},r.value=W.data.pageContent||{},i.value=W.data.fileList||[],a.value.pageTitle=s.value.name,a.value.editorType=s.value.editorType,a.value.editorType===2?p.value=r.value.content||"":setTimeout(()=>{E.value.setTitle(s.value.name||""),E.value.setHtml(r.value.content||"")},0)})},O=U=>{!U||St.pageDetail({id:U}).then(W=>{u.value=W.data.wikiPage||{}})},L=()=>{s.value={},r.value={},i.value=[],a.value.pageTitle="",l.value.txt&&l.value.txt.html("")},A=U=>{f.value=U.query.pageId,d.value=U.query.parentId,f.value?(P(f.value),St.pageLock({pageId:f.value}).catch(W=>{go.alert(W.errMsg||"\u672A\u77E5\u9519\u8BEF","\u9519\u8BEF",{confirmButtonText:"\u786E\u5B9A",callback:()=>{g.back()}})})):(O(d.value),L())};let K=_();const F=(U,W)=>{let z=new FormData;z.append("files",W),Bc({url:v.value,method:"post",data:z,headers:{"Content-Type":"multipart/form-data"},timeout:1e4,withCredentials:!0}).then(D=>{let x=D.data.data||{};x.url?K.value.$img2Url(U,x.url):Bt.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8FD4\u56DE\u6570\u636E\u4E3A\u7A7A")}).catch(D=>{Bt.warning("\u4E0A\u4F20\u5931\u8D25\uFF1A"+D.message)})},H=()=>{};return(U,W)=>{const z=re("el-option"),D=re("el-select"),x=re("el-link"),V=re("el-tooltip"),Y=re("el-col"),ne=re("el-button"),q=re("el-row"),J=re("el-input");return k(),R("div",BD,[M("div",xD,[M("div",zD,[T(q,null,{default:N(()=>[T(Y,{span:16},{default:N(()=>[o(f)?(k(),R(Re,{key:0},[FD,T(D,{modelValue:o(a).editorType,"onUpdate:modelValue":W[0]||(W[0]=se=>o(a).editorType=se),onChange:w,disabled:!!o(f),size:"small"},{default:N(()=>[T(z,{label:"Markdown",value:2}),T(z,{label:"HTML",value:1})]),_:1},8,["modelValue","disabled"])],64)):(k(),R(Re,{key:1},[M("span",HD,"\u7236\u7EA7\uFF1A"+ae(o(u).name||"/"),1),o(d)?(k(),Z(V,{key:0,class:"item",content:"\u5728\u6839\u76EE\u5F55\u521B\u5EFA\u6587\u6863"},{default:N(()=>[T(x,{onClick:b,type:"primary",size:"small",style:{padding:"0 10px"}},{default:N(()=>[Ce("\u6839\u76EE\u5F55")]),_:1})]),_:1})):Q("",!0),KD,T(D,{modelValue:o(a).editorType,"onUpdate:modelValue":W[1]||(W[1]=se=>o(a).editorType=se),onChange:w,disabled:!!o(f),size:"small"},{default:N(()=>[T(z,{label:"Markdown",value:2}),T(z,{label:"HTML",value:1})]),_:1},8,["modelValue","disabled"])],64))]),_:1}),T(Y,{span:8,style:{"text-align":"right"}},{default:N(()=>[T(ne,{type:"primary",onClick:W[2]||(W[2]=se=>I(1)),size:"small",icon:o(Vm)},{default:N(()=>[Ce("\u4FDD\u5B58\u5E76\u67E5\u770B")]),_:1},8,["icon"]),T(ne,{type:"success",onClick:W[3]||(W[3]=se=>I(0)),size:"small",icon:o(Vl)},{default:N(()=>[Ce("\u4EC5\u4FDD\u5B58")]),_:1},8,["icon"]),T(ne,{onClick:S,size:"small",icon:o(Lc)},{default:N(()=>[Ce("\u53D6\u6D88")]),_:1},8,["icon"])]),_:1})]),_:1})]),ze(M("div",WD,[T(J,{modelValue:o(a).pageTitle,"onUpdate:modelValue":W[4]||(W[4]=se=>o(a).pageTitle=se),maxlength:40,placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",class:"page-title-input"},null,8,["modelValue"]),T(o(xo.exports.mavonEditor),{ref_key:"mavonEditorRef",ref:K,modelValue:o(p),"onUpdate:modelValue":W[5]||(W[5]=se=>$t(p)?p.value=se:p=se),toolbars:o(m),externalLink:!1,style:{height:"calc(100vh - 155px)"},onSave:W[6]||(W[6]=se=>I(0)),onImgAdd:F,placeholder:"\u8BF7\u5F55\u5165\u6587\u6863\u5185\u5BB9",class:"page-content-editor wang-editor-body"},null,8,["modelValue","toolbars"])],512),[[nt,o(a).editorType===2]]),ze(M("div",null,[T(DD,{ref_key:"wangEditorRef",ref:E},null,512)],512),[[nt,o(a).editorType===1]])])])}}};var jD=ca(UD,[["__scopeId","data-v-1c39dcda"]]);const qD={style:{"min-height":"100%"},class:"space-manage-vue"},YD={style:{"max-width":"1200px",margin:"0 auto",background:"#fff",padding:"20px","min-height":"100%","box-sizing":"border-box"}},GD={style:{"text-align":"right","margin-bottom":"10px"}},XD={style:{float:"left","line-height":"40px"}},ZD={key:1},JD={class:"page-info-box"},QD={style:{"text-align":"right"}},eB={__name:"Manage",emits:"loadSpace",setup(e,{emit:t}){let n=_(!1);_([]);let l=_([]);_(""),_({}),_({id:"",name:"",spaceExplain:"",treeLazyLoad:0,openDoc:0,uuid:"",type:1});let a=_({}),s=_(""),r=_(!1),i=_(""),u=_([]),c=_({}),f=_([]),d=_({wiki_only_show_favorite:0});bn();let p=Nn();qe(()=>{A(),W(),U()});const v=z=>{let D=p.resolve({path:"/page/share/home",query:{space:z}});window.open(D.href,"_blank")};let m=_();const h=()=>{m.value.show()},g=z=>{m.value.show(z.id)},b=()=>{if(!i.value){Bt.warning("\u8BF7\u5148\u9009\u62E9\u5206\u7EC4");return}if(f.value.find(z=>z.groupId==i.value)){i.value="";return}f.value.push({groupId:i.value,editPage:0,commentPage:0,deletePage:0,pageFileUpload:0,pageFileDelete:0,pageAuthManage:0}),i.value=""},w=z=>{let D=z.favorite==1?1:0;St.spaceFavoriteUpdate({spaceId:z.id,delFlag:D}).then(x=>{z.favorite=z.favorite==1?0:1})},y=()=>{let z={spaceId:s.value,authList:JSON.stringify(f.value)};St.spaceAuthAssign(z).then(D=>{Bt.success("\u6388\u6743\u6210\u529F\uFF01")})},S=()=>{let z=location.href.substring(0,location.href.indexOf("/doc-wiki"))+"#/console/userGroupList";window.open(z,"_blank")},E=z=>{f.value=f.value.filter(D=>D.groupId!=z.groupId)},I=z=>{s.value=z.id,i.value="",f.value=[],Xn.userGroupList().then(D=>{u.value=D.data||[],u.value.forEach(x=>c.value[x.id]=x.name)}),St.spaceAuthList({spaceId:z.id}).then(D=>{f.value=D.data||[],r.value=!0})},P=z=>{go.confirm("\u786E\u5B9A\u8981\u5220\u9664\u6B64\u7A7A\u95F4\u53CA\u4E0B\u9762\u7684\u6240\u6709\u6587\u6863\u5417\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{let D={id:z.id,delFlag:1};St.updateSpace(D).then(()=>{Bt.success("\u5220\u9664\u6210\u529F"),A(),t("loadSpace")})})};let O=_(0),L=_({ignoreFavorite:1,pageNum:1,pageSize:10});const A=()=>{n.value=!0,St.spaceList(L.value).then(z=>{l.value=z.data||[],L.value.pageNum===1&&(O.value=z.total),setTimeout(()=>n.value=!1,500)})},K=z=>{L.value.pageSize=z,A()},F=z=>{L.value.pageNum=z,A()},H=()=>{let z={name:"wiki_only_show_favorite",value:d.value.wiki_only_show_favorite};St.spaceSettingUpdate(z).then(D=>{t("loadSpace")})},U=()=>{St.spaceSettingList().then(z=>{let D=z.data||{};d.value={wiki_only_show_favorite:D.wiki_only_show_favorite||0}})},W=()=>{Xn.getSelfUserInfo().then(z=>{a.value=z.data})};return(z,D)=>{const x=re("el-breadcrumb-item"),V=re("el-breadcrumb"),Y=re("el-switch"),ne=re("el-icon"),q=re("el-tooltip"),J=re("el-button"),se=re("el-table-column"),me=re("el-link"),ye=re("el-table"),le=re("el-pagination"),ee=re("el-option"),ie=re("el-select"),fe=re("el-row"),Te=re("el-checkbox"),he=re("el-dialog");return k(),R("div",qD,[T(V,{"separator-class":"el-icon-arrow-right",style:{padding:"20px 10px"}},{default:N(()=>[T(x,null,{default:N(()=>[Ce("WIKI\u6587\u6863")]),_:1}),T(x,null,{default:N(()=>[Ce("\u7A7A\u95F4\u7BA1\u7406")]),_:1})]),_:1}),M("div",YD,[M("div",GD,[M("span",XD,[Ce(" \u4EC5\u5C55\u793A\u6211\u6536\u85CF\u7684\u7A7A\u95F4\uFF1A "),T(Y,{modelValue:o(d).wiki_only_show_favorite,"onUpdate:modelValue":D[0]||(D[0]=be=>o(d).wiki_only_show_favorite=be),"inactive-value":"0","active-value":"1",onChange:H},null,8,["modelValue"]),T(q,{class:"item",effect:"dark",content:"\u63A7\u5236\u5DE6\u4E0A\u89D2\u7A7A\u95F4\u4E0B\u62C9\u5217\u8868\u4EC5\u5C55\u793A\u6211\u6536\u85CF\u7684\u7A7A\u95F4",placement:"top-start"},{default:N(()=>[T(ne,{style:{"vertical-align":"middle","margin-left":"10px",color:"#999"}},{default:N(()=>[T(o(Dm))]),_:1})]),_:1})]),T(J,{onClick:A,icon:o(Bm),loading:o(n)},{default:N(()=>[Ce("\u5237\u65B0")]),_:1},8,["icon","loading"]),T(J,{type:"primary",onClick:h,icon:o(us)},{default:N(()=>[Ce("\u521B\u5EFA\u7A7A\u95F4")]),_:1},8,["icon"])]),T(ye,{data:o(l),border:"",style:{width:"100%","margin-bottom":"5px"}},{default:N(()=>[T(se,{prop:"id",label:"ID",width:"60"}),T(se,{prop:"name",label:"\u540D\u5B57"}),T(se,{prop:"spaceExplain",label:"\u8BF4\u660E"}),T(se,{label:"\u5F00\u653E\u5730\u5740"},{default:N(be=>[be.row.openDoc==1?(k(),Z(me,{key:0,onClick:Pe=>v(be.row.uuid)},{default:N(()=>[Ce(ae(be.row.name),1)]),_:2},1032,["onClick"])):(k(),R("span",ZD,"\u6682\u672A\u5F00\u653E"))]),_:1}),T(se,{prop:"createUserName",label:"\u521B\u5EFA\u4EBA"}),T(se,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"}),T(se,{prop:"favorite",label:"\u6536\u85CF",width:"60"},{default:N(be=>[be.row.favorite===1?(k(),Z(ne,{key:0,onClick:Pe=>w(be.row),class:"favorite-icon el-icon-star-on"},{default:N(()=>[T(o(Mo))]),_:2},1032,["onClick"])):(k(),Z(ne,{key:1,onClick:Pe=>w(be.row),class:"favorite-icon el-icon-star-off"},{default:N(()=>[T(o(Ac))]),_:2},1032,["onClick"]))]),_:1}),T(se,{label:"\u64CD\u4F5C",width:"220"},{default:N(be=>[o(a).id==be.row.createUserId?(k(),R(Re,{key:0},[T(J,{size:"small",type:"primary",onClick:Pe=>g(be.row)},{default:N(()=>[Ce("\u7F16\u8F91")]),_:2},1032,["onClick"]),T(J,{size:"small",type:"warning",onClick:Pe=>I(be.row)},{default:N(()=>[Ce("\u6388\u6743")]),_:2},1032,["onClick"]),T(J,{size:"small",type:"danger",onClick:Pe=>P(be.row)},{default:N(()=>[Ce("\u5220\u9664")]),_:2},1032,["onClick"])],64)):Q("",!0)]),_:1})]),_:1},8,["data"]),M("div",JD,[T(le,{onSizeChange:K,onCurrentChange:F,"page-sizes":[10,30,50],"page-size":10,"current-page":o(L).pageNum,layout:"prev, pager, next, jumper, sizes, total",total:o(O)},null,8,["current-page","total"])])]),T(he,{title:"\u6743\u9650\u7BA1\u7406",modelValue:o(r),"onUpdate:modelValue":D[2]||(D[2]=be=>$t(r)?r.value=be:r=be),width:"900px","close-on-click-modal":!1},{default:N(()=>[T(fe,null,{default:N(()=>[T(ie,{modelValue:o(i),"onUpdate:modelValue":D[1]||(D[1]=be=>$t(i)?i.value=be:i=be),filterable:"",placeholder:"\u8BF7\u9009\u62E9\u5206\u7EC4",style:{width:"750px","margin-right":"10px"}},{default:N(()=>[(k(!0),R(Re,null,Je(o(u),be=>(k(),Z(ee,{key:be.id,label:o(c)[be.id],value:be.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),T(J,{onClick:b},{default:N(()=>[Ce("\u6DFB\u52A0")]),_:1})]),_:1}),T(ye,{data:o(f),border:"",style:{width:"100%",margin:"10px 0"}},{default:N(()=>[T(se,{prop:"groupId",label:"\u5206\u7EC4\u540D",width:"150"},{default:N(be=>[Ce(ae(o(c)[be.row.groupId]),1)]),_:1}),T(se,{label:"\u6743\u9650"},{default:N(be=>[T(Te,{"true-label":1,"false-label":0,modelValue:be.row.editPage,"onUpdate:modelValue":Pe=>be.row.editPage=Pe},{default:N(()=>[Ce("\u7F16\u8F91")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(Te,{"true-label":1,"false-label":0,modelValue:be.row.deletePage,"onUpdate:modelValue":Pe=>be.row.deletePage=Pe},{default:N(()=>[Ce("\u5220\u9664")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(Te,{"true-label":1,"false-label":0,modelValue:be.row.pageFileUpload,"onUpdate:modelValue":Pe=>be.row.pageFileUpload=Pe},{default:N(()=>[Ce("\u6587\u4EF6\u4E0A\u4F20")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(Te,{"true-label":1,"false-label":0,modelValue:be.row.pageFileDelete,"onUpdate:modelValue":Pe=>be.row.pageFileDelete=Pe},{default:N(()=>[Ce("\u6587\u4EF6\u5220\u9664")]),_:2},1032,["modelValue","onUpdate:modelValue"]),T(Te,{"true-label":1,"false-label":0,modelValue:be.row.pageAuthManage,"onUpdate:modelValue":Pe=>be.row.pageAuthManage=Pe},{default:N(()=>[Ce("\u6743\u9650\u7BA1\u7406")]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),T(se,{label:"\u64CD\u4F5C",width:"80"},{default:N(be=>[T(J,{size:"small",type:"danger",plain:"",onClick:Pe=>E(be.row)},{default:N(()=>[Ce("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),M("div",QD,[T(J,{onClick:S},{default:N(()=>[Ce("\u5206\u7EC4\u7BA1\u7406")]),_:1}),T(J,{type:"primary",onClick:y},{default:N(()=>[Ce("\u4FDD\u5B58\u914D\u7F6E")]),_:1})])]),_:1},8,["modelValue"]),T(o(iv),{ref_key:"createSpaceRef",ref:m,onSuccess:A},null,512)])}}};const tB={style:{padding:"10px"},class:"page-share-home-vue"},nB={style:{"max-width":"800px",margin:"0 auto"}},lB={key:0,class:"empty-news"},oB={class:"line-box"},aB={class:"line-title"},sB={class:"text-link"},rB={class:"text-link"},iB={class:"page-preview-box"},uB=["onClick","innerHTML"],cB=["innerHTML"],dB=M("img",{src:da,class:"zan-img"},null,-1),fB={class:"page-info-box"},pB={__name:"Home",setup(e){let t=_(0),n=_({spaceId:"",newsType:1,pageNum:1,pageSize:20}),l=_([]);ko(d=>{f(d)});let a=bn(),s=Nn();qe(()=>{f(a)});const r=()=>{St.openPageNews(n.value).then(d=>{l.value=d.data||[],t.value=d.total})},i=d=>{n.value.pageSize=d,r()},u=d=>{let p={space:d.space,pageId:d.pageId};s.push({path:"/page/share/view",query:p})},c=d=>{n.value.pageNum=d,r()},f=d=>{n.value={space:d.query.space,newsType:1,pageNum:1,pageSize:20},n.value.space&&r()};return(d,p)=>{const v=re("el-icon"),m=re("el-pagination");return k(),R("div",tB,[M("div",nB,[o(l).length<=0?(k(),R("div",lB,"\u6682\u65E0\u6570\u636E")):(k(!0),R(Re,{key:1},Je(o(l),h=>(k(),R("div",oB,[M("div",aB,[M("span",sB,ae(h.createUserName),1),Ce(" \u53D1\u5E03\u4E8E "),M("span",rB,ae(h.spaceName),1)]),M("div",iB,[M("div",{class:"page-preview-title",onClick:g=>u(h),innerHTML:h.pageTitle},null,8,uB),M("div",{class:"page-preview-content",innerHTML:h.previewContent},null,8,cB),M("div",null,[M("span",null,[dB,Ce(ae(h.zanNum)+"\u3000",1)]),M("span",null,[T(v,{class:"view-img"},{default:N(()=>[T(o(la))]),_:1}),Ce(" "+ae(h.viewNum)+"\u3000",1)]),M("span",null,ae(h.updateTime||h.createTime),1)])])]))),256)),M("div",fB,[T(m,{onSizeChange:i,onCurrentChange:c,"page-sizes":[20,50,100],"page-size":20,"current-page":o(n).pageNum,layout:"prev, pager, next, jumper, sizes, total",total:o(t)},null,8,["current-page","total"])])])])}}};const vB={class:"page-share-view-vue"},mB={style:{"max-width":"1000px","padding-left":"10px",margin:"0 auto"}},hB={class:"wiki-author"},gB={key:0},yB={key:1},bB={class:"wiki-files"},wB=["href"],kB=["innerHTML"],CB=["innerHTML"],SB={__name:"View",setup(e){let t=_(""),n=_(""),l=_({}),a=_([]),s=_(""),r=_(0),i=_(!1),u=_([]),c=_([]);ko(S=>{v(S)});let f=bn();Nn(),qe(()=>{v(f)});let d=_();const p=S=>{let E={pageId:S,space:t.value};St.openPageDetail(E).then(I=>{let P=I.data.wikiPage||{};P.selfZan=I.data.selfZan||0,P.value=P;let O=I.data.pageContent||{};a.value=I.data.fileList||[],P.value.editorType===2&&(O.content=xo.exports.mavonEditor.getMarkdownIt().render(O.content)),s.value=O.content;let L=P.name||"WIKI-\u5185\u5BB9\u5C55\u793A";document.title=L,setTimeout(()=>{b();let A=fv.createNavigationHeading();A.length>0&&A.unshift({level:1,node:d.value,text:L}),A.value=A},500)})},v=S=>{t.value=S.query.space,n.value=S.query.pageId,n.value&&p(n.value)},m=S=>{if(!S)return"-";let E="";S<.1*1024?E=S.toFixed(2)+"B":S<.1*1024*1024?E=(S/1024).toFixed(2)+"KB":S<.1*1024*1024*1024?E=(S/(1024*1024)).toFixed(2)+"MB":E=(S/(1024*1024*1024)).toFixed(2)+"GB";let I=E+"",P=I.indexOf(".");return I.substr(P+1,2)=="00"?I.substring(0,P)+I.substr(P+3,2):E},h=()=>{i.value=!1};let g=_();const b=()=>{const S=[];g.value.querySelectorAll("img").forEach((I,P)=>{S.push(I.src),I.onclick=()=>{r.value=P,u.value=S,i.value=!0,setTimeout(()=>y.value(),0)}})};let w=_();const y=()=>{w.value.querySelectorAll(".el-image-viewer__mask").forEach(E=>{E.onclick=()=>i.value=!1})};return(S,E)=>{const I=re("el-col"),P=re("el-table-column"),O=re("el-table"),L=re("el-row"),A=re("el-image-viewer");return k(),R("div",vB,[T(L,{type:"border-card"},{default:N(()=>[T(L,null,{default:N(()=>[o(c).length>0?(k(),Z(I,{key:0,xs:0,sm:4,md:4,lg:6,xl:6},{default:N(()=>[T(pv,{heading:o(c)},null,8,["heading"])]),_:1})):Q("",!0),T(I,{xs:24,sm:o(c).length>0?20:24,md:o(c).length>0?20:24,lg:o(c).length>0?18:24,xl:o(c).length>0?18:24},{default:N(()=>[M("div",mB,[M("div",{class:"wiki-title",ref_key:"wikiTitleRef",ref:d},ae(o(l).name),513),M("div",hB,[o(l).updateTime?(k(),R("span",gB,"\u6700\u540E\u4FEE\u6539\uFF1A"+ae(o(l).updateTime),1)):(k(),R("span",yB,"\u521B\u5EFA\u65F6\u95F4\uFF1A"+ae(o(l).createTime),1))]),M("div",bB,[ze(T(O,{data:o(a),border:"",style:{width:"100%","margin-bottom":"5px"}},{default:N(()=>[T(P,{label:"\u6587\u4EF6\u540D"},{default:N(K=>[M("a",{target:"_blank",href:K.row.fileUrl},ae(K.row.fileName),9,wB)]),_:1}),T(P,{label:"\u6587\u4EF6\u5927\u5C0F"},{default:N(K=>[Ce(ae(m(K.row.fileSize)),1)]),_:1}),T(P,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4",width:"180px"}),T(P,{prop:"downloadNum",label:"\u4E0B\u8F7D\u6B21\u6570",width:"80px"})]),_:1},8,["data"]),[[nt,o(a).length>0]])]),M("div",{ref_key:"pageContentRef",ref:g,class:"wiki-page-content"},[o(l).editorType==2?(k(),R("div",{key:0,innerHTML:o(s),class:"markdown-body"},null,8,kB)):(k(),R("div",{key:1,innerHTML:o(s),class:"wang-editor-body"},null,8,CB))],512)])]),_:1},8,["sm","md","lg","xl"])]),_:1})]),_:1}),M("div",{ref_key:"imagePreviewRef",ref:w},[o(i)?(k(),Z(A,{key:0,"url-list":o(u),"on-close":h,"initial-index":o(r)},null,8,["url-list","initial-index"])):Q("",!0)],512)])}}};const _B={class:"page-share-view-vue"},EB={style:{"max-width":"950px",margin:"0 auto"}},$B={class:"wiki-author"},TB={key:0},IB={key:1},NB={class:"wiki-files"},MB=["href"],PB=["innerHTML"],OB=["innerHTML"],RB={__name:"View",emits:["popupShow"],setup(e,{emit:t}){let n=_(""),l=_(""),a=_({}),s=_([]),r=_(""),i=_(0),u=_([]);ko(g=>{p(g)});let c=bn();Nn(),qe(()=>{p(c)});const f=()=>{t("popupShow",!0)},d=g=>{let b={pageId:g,space:n.value};St.openPageDetail(b).then(w=>{let y=w.data.wikiPage||{};y.selfZan=w.data.selfZan||0,a.value=y;let S=w.data.pageContent||{};s.value=w.data.fileList||[],a.value.editorType===2&&(S.content=xo.exports.mavonEditor.getMarkdownIt().render(S.content)),r.value=S.content,document.title=y.name||"WIKI-\u5185\u5BB9\u5C55\u793A",setTimeout(()=>h(),500)})},p=g=>{n.value=g.query.space,l.value=g.query.pageId,l.value&&d(l.value)},v=g=>{if(!g)return"-";let b="";g<.1*1024?b=g.toFixed(2)+"B":g<.1*1024*1024?b=(g/1024).toFixed(2)+"KB":g<.1*1024*1024*1024?b=(g/(1024*1024)).toFixed(2)+"MB":b=(g/(1024*1024*1024)).toFixed(2)+"GB";let w=b+"",y=w.indexOf(".");return w.substr(y+1,2)=="00"?w.substring(0,y)+w.substr(y+3,2):b};let m=_();const h=()=>{const g=[];m.value.querySelectorAll("img").forEach((w,y)=>{g.push(w.src),w.onclick=()=>{i.value=y,u.value=g,Hm({images:g,startPosition:y})}})};return(g,b)=>{const w=re("van-icon"),y=re("van-nav-bar"),S=re("el-table-column"),E=re("el-table"),I=re("el-row");return k(),R("div",_B,[T(y,{title:o(a).name,class:"header"},{left:N(()=>[T(w,{name:"wap-nav",size:"20",onClick:f})]),_:1},8,["title"]),T(I,{type:"border-card",class:"main"},{default:N(()=>[M("div",EB,[M("div",$B,[o(a).updateTime?(k(),R("span",TB,"\u6700\u540E\u4FEE\u6539\uFF1A"+ae(o(a).updateTime),1)):(k(),R("span",IB,"\u521B\u5EFA\u65F6\u95F4\uFF1A"+ae(o(a).createTime),1))]),M("div",NB,[ze(T(E,{data:o(s),border:"",style:{width:"100%","margin-bottom":"5px"}},{default:N(()=>[T(S,{label:"\u6587\u4EF6\u540D"},{default:N(P=>[M("a",{target:"_blank",href:P.row.fileUrl},ae(P.row.fileName),9,MB)]),_:1}),T(S,{label:"\u6587\u4EF6\u5927\u5C0F"},{default:N(P=>[Ce(ae(v(P.row.fileSize)),1)]),_:1}),T(S,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4",width:"180px"}),T(S,{prop:"downloadNum",label:"\u4E0B\u8F7D\u6B21\u6570",width:"80px"})]),_:1},8,["data"]),[[nt,o(s).length>0]])]),M("div",{ref_key:"pageContentRef",ref:m,class:"wiki-page-content"},[o(a).editorType==2?(k(),R("div",{key:0,innerHTML:o(r),class:"markdown-body"},null,8,PB)):(k(),R("div",{key:1,innerHTML:o(r),class:"wang-editor-body"},null,8,OB))],512)])]),_:1})])}}};let LB=[{path:"/",redirect:"/home"},{path:"/page/search",name:"WIKI-\u5168\u5C40\u641C\u7D22",component:PV},{path:"/common/noAuth",name:"WIKI-\u6CA1\u6709\u6743\u9650",component:OV},{path:"/",name:"\u6587\u6863\u7BA1\u7406",component:QA,children:[{path:"/home",name:"WIKI\u6587\u6863\u7BA1\u7406",component:WV},{path:"/user/myInfo",name:"WIKI-\u6211\u7684\u4FE1\u606F",component:YV},{path:"/page/show",name:"WIKI-\u9875\u9762\u67E5\u770B",component:PD},{path:"/page/edit",name:"WIKI-\u7F16\u8F91\u5185\u5BB9",component:jD},{path:"/space/manage",name:"WIKI-\u7A7A\u95F4\u7BA1\u7406",component:eB}]},{path:"/",name:"PC\u7AEF\u5F00\u653E\u6587\u6863",component:rV,children:[{path:"/page/share/home",name:"WIKI-\u5F00\u653E\u6587\u6863",component:pB},{path:"/page/share/view",name:"WIKI-\u5185\u5BB9\u5C55\u793A",component:SB}]},{path:"/",name:"APP\u7AEF\u5F00\u653E\u6587\u6863",component:gV,children:[{path:"/page/share/mobile/view",name:"WIKI-\u5F00\u653E\u6587\u6863",component:RB}]}];const AB=xm({history:zm(),routes:LB}),xl=Ec(uA);xl.config.productionTip=!1;xl.use(iA,{locale:cA});xl.use(Km);xl.use(AB);xl.use(Fm());xl.mount("#app");xl.directive("highlight",function(e){e.querySelectorAll("pre code").forEach(n=>{_v.highlightBlock(n)})}); diff --git a/zyplayer-doc-wiki/src/main/resources/dist/doc-wiki.html b/zyplayer-doc-wiki/src/main/resources/dist/doc-wiki.html index 0b4bfd7c..75f3af35 100644 --- a/zyplayer-doc-wiki/src/main/resources/dist/doc-wiki.html +++ b/zyplayer-doc-wiki/src/main/resources/dist/doc-wiki.html @@ -5,7 +5,7 @@ WIKI文档管理系统 - +