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.
 
 
 
 

2 lines
25 KiB

  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2aa1d5a7"],{"01a8":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}},[e.isClient?r("div",{staticClass:"app-header-top",style:e.adjustPadding},[r("div",{staticClass:"top-left",class:{"hide-state":!0}},[r("div",{staticClass:"dot"}),r("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v("在线")])]),r("div",{staticClass:"top-center"}),r("div",{staticClass:"top-right"},[r("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[r("img",{staticClass:"min-icon",attrs:{src:"/static/img/窗口缩小.svg",alt:""}})]),r("div",{staticClass:"max"},[e.isMaxWindowNow?r("img",{staticClass:"to-max-icon",attrs:{src:"/static/img/缩放窗口.svg",alt:""},on:{click:function(t){return t.stopPropagation(),e.unmaxBrowserWindow(t)}}}):r("div",{staticClass:"unmax-icon",on:{click:function(t){return t.stopPropagation(),e.enlargeBrowserWindow(t)}}})]),r("div",{staticClass:"close",on:{click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[r("img",{staticClass:"close-icon",attrs:{src:"/static/img/窗口关闭.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?r("div",{staticClass:"app-header-top"}):e._e(),r("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[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-center"},[e._t("center",[e._v(e._s(e.title))])],2),r("div",{staticClass:"app-header-content-right"},[e._t("right"),e._e(),e.showUserCenter?r("user-center"):e._e()],2)])])},a=[],s=r("1392"),o=r("1d40"),i={components:{UserCenter:s["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:o["a"].isClient,isMaxWindowNow:!1}},computed:{adjustPadding:function(){return this.showUserCenter?{padding:"0 70px 0 45px"}:{padding:"0 64px 0 45px"}}},created:function(){this.isMaxWindowNow="true"===this.$cookie.get("isMaxWindowNow")&&Boolean(this.$cookie.get("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){o["a"].shrinkBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,this.$cookie.set("isMaxWindowNow",this.isMaxWindowNow),o["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,this.$cookie.set("isMaxWindowNow",this.isMaxWindowNow),o["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){o["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},c=i,l=(r("a88e"),r("2877")),u=Object(l["a"])(c,n,a,!1,null,"5a628f54",null);t["a"]=u.exports},"0b3a":function(e,t,r){},2909:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("6b75");function a(e){if(Array.isArray(e))return Object(n["a"])(e)}var s=r("db90"),o=r("06c5");function i(){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 c(e){return a(e)||Object(s["a"])(e)||Object(o["a"])(e)||i()}},7607:function(e,t,r){},9227:function(e,t,r){"use strict";var n=r("a085"),a=r.n(n);a.a},a085:function(e,t,r){},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:"projModule adjust-top-radius"},[e.isProjName?r("div",{staticClass:"projName_input"},[r("div",{staticClass:"newProj_header "},[r("div",{staticClass:"newProj_title"},[e._v(" 输入项目名称 ")]),r("div",{staticClass:"nextbtn",attrs:{type:"primary"},on:{click:function(t){return e.enterTemplateSelect()}}},[e._v("下一步")])]),r("div",{staticClass:"newProj_content"},[r("div",{staticClass:"upload_img"},[r("div",{staticClass:"upload_imgBox"},[r("img",{attrs:{src:e._f("resolveAvator")(e.coverSrc),alt:""}}),r("file-uploader",{staticClass:"listUpdateBtn editCoverBtn",attrs:{"on-success":e.coverUploadSuccess}},[r("span",[e._v("编辑")])]),r("span",{staticClass:"faceBtn",on:{click:e.setSystemCoverRandom}},[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:"点击输入"},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:"选择项目模板"}},[r("div",{staticClass:"slot_btn",attrs:{slot:"right"},on:{click:function(t){return e.enterTemplateImprove()}},slot:"right"},[e._v("选定模板")])]),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 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))])])})),0)],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 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=[],s=(r("4160"),r("159b"),r("96cf"),r("1da1")),o=r("5530"),i=r("2909"),c=r("b1f3"),l=r("f96e"),u=r("b0f9"),p=(r("93d6"),r("5ab9")),d=r("9e5b"),m=r("b775"),h={components:{AppHeader:l["a"],TopHeader:c["a"],FileUploader:d["a"]},props:{},data:function(){return{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:{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"],offset:100,duration:2500}):this.newProjData.projectData.projName.length>35?this.$notify({message:"项目名称不得超出35个字符。",type:"warning",offset:100,duration:2500}):(this.isProjName=!1,this.isTemSelect=!0,this.isTemImprove=!1,this.isTemNest=!1,this.getSelectTemplateData())}else this.$notify({message:"请输入项目名称。",type:["warning"],offset:100,duration:2500})},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;u["m"](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(i["a"])(n)})),t.checkNewProjData=Object(o["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,10===this.srcIndex?this.coverSrc="static/img/faceImg/face"+this.srcIndex+".png":this.coverSrc="static/img/faceImg/face0"+this.srcIndex+".png",this.newProjData.projectData.showImgUrl=this.coverSrc},coverUploadSuccess:function(e){var t=Object(p["c"])(e.ossUrl);this.coverSrc=t,this.newProjData.projectData.showImgUrl=t},getSelectTemplateData:function(){var e=this;return Object(s["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,u["n"]();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)})))()},getSelectTemplateList:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var n,a,s;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,u["o"](e);case 2:n=r.sent,a=n.Data,s=a.children||[],t.newProjData.listFolder=[],s.forEach((function(e){var r={folderID:"",projID:"",superID:"",levelID:"",firstFolderID:"",tempNodeID:e.id,folderName:e.topic,fileCount:0,childCount:0,modifyUserID:"",deleted:0,default:!0,listUser:[],manageUser:[]};t.newProjData.listFolder.push(r)}));case 7:case"end":return r.stop()}}),r)})))()},createProject:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var r,n,a;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,u["o"](e.selectTemplate.Id);case 13:n=t.sent,e.checkNewProjData.Node=n.Data,e.$fetchApi("project/createProject",e.checkNewProjData).then((function(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)}))):r.$notify.error({message:"项目创建失败, 请稍后重试。",offset:100,duration:5e3})})).catch((function(e){return console.log(e)})),a={API:"project/createProject",Action:"创建项目",CompanyName:sessionStorage.CompanyName,Subject:e.checkNewProjData.Proj.ProjName,Source:sessionStorage.client,ProjectName:e.checkNewProjData.Proj.ProjName},Object(m["b"])("operation/record",a);case 18:case"end":return t.stop()}}),t)})))()},loadTempNodeTree:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.templateId,t.next=3,u["o"](r);case 3:if(n=t.sent,e.listTempNodeTree=n.Data?[n.Data]:[],n.Data){t.next=7;break}return t.abrupt("return");case 7:e.nodeClick(n.Data);case 8:case"end":return t.stop()}}),t)})))()},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)}},mounted:function(){this.projDescEl&&this.projDescEl.addEventListener("scroll",this.watchProjDescScroll)},beforeDestroy:function(){this.projDescEl&&this.projDescEl.removeEventListener("scroll",this.watchProjDescScroll)}},f=h,w=(r("9227"),r("2877")),v=Object(w["a"])(f,n,a,!1,null,"2416cf1c",null);t["default"]=v.exports},a88e:function(e,t,r){"use strict";var n=r("0b3a"),a=r.n(n);a.a},b0f9:function(e,t,r){"use strict";r.d(t,"n",(function(){return s})),r.d(t,"s",(function(){return i})),r.d(t,"d",(function(){return l})),r.d(t,"m",(function(){return p})),r.d(t,"p",(function(){return m})),r.d(t,"f",(function(){return f})),r.d(t,"r",(function(){return v})),r.d(t,"l",(function(){return b})),r.d(t,"k",(function(){return k})),r.d(t,"b",(function(){return y})),r.d(t,"o",(function(){return P})),r.d(t,"j",(function(){return I})),r.d(t,"h",(function(){return x})),r.d(t,"i",(function(){return T})),r.d(t,"a",(function(){return O})),r.d(t,"g",(function(){return W})),r.d(t,"c",(function(){return E})),r.d(t,"e",(function(){return $})),r.d(t,"q",(function(){return F}));r("96cf");var n=r("1da1"),a=r("b775");function s(){return o.apply(this,arguments)}function o(){return o=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)}))),o.apply(this,arguments)}function i(e){return c.apply(this,arguments)}function c(){return c=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)}))),c.apply(this,arguments)}function l(e){return u.apply(this,arguments)}function u(){return u=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)}))),u.apply(this,arguments)}function p(e){return d.apply(this,arguments)}function d(){return d=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)}))),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/queryTemplateQuoteCountByTempId",{templateId:t});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function f(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/deleteTemplateByTemplateId",{id: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)}function v(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/updateTemplate",t);case 2:return r=e.sent,e.abrupt("return",Object(a["c"])(r));case 4:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}function b(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/queryNestTemplateByTemplateId",{id: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 k(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/queryNestTemplateByNodeId",{id: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 y(e){return D.apply(this,arguments)}function D(){return D=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)}))),D.apply(this,arguments)}function P(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/queryTemplateNodeByTemplateId",{templateId: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 I(e,t,r){return N.apply(this,arguments)}function N(){return N=Object(n["a"])(regeneratorRuntime.mark((function e(t,r,n){var s;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 s=e.sent,e.abrupt("return",Object(a["c"])(s));case 4:case"end":return e.stop()}}),e)}))),N.apply(this,arguments)}function x(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/fileExchange",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 T(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/queryAllTemplateNodeModelFile",{templateNodeId: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 O(e){return R.apply(this,arguments)}function R(){return R=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)}))),R.apply(this,arguments)}function W(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/deleteTemplateNodeModelFile",{id: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 E(e){return M.apply(this,arguments)}function M(){return M=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)}))),M.apply(this,arguments)}function $(e){return L.apply(this,arguments)}function L(){return L=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)}))),L.apply(this,arguments)}function F(e){return q.apply(this,arguments)}function q(){return q=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)}))),q.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=[],s=r("1392"),o={components:{UserCenter:s["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)}},i=o,c=(r("bc6b"),r("2877")),l=Object(c["a"])(i,n,a,!1,null,"6b8d985e",null);t["a"]=l.exports},bc6b:function(e,t,r){"use strict";var n=r("7607"),a=r.n(n);a.a},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)}},f96e:function(e,t,r){"use strict";var n=r("01a8");r.d(t,"a",(function(){return n["a"]}))}}]);
  2. //# sourceMappingURL=chunk-2aa1d5a7.cfe71091.js.map