You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 line
23 KiB

  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3646e7b0"],{"04c4":function(e,t,r){"use strict";var n=r("14d6"),a=r.n(n);a.a},"14d6":function(e,t,r){},2909:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("6b75");function a(e){if(Array.isArray(e))return Object(n["a"])(e)}var o=r("db90"),s=r("06c5");function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e){return a(e)||Object(o["a"])(e)||Object(s["a"])(e)||c()}},"5be0":function(e,t,r){},"6dcf":function(e,t,r){"use strict";var n=r("5be0"),a=r.n(n);a.a},a341:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"new-proj"},[r("AppHeader",{staticClass:"new-proj-header",attrs:{theme:"basis",showBackBtn:"",isShowTopBar:!0,backBtnTitle:"取消项目创建"}}),r("div",{staticClass:"proj_manage"},[r("div",{staticClass:"proj_manage_content"},[r("div",{staticClass:"proj_manage_left"},[e.listTempNodeTree.length?r("nodes-viewer",{staticClass:"nodes-viewer",attrs:{node:e.listTempNodeTree[0]}}):e._e()],1),r("div",{staticClass:"projModule adjust-top-radius"},[e.isProjName?r("div",{staticClass:"projName_input"},[r("div",{staticClass:"newProj_header "},[r("div",{staticClass:"newProj_title"},[e._v(" 输入项目名称 ")]),r("el-button",{staticClass:"nextbtn",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.enterTemplateSelect()}}},[e._v("下一步")])],1),r("div",{staticClass:"newProj_content"},[r("div",{staticClass:"upload_img"},[r("div",{staticClass:"upload_imgBox",style:e.showBackground(e.coverSrc)},[r("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[r("span",[e._v("编辑")])]),r("span",{staticClass:"faceBtn",on:{click:function(t){return t.stopPropagation(),e.setSystemCoverRandom(t)}}},[e._v("使用随机封面")])],1)]),r("div",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.newProjData.projectData.projName,expression:"newProjData.projectData.projName"}],staticClass:"input_projname",attrs:{type:"text",placeholder:"点击输入 请输入32个字之内的字符"},domProps:{value:e.newProjData.projectData.projName},on:{input:function(t){t.target.composing||e.$set(e.newProjData.projectData,"projName",t.target.value)}}})])])]):e._e(),e.isTemSelect?r("div",{staticClass:"template_select"},[r("TopHeader",{ref:"projdesc",staticClass:"set_position header-wrap",class:{"header-bottom-shadow":e.isProjDescScroll},attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"修改项目名称",onBackBtnClick:e.enterProjNameInput,title:"选择项目模板"},scopedSlots:e._u([{key:"right",fn:function(){return[r("el-button",{staticClass:"slot_btn",attrs:{disabled:!e.selectTemplate.Id},on:{click:function(t){return t.stopPropagation(),e.enterTemplateImprove()}}},[e._v("选定模板")])]},proxy:!0}],null,!1,3864135699)}),r("div",{staticClass:"template_select_content"},[e._l(e.templateList,(function(t,n){return r("div",{key:t.Id,staticClass:"template_info",on:{click:function(r){return r.stopPropagation(),e.isChecked(n,t)}}},[r("div",{staticClass:"check_box",class:{checked:e.checkedIndex==n}},[r("i",{staticClass:"el-icon-check"})]),r("span",{staticClass:"template_info_name"},[e._v(e._s(t.TempName))])])})),e.templateList.length?e._e():r("div",{staticClass:"template_empty"},[e._v("没有可供使用的项目模板,请联系管理员。")])],2)],1):e._e(),e.isTemImprove?r("div",{staticClass:"template_improve"},[r("TopHeader",{staticClass:"set_position header-wrap",attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"选择模板",onBackBtnClick:e.enterTemplateSelect,title:"完善模板信息"}},[r("div",{staticClass:"slot_btn",attrs:{slot:"right",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.createProject()}},slot:"right"},[e._v("创建")])]),r("div",{staticClass:"template_improve_content"},[r("div",{staticClass:"template_improve_info"},[r("div",{staticClass:"template_title"},[e._v("模板名称:")]),r("div",{staticClass:"template_title_info"},[e._v(e._s(e.selectTemplate.TempName))])]),r("div",{staticClass:"template_improve_info"},[r("div",{staticClass:"template_title"},[e._v("创建时间:")]),r("div",{staticClass:"template_title_info"},[e._v(e._s(e.createDate))])]),e._l(e.checkNewProjData.CustomProps,(function(t){return r("div",{key:t.Id,staticClass:"template_improve_info template_improve_infoInput"},[r("div",{staticClass:"template_title"},[e._v(e._s((t.PropertyName?t.PropertyName:"自定义字段")+":"))]),r("div",{staticClass:"template_title_info"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.PropValue,expression:"prop.PropValue"}],staticClass:"input_projname",attrs:{type:"text",placeholder:"点击输入"},domProps:{value:t.PropValue},on:{input:function(r){r.target.composing||e.$set(t,"PropValue",r.target.value)}}})])])}))],2)],1):e._e()])])])],1)},a=[],o=(r("4160"),r("fb6a"),r("159b"),r("96cf"),r("1da1")),s=r("5530"),c=r("2909"),i=r("b1f3"),u=r("f96e"),l=r("de58"),p=r("b0f9"),d=(r("93d6"),r("5ab9")),m=r("9e5b"),h=r("b775"),f=(r("3de1"),{components:{AppHeader:u["a"],TopHeader:i["a"],FileUploader:m["a"],NodesViewer:l["a"]},props:{},data:function(){var e=this.$route.params.parentFolderId;return console.log("parentFolderId: ",e),{parentFolderId:e,companyId:sessionStorage.companyId,isProjName:!0,isTemSelect:!1,isTemImprove:!1,templateId:sessionStorage.templateID,listTempNodeTree:[],NestTemplateList:[],otherTemplateList:[],tempNodeList:[],nestNodeId:"",title:"",checkedIndex:NaN,selectTemplate:{},srcIndex:2,coverSrc:"static/img/faceImg/face01.png",templateList:[],isProjDescScroll:!1,projDescEl:null,plastScrollTime:null,createDate:(new Date).toLocaleDateString(),checkNewProjData:{Proj:{ProjName:"",CompanyId:"",Notice:"",ShowImgUrl:"",TemplateId:"",CreateUserId:"",ModifyUserId:""},Node:{},CustomProps:[]},newProjData:{projectData:{projID:"",projName:"",projCode:"",folderID:"",scale:"",address:"",showImgUrl:"",templateID:"",createUserID:"",modifyUserID:"",deleted:0,listProjManager:[]},listFolder:[],listProjProp:[],userId:""}}},methods:{showBackground:function(e){var t=this.$options.filters["resolveImg"],r=t(e);return{background:"center/cover no-repeat url(".concat(r,")")}},enterTemplateSelect:function(){if(void 0!=this.newProjData.projectData.projName&&null!=this.newProjData.projectData.projName&&""!=this.newProjData.projectData.projName){var e=/[/\\]{1,}/g;e.test(this.newProjData.projectData.projName)?this.$notify({message:"项目名称请不要包含'/' '\\'等字符。",type:["warning"]}):this.newProjData.projectData.projName.length>32?this.$notify({message:"项目名称不得超出32个字符。",type:"warning"}):(this.isProjName=!1,this.isTemSelect=!0,this.isTemImprove=!1,this.isTemNest=!1,this.getSelectTemplateData())}else this.$notify({message:"请输入项目名称。",type:["warning"]})},enterProjNameInput:function(){this.isProjName=!0,this.isTemSelect=!1},enterTemplateImprove:function(){this.isTemSelect=!1,this.isTemImprove=!0,this.getTempProps(this.selectTemplate.Id)},getTempProps:function(e){var t=this;p["n"](e).then((function(e){e.Data.propertys.forEach((function(e,r){t.checkNewProjData.CustomProps[r]={},t.checkNewProjData.CustomProps[r]["TempPropId"]=e.Id,t.checkNewProjData.CustomProps[r]["PropertyName"]=e.PropertyName,t.checkNewProjData.CustomProps[r]["PropValue"]="";var n=t.checkNewProjData.CustomProps;t.checkNewProjData.CustomProps=Object(c["a"])(n)})),t.checkNewProjData=Object(s["a"])({},t.checkNewProjData)}))},isChecked:function(e,t){this.checkedIndex=e,this.selectTemplate=t},setSystemCoverRandom:function(){var e=Math.ceil(10*Math.random());while(this.srcIndex===e)e=Math.ceil(10*Math.random());this.srcIndex=e,this.coverSrc="static/img/faceImg/face".concat("".concat(100+this.srcIndex).slice(1),".png"),this.newProjData.projectData.showImgUrl=this.coverSrc},coverUploadSuccess:function(e){var t=Object(d["c"])(e.ossUrl);this.coverSrc=t,this.newProjData.projectData.showImgUrl=t},getSelectTemplateData:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p["m"](e.companyId);case 2:r=t.sent,n=r.Data||[],e.templateList=n,e.templateList&&e.templateList.length&&"{}"===JSON.stringify(e.selectTemplate)&&(e.selectTemplate=n[0],e.checkedIndex=0);case 6:case"end":return t.stop()}}),t)})))()},createProject:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r,n,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isDisableCreate=!0,e.newProjData.userId=sessionStorage.userId,e.newProjData.projectData.templateID=e.selectTemplate.Id,e.newProjData.projectData.showImgUrl=e.coverSrc,r=e,e.checkNewProjData.Proj.ProjName=e.newProjData.projectData.projName,e.checkNewProjData.Proj.CompanyId=e.$store.state.currentCompanyId,e.checkNewProjData.Proj.ShowImgUrl=String(e.newProjData.projectData.showImgUrl),e.checkNewProjData.Proj.TemplateId=e.selectTemplate.Id,e.checkNewProjData.Proj.CreateUserId=sessionStorage.userId,e.checkNewProjData.Proj.ModifyUserId=sessionStorage.userId,t.next=13,p["p"](e.selectTemplate.Id);case 13:n=t.sent,e.checkNewProjData.Node=n.Data,a=Object(s["a"])({},e.checkNewProjData),e.parentFolderId&&(a.FolderId=e.parentFolderId),e.$fetchApi("project/createProject",a).then((function(t){Object(h["c"])(t),0===t.Code&&(r.$notify({message:"新项目创建成功。",type:["success"]}),sessionStorage.projId=t.Data,sessionStorage.createUserID=sessionStorage.userId,sessionStorage.templateID=e.selectTemplate.Id,sessionStorage.allocated=0,e.$router.push({name:"projdetail",query:{isShowDistworkPage:!0}}).catch((function(e){console.log(e)})))})).catch((function(e){return console.log(e)})),o={API:"project/createProject",Action:"创建项目",CompanyName:sessionStorage.CompanyName,Subject:e.checkNewProjData.Proj.ProjName,Source:sessionStorage.client,ProjectName:e.checkNewProjData.Proj.ProjName},Object(h["b"])("operation/record",o);case 20:case"end":return t.stop()}}),t)})))()},loadTempNodeTree:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,p["p"](e);case 2:n=r.sent,t.listTempNodeTree=n.Data?[n.Data]:[];case 4:case"end":return r.stop()}}),r)})))()},watchProjDescScroll:function(){this.isProjDescScroll=this.projDescEl.scrollTop>0}},watch:{isProjDescScroll:function(e){var t=this;e&&setTimeout((function(){t.projDescEl=t.$refs.projdesc,t.projDescEl&&t.projDescEl.addEventListener("scroll",t.watchProjDescScroll)}),50)},selectTemplate:function(e){this.loadTempNodeTree(e.Id)}},mounted:function(){this.projDescEl&&this.projDescEl.addEventListener("scroll",this.watchProjDescScroll)},beforeDestroy:function(){this.projDescEl&&this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll)}}),j=f,w=(r("04c4"),r("2877")),b=Object(w["a"])(j,n,a,!1,null,null,null);t["default"]=b.exports},b0f9:function(e,t,r){"use strict";r.d(t,"o",(function(){return o})),r.d(t,"m",(function(){return c})),r.d(t,"t",(function(){return u})),r.d(t,"d",(function(){return p})),r.d(t,"n",(function(){return m})),r.d(t,"q",(function(){return f})),r.d(t,"f",(function(){return w})),r.d(t,"s",(function(){return v})),r.d(t,"l",(function(){return y})),r.d(t,"k",(function(){return P})),r.d(t,"b",(function(){return D})),r.d(t,"p",(function(){return T})),r.d(t,"j",(function(){return N})),r.d(t,"h",(function(){return x})),r.d(t,"i",(function(){return R})),r.d(t,"a",(function(){return E})),r.d(t,"g",(function(){return M})),r.d(t,"c",(function(){return L})),r.d(t,"e",(function(){return q})),r.d(t,"r",(function(){return V}));r("4de4"),r("96cf");var n=r("1da1"),a=r("b775");function o(){return s.apply(this,arguments)}function s(){return s=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateList");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function c(e){return i.apply(this,arguments)}function i(){return i=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByCompanyId",{companyId:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)}function u(e){return l.apply(this,arguments)}function l(){return l=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/uploadingXmind",t,{headers:{"Content-Type":"application/octet-stream"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return d=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createTemplate",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),d.apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return h=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function f(e){return j.apply(this,arguments)}function j(){return j=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function w(e){return b.apply(this,arguments)}function b(){return b=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function v(e){return g.apply(this,arguments)}function g(){return g=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/updateTemplate",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function y(e){return I.apply(this,arguments)}function I(){return I=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateByTemplateId",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function P(e){return k.apply(this,arguments)}function k(){return k=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryNestTemplateIdByProjectId",{projectId:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function D(e){return _.apply(this,arguments)}function _(){return _=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/connectNestTemplateFolder",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function T(e){return C.apply(this,arguments)}function C(){return C=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryTemplateNodeByTemplateId",{templateId:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function N(e,t,r){return O.apply(this,arguments)}function O(){return O=Object(n["a"])(regeneratorRuntime.mark((function e(t,r,n){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:r,nestedNodeId:n});case 2:return o=e.sent,e.abrupt("return",Object(a["c"])(o));case 4:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function x(e){return S.apply(this,arguments)}function S(){return S=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/fileExchange",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),S.apply(this,arguments)}function R(e,t){return B.apply(this,arguments)}function B(){return B=Object(n["a"])(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/queryAllTemplateNodeModelFile",{templateNodeId:t,companyId:r?void 0:"0"});case 2:return n=e.sent,r&&n.Data&&(n.Data=n.Data.filter((function(e){return"0"===e.CompanyId||e.CompanyId===r}))),e.abrupt("return",Object(a["c"])(n));case 5:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}function E(e){return U.apply(this,arguments)}function U(){return U=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/addTemplateNodeModelFile",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),U.apply(this,arguments)}function M(e){return $.apply(this,arguments)}function $(){return $=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteTemplateNodeModelFile",{id:t});case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),$.apply(this,arguments)}function L(e){return F.apply(this,arguments)}function F(){return F=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/createNestedRelevance",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),F.apply(this,arguments)}function q(e){return A.apply(this,arguments)}function A(){return A=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/deleteNestedRelevance",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),A.apply(this,arguments)}function V(e){return W.apply(this,arguments)}function W(){return W=Object(n["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(a["b"])("template/renameTemplate",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}},b1f3:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[r("div",{staticClass:"app-header-content"},[r("div",{staticClass:"app-header-content-left"},[e._t("left",[r("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),r("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),r("div",{staticClass:"app-header-content-right"},[e._t("right"),e.showUserCenter?r("user-center"):e._e()],2)]),r("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2)])},a=[],o=r("1392"),s={components:{UserCenter:o["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean},data:function(){return{isWindowScrollIng:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},c=s,i=(r("6dcf"),r("2877")),u=Object(i["a"])(c,n,a,!1,null,"373b66dc",null);t["a"]=u.exports},db90:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("d3b7"),r("3ca3"),r("ddb0");function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},de58:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{ref:"mindDom",staticClass:"nodes-viewer",style:{width:e.width,height:e.height},attrs:{id:e.domId},on:{mousewheel:function(t){return t.stopPropagation(),e.onWheel(t)}}})},a=[],o=(r("fb6a"),function(){return"xmind_".concat("".concat(Math.random()).slice(2,8))}),s=window.jsMind,c={props:{node:{type:Object,default:null},width:{type:String,default:""},height:{type:String,default:""}},data:function(){return{domId:o(),mindIns:null,domMindInner:null,zoom:1}},mounted:function(){this.init()},watch:{node:function(e){e&&this.show()}},methods:{init:function(){var e={container:this.domId,editable:!1,theme:"",mode:"side",support_html:!1,view:{engine:"canvas",hmargin:100,vmargin:50,line_width:1,line_color:"#cccdd7"}},t=new s(e);t.disable_edit(),t.end_edit(),this.mindIns=t,this.node&&this.show()},getMindInnerDom:function(){if(this.domMindInner)return this.domMindInner;if(this.$refs.mindDom){var e=this.$refs.mindDom.querySelector(".jsmind-inner");return this.domMindInner=e,e}},onWheel:function(e){if(e.ctrlKey){e.returnValue=!1;var t=-e.wheelDelta||e.detail,r=this.getMindInnerDom();if(r){var n=this.zoom+(t>0?-.1:.1),a=Math.max(.2,Math.min(n,1.8));this.zoom=a,r.style.zoom=this.zoom}}},show:function(){var e={meta:{name:"mindhh",author:"hh",version:"0.2"},format:"node_tree",data:this.node};this.mindIns.show(e)}}},i=c,u=r("2877"),l=Object(u["a"])(i,n,a,!1,null,"2aa6cc14",null);t["a"]=l.exports},f96e:function(e,t,r){"use strict";var n=r("01a8");r.d(t,"a",(function(){return n["a"]}))}}]);