1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a787301","chunk-5148bdbf","chunk-2d210c28","chunk-2d210bbe"],{"24f9":function(t,a,e){"use strict";e("2a44")},"2a44":function(t,a,e){},"2f5e":function(t,a,e){"use strict";e.r(a);for(var n=function(){var t=this,a=t._self._c;return a("div",{staticClass:"app-list"},[a("a-list",{attrs:{grid:{gutter:24,lg:3,md:2,sm:1,xs:1},dataSource:t.dataSource},scopedSlots:t._u([{key:"renderItem",fn:function(e,n){return a("a-list-item",{},[a("a-card",{attrs:{hoverable:!0}},[a("a-card-meta",[a("div",{staticStyle:{"margin-bottom":"3px"},attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.title))]),a("a-avatar",{staticClass:"card-avatar",attrs:{slot:"avatar",src:e.avatar,size:"small"},slot:"avatar"}),a("div",{staticClass:"meta-cardInfo",attrs:{slot:"description"},slot:"description"},[a("div",[a("p",[t._v("活跃用户")]),a("p",[a("span",[t._v(t._s(e.activeUser)),a("span",[t._v("万")])])])]),a("div",[a("p",[t._v("新增用户")]),a("p",[t._v(t._s(t._f("NumberFormat")(e.newUser)))])])])],1),a("template",{staticClass:"ant-card-actions",slot:"actions"},[a("a",[a("a-icon",{attrs:{type:"download"}})],1),a("a",[a("a-icon",{attrs:{type:"edit"}})],1),a("a",[a("a-icon",{attrs:{type:"share-alt"}})],1),a("a",[a("a-dropdown",[a("a",{staticClass:"ant-dropdown-link",attrs:{href:"javascript:;"}},[a("a-icon",{attrs:{type:"ellipsis"}})],1),a("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[a("a-menu-item",[a("a",{attrs:{href:"javascript:;"}},[t._v("1st menu item")])]),a("a-menu-item",[a("a",{attrs:{href:"javascript:;"}},[t._v("2nd menu item")])]),a("a-menu-item",[a("a",{attrs:{href:"javascript:;"}},[t._v("3rd menu item")])])],1)],1)],1)])],2)],1)}}])})],1)},r=[],s=[],i=0;i<11;i++)s.push({title:"Alipay",avatar:"https://gw.alipayobjects.com/zos/rmsportal/WdGqmHpayyMjiEhcKoVE.png",activeUser:17,newUser:1700});var o={name:"Article",components:{},data:function(){return{dataSource:s}}},c=o,l=(e("24f9"),e("2877")),u=Object(l["a"])(c,n,r,!1,null,"446d8ef4",null);a["default"]=u.exports},"60fe":function(t,a,e){"use strict";e("6bf1")},"6bf1":function(t,a,e){},b8c5:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t._self._c;return a("a-list",[a("a-list-item")],1)},r=[],s={name:"Project"},i=s,o=e("2877"),c=Object(o["a"])(i,n,r,!1,null,"35407015",null);a["default"]=c.exports},b8ea:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t._self._c;return a("a-list",[a("a-list-item")],1)},r=[],s=e("fe2b"),i=e("a6b6"),o={name:"Article",components:{AList:s["b"],AListItem:i["a"]}},c=o,l=e("2877"),u=Object(l["a"])(c,n,r,!1,null,"226554db",null);a["default"]=u.exports},f2f0:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t._self._c;return a("div",{staticClass:"page-header-index-wide page-header-wrapper-grid-content-main"},[a("a-row",{attrs:{gutter:24}},[a("a-col",{attrs:{md:24,lg:7}},[a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"account-center-avatarHolder"},[a("div",{staticClass:"avatar"},[a("img",{attrs:{src:t.getAvatar()}})]),a("div",{staticClass:"username"},[t._v(t._s(t.nickname()))]),a("div",{staticClass:"bio"},[t._v("海纳百川,有容乃大")])]),a("div",{staticClass:"account-center-detail"},[a("p",[a("i",{staticClass:"title"}),t._v("交互专家\n ")]),a("p",[a("i",{staticClass:"group"}),t._v("蚂蚁金服-某某某事业群-某某平台部-某某技术部-UED\n ")]),a("p",[a("i",{staticClass:"address"}),a("span",[t._v("浙江省")]),a("span",[t._v("杭州市")])])]),a("a-divider"),a("div",{staticClass:"account-center-tags"},[a("div",{staticClass:"tagsTitle"},[t._v("标签")]),a("div",[t._l(t.tags,(function(e,n){return[e.length>20?a("a-tooltip",{key:e,attrs:{title:e}},[a("a-tag",{key:e,attrs:{closable:0!==n,afterClose:function(){return t.handleTagClose(e)}}},[t._v("\n "+t._s("".concat(e.slice(0,20),"..."))+"\n ")])],1):a("a-tag",{key:e,attrs:{closable:0!==n,afterClose:function(){return t.handleTagClose(e)}}},[t._v(t._s(e))])]})),t.tagInputVisible?a("a-input",{ref:"tagInput",style:{width:"78px"},attrs:{type:"text",size:"small",value:t.tagInputValue},on:{change:t.handleInputChange,blur:t.handleTagInputConfirm,keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.handleTagInputConfirm.apply(null,arguments)}}}):a("a-tag",{staticStyle:{background:"#fff",borderStyle:"dashed"},on:{click:t.showTagInput}},[a("a-icon",{attrs:{type:"plus"}}),t._v(" New Tag\n ")],1)],2)]),a("a-divider",{attrs:{dashed:!0}}),a("div",{staticClass:"account-center-team"},[a("div",{staticClass:"teamTitle"},[t._v("团队")]),a("a-spin",{attrs:{spinning:t.teamSpinning}},[a("div",{staticClass:"members"},[a("a-row",t._l(t.teams,(function(e,n){return a("a-col",{key:n,attrs:{span:12}},[a("a",[a("a-avatar",{attrs:{size:"small",src:e.avatar}}),a("span",{staticClass:"member"},[t._v(t._s(e.name))])],1)])})),1)],1)])],1)],1)],1),a("a-col",{attrs:{md:24,lg:17}},[a("a-card",{staticStyle:{width:"100%"},attrs:{bordered:!1,tabList:t.tabListNoTitle,activeTabKey:t.noTitleKey},on:{tabChange:function(a){return t.handleTabChange(a,"noTitleKey")}}},["article"===t.noTitleKey?a("article-page"):"app"===t.noTitleKey?a("app-page"):"project"===t.noTitleKey?a("project-page"):t._e()],1)],1)],1)],1)},r=[],s=e("b445"),i=e("501f"),o=e("2f5e"),c=e("b8ea"),l=e("b8c5"),u=e("2f62"),p=e("0fea");function d(t){return m(t)||g(t)||v(t)||f()}function f(){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 v(t,a){if(t){if("string"===typeof t)return b(t,a);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?b(t,a):void 0}}function g(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function m(t){if(Array.isArray(t))return b(t)}function b(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=new Array(a);e<a;e++)n[e]=t[e];return n}function h(t,a){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),e.push.apply(e,n)}return e}function y(t){for(var a=1;a<arguments.length;a++){var e=null!=arguments[a]?arguments[a]:{};a%2?h(Object(e),!0).forEach((function(a){_(t,a,e[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):h(Object(e)).forEach((function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(e,a))}))}return t}function _(t,a,e){return a in t?Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[a]=e,t}var C={components:{RouteView:i["default"],PageLayout:s["default"],AppPage:o["default"],ArticlePage:c["default"],ProjectPage:l["default"]},data:function(){return{tags:["很有想法的","专注设计","辣~","大长腿","川妹子","海纳百川"],tagInputVisible:!1,tagInputValue:"",teams:[],teamSpinning:!0,tabListNoTitle:[{key:"article",tab:"文章(8)"},{key:"app",tab:"应用(8)"},{key:"project",tab:"项目(8)"}],noTitleKey:"app"}},mounted:function(){this.getTeams()},methods:y(y({},Object(u["c"])(["nickname","avatar"])),{},{getAvatar:function(){return Object(p["e"])(this.avatar())},getTeams:function(){var t=this;this.$http.get("/api/workplace/teams").then((function(a){t.teams=a.result,t.teamSpinning=!1}))},handleTabChange:function(t,a){this[a]=t},handleTagClose:function(t){var a=this.tags.filter((function(a){return a!=t}));this.tags=a},showTagInput:function(){var t=this;this.tagInputVisible=!0,this.$nextTick((function(){t.$refs.tagInput.focus()}))},handleInputChange:function(t){this.tagInputValue=t.target.value},handleTagInputConfirm:function(){var t=this.tagInputValue,a=this.tags;t&&-1===a.indexOf(t)&&(a=[].concat(d(a),[t])),Object.assign(this,{tags:a,tagInputVisible:!1,tagInputValue:""})}})},j=C,w=(e("60fe"),e("2877")),O=Object(w["a"])(j,n,r,!1,null,"546e86b1",null);a["default"]=O.exports}}]);
|