|
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-115028d7"],{"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 c=r("db90"),o=r("06c5");function s(){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(c["a"])(e)||Object(o["a"])(e)||s()}},"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:"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=[],c=(r("4160"),r("fb6a"),r("159b"),r("96cf"),r("1da1")),o=r("5530"),s=r("2909"),i=r("b1f3"),u=r("f96e"),p=r("b0f9"),l=(r("93d6"),r("5ab9")),m=r("9e5b"),d=r("b775"),h=(r("3de1"),{components:{AppHeader:u["a"],TopHeader:i["a"],FileUploader:m["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(s["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,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(l["c"])(e.ossUrl);this.coverSrc=t,this.newProjData.projectData.showImgUrl=t},getSelectTemplateData:function(){var e=this;return Object(c["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)})))()},getSelectTemplateList:function(e){var t=this;return Object(c["a"])(regeneratorRuntime.mark((function r(){var n,a,c;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,a=n.Data,c=a.children||[],t.newProjData.listFolder=[],c.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(c["a"])(regeneratorRuntime.mark((function t(){var r,n,a,c;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(o["a"])({},e.checkNewProjData),e.parentFolderId&&(a.FolderId=e.parentFolderId),e.$fetchApi("project/createProject",a).then((function(t){Object(d["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)})),c={API:"project/createProject",Action:"创建项目",CompanyName:sessionStorage.CompanyName,Subject:e.checkNewProjData.Proj.ProjName,Source:sessionStorage.client,ProjectName:e.checkNewProjData.Proj.ProjName},Object(d["b"])("operation/record",c);case 20:case"end":return t.stop()}}),t)})))()},loadTempNodeTree:function(){var e=this;return Object(c["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,p["p"](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,j=(r("04c4"),r("2877")),b=Object(j["a"])(f,n,a,!1,null,null,null);t["default"]=b.exports},b0f9:function(e,t,r){"use strict";r.d(t,"o",(function(){return c})),r.d(t,"m",(function(){return s})),r.d(t,"t",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"n",(function(){return d})),r.d(t,"q",(function(){return f})),r.d(t,"f",(function(){return b})),r.d(t,"s",(function(){return v})),r.d(t,"l",(function(){return y})),r.d(t,"k",(function(){return k})),r.d(t,"b",(function(){return P})),r.d(t,"p",(function(){return C})),r.d(t,"j",(function(){return T})),r.d(t,"h",(function(){return x})),r.d(t,"i",(function(){return R})),r.d(t,"a",(function(){return U})),r.d(t,"g",(function(){return F})),r.d(t,"c",(function(){return $})),r.d(t,"e",(function(){return M})),r.d(t,"r",(function(){return H}));r("4de4"),r("96cf");var n=r("1da1"),a=r("b775");function c(){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 s(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 p.apply(this,arguments)}function p(){return p=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)}))),p.apply(this,arguments)}function l(e){return m.apply(this,arguments)}function m(){return m=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)}))),m.apply(this,arguments)}function d(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 b(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 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 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/queryNestTemplateByTemplateId",{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 k(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/queryNestTemplateIdByProjectId",{projectId: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 _.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 C(e){return N.apply(this,arguments)}function N(){return N=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)}))),N.apply(this,arguments)}function T(e,t,r){return O.apply(this,arguments)}function O(){return O=Object(n["a"])(regeneratorRuntime.mark((function e(t,r,n){var c;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 c=e.sent,e.abrupt("return",Object(a["c"])(c));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 U(e){return E.apply(this,arguments)}function E(){return E=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)}))),E.apply(this,arguments)}function F(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/deleteTemplateNodeModelFile",{id: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 $(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/createNestedRelevance",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)}function M(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 H(e){return V.apply(this,arguments)}function V(){return V=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)}))),V.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=[],c=r("1392"),o={components:{UserCenter:c["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)}},s=o,i=(r("6dcf"),r("2877")),u=Object(i["a"])(s,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)}},f96e:function(e,t,r){"use strict";var n=r("01a8");r.d(t,"a",(function(){return n["a"]}))}}]);
|