1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a491714","chunk-0f492bc0","chunk-6ded594d","chunk-2d0efd0f"],{36982:function(t,e,o){"use strict";o("9db6")},"374b":function(t,e,o){"use strict";o("6710")},"374e":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("li",{staticClass:"todo",class:{completed:t.todo.done,editing:t.editing}},[o("div",{staticClass:"view"},[o("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:t.todo.done},on:{change:function(e){return t.toggleTodo(t.todo)}}}),o("label",{domProps:{textContent:t._s(t.todo.text)},on:{dblclick:function(e){t.editing=!0}}}),o("button",{staticClass:"destroy",on:{click:function(e){return t.deleteTodo(t.todo)}}})]),o("input",{directives:[{name:"show",rawName:"v-show",value:t.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:t.editing,expression:"editing"}],staticClass:"edit",domProps:{value:t.todo.text},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.doneEdit.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancelEdit.apply(null,arguments)}],blur:t.doneEdit}})])},i=[],r=(o("498a"),{name:"Todo",directives:{focus:function(t,e,o){var n=e.value,i=o.context;n&&i.$nextTick((function(){t.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(t){this.$emit("deleteTodo",t)},editTodo:function(t){var e=t.todo,o=t.value;this.$emit("editTodo",{todo:e,value:o})},toggleTodo:function(t){this.$emit("toggleTodo",t)},doneEdit:function(t){var e=t.target.value.trim(),o=this.todo;e?this.editing&&(this.editTodo({todo:o,value:e}),this.editing=!1):this.deleteTodo({todo:o})},cancelEdit:function(t){t.target.value=this.todo.text,this.editing=!1}}}),s=r,a=o("2877"),l=Object(a["a"])(s,n,i,!1,null,null,null);e["default"]=l.exports},"3eb4":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"todoapp"},[o("header",{staticClass:"header"},[o("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addTodo.apply(null,arguments)}}})]),o("section",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"main"},[o("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:t.allChecked},on:{change:function(e){return t.toggleAll({done:!t.allChecked})}}}),o("label",{attrs:{for:"toggle-all"}}),o("ul",{staticClass:"todo-list"},t._l(t.filteredTodos,(function(e,n){return o("todo",{key:n,attrs:{todo:e},on:{toggleTodo:t.toggleTodo,editTodo:t.editTodo,deleteTodo:t.deleteTodo}})})),1)]),o("footer",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"footer"},[o("span",{staticClass:"todo-count"},[o("strong",[t._v(t._s(t.remaining))]),t._v(" "+t._s(t._f("pluralize")(t.remaining,"item"))+" left ")]),o("ul",{staticClass:"filters"},t._l(t.filters,(function(e,n){return o("li",{key:n},[o("a",{class:{selected:t.visibility===n},on:{click:function(e){e.preventDefault(),t.visibility=n}}},[t._v(t._s(t._f("capitalize")(n)))])])})),0)])])},i=[],r=(o("4de4"),o("d3b7"),o("fb6a"),o("e9c4"),o("498a"),o("a434"),o("159b"),o("374e")),s="todos",a={all:function(t){return t},active:function(t){return t.filter((function(t){return!t.done}))},completed:function(t){return t.filter((function(t){return t.done}))}},l=[{text:"工作流功能绘制工具",done:!1},{text:"工作流流转方法",done:!1},{text:"自动化代码优化",done:!1}],c={components:{Todo:r["default"]},filters:{pluralize:function(t,e){return 1===t?e:e+"s"},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},data:function(){return{visibility:"all",filters:a,todos:l}},computed:{allChecked:function(){return this.todos.every((function(t){return t.done}))},filteredTodos:function(){return a[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(t){return!t.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(s,JSON.stringify(this.todos))},addTodo:function(t){var e=t.target.value;e.trim()&&(this.todos.push({text:e,done:!1}),this.setLocalStorage()),t.target.value=""},toggleTodo:function(t){t.done=!t.done,this.setLocalStorage()},deleteTodo:function(t){this.todos.splice(this.todos.indexOf(t),1),this.setLocalStorage()},editTodo:function(t){var e=t.todo,o=t.value;e.text=o,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(t){return!t.done})),this.setLocalStorage()},toggleAll:function(t){var e=this,o=t.done;this.todos.forEach((function(t){t.done=o,e.setLocalStorage()}))}}},d=c,u=(o("374b"),o("2877")),f=Object(u["a"])(d,n,i,!1,null,null,null);e["default"]=f.exports},"48f7":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"big"},[o("div",{staticClass:"shadow"},[o("el-row",{attrs:{gutter:20}},t._l(t.toolCards,(function(e,n){return o("el-col",{key:n,attrs:{span:4,xs:8},nativeOn:{click:function(o){return t.toTarget(e.name)}}},[o("el-card",{staticClass:"grid-content",attrs:{shadow:"hover"}},[o("i",{class:e.icon,style:{color:e.color}}),o("p",[t._v(t._s(e.label))])])],1)})),1)],1),o("div",{staticClass:"bottom"},[o("el-row",{attrs:{gutter:32}},[o("el-col",{attrs:{xs:24,sm:24,lg:12}},[o("div",{staticClass:"chart-player"},[o("musicPlayer")],1)]),o("el-col",{attrs:{xs:24,sm:24,lg:12}},[o("div",{staticClass:"chart-player"},[o("todo-list")],1)])],1)],1)])},i=[],r=o("5530"),s=o("9a5f"),a=o("3eb4"),l=o("5880"),c={name:"Dashboard",data:function(){return{toolCards:[{label:"用户管理",icon:"el-icon el-icon-monitor",name:"user",color:"#ff9c6e"},{label:"角色管理",icon:"el-icon el-icon-setting",name:"authority",color:"#69c0ff"},{label:"菜单管理",icon:"el-icon el-icon-menu",name:"menu",color:"#b37feb"},{label:"代码生成器",icon:"el-icon el-icon-cpu",name:"autoCode",color:"#ffd666"},{label:"表单生成器",icon:"el-icon el-icon-document-checked",name:"formCreate",color:"#ff85c0"},{label:"关于我们",icon:"el-icon el-icon-user",name:"about",color:"#5cdbd3"}]}},computed:Object(r["a"])({},Object(l["mapGetters"])("user",["userInfo"])),components:{musicPlayer:s["default"],TodoList:a["default"]},methods:{toTarget:function(t){this.$router.push({name:t})}}},d=c,u=(o("36982"),o("2877")),f=Object(u["a"])(d,n,i,!1,null,"4badbade",null);e["default"]=f.exports},"498a":function(t,e,o){"use strict";var n=o("23e7"),i=o("58a8").trim,r=o("c8d2");n({target:"String",proto:!0,forced:r("trim")},{trim:function(){return i(this)}})},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,o){var n=o("e330"),i=o("1d80"),r=o("577e"),s=o("5899"),a=n("".replace),l="["+s+"]",c=RegExp("^"+l+l+"*"),d=RegExp(l+l+"*$"),u=function(t){return function(e){var o=r(i(e));return 1&t&&(o=a(o,c,"")),2&t&&(o=a(o,d,"")),o}};t.exports={start:u(1),end:u(2),trim:u(3)}},6710:function(t,e,o){},"9a5f":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("div",{staticStyle:{width:"100%"}},[o("APlayer",{attrs:{audio:t.audio}})],1)])},i=[],r=o("cf0d"),s={name:"musicPlayer",components:{APlayer:r["APlayer"]},data:function(){return{audio:[{name:"东西(Cover:林俊呈)",artist:"纳豆",url:"http://music.163.com/song/media/outer/url?id=1321594530.mp3",cover:"https://p1.music.126.net/5zs7IvmLv7KahY3BFzUmrg==/109951163635241613.jpg?param=300y300",lrc:"https://cdn.moefe.org/music/lrc/thing.lrc"},{name:"响喜乱舞(Cover:MARiA)",artist:"泠鸢yousa",url:"http://music.163.com/song/media/outer/url?id=1318962459.mp3",cover:"https://p1.music.126.net/AUGVPQ_rVrngDH9ocQrn3Q==/109951163613037822.jpg?param=300y300",lrc:"https://cdn.moefe.org/music/lrc/kyoukiranbu.lrc"},{name:"啵唧",artist:"Hanser",url:"http://music.163.com/song/media/outer/url?id=1321424246.mp3",cover:"https://p1.music.126.net/K0-IPcIQ9QFvA0jXTBqoWQ==/109951163636756693.jpg?param=300y300",lrc:"https://cdn.moefe.org/music/lrc/kiss.lrc"}]}}},a=s,l=o("2877"),c=Object(l["a"])(a,n,i,!1,null,"4f9036e9",null);e["default"]=c.exports},"9db6":function(t,e,o){},a434:function(t,e,o){"use strict";var n=o("23e7"),i=o("da84"),r=o("23cb"),s=o("5926"),a=o("07fa"),l=o("7b0b"),c=o("65f0"),d=o("8418"),u=o("1dde"),f=u("splice"),m=i.TypeError,p=Math.max,h=Math.min,g=9007199254740991,v="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var o,n,i,u,f,b,y=l(this),k=a(y),x=r(t,k),C=arguments.length;if(0===C?o=n=0:1===C?(o=0,n=k-x):(o=C-2,n=h(p(s(e),0),k-x)),k+o-n>g)throw m(v);for(i=c(y,n),u=0;u<n;u++)f=x+u,f in y&&d(i,u,y[f]);if(i.length=n,o<n){for(u=x;u<k-n;u++)f=u+n,b=u+o,f in y?y[b]=y[f]:delete y[b];for(u=k;u>k-n+o;u--)delete y[u-1]}else if(o>n)for(u=k-n;u>x;u--)f=u+n-1,b=u+o-1,f in y?y[b]=y[f]:delete y[b];for(u=0;u<o;u++)y[u+x]=arguments[u+2];return y.length=k-n+o,i}})},c8d2:function(t,e,o){var n=o("5e77").PROPER,i=o("d039"),r=o("5899"),s="
";t.exports=function(t){return i((function(){return!!r[t]()||s[t]()!==s||n&&r[t].name!==t}))}}}]);
|