text: webpackJsonp([2,0],[function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(34),n=s(i),r=a(20),o=s(r),l=a(417),u=s(l);a(385);var c=a(542),d=s(c),f=a(155),h=s(f),p=a(382),_=s(p);a(384);var m=a(451),g=s(m),v=a(910),b=s(v),x=a(243),y=s(x);a(899),a(897),o.default.use(u.default),o.default.use(d.default),o.default.use(h.default);var k=new d.default({routes:y.default});k.beforeEach(function(t,e,a){window.scroll(0,0);var s=b.default.state.user.userinfo;if(s.token||"/login"===t.path)if(1===s.access_status){var i="object"===(0,n.default)(s.web_routers)?s.web_routers:{};i[t.path]?(_.default.start(),a()):u.default.MessageBox.alert("您没用权限访问此页面！","访问错误",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){s.default_web_routers?a(s.default_web_routers):(b.default.dispatch("remove_userinfo"),a("/login"))})}else s.token&&"/login"===t.path?a({path:"/demo/user/list"}):(_.default.start(),a());else b.default.dispatch("remove_userinfo"),a("/login")}),k.afterEach(function(t){_.default.done()});new o.default({el:"#app",data:function(){return{}},router:k,store:b.default,render:function(t){return t(g.default)}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,a){"use strict";var s={gbs:{host:"http://119.23.245.101:8080",db_prefix:"sls_admin_"},cbs:{statusError:function(t){var e=this;404!==t.status?this.$message({showClose:!0,message:"返回错误："+t.msg,type:"error"}):this.$store.dispatch("remove_userinfo").then(function(){e.$alert(t.status+","+t.msg+"！","登录错误",{confirmButtonText:"确定",callback:function(t){e.$router.push("/login")}})})},requestError:function(t){this.$message({showClose:!0,message:"请求错误："+(t.response?t.response.status:"")+","+(t.response?t.response.statusText:""),type:"error"})}}};t.exports=s},function(t,e,a){"use strict";t.exports={store:a(928),ajax:a(927)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,a){"use strict";t.exports={Default:a(845),Horizontal:a(847)}},function(t,e,a){"use strict";t.exports={Default:a(852)}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(862),n=s(i),r=a(473),o=s(r),l=a(472),u=s(l),c=a(474),d=s(c),f=a(886),h=s(f);t.exports={Login:n.default,Home:o.default,Content:u.default,NotFound:d.default,Modules:h.default}},function(t,e,a){"use strict";t.exports={routes:a(243),settings:a(72),request:a(242)}},function(t,e,a){"use strict";var s=[{module:"user",name:"用户管理",list:a(891)},{module:"article",name:"文章管理",list:a(887)},{module:"order",name:"订单管理",list:a(889)},{module:"system",name:"系统设置",list:a(890)},{module:"open",name:"第三方接入",list:a(888)}];t.exports=s},function(t,e,a){"use strict";var s=a(240);t.exports=[{path:"/",redirect:function(t){return"login"},hidden:!0},{path:"/login",component:s.Login,hidden:!0},{path:"/404",component:s.Home,hidden:!0,children:[{path:"",component:s.NotFound}]}].concat(a(892))},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.CREATE_DB="CREATE_DB",e.ADD_DB="ADD_DB",e.REDUCE_DB="REDUCE_DB",e.DELETE_DB="DELETE_DB",e.UPDATE_CUR_SHOP_STATUS="UPDATE_CUR_SHOP_STATUS",e.CHECK_DB="CHECK_DB",e.UPDATE_LOCAL="UPDATE_LOCAL",e.CLEAR_LOCAL="CLEAR_LOCAL"},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SHOW_LOADING="SHOW_LOADING",e.HIDE_LOADING="HIDE_LOADING"},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SET_MENU_OPEN="SET_MENU_OPEN",e.SET_MENU_CLOSE="SET_MENU_CLOSE"},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SET_CUR_ROUTE="SET_CUR_ROUTE"},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.UPDATE_USERINFO="UPDATE_USERINFO",e.REMOVE_USERINFO="REMOVE_USERINFO",e.UPDATE_REMUMBER="UPDATE_REMUMBER",e.REMOVE_REMUMBER="REMOVE_REMUMBER"},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,a){t.exports=a.p+"static/img/logo-sm.007f0c8.png"},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,a){a(395);var s=a(9)(a(818),a(484),"data-v-4b9c6b97",null);t.exports=s.exports},function(t,e,a){a(397);var s=a(9)(a(819),a(486),"data-v-52acf00c",null);t.exports=s.exports},function(t,e,a){a(396);var s=a(9)(a(820),a(485),"data-v-4f633c1a",null);t.exports=s.exports},function(t,e,a){a(387);var s=a(9)(a(821),a(476),"data-v-170b160d",null);t.exports=s.exports},function(t,e,a){a(390);var s=a(9)(a(822),a(479),"data-v-1aa09549",null);t.exports=s.exports},function(t,e,a){a(401);var s=a(9)(a(823),a(490),"data-v-63e9adb2",null);t.exports=s.exports},function(t,e,a){a(405);var s=a(9)(a(824),a(494),"data-v-93aa55f4",null);t.exports=s.exports},function(t,e,a){a(406);var s=a(9)(a(825),a(495),"data-v-b0c6624c",null);t.exports=s.exports},function(t,e,a){a(389);var s=a(9)(a(826),a(478),"data-v-1a7306a2",null);t.exports=s.exports},function(t,e,a){a(391);var s=a(9)(a(827),a(480),"data-v-1b4d944c",null);t.exports=s.exports},function(t,e,a){a(402);var s=a(9)(a(828),a(491),"data-v-6605441a",null);t.exports=s.exports},function(t,e,a){a(398);var s=a(9)(a(829),a(487),"data-v-547eb8e4",null);t.exports=s.exports},function(t,e,a){a(392);var s=a(9)(a(830),a(481),"data-v-2ce29fc1",null);t.exports=s.exports},function(t,e,a){a(408);var s=a(9)(a(831),a(497),"data-v-cad2477e",null);t.exports=s.exports},function(t,e,a){a(394);var s=a(9)(a(832),a(483),"data-v-48d44b1f",null);t.exports=s.exports},function(t,e,a){a(404);var s=a(9)(a(833),a(493),"data-v-79aec891",null);t.exports=s.exports},function(t,e,a){a(393);var s=a(9)(a(834),a(482),"data-v-36a308d9",null);t.exports=s.exports},function(t,e,a){a(407);var s=a(9)(a(835),a(496),"data-v-b751754e",null);t.exports=s.exports},function(t,e,a){a(399);var s=a(9)(a(836),a(488),"data-v-5ea0e590",null);t.exports=s.exports},function(t,e,a){a(388);var s=a(9)(a(837),a(477),"data-v-195b6ee0",null);t.exports=s.exports},function(t,e,a){a(400);var s=a(9)(a(838),a(489),"data-v-61068510",null);t.exports=s.exports},function(t,e,a){a(386);var s=a(9)(a(839),a(475),"data-v-0dd09e39",null);t.exports=s.exports},function(t,e,a){a(403);var s=a(9)(a(840),a(492),"data-v-7826654f",null);t.exports=s.exports},function(t,e,a){a(409);var s=a(9)(a(841),a(498),"data-v-dff6f642",null);t.exports=s.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("transition",{attrs:{name:"fade"}},[a("router-view")],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"chart"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:t.data.id}})])],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form"},[a("el-form",{ref:"user_data",staticStyle:{margin:"20px",width:"60%","min-width":"600px"},attrs:{"label-width":"100px",model:t.user_data,rules:t.user_rules}},[a("el-form-item",{staticClass:"edit-form",attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{disabled:!!t.user_data.id,placeholder:"常用邮箱"},model:{value:t.user_data.email,callback:function(e){t.user_data.email=e},expression:"user_data.email"}})],1),t._v(" "),a("el-form-item",{staticClass:"edit-form",attrs:{label:"用户名称",prop:"username"}},[a("el-input",{attrs:{disabled:!!t.user_data.id,placeholder:"用户名"},model:{value:t.user_data.username,callback:function(e){t.user_data.username=e},expression:"user_data.username"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"性别"}},[a("el-radio-group",{model:{value:t.user_data.sex,callback:function(e){t.user_data.sex=e},expression:"user_data.sex"}},[a("el-radio",{attrs:{label:"1"}},[t._v("男")]),t._v(" "),a("el-radio",{attrs:{label:"2"}},[t._v("女")]),t._v(" "),a("el-radio",{attrs:{label:"3"}},[t._v("保密")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"生日"}},[a("el-col",{attrs:{span:11}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期",format:"yyyy-MM-dd"},on:{change:t.onChangeDate},model:{value:t.user_data.birthday,callback:function(e){t.user_data.birthday=e},expression:"user_data.birthday"}})],1)],1),t._v(" "),a("el-form-item",{staticClass:"edit-form",attrs:{label:"地址",prop:"address"}},[a("el-input",{attrs:{type:"textarea",placeholder:"住址"},model:{value:t.user_data.address,callback:function(e){t.user_data.address=e},expression:"user_data.address"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"状态"}},[a("el-switch",{attrs:{"on-text":"启用","off-text":"禁用"},model:{value:t.user_data.status,callback:function(e){t.user_data.status=e},expression:"user_data.status"}})],1),t._v(" "),t.user_data.id?t._e():a("el-form-item",{attrs:{label:"密码"}},[t._v("\n            创建成功的初始密码为"),a("strong",[t._v("1234556")])]),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.save_user("user_data")}}},[t._v(t._s(t.user_data.id?"修改":"添加"))]),t._v(" "),t.user_data.id?t._e():a("el-button",{attrs:{type:"default"},on:{click:function(e){t.reset_user("user_data")}}},[t._v("重置")])],1)],1)],1)},staticRenderFns:[]}},function(t,e,a){t.exports={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("header",{staticClass:"head-nav"},[s("el-row",[s("el-col",{staticClass:"logo-container",attrs:{span:4}},[s("img",{staticClass:"logo",attrs:{src:a(383),alt:""}})]),t._v(" "),s("el-col",{staticClass:"userinfo",attrs:{span:20}},[s("span",{staticClass:"username"},[s("el-dropdown",{attrs:{trigger:"click"},on:{command:t.setDialogInfo}},[s("span",{staticClass:"el-dropdown-link"},[t._v("\n                            "+t._s(this.$store.state.user.userinfo.username)+"\n                            "),s("i",{staticClass:"el-icon-caret-bottom el-icon--right"})]),t._v(" "),s("el-dropdown-menu",{slot:"dropdown"},[s("el-dropdown-item",{attrs:{command:"info"}},[t._v("修改信息")]),t._v(" "),t.$store.state.user.userinfo.is_update_pass?s("el-dropdown-item",{attrs:{command:"pass"}},[t._v("修改密码")]):t._e(),t._v(" "),0==t.$store.state.user.userinfo.pid?s("el-dropdown-item",{attrs:{command:"set"}},[t._v("系统设置")]):t._e()],1)],1)],1),t._v(" "),s("i",{staticClass:"fa fa-sign-out logout",on:{click:t.logout}})])],1)],1),t._v(" "),s("el-dialog",{attrs:{size:"small",title:t.dialog.title},model:{value:t.dialog.show_pass,callback:function(e){t.dialog.show_pass=e},expression:"dialog.show_pass"}},[s("el-form",{ref:"user_info",staticStyle:{margin:"20px",width:"80%"},attrs:{"label-width":"100px",model:t.dialog.user_info,rules:t.dialog.user_info_rules}},[s("el-form-item",{staticClass:"edit-form",attrs:{label:"邮箱",prop:"email"}},[s("el-input",{attrs:{disabled:"",placeholder:"常用邮箱"},model:{value:t.dialog.user_info.email,callback:function(e){t.dialog.user_info.email=e},expression:"dialog.user_info.email"}})],1),t._v(" "),s("el-form-item",{staticClass:"edit-form",attrs:{label:"用户名称",prop:"username"}},[s("el-input",{attrs:{disabled:"",placeholder:"用户名"},model:{value:t.dialog.user_info.username,callback:function(e){t.dialog.user_info.username=e},expression:"dialog.user_info.username"}})],1),t._v(" "),s("el-form-item",{staticClass:"edit-form",attrs:{label:"当前密码",prop:"old_password"}},[s("el-input",{attrs:{type:"password",placeholder:"当前密码","auto-complete":"off"},model:{value:t.dialog.user_info.old_password,callback:function(e){t.dialog.user_info.old_password=e},expression:"dialog.user_info.old_password"}})],1),t._v(" "),s("el-form-item",{staticClass:"edit-form",attrs:{label:"新密码",prop:"password"}},[s("el-input",{attrs:{type:"password",placeholder:"新密码","auto-complete":"off"},model:{value:t.dialog.user_info.password,callback:function(e){t.dialog.user_info.password=e},expression:"dialog.user_info.password"}})],1),t._v(" "),s("el-form-item",{staticClass:"edit-form",attrs:{label:"确认密码",prop:"password_confirm"}},[s("el-input",{attrs:{type:"password",placeholder:"确认密码","auto-complete":"off"},model:{value:t.dialog.user_info.password_confirm,callback:function(e){t.dialog.user_info.password_confirm=e},expression:"dialog.user_info.password_confirm"}})],1)],1),t._v(" "),s("span",{staticClass:"dialog-footer",slot:"footer"},[s("el-button",{on:{click:function(e){t.dialog.show_pass=!1}}},[t._v("取 消")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(e){t.updUserPass("user_info")}}},[t._v("确 定")])],1)],1),t._v(" "),s("el-dialog",{attrs:{size:"small",title:t.dialog.title},model:{value:t.dialog.show_set,callback:function(e){t.dialog.show_set=e},expression:"dialog.show_set"}},[s("el-form",{ref:"set_info",staticStyle:{margin:"20px",width:"80%"},attrs:{"label-width":"100px"},model:{value:t.dialog.set_info,callback:function(e){t.dialog.set_info=e},expression:"dialog.set_info"}},[s("el-form-item",{attrs:{label:"登录方式"}},[s("el-select",{attrs:{placeholder:"请选择登录方式"},model:{value:t.dialog.set_info.login_style,callback:function(e){t.dialog.set_info.login_style=e},expression:"dialog.set_info.login_style"}},[s("el-option",{attrs:{label:"单一登录",value:"1"}}),t._v(" "),s("el-option",{attrs:{label:"多点登录",value:"2"}})],1)],1),t._v(" "),s("el-form-item",{attrs:{label:"禁止修改密码"}},[s("el-select",{attrs:{placeholder:"请选择用户",multiple:""},model:{value:t.dialog.set_info.disabled_update_pass,callback:function(e){t.dialog.set_info.disabled_update_pass=e},expression:"dialog.set_info.disabled_update_pass"}},t._l(t.dialog.set_info.select_users,function(t){return s("el-option",{attrs:{label:t.username,value:t.id+""}})}))],1)],1),t._v(" "),s("span",{staticClass:"dialog-footer",slot:"footer"},[s("el-button",{on:{click:function(e){t.dialog.show_set=!1}}},[t._v("取 消")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.onUpdateSetting}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"chart"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartDom"}})])],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"left",style:{height:t.win_size.height,width:t.$store.state.leftmenu.width},attrs:{id:"admin-left"}},[a("div",{attrs:{id:"left-menu"}},[t._l(t.$router.options.routes,function(e,s){return!e.hidden&&t.$route.matched.length&&t.$route.matched[0].path===e.path?a("el-row",{staticClass:"tac"},[a("el-col",{attrs:{span:24}},[a("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{theme:"dark","default-active":t.$route.path,"unique-opened":"",router:""}},[t._l(e.children,function(s,i){return!s.hidden&&(1===t.$store.state.user.userinfo.access_status&&t.$store.state.user.userinfo.web_routers[e.path+"/"+s.path]||1!==t.$store.state.user.userinfo.access_status)?[a("el-submenu",{attrs:{index:s.path}},[a("template",{slot:"title"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right",disabled:t.$store.state.leftmenu.menu_flag,content:s.name}},[a("i",{class:"fa fa-"+s.icon})]),t._v(" "),t.$store.state.leftmenu.menu_flag?a("span",{staticClass:"menu-name"},[t._v(t._s(s.name)+"\n                                    ")]):t._e()],1),t._v(" "),t._l(s.children,function(i,n){return!i.hidden&&(1===t.$store.state.user.userinfo.access_status&&t.$store.state.user.userinfo.web_routers[e.path+"/"+s.path+"/"+i.path]||1!==t.$store.state.user.userinfo.access_status)?a("el-menu-item",{style:{"padding-left":t.$store.state.leftmenu.menu_flag?"40px":"23px"},attrs:{index:t.$store.state.router.headerCurRouter+"/"+s.path+"/"+i.path}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right",disabled:t.$store.state.leftmenu.menu_flag,content:i.name}},[a("i",{class:"fa fa-"+i.icon})]),t._v(" "),t.$store.state.leftmenu.menu_flag?a("span",{staticClass:"menu-name"},[t._v(t._s(i.name)+"\n                                    ")]):t._e()],1):t._e()})],2)]:t._e()})],2)],1)],1):t._e()}),t._v(" "),a("div",{staticClass:"toggle-menu",style:{left:t.$store.state.leftmenu.width},on:{click:t.toggleMenu}},[a("i",{class:[{"el-icon-arrow-left":t.$store.state.leftmenu.menu_flag},{"el-icon-arrow-right":!t.$store.state.leftmenu.menu_flag}]})])],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form"},[a("el-form",{ref:"refArticle",staticStyle:{margin:"20px",width:"90%","min-width":"600px"},attrs:{"label-width":"100px",model:t.article_data,rules:t.rules}},[a("el-form-item",{staticStyle:{width:"600px"},attrs:{label:"文章标题",prop:"title"}},[a("el-input",{model:{value:t.article_data.title,callback:function(e){t.article_data.title=e},expression:"article_data.title"}})],1),t._v(" "),a("el-form-item",{staticStyle:{width:"986px"},attrs:{label:"文章内容",prop:"content"}},[a("div",{staticStyle:{height:"260px"},attrs:{id:"article"}})]),t._v(" "),a("el-form-item",{attrs:{label:"文章分类",prop:"cate"}},[a("el-select",{attrs:{placeholder:"请选择文章分类"},model:{value:t.article_data.cate,callback:function(e){t.article_data.cate=e},expression:"article_data.cate"}},[a("el-option",{attrs:{value:"技术"}}),t._v(" "),a("el-option",{attrs:{value:"散文"}}),t._v(" "),a("el-option",{attrs:{value:"其他"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"文章标签",prop:"tabs"}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择文章标签"},model:{value:t.article_data.tabs,callback:function(e){t.article_data.tabs=e},expression:"article_data.tabs"}},[a("el-option",{attrs:{value:"html"}}),t._v(" "),a("el-option",{attrs:{value:"css"}}),t._v(" "),a("el-option",{attrs:{value:"javascript"}}),t._v(" "),a("el-option",{attrs:{value:"jquery"}}),t._v(" "),a("el-option",{attrs:{value:"vue"}}),t._v(" "),a("el-option",{attrs:{value:"react"}}),t._v(" "),a("el-option",{attrs:{value:"angular"}}),t._v(" "),a("el-option",{attrs:{value:"php"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"状态"}},[a("el-switch",{staticStyle:{width:"100%"},attrs:{"on-text":"启用","off-text":"禁用"},model:{value:t.article_data.status,callback:function(e){t.article_data.status=e},expression:"article_data.status"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onSubmit("refArticle")}}},[t._v("立即"+t._s(t.article_data.id?"修改":"添加"))]),t._v(" "),a("el-button",{on:{click:function(e){t.reset_article("article_data")}}},[t._v("重置")])],1)],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form"},[a("el-form",{ref:"refForm",staticStyle:{margin:"20px",width:"90%","min-width":"600px"},attrs:{"label-width":"100px",model:t.form_data,rules:t.form_rules}},[a("el-form-item",{staticStyle:{width:"600px"},attrs:{label:"订单名称",prop:"name"}},[a("el-input",{model:{value:t.form_data.name,callback:function(e){t.form_data.name=e},expression:"form_data.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单状态",prop:"status"}},[a("el-select",{attrs:{placeholder:"请选择订单状态"},model:{value:t.form_data.status,callback:function(e){t.form_data.status=e},expression:"form_data.status"}},[a("el-option",{attrs:{value:"1",label:"待支付"}}),t._v(" "),a("el-option",{attrs:{value:"2",label:"待配送"}}),t._v(" "),a("el-option",{attrs:{value:"3",label:"待收货"}}),t._v(" "),a("el-option",{attrs:{value:"4",label:"已完成"}}),t._v(" "),a("el-option",{attrs:{value:"5",label:"已取消"}}),t._v(" "),a("el-option",{attrs:{value:"6",label:"退单"}})],1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onSubmit("refForm")}}},[t._v("立即"+t._s(t.form_data.id?"修改":"添加"))]),t._v(" "),a("el-button",{on:{click:function(e){t.reset_form("form_data")}}},[t._v("重置")])],1)],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"chart"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-button",{attrs:{type:"primary"},on:{click:t.onUpdateTitle}},[t._v("更新标题")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onUpdateSubtext}},[t._v("更新标题下面的描述")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onUpdateHoverTitle}},[t._v("更新鼠标放上去的标题")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onUpdateValueList}},[t._v("更新数据值")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onUpdateTextList}},[t._v("更新数据字段名")])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("statis",{attrs:{id:t.echarts_data.id,title:t.echarts_data.title,subtext:t.echarts_data.subtext,hoverTitle:t.echarts_data.hover_title,textList:t.echarts_data.text_list,valueList:t.echarts_data.value_list}})],1)],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app"}},[a("transition",{attrs:{name:"bounce"}},[a("router-view")],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("el-dialog",{attrs:{size:"tiny",title:t.dialog.title},on:{close:t.onClose},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[a("el-form",{staticStyle:{margin:"20px",width:"60%","min-width":"100%"},attrs:{"label-width":"100px"}},t._l(t.dialog.fields,function(e){return a("el-form-item",{staticClass:"edit-form",attrs:{label:e.label}},[t._v("\n                "+t._s(t.dialog.data[e.key])+"\n            ")])})),t._v(" "),a("span",{staticClass:"dialog-footer",slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.onClose}},[t._v("关 闭")])],1)],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bread"},[a("strong",[t._v("\n        "+t._s(t.strong)+"\n    ")]),t._v(" "),a("el-breadcrumb",{staticClass:"el-bread",attrs:{separator:"/"}},[a("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[t._v("首页")]),t._v(" "),t._l(t.$route.matched,function(e,s){return s>0?a("el-breadcrumb-item",[t._v("\n            "+t._s(e.name)+"\n        ")]):t._e()})],2)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login",style:t.winSize},[a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"content"},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.login_actions.disabled,expression:"login_actions.disabled"}],ref:"data",staticClass:"demo-ruleForm card-box loginform",style:t.formOffset,attrs:{"label-position":"left","label-width":"0px","element-loading-text":"正在"+(t.register===!0?"注册":"登录")+"...",model:t.data,rules:t.rule_data}},[a("h3",{staticClass:"title"},[a("span",{class:[{active:t.register===!1}],on:{click:function(e){t.toggleStatus(!1)}}},[t._v("系统登录")])]),t._v(" "),a("el-form-item",{attrs:{prop:"username"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"账号"},model:{value:t.data.username,callback:function(e){t.data.username=e},expression:"data.username"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"password"}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码"},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13)?void t.onLogin("data",!0):null}},model:{value:t.data.password,callback:function(e){t.data.password=e},expression:"data.password"}})],1),t._v(" "),t.register===!0?a("el-form-item",{attrs:{prop:"repassword"}},[a("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"确认密码"},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13)?void t.onRegister("data"):null}},model:{value:t.data.repassword,callback:function(e){t.data.repassword=e},expression:"data.repassword"}})],1):t._e(),t._v(" "),t.register===!1?a("el-checkbox",{staticStyle:{margin:"0px 0px 35px 0px"},attrs:{checked:t.remumber.remumber_flag},model:{value:t.remumber.remumber_flag,callback:function(e){t.remumber.remumber_flag=e},expression:"remumber.remumber_flag"}},[t._v("记住密码\n                    ")]):t._e(),t._v(" "),a("el-form-item",{staticStyle:{width:"100%"}},[t.register===!1?a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onLogin("data")}}},[t._v("登录\n                        ")]):t._e(),t._v(" "),t.register===!0?a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onRegister("data")}}},[t._v("注册\n                        ")]):t._e(),t._v(" "),a("el-button",{on:{click:function(e){t.resetForm("data")}}},[t._v("重置")])],1)],1)],1)])],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form"},[a("el-form",{ref:"user_data",staticStyle:{margin:"20px",width:"60%","min-width":"600px"},attrs:{"label-width":"100px",model:t.data}},[a("el-form-item",{staticClass:"edit-form",attrs:{label:"用户名称"}},[a("el-input",{attrs:{disabled:!0,placeholder:"用户名"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),t._v(" "),a("el-form-item",{staticClass:"edit-form",attrs:{label:"权限状态"}},[a("el-switch",{attrs:{"on-text":"开启","off-text":"关闭"},model:{value:t.data.access_status,callback:function(e){t.data.access_status=e},expression:"data.access_status"}})],1),t._v(" "),a("el-form-item",{staticClass:"edit-form",attrs:{label:"API路由"}},[a("el-tree",{ref:"apiRouters",staticClass:"filter-tree",attrs:{"show-checkbox":"","node-key":"path",data:t.datas.api_routers,props:t.props.api_routers},on:{"check-change":t.checkChangeApiRouters}})],1),t._v(" "),a("el-form-item",{staticClass:"edit-form",attrs:{label:"web页面"}},[a("el-tree",{ref:"webRouters",staticClass:"filter-tree",attrs:{"show-checkbox":"","node-key":"access",data:t.datas.web_routers,props:t.props.web_routers},on:{"check-change":t.checkChangeWebRouters}})],1),t._v(" "),a("el-form-item",{staticClass:"edit-form",attrs:{label:"默认页面"}},[a("el-select",{staticStyle:{width:"400px"},attrs:{placeholder:"此页面必须包含在选择的web页面中"},model:{value:t.data.default_web_routers,callback:function(e){t.data.default_web_routers=e},expression:"data.default_web_routers"}},t._l(t.checkeds.web_routers,function(e,s){return 4===s.split("/").length?a("el-option",{attrs:{value:s,label:e}}):t._e()}))],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.setUserAccess}},[t._v("设置权限")])],1)],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"list"},[a("el-col",{staticClass:"actions-top",attrs:{span:24}},[a("el-button",{attrs:{type:"danger",icon:"delete",disabled:t.batch_flag},on:{click:function(e){t.onDeleteUser(!0)}}},[t._v("删除选中\n        ")]),t._v(" "),a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.search_data}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"姓名",clear:""},model:{value:t.search_data.username,callback:function(e){t.search_data.username=e},expression:"search_data.username"}})],1),t._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"邮箱"},model:{value:t.search_data.email,callback:function(e){t.search_data.email=e},expression:"search_data.email"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"default"},on:{click:t.onSearch}},[t._v("查询")])],1)],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{border:"",align:"center",data:t.user_list},on:{"selection-change":t.onSelectionChange}},[a("el-table-column",{attrs:{label:"住址",type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",[t._v("住址: "+t._s(e.row.address))])]}}])}),t._v(" "),a("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),a("el-table-column",{attrs:{prop:"username",label:"姓名",align:"center",width:"150",sortable:!0}}),t._v(" "),a("el-table-column",{attrs:{prop:"email",label:"邮箱",align:"center",sortable:!0}}),t._v(" "),a("el-table-column",{attrs:{prop:"sex",label:"性别",align:"center",width:"130",sortable:"true",formatter:t.formatterSex,filters:t.sex_filters.list,"filter-method":t.filterSex,"filter-multiple":t.sex_filters.multiple}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间",align:"center",width:"180",formatter:t.formatterDate,sortable:!0}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"状态",align:"center",width:"130",sortable:!0,formatter:t.formatterStatus,filters:t.status_filters.list,"filter-method":t.filterStatus,"filter-multiple":t.status_filters.multiple}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:0==t.$store.state.user.userinfo.pid?280:260,context:t._self},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"info",icon:"view",size:"mini"},on:{click:function(a){t.onSelectUser(e.row)}}}),t._v(" "),a("el-button",{attrs:{type:"info",icon:"edit",size:"mini"},on:{click:function(a){t.onEditUser(e.row)}}}),t._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){t.onSetAccess(e.row,e.$index,t.user_list)}}},[t._v("设置权限\n                ")]),t._v(" "),a("el-button",{attrs:{type:"danger",icon:"delete",size:"mini"},on:{click:function(a){t.onDeleteUser(e.row,e.$index,t.user_list)}}}),t._v(" "),a("el-button",{attrs:{size:"mini",type:1==e.row.status?"danger":"info"},on:{click:function(a){t.onSetStatusUser(e.row,e.$index,t.user_list)}}},[t._v(t._s(1==e.row.status?"禁用":"启用")+"\n                ")])]}}])})],1),t._v(" "),a("el-dialog",{attrs:{title:"用户信息",size:"tiny"},model:{value:t.dialog.show,callback:function(e){t.dialog.show=e},expression:"dialog.show"}},[a("el-form",{staticStyle:{margin:"20px",width:"60%","min-width":"100%"},attrs:{"label-width":"100px",model:t.dialog.user_info}},[a("el-form-item",{staticClass:"edit-form",attrs:{label:"邮箱",prop:"email"}},[t._v("\n                "+t._s(t.dialog.user_info.email)+"\n            ")]),t._v(" "),a("el-form-item",{staticClass:"edit-form",attrs:{label:"用户名称",prop:"username"}},[t._v("\n                "+t._s(t.dialog.user_info.username)+"\n            ")]),t._v(" "),a("el-form-item",{attrs:{label:"性别"}},[t._v("\n                "+t._s(1==t.dialog.user_info.sex?"男":2==t.dialog.user_info.sex?"女":"未知")+"\n            ")]),t._v(" "),a("el-form-item",{attrs:{label:"生日"}},[t._v("\n                "+t._s(t.formatterYear(t.dialog.user_info.birthday))+"\n            ")]),t._v(" "),a("el-form-item",{staticClass:"edit-form",attrs:{label:"地址"}},[t._v("\n                "+t._s(t.dialog.user_info.address)+"\n            ")]),t._v(" "),a("el-form-item",{attrs:{label:"状态"}},[t._v("\n                "+t._s(1==t.dialog.user_info.status?"启用":"禁用")+"\n            ")]),t._v(" "),a("el-form-item",{attrs:{label:"创建时间"}},[t._v("\n                "+t._s(t.formatterDate(t.dialog.user_info.create_time))+"\n            ")]),t._v(" "),a("el-form-item",{attrs:{label:"最后更新时间"}},[t._v("\n                "+t._s(t.formatterDate(t.dialog.user_info.update_time))+"\n            ")])],1),t._v(" "),a("span",{staticClass:"dialog-footer",slot:"footer"},[a("el-button",{on:{click:function(e){t.dialog.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialog.show=!1}}},[t._v("确 定")])],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"设置权限",size:"small"},model:{value:t.dialog_access.show,callback:function(e){t.dialog_access.show=e},expression:"dialog_access.show"}},[a("el-form",{staticStyle:{margin:"20px",width:"60%","min-width":"100%"},attrs:{"label-width":"100px",model:t.dialog_access.userinfo}},[a("el-form-item",{staticClass:"edit-form",
  attrs:{label:"邮箱",prop:"email"}},[t._v("\n                "+t._s(t.dialog_access.userinfo.email)+"\n            ")]),t._v(" "),a("el-form-item",{staticClass:"edit-form",attrs:{label:"用户名称",prop:"username"}},[t._v("\n                "+t._s(t.dialog_access.userinfo.username)+"\n            ")]),t._v(" "),a("el-form-item",{staticClass:"edit-form",attrs:{label:"前端页面"}},[a("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选\n                ")]),t._v(" "),a("div",{staticStyle:{margin:"15px 0"}}),t._v(" "),a("el-checkbox-group",{on:{change:t.handleCheckedCitiesChange},model:{value:t.checkedCities,callback:function(e){t.checkedCities=e},expression:"checkedCities"}},t._l(t.cities,function(e){return a("el-checkbox",{key:e,attrs:{label:e}},[t._v(t._s(e))])}))],1),t._v(" "),a("el-form-item",{staticClass:"edit-form"},[a("el-tree",{ref:"accesss",staticClass:"filter-tree",attrs:{"show-checkbox":"","default-expand-all":"","node-key":"path",data:t.accesss,props:t.defaultProps,"filter-node-method":t.filterNode},on:{"check-change":t.checkChange,"current-change":t.currentChange,"node-click":t.nodeClick}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",slot:"footer"},[a("el-button",{on:{click:function(e){t.dialog_access.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialog_access.show=!1}}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"chart"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"chartDom"}})])],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"list"},[a("el-col",{staticClass:"actions-top",attrs:{span:24}},[t.selection?a("el-button",{attrs:{type:"danger",icon:"delete",disabled:t.batch_flag},on:{click:function(e){t.onBtnEvent("BatchDelete")}}},[t._v("删除选中\n        ")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"primary",icon:"add"},on:{click:function(e){t.onBtnEvent("Add")}}},[t._v("添加\n        ")]),t._v(" "),a("div",{staticClass:"list-header"},[t._t("list-header")],2)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{border:"",align:"center",data:t.list},on:{"selection-change":t.onSelectionChange}},[!t.expand||!t.expand.show||t.expand.show!==!0||t.expand.position&&"left"!==t.expand.position?t._e():a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(t){}}])}),t._v(" "),t.selection?a("el-table-column",{attrs:{type:"selection",width:"55"}}):t._e(),t._v(" "),t._l(t.fields,function(e){return[e.type&&"image"===e.type?t._e():a("el-table-column",{style:e.style,attrs:{prop:e.key,label:e.label,align:e.align||"center",sortable:e.sort||!1,formatter:e.formatter,filters:e.filter_list,"filter-method":e.filter_method,"filter-multiple":e.filter_multiple,width:e.width}}),t._v(" "),e.type&&"image"===e.type?a("el-table-column",{attrs:{prop:e.key,label:e.label,align:e.align||"center",width:e.width},scopedSlots:t._u([{key:"default",fn:function(s){return[a("img",{attrs:{src:(t.image_host||"")+s.row[e.key],alt:""}})]}}])}):t._e()]}),t._v(" "),t.btn_info.show!==!1?a("el-table-column",{attrs:{label:t.btn_info.label||"操作",width:t.btn_info.width||160,context:t._self},scopedSlots:t._u([{key:"default",fn:function(e){return[t.btn_info.select!==!1?a("el-button",{attrs:{type:"info",icon:"view",size:"mini"},on:{click:function(a){t.onBtnEvent("Select",e.row,e.$index,t.list)}}}):t._e(),t._v(" "),t.btn_info.update!==!1?a("el-button",{attrs:{type:"info",icon:"edit",size:"mini"},on:{click:function(a){t.onBtnEvent("Update",e.row,e.$index,t.list)}}}):t._e(),t._v(" "),t.btn_info.delete!==!1?a("el-button",{attrs:{type:"danger",icon:"delete",size:"mini"},on:{click:function(a){t.onBtnEvent("Delete",e.row,e.$index,t.list)}}}):t._e(),t._v(" "),t._l(t.btn_info.list,function(s){return t.btn_info.list?a("el-button",{attrs:{type:s.type||"info",size:"mini"},on:{click:function(a){t.onGetInfo(e.row,e.$index,t.list,s.fn_type||s.text)}}},[t._v(t._s(s.text)+"\n                ")]):t._e()})]}}])}):t._e(),t._v(" "),t.expand&&t.expand.show&&t.expand.show===!0&&t.expand.position&&"right"===t.expand.position?a("el-table-column",{attrs:{type:"expand",context:t._self},scopedSlots:t._u([{key:"default",fn:function(e){return[t._t("list-expand",null,{data:e.row,index:e.$index})]}}])}):t._e()],2),t._v(" "),a("el-col",{staticClass:"btm-action",attrs:{span:24}},[t.pagination&&t.pagination.total&&t.pagination.total>0?a("el-pagination",{staticClass:"pagination",attrs:{"page-sizes":t.pagination.page_sizes,"page-size":t.pagination.page_size,layout:t.pagination.layout,total:t.pagination.total,"current-page":t.pagination.current_page},on:{"current-change":t.onChangeCurrentPage,"size-change":t.onChangePageSize}}):t._e()],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"home"},[a("head-nav"),t._v(" "),a("div",{staticClass:"left-fixed-right-auto"},[a("left-menu"),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"content",style:{marginLeft:t.$store.state.leftmenu.width}},[a("bread"),t._v(" "),a("router-view")],1)])],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"chart"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-button",{attrs:{type:"primary"},on:{click:t.onUpdateTitle}},[t._v("更新标题")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onUpdateSubtext}},[t._v("更新标题下面的描述")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onUpdateHoverTitle}},[t._v("更新鼠标放上去的标题")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onUpdateValueList}},[t._v("更新数据值")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onUpdateTextList}},[t._v("更新数据字段名")])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("statis",{attrs:{id:t.echarts_data.id,title:t.echarts_data.title,subtext:t.echarts_data.subtext,hoverTitle:t.echarts_data.hover_title,dataList:t.echarts_data.data_list}})],1)],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"chart"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:t.data.id}})])],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form"},[a("el-form",{ref:"form-data",attrs:{"label-width":"100px",rules:t.rules,model:t.submit_data}},[t._l(t.fields,function(e,s){return a("el-form-item",{staticClass:"edit-form",style:e.item_style,attrs:{label:e.label,prop:e.key}},["checkbox"===e.type&&e.multiple!==!0?a("el-checkbox",{model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}},[t._v(t._s(e.label)+"\n            ")]):t._e(),t._v(" "),"cascader"===e.type?a("el-cascader",{attrs:{options:e.value.list,props:e.props||{}},on:{"active-item-change":t.onCascaderItemChange}}):t._e(),t._v(" "),e.checkall&&"object"==typeof e.checkall&&t.submit_data[e.key+t.checkall_temp]?a("el-checkbox",{attrs:{indeterminate:t.submit_data[e.key+t.checkall_temp].indeterminate},on:{change:function(a){t.onCheckallChange(e.key)}},model:{value:t.submit_data[e.key+t.checkall_temp].value,callback:function(a){t.submit_data[e.key+t.checkall_temp].value=a},expression:"submit_data[field.key+checkall_temp].value"}},[t._v(t._s(t.submit_data[e.key+t.checkall_temp].text)+"\n            ")]):t._e(),t._v(" "),"checkbox"===e.type&&e.multiple===!0&&!e.checkall||"checkbox"===e.type&&e.multiple===!0&&e.checkall&&t.submit_data[e.key+t.checkall_temp]?a("el-checkbox-group",{on:{change:function(a){t.onCheckboxChange(e.key)}},model:{value:t.submit_data[e.key+t.checkall_temp].checkbox_value,callback:function(a){t.submit_data[e.key+t.checkall_temp].checkbox_value=a},expression:"submit_data[field.key+checkall_temp].checkbox_value"}},t._l(t.submit_data[e.key+t.checkall_temp].checkbox_list,function(e){return a("el-checkbox",{attrs:{label:e.value}},[t._v(t._s(e.text)+"\n                ")])})):t._e(),t._v(" "),"editor"===e.type?a("div",{style:e.style,attrs:{id:e.id},domProps:{innerHTML:t._s(t.submit_data[e.key])}}):t._e(),t._v(" "),e.type&&"input"!==e.type&&"textarea"!==e.type?t._e():a("el-input",{attrs:{type:e.type?e.type:"input",placeholder:e.desc},model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}}),t._v(" "),"radio"===e.type?a("el-radio-group",{model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}},t._l(e.value.list,function(e){return a("el-radio",{attrs:{label:e.value}},[t._v(t._s(e.text||e.value)+"\n                ")])})):t._e(),t._v(" "),"select"===e.type?a("el-select",{attrs:{multiple:!!e.multiple,placeholder:e.desc},model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}},t._l(e.value.list,function(t){return a("el-option",{attrs:{value:t.value,label:t.text}})})):t._e(),t._v(" "),"switch"===e.type?a("el-switch",{attrs:{"on-text":e.value.on,"off-text":e.value.off,disabled:e.disabled},model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}}):t._e(),t._v(" "),"date"===e.type?a("el-date-picker",{attrs:{type:e.type,placeholder:e.placeholder,"picker-options":e.options},on:{change:e.change},model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}}):t._e(),t._v(" "),"daterange"===e.type?a("el-date-picker",{attrs:{type:e.type,placeholder:e.placeholder},on:{change:e.change},model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}}):t._e(),t._v(" "),"year"===e.type?a("el-date-picker",{attrs:{type:e.type,placeholder:e.placeholder},on:{change:e.change},model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}}):t._e(),t._v(" "),"month"===e.type?a("el-date-picker",{attrs:{type:e.type,placeholder:e.placeholder},on:{change:e.change},model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}}):t._e(),t._v(" "),"week"===e.type?a("el-date-picker",{attrs:{type:e.type,format:e.format,placeholder:e.placeholder},on:{change:e.change},model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}}):t._e(),t._v(" "),"time"===e.type?a("el-time-select",{attrs:{type:e.type,placeholder:e.placeholder,"picker-options":e.options},on:{change:e.change},model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}}):t._e(),t._v(" "),"datetime"===e.type?a("el-date-picker",{attrs:{type:e.type,placeholder:e.placeholder,"picker-options":e.options},on:{change:e.change},model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}}):t._e(),t._v(" "),"datetimerange"===e.type?a("el-date-picker",{attrs:{type:e.type,placeholder:e.placeholder},on:{change:e.change},model:{value:t.submit_data[e.key],callback:function(a){var s=t.submit_data,i=e.key;Array.isArray(s)?s.splice(i,1,a):t.submit_data[e.key]=a},expression:"submit_data[field.key]"}}):t._e()],1)}),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onSubmit("form-data")}}},[t._v("提交")])],1)],2)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"list"},[a("el-table",{staticStyle:{width:"100%"},attrs:{border:"",align:"center",data:t.article_list}},[a("el-table-column",{attrs:{prop:t.fields.create_time.info.prop,label:t.fields.create_time.info.label,align:t.fields.create_time.style.align,width:t.fields.create_time.style.width,sortable:t.fields.create_time.info.sortable}}),t._v(" "),a("el-table-column",{attrs:{prop:t.fields.name.info.prop,label:t.fields.name.info.label,align:t.fields.name.style.align,sortable:t.fields.name.info.sortable}}),t._v(" "),a("el-table-column",{attrs:{prop:t.fields.status.info.prop,label:t.fields.status.info.label,align:t.fields.status.style.align,width:t.fields.status.style.width,sortable:t.fields.status.info.sortable,formatter:t.formatterStatus,filters:t.fields.status.filter.list,"filter-method":t.filterStatus,"filter-multiple":t.fields.status.filter.multiple}})],1),t._v(" "),a("el-col",{staticClass:"btm-action",attrs:{span:24}},[t.paginations.total>0?a("el-pagination",{staticClass:"pagination",attrs:{"page-sizes":t.paginations.page_sizes,"page-size":t.paginations.page_size,layout:t.paginations.layout,total:t.paginations.total,"current-page":t.paginations.current_page},on:{"current-change":t.onChangeCurrentPage,"size-change":t.onChangePageSize}}):t._e()],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"list"},[a("el-col",{staticClass:"actions-top",attrs:{span:24}},[a("el-button",{attrs:{type:"danger",icon:"delete",disabled:t.batch_flag},on:{click:function(e){t.onDeleteArticle(!0)}}},[t._v("删除选中")]),t._v(" "),a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.search_data}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"标题"},model:{value:t.search_data.title,callback:function(e){t.search_data.title=e},expression:"search_data.title"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")])],1)],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{border:"",align:"center",data:t.article_list},on:{"selection-change":t.onSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),a("el-table-column",{attrs:{prop:t.fields.create_time.info.prop,label:t.fields.create_time.info.label,formatter:t.formatterDate,align:t.fields.create_time.style.align,width:t.fields.create_time.style.width,sortable:t.fields.create_time.info.sortable}}),t._v(" "),a("el-table-column",{attrs:{prop:t.fields.title.info.prop,label:t.fields.title.info.label,align:t.fields.title.style.align,sortable:t.fields.title.info.sortable}}),t._v(" "),a("el-table-column",{attrs:{prop:t.fields.status.info.prop,label:t.fields.status.info.label,align:t.fields.status.style.align,width:t.fields.status.style.width,sortable:t.fields.status.info.sortable,formatter:t.formatterStatus,filters:t.fields.status.filter.list,"filter-method":t.filterStatus,"filter-multiple":t.fields.status.filter.multiple}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"160",context:t._self},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"info",icon:"view",size:"mini"},on:{click:function(a){t.onSelectArticle(e.row)}}}),t._v(" "),a("el-button",{attrs:{type:"info",icon:"edit",size:"mini"},on:{click:function(a){t.onEditArticle(e.row)}}}),t._v(" "),a("el-button",{attrs:{type:"danger",icon:"delete",size:"mini"},on:{click:function(a){t.onDeleteArticle(e.row,e.$index,t.article_list)}}})]}}])})],1),t._v(" "),a("el-col",{staticClass:"btm-action",attrs:{span:24}},[t.paginations.total>0?a("el-pagination",{staticClass:"pagination",attrs:{"page-sizes":t.paginations.page_sizes,"page-size":t.paginations.page_size,layout:t.paginations.layout,total:t.paginations.total,"current-page":t.paginations.current_page},on:{"current-change":t.onChangeCurrentPage,"size-change":t.onChangePageSize}}):t._e()],1),t._v(" "),a("el-dialog",{attrs:{size:"small",title:t.dialog.article_info.title},on:{close:t.onCloseView},model:{value:t.dialog.show,callback:function(e){t.dialog.show=e},expression:"dialog.show"}},[a("div",{domProps:{innerHTML:t._s(t.dialog.article_info.content)}}),t._v(" "),a("span",{staticClass:"dialog-footer",slot:"footer"},[a("el-button",{on:{click:function(e){t.dialog.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialog.show=!1}}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;t._self._c||e;return t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"not-found"},[t._v("\n    没有找到页面\n    "),a("a",{attrs:{href:"#/function/open/test404"}},[t._v("回测试404页面")])])}]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"app",components:{},methods:{},mounted:function(){console.log(this.$$ajax)},watch:{$route:function(t,e){console.log(t),t.matched.length||this.$router.push("/404")}}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"bread",data:function(){return{strong:""}},methods:{getPageText:function(t){return t=t.replace("编辑",this.$route.query.id?"修改":"添加")}},mounted:function(){},created:function(){if(this.$route.matched.length){var t=this.$route.matched[this.$route.matched.length-1].name;this.strong=this.getPageText(t)}},watch:{$route:function(t,e){this.strong=this.getPageText(t.name)}}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(842),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(844),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(846),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(848),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(851),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(854),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=a(856),n=s(i);e.default=n.default},function(t,e,a){"use strict";t.exports=a(857)},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(858),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(861),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(863),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(865),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(868),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(870),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(873),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(875),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(878),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(880),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(882),n=s(i);t.exports=n.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"content",data:function(){return{}},methods:{},created:function(){},mounted:function(){}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=a(860),n=s(i);e.default={name:"home",components:n.default}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"not-found",data:function(){return{}},methods:{},created:function(){},mounted:function(){}}},function(t,e){"use strict";t.exports={name:"dialog-info",data:function(){return{dialog:this.Dialog||{}}},methods:{onClose:function(){this.dialog.show=!1}},computed:{show:function(){return this.dialog.show}},mounted:function(){},props:{Dialog:{type:Object,validator:function(t){return!0}}},watch:{}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(453),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(86),n=s(i);t.exports={name:"echarts",data:function(){return{chartDom:null,data:{id:this.id,title:this.title,subtext:this.subtext,hover_title:this.hoverTitle,text_list:this.textList,value_list:this.valueList}}},methods:{init:function(){return this.data.id&&(this.chartDom=n.default.init(document.getElementById(this.data.id))),this},update:function(){null===this.chartDom&&this.init(),this.chartDom&&this.chartDom.setOption({title:{text:this.data.title,subtext:this.data.subtext},tooltip:{},xAxis:{data:this.data.text_list},yAxis:{},series:[{name:this.data.hover_title,type:"bar",data:this.data.value_list}]})}},mounted:function(){this.init().update(this.data)},props:{id:[String],title:[String,Number],subtext:[String,Number],hoverTitle:[String,Number],textList:{type:Array,required:!0},valueList:{type:Array,required:!0}},watch:{valueList:function(t){this.data.value_list=t,this.update()},textList:function(t){this.data.text_list=t,this.update()},title:function(t){this.data.title=t,this.update()},subtext:function(t){this.data.subtext=t,this.update()},hoverTitle:function(t){this.data.hover_title=t,this.update()}}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(454),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(86),n=s(i);t.exports={name:"echarts",data:function(){return{chartDom:null,data:{}}},methods:{init:function(){return this.chartDom=n.default.init(document.getElementById("chartDom")),this},update:function(){null===this.chartDom&&this.init(),this.chartDom.setOption({title:{text:"Bar Chart",subtext:"数据来自网络"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["2011年","2012年"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",boundaryGap:[0,.01]},yAxis:{type:"category",data:["巴西","印尼","美国","印度","中国","世界人口(万)"]},series:[{name:"2011年",type:"bar",data:[18203,23489,29034,104970,131744,630230]},{name:"2012年",type:"bar",data:[19325,23438,31e3,121594,134141,681807]}]})}},mounted:function(){this.init().update(this.data)}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(455),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(86),n=s(i);t.exports={name:"echarts",data:function(){return{chartDom:null,data:{title:"垂直方向柱状标题",subtext:"子标题描述信息"}}},methods:{init:function(){return this.chartDom=n.default.init(document.getElementById("chartDom")),this},update:function(){null===this.chartDom&&this.init(),this.chartDom.setOption({title:{text:"Line Chart"},tooltip:{trigger:"axis"},legend:{data:["邮件营销","联盟广告","搜索引擎"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:["周一","周二","周三","周四","周五","周六","周日"]},yAxis:{type:"value"},series:[{name:"邮件营销",type:"line",stack:"总量",data:[120,132,101,134,90,230,210]},{name:"联盟广告",type:"line",stack:"总量",data:[220,182,191,234,290,330,310]},{name:"搜索引擎",type:"line",stack:"总量",data:[820,932,901,934,1290,1330,1320]}]})}},mounted:function(){this.init().update()}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(456),n=s(i);t.exports=n.default},function(t,e,a){"use strict";t.exports={Default:a(849)}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(86),n=s(i);t.exports={name:"echarts",data:function(){return{chartDom:null,data:{id:this.id,title:this.title,subtext:this.subtext,hover_title:this.hoverTitle,data_list:this.dataList,text_list:[]}}},methods:{init:function(){return this.data.id&&(this.chartDom=n.default.init(document.getElementById(this.data.id))),this},update:function(){null===this.chartDom&&this.init(),this.chartDom.setOption({title:{text:this.data.title,subtext:this.data.subtext,x:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:this.data.text_list},series:[{name:this.data.hover_title,type:"pie",radius:"55%",data:this.data.data_list,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})},updateTextList:function(){var t=this.data.data_list;this.data.text_list=[];for(var e=0;e<t.length;e++)this.data.text_list.push(t[e].name);return this}},mounted:function(){this.updateTextList().init().update()},props:{id:{type:String,required:!0},title:[String,Number],subtext:[String,Number],hoverTitle:[String,Number],dataList:{type:Array,required:!0}},watch:{dataList:function(t){this.data.value_list=t,this.updateTextList().update()},title:function(t){this.data.title=t,this.update()},subtext:function(t){this.data.subtext=t,this.update()},hoverTitle:function(t){this.data.hover_title=t,this.update()}}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(457),n=s(i);t.exports=n.default},function(t,e,a){"use strict";t.exports={Bar:a(238),Pie:a(239),Line:a(850)}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(34),n=s(i);t.exports={name:"list",data:function(){return{checkall_temp:"_checkall_temp",fields:this.FieldList||[],editor:this.Editor||{},submit_data:this.DefaultValue||{},rules:this.Rules||{},wangEditor:{editor:{},many:!1,has:!1,bar:["source","|","bold","underline","italic","strikethrough","eraser","forecolor","bgcolor","|","quote","fontfamily","fontsize","head","unorderlist","orderlist","alignleft","aligncenter","alignright","|","link","unlink","table","emotion","|","img","video","insertcode","|","undo","redo","fullscreen"],temp:{}}}},methods:{initEditor:function(t,e){t&&(this.wangEditor.editor[t]=new wangEditor(t),this.wangEditor.temp[t]={html:"",text:""}),this.configEditor(t,e).eventEditor(t).createEditor(t)},configEditor:function(t,e){var a=this;if(t&&e){if(this.wangEditor.editor[t].config={},this.wangEditor.editor[t].config.uploadImgFns={},this.wangEditor.editor[t].config.uploadImgFileName=e.name||this.editor.name||"sls-admin",this.wangEditor.editor[t].config.uploadImgUrl=e.url||this.editor.url||"",this.wangEditor.editor[t].config.uploadParams=e.params||this.editor.params||{},Array.isArray(e.show_bar)&&e.show_bar.length)var s=e.show_bar;else if(Array.isArray(e.hide_bar)&&e.hide_bar.length)var s=this.wangEditor.bar.filter(function(t){return e.hide_bar.indexOf(t)===-1});else if(Array.isArray(this.editor.show_bar)&&this.editor.show_bar.length)var s=this.editor.show_bar;else if(Array.isArray(this.editor.hide_bar)&&this.editor.hide_bar.length)var s=this.wangEditor.bar.filter(function(t){return a.editor.hide_bar.indexOf(t)===-1});else var s=this.wangEditor.bar;if(this.wangEditor.many===!0&&s.indexOf("location")!==-1)var s=s.splice(s.indexOf("location"),1);this.wangEditor.editor[t].config.menus=s,console.log(this.wangEditor.editor[t].config.menus)}return this},eventEditor:function(t){var e=this,a=this;return this.wangEditor.editor[t].config.uploadImgFns.onload=function(t){if(200===t.status){var e=this.uploadImgOriginalName||"";this.command(null,"insertHtml",'<img src="'+t.data.fileinfo.getSaveName+'" alt="'+e+'" style="max-width:100%;"/>')}else 404===t.status?a.$message.error("上传错误信息：token无效！"):a.$message.error("上传错误信息："+t.msg)},this.wangEditor.editor[t].config.uploadImgFns.onerror=function(t){e.$message.error("上传错误信息：网络错误！")},this.wangEditor.editor[t].onchange=function(){var e=this.$txt.text().replace(/(^\s*)|(\s*$)/g,""),s=this.$txt.html();a.wangEditor.temp[t].html=s,a.wangEditor.temp[t].text=e,a.$emit("onEditorChange",{id:t,data:{html:s,text:e}})},this},createEditor:function(t){console.log(this.wangEditor.editor[t]),this.wangEditor.editor[t].create(),console.log(t)},initCheckall:function(t){var e={};e.text=t.checkall.text,e.value=t.checkall.value,e.indeterminate=t.checkall.indeterminate,e.checkbox_list=t.value.list,e.checkbox_value=t.value.default,this.$set(this.submit_data,t.key+this.checkall_temp,e)},onDateTimeChange:function(t,e,a){var s=this;t[e].change&&"function"==typeof t[e].change||this.$set(t[e],"change",function(i){switch(a){case"range":var n=i.split(" - ");s.submit_data[t[e].key]=n;break;default:s.submit_data[t[e].key]=i}})},onDateOptions:function(t,e,a){var s=t[e];if(!s.options){var i={},n=[{text:"今天",onClick:function(t){t.$emit("pick",new Date)}},{text:"昨天",onClick:function(t){var e=new Date;e.setTime(e.getTime()-864e5),t.$emit("pick",e)}},{text:"一周前",onClick:function(t){var e=new Date;e.setTime(e.getTime()-6048e5),t.$emit("pick",e)}}],r=function(t){return t.getTime()<Date.now()-864e5};s.shortcuts===!0&&(i.shortcuts=n),s.disabledDate===!0&&(i.disabledDate=r),s.disabledDate&&s.disabledDate.constructor===Function&&(i.disabledDate=s.disabledDate),s.shortcuts&&s.shortcuts.constructor===Array&&(i.shortcuts=s.shortcuts),this.$set(t[e],"options",i)}},onTimeOptions:function(t,e,a){var s=t[e];if(!s.options){var i={};this.$set(t[e],"options",i)}},initDate:function(t,e,a){this.onDateTimeChange(t,e,a),this.onDateOptions(t,e,a)},initTime:function(t,e,a){this.onDateTimeChange(t,e,a),this.onTimeOptions(t,e,a)},initYear:function(t,e){this.onDateTimeChange(t,e)},initMonth:function(t,e){this.onDateTimeChange(t,e)},initWeek:function(t,e){this.onDateTimeChange(t,e),t[e].format||this.$set(t[e],"format","yyyy 第 WW 周")},deepObj:function(){if(this.fields)for(var t=this.fields,e=0,a=(!!this.submit_data.id,0);a<t.length;a++){var s=t[a];if(s.value&&s.value.constructor===Object?s.checkall&&"object"===(0,n.default)(s.checkall)?this.initCheckall(s):this.$set(this.submit_data,s.key,s.value.default):this.$set(this.submit_data,s.key,s.value),s.type)switch(s.type){case"editor":e++,this.initEditor(s.id,s.config||{}),2==e&&(this.wangEditor.many=!0),1==e&&(this.wangEditor.has=!0);break;case"date":this.initDate(t,a);break;case"daterange":this.initDate(t,a,"range");break;case"year":this.initYear(t,a);break;case"month":this.initMonth(t,a);break;case"week":this.initWeek(t,a);break;case"time":this.initTime(t,a);break;case"datetime":this.initDate(t,a);break;case"datetimerange":this.initDate(t,a,"range")}}},onSubmit:function(t){var e=this,a={data:this.submit_data
  };this.wangEditor.has===!0&&(a.editor_temp_data=this.wangEditor.temp),this.rules?this.$refs[t].validate(function(t){t&&e.$emit("onSubmit",a)}):this.$emit("onSubmit",a)},onCheckboxChange:function(t){var e=this.submit_data[t+this.checkall_temp];e.checkbox_value.length>0&&e.checkbox_value.length<e.checkbox_list.length?e.indeterminate=!0:e.indeterminate=!1,e.value=e.checkbox_value.length===e.checkbox_list.length},onCheckallChange:function(t){var e=this.submit_data[t+this.checkall_temp];e.indeterminate=!1;var a=[];if(1==e.value)for(var s=0;s<e.checkbox_list.length;s++)a.push(e.checkbox_list[s].value);e.checkbox_value=a},onCascaderItemChange:function(t){},onChangeDateTime:function(t){console.log(t+"    formdata")}},created:function(){this.deepObj()},mounted:function(){},props:{FieldList:{type:Array,required:!0},Editor:{type:Object},Rules:{type:Object},DefaultValue:{type:Object}},watch:{FieldList:{deep:!0,handler:function(t){t&&(this.fields=t)}},DefaultValue:function(t){t&&(this.submit_data=t)}}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(458),n=s(i);t.exports=n.default},function(t,e,a){"use strict";var s=a(242);t.exports={name:"head-nav",data:function(){var t=this;return{dialog:{show_access:!1,show_set:!1,show_pass:!1,title:"修改密码",user_info:this.$store.state.user.userinfo,set_info:{login_style:"",disabled_update_pass:[],select_users:[]},user_info_rules:{old_password:[{required:!0,message:"旧密码不能为空！",trigger:"blur"}],password:[{required:!0,message:"新密码不能为空！",trigger:"blur"},{trigger:"blur",validator:function(e,a,s){""===a?s(new Error("请再次输入密码")):(""!==t.dialog.user_info.password&&t.$refs.user_info.validateField("password_confirm"),s())}}],password_confirm:[{required:!0,message:"确认密码不能为空！",trigger:"blur"},{trigger:"blur",validator:function(e,a,s){""===a?s(new Error("请再次输入密码")):a!==t.dialog.user_info.password?s(new Error("两次输入密码不一致!")):s()}}]}}}},mounted:function(){},methods:{logout:function(){var t=this;this.$confirm("你确定退出登录么?","确认退出",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$store.dispatch("remove_userinfo").then(function(){t.$router.push("/login")})})},setDialogInfo:function(t){if(!t)return console.log("test"),void this.$message("菜单选项缺少command属性");switch(t){case"info":this.$router.push({path:"/demo/user/edit",query:{id:this.$store.state.user.userinfo.id}});break;case"pass":this.dialog.show_pass=!0,this.dialog.title="修改密码";break;case"set":this.onGetSetting(),this.dialog.show_set=!0,this.dialog.title="系统设置"}},updUserPass:function(t){var e=this;this.$refs[t].validate(function(a){a&&s.user.updPass.call(e,{old_password:e.dialog[t].old_password,password:e.dialog[t].password,password_confirm:e.dialog[t].password_confirm},function(t){e.dialog.show_pass=!1,e.$message.success("修改成功！")})})},onGetSetting:function(){var t=this;0==this.$store.state.user.userinfo.pid?s.system.getSetting.call(this,function(e){e.setting_info.disabled_update_pass?e.setting_info.disabled_update_pass=e.setting_info.disabled_update_pass.split(","):e.setting_info.disabled_update_pass=[],e.setting_info.login_style=e.setting_info.login_style+"",t.dialog.set_info=e.setting_info}):this.$message.error("只有管理员才能操作！")},onUpdateSetting:function(){var t=this;s.system.updateSetting.call(this,{id:this.dialog.set_info.id,login_style:this.dialog.set_info.login_style,disabled_update_pass:this.dialog.set_info.disabled_update_pass&&this.dialog.set_info.disabled_update_pass.length?this.dialog.set_info.disabled_update_pass.join(","):""},function(e){t.dialog.show_set=!1})}}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"left-menu",data:function(){return{menu_list:[],win_size:{height:""}}},methods:{setSize:function(){this.win_size.height=$(window).height()+"px"},toggleMenu:function(){this.$store.dispatch(this.$store.state.leftmenu.menu_flag?"set_menu_close":"set_menu_open")},updateCurMenu:function(t){var t=t||this.$route;if(t.matched.length){var e=t.matched[0].path,a=t.path;this.$store.dispatch("set_cur_route",{rootPath:e,fullPath:a});for(var s=this.$router.options.routes,i=0;i<s.length;i++)if(s[i].path===e&&!s[i].hidden){this.menu_list=s[i].children;break}}else this.$router.push("/404")}},created:function(){var t=this;this.setSize(),$(window).resize(function(){t.setSize()}),this.updateCurMenu()},mounted:function(){},watch:{$route:function(t,e){this.updateCurMenu(t)}}}},function(t,e){"use strict";t.exports={name:"list-data",data:function(){return{batch_flag:!0,batch_datas:[],batch_ids:[],image_host:this.ImageHost,list:this.List,fields:this.FieldList,selection:this.Selection,expand:this.Expand,btn_info:this.BtnInfo,pagination:this.Pagination}},methods:{onSelectionChange:function(t){if(this.batch_datas=t,this.batch_ids=[],t.length){this.batch_flag=!1;for(var e=0;e<t.length;e++)this.batch_ids.push(t[e].id)}else this.batch_flag=!0;this.$emit("onSelectionChange",this.batch_ids,this.batch_datas),this.$emit("onSelectionChangeObj",{ids:this.batch_ids,datas:this.batch_datas})},onDelete:function(t,e){var a={};t===!0?(a.batch_ids=this.batch_ids,a.batch_datas=this.batch_datas):(a.data=t,a.index=e),this.$emit("onDelete",a)},onAdd:function(){this.$emit("onAdd",{})},onGetInfo:function(t,e,a,s){this.$emit("onGetInfo",{row:t,index:e,list:a,type:s})},onBtnEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];this.$emit("onBtn"+t,{row:e,index:a,list:s})},onUpdateBtn:function(t,e,a){if(this.btn_info.update&&this.btn_info.update.path){for(var s=this.btn_info.update.path,i=this.btn_info.update.param_keys||[],n=this.btn_info.update.query_keys||[],r={},o=0;o<i.length;o++)s+="/"+t[i[o]];for(var o=0;o<n.length;o++)r[n[o]]=t[n[o]];this.$router.push({path:s,query:r})}else this.onGetInfo(t,e,a,"update")},onUpdateList:function(t){Array.isArray(t)?this.list=this.list.filter(function(e,a){return t.indexOf(e.id)===-1}):this.list.splice(t,1)},onChangeCurrentPage:function(t){this.$emit("onChangeCurrentPage",t)},onChangePageSize:function(t){this.$emit("onChangePageSize",t)}},mounted:function(){},props:{ImageHost:{type:String,default:""},List:{type:Array,required:!0},FieldList:{type:Array,required:!0},BtnInfo:{type:Object,default:function(){return{}}},Selection:{type:Boolean,default:!1},Expand:{type:Object,default:function(){return{show:!1,position:"left"}}},Pagination:{type:Object,default:function(){return{}}}},watch:{ImageHost:function(t){t&&(this.image_host=t)},List:function(t){t&&(this.list=t)},FieldList:function(t){t&&(this.fields=t)},Selection:function(t){this.selection=t},Expand:function(t){this.expand=t},BtnInfo:function(t){this.btn_info=t},Pagination:function(t){this.pagination=t}}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(461),n=s(i);t.exports=n.default},function(t,e,a){"use strict";t.exports={Bread:a(452),HeadNav:a(459),LeftMenu:a(460),Echarts:a(853),ListData:a(859),FormData:a(855),DialogInfo:a(843)}},function(t,e){"use strict";t.exports={name:"login",data:function(){var t=this;return{winSize:{width:"",height:""},formOffset:{position:"absolute",left:"",top:""},remumber:this.$store.state.user.remumber,register:!1,login_actions:{disabled:!1},data:{username:"",password:""},rule_data:{username:[{validator:function(t,e,a){""===e?a(new Error("请输入用户名")):/^[a-zA-Z0-9_-]{1,16}$/.test(e)?a():a(new Error("用户名至少6位,由大小写字母和数字,-,_组成"))},trigger:"blur"}],password:[{validator:function(e,a,s){""===a?s(new Error("请输入密码")):/^[a-zA-Z0-9_-]{6,16}$/.test(a)?(t.register===!0&&""!==t.data.repassword&&t.$refs.data.validateField("repassword"),s()):s(new Error("密码至少6位,由大小写字母和数字,-,_组成"))},trigger:"blur"}],repassword:[{validator:function(e,a,s){""===a?s(new Error("请再次输入密码")):a!==t.data.password?s(new Error("两次输入密码不一致!")):s()},trigger:"blur"}]}}},methods:{setSize:function(){this.winSize.width=$(window).width()+"px",this.winSize.height=$(window).height()+"px",this.formOffset.left=parseInt(this.winSize.width)/2-175+"px",this.formOffset.top=parseInt(this.winSize.height)/2-178+"px"},onLogin:function(t,e){var a=this;return e&&this.register===!0?void this.$message.error("请输入确认密码"):void this.$refs[t].validate(function(e){e&&(a.login_actions.disabled=!0,a.$$api_user_login(a[t],function(e){a.remumber.remumber_flag===!0?a.$store.dispatch("update_remumber",{remumber_flag:a.remumber.remumber_flag,remumber_login_info:{username:a[t].username,token:e.userinfo.token}}):a.$store.dispatch("remove_remumber");try{e.userinfo.web_routers=JSON.parse(e.userinfo.web_routers)?JSON.parse(e.userinfo.web_routers):{}}catch(t){e.userinfo.web_routers={}}try{e.userinfo.api_routers=JSON.parse(e.userinfo.api_routers)?JSON.parse(e.userinfo.api_routers):{}}catch(t){e.userinfo.api_routers={}}a.$store.dispatch("update_userinfo",{userinfo:e.userinfo}).then(function(){a.login_actions.disabled=!1,e.userinfo.default_web_routers?a.$router.push(e.userinfo.default_web_routers):a.$router.push("/demo/user/list")})},{errFn:function(){a.login_actions.disabled=!1},tokenFlag:!0}))})},onRegister:function(t){var e=this;this.$refs[t].validate(function(a){a&&(e.login_actions.disabled=!0,e.$$api_user_register(e[t],function(t){e.login_actions.disabled=!1,e.$message.success("注册成功，请登录。"),e.toggleStatus(!1)},{errFn:function(){e.login_actions.disabled=!1},tokenFlag:!0}))})},resetForm:function(t){this.$refs[t].resetFields()},toggleStatus:function(t){this.register=t,this.register===!0?this.$set(this.data,"repassword",""):this.$delete(this.data,"repassword")}},created:function(){var t=this;this.setSize(),$(window).resize(function(){t.setSize()})},mounted:function(){this.remumber.remumber_flag===!0&&(this.data.username=this.remumber.remumber_login_info.username,this.data.password=this.remumber.remumber_login_info.token.substring(0,16),this.$set(this.data,"token",this.remumber.remumber_login_info.token))}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(462),n=s(i);t.exports=n.default},function(t,e,a){"use strict";var s=a(72);t.exports={name:"edit-article",data:function(){return{article_data:{title:"",cate:"",tabs:["html"],status:!0,content:""},temp:{content:""},rules:{title:[{required:!0,message:"文章标题不能为空！",trigger:"blur"}],cate:[{required:!0,message:"文章分类不能为空！",trigger:"change"}],tabs:[{type:"array",required:!0,message:"请至少选择一个文章标签！",trigger:"change"}],content:[{required:!0,message:"文章不能为空！",trigger:"blur"}]},wangEditor:{bar:["source","|","bold","underline","italic","strikethrough","eraser","forecolor","bgcolor","|","quote","fontfamily","fontsize","head","unorderlist","orderlist","alignleft","aligncenter","alignright","|","link","unlink","table","emotion","|","img","video","insertcode","|","undo","redo","fullscreen"]}}},methods:{onSubmit:function(t){var e=this,a=this.$refs[t];a.validate(function(t){if(t){if(!e.temp.content){if((e.article_data.content.indexOf("<iframe")==-1||e.article_data.content.indexOf("</iframe>")==-1)&&e.article_data.content.indexOf("<img")==-1)return void e.$message.error("文章内容不能为空！");return}e.article_data.uid=e.$store.getters.getUserinfo.id,e.$$api_article_saveArticle(e.article_data,function(t){e.$router.push("/demo/article/list")})}})},setContent:function(t,e){this.article_data.content=t,this.temp.content=e},reset_article:function(t){this.$refs[t].resetFields()}},mounted:function(){var t=this,e=this,a=new wangEditor("article");if(a.config.uploadImgFileName="article",a.config.uploadImgUrl=s.gbs.host+"/Article/editUpload",a.config.uploadParams={token:this.$store.state.user.userinfo.token,username:this.$store.state.user.userinfo.username},a.config.uploadImgFns.onload=function(e){if(200===e.status){var s=a.uploadImgOriginalName||"";a.command(null,"insertHtml",'<img src="'+e.data.fileinfo.getSaveName+'" alt="'+s+'" style="max-width:100%;"/>')}else 404===e.status?t.$message.error("上传错误信息：token无效！"):t.$message.error("上传错误信息："+e.msg)},a.config.uploadImgFns.onerror=function(e){t.$message.error("上传错误信息：网络错误！")},a.config.menus=this.wangEditor.bar,a.onchange=function(){var t=this.$txt.text().replace(/(^\s*)|(\s*$)/g,""),a=this.$txt.html();e.setContent(a,t)},a.create(),this.$route.query.id){var i={id:this.$route.query.id};this.$$api_article_findArticle(i,function(e){t.article_data=e.article_info,t.article_data.status=1==e.article_info.status,t.article_data.tabs=e.article_info.tabs.split(","),$("#article").html(t.article_data.content)})}}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(463),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(34),n=s(i),r=a(70),o=s(r),l=a(2),u=s(l);t.exports={name:"article-list",data:function(){return{article_list:[],batch_id:"",batch_flag:!0,paginations:{current_page:1,total:0,page_size:12,page_sizes:[3,9,12,24],layout:"total, sizes, prev, pager, next, jumper"},search_data:{title:""},dialog:{show:!1,article_info:{}},fields:{status:{info:{prop:"status",label:"状态",sortable:!0},filter:{list:[{text:"启用",value:1},{text:"禁用",value:2}],multiple:!1},style:{width:"130",align:"center"}},create_time:{info:{prop:"create_time",label:"日期",sortable:!0},filter:{},style:{width:"260",align:"center"}},title:{info:{prop:"title",label:"文章标题",sortable:!0},filter:{},style:{width:"150",align:"center"}},content:{info:{prop:"content",label:"文章内容",sortable:!0},filter:{},style:{width:"150",align:"center"}}}}},methods:{formatterSex:function(t){return 1==t.sex?"男":"女"},formatterStatus:function(t){return 1==t.status?"启用":"禁用"},formatterDate:function(t){return(0,u.default)(t).format("YYYY-MM-DD HH:MM:SS")},filterSex:function(t,e){return e.sex==t},filterStatus:function(t,e){return e.status==t},onSelectionChange:function(t){if(t.length){this.batch_flag=!1;for(var e=[],a=0;a<t.length;a++)e.push(t[a].id);this.batch_id=e.join(",")}else this.batch_flag=!0,this.batch_id=""},onSearch:function(){var t=this,e=this.$route.query,a={},e=this.$route.query;for(var s in e)a[s]=e[s];var i={};for(var n in this.search_data)this.search_data[n]?i[n]=this.search_data[n]:a[n]&&delete a[n];this.getList({where:i,fn:function(){t.setPath((0,o.default)(a,i))}})},setPath:function(t,e){var a=this.$route.path,s=(0,o.default)({},this.$route.query);"object"===("undefined"==typeof t?"undefined":(0,n.default)(t))?s=t:s[t]=e,this.$router.push({path:a,query:s})},onChangeCurrentPage:function(t){var e=this;this.getList({page:t,fn:function(){e.setPath("page",t)}})},onChangePageSize:function(t){var e=this;this.getList({page_size:t,fn:function(){e.setPath("page_size",t)}})},onDeleteArticle:function(t,e,a){var s=this;if(t===!0)var i=this.batch_id;else var i=t.id;this.$$api_article_deleteArticle({id:i},function(n){t===!0?s.article_list=s.article_list.filter(function(t,e){return i.indexOf(t.id)===-1}):a.splice(e,1),s.getList()})},onEditArticle:function(t){t&&t.id?this.$router.push("/demo/article/edit?id="+t.id):this.$message({showClose:!0,message:"ID跑哪去了？",type:"error"})},onSelectArticle:function(t){this.dialog.show=!0,this.dialog.article_info=t},onCloseView:function(){},getList:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.page,s=e.page_size,i=e.where,n=e.fn,r=this.$route.query;this.paginations.current_page=a||parseInt(r.page)||1,this.paginations.page_size=s||parseInt(r.page_size)||this.paginations.page_size;var l={page:this.paginations.current_page,page_size:this.paginations.page_size};if(i)l=(0,o.default)(l,i||{});else for(var u in r)void 0!==this.search_data[u]&&(this.search_data[u]=r[u],l[u]=r[u]);var c=this.$store.getters.getUserinfo.id;l.uid=c,this.$$api_article_selectArticle(l,function(e){t.article_list=e.list.data,t.paginations.total=e.list.total,n&&n()})}},mounted:function(){this.getList({fn:function(){}})},$route:function(t,e){}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(464),n=s(i);t.exports=n.default},function(t,e,a){"use strict";t.exports={Edit:a(864),List:a(866)}},function(t,e,a){"use strict";var s=a(238);t.exports={name:"echarts",components:{Statis:s.Default},data:function(){return{echarts_data:{id:"orderBarDefault",title:"订单柱状图统计初始化标题",subtext:"初始化描述信息",hover_title:"订单量",text_list:["待支付","待配送","待收货","已完成","已取消","退单"],value_list:[0,0,0,0,0,0]}}},methods:{onUpdateTitle:function(){this.echarts_data.title="订单柱状图统计动态更新标题"},onUpdateSubtext:function(){this.echarts_data.subtext="动态描述信息"},onUpdateHoverTitle:function(){this.echarts_data.hover_title="动态鼠标放上去的标题"},onUpdateValueList:function(){this.getStatis()},onUpdateTextList:function(){for(var t=0;t<this.echarts_data.text_list.length;t++)this.$set(this.echarts_data.text_list,t,this.echarts_data.text_list[t]+"!")},getStatis:function(){var t=this;this.$$api_order_statisOrder({},function(e){for(var a in e.statis)t.$set(t.echarts_data.value_list,a-1,e.statis[a])})}},mounted:function(){}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(465),n=s(i);t.exports=n.default},function(t,e,a){"use strict";var s=a(239);t.exports={name:"order-statis-pie",components:{Statis:s.Default},data:function(){return{echarts_data:{id:"orderPieDefault",title:"饼状图初始化标题",subtext:"饼状图初始化描述信息",hover_title:"订单量",data_list:[{name:"待支付",value:"0"},{name:"待配送",value:"0"},{name:"待收货",value:"0"},{name:"已完成",value:"0"},{name:"已取消",value:"0"},{name:"退单",value:"0"}]}}},methods:{onUpdateTitle:function(){this.echarts_data.title="饼状图动态标题"},onUpdateSubtext:function(){this.echarts_data.subtext="饼状图动态描述信息"},onUpdateHoverTitle:function(){this.echarts_data.hover_title="饼状图动态鼠标放上去标题"},onUpdateValueList:function(){this.getStatis()},onUpdateTextList:function(){for(var t=0;t<this.echarts_data.data_list.length;t++){var e=this.echarts_data.data_list[t];e.name+="!",this.$set(this.echarts_data.data_list,t,e)}},getStatis:function(){var t=this;this.$$api_order_statisOrder({},function(e){for(var a in e.statis){var s=t.echarts_data.data_list[a-1];s.value=e.statis[a],t.$set(t.echarts_data.data_list,a-1,s)}})}},mounted:function(){}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(466),n=s(i);t.exports=n.default},function(t,e,a){"use strict";t.exports={Bar:a(869),Pie:a(871)}},function(t,e,a){"use strict";a(72);t.exports={name:"edit-order",data:function(){return{form_data:{name:"",status:"1"},form_rules:{name:[{required:!0,message:"订单名称不能为空！",trigger:"blur"}],status:[{required:!0,message:"文章分类不能为空！",trigger:"change"}]}}},methods:{onSubmit:function(t){var e=this,a=this.$refs[t];a.validate(function(t){t&&(console.log(e.form_data),e.$$api_order_saveOrder(e.form_data,function(t){console.log(t)}))})},reset_form:function(t){this.$refs[t].resetFields()}},created:function(){},mounted:function(){}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(467),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(34),n=s(i),r=a(70),o=s(r);t.exports={name:"order-list",data:function(){return{article_list:[],format_status_list:{1:"待支付",2:"待配送",3:"待收货",4:"已完成",5:"已取消",6:"退单"},batch_id:"",batch_flag:!0,paginations:{current_page:1,total:0,page_size:12,page_sizes:[3,9,12,24],layout:"total, sizes, prev, pager, next, jumper"},fields:{status:{info:{prop:"status",label:"订单状态",sortable:!0},filter:{list:[{text:"待支付",value:1},{text:"待配送",value:2},{text:"待收货",value:3},{text:"已完成",value:4},{text:"已取消",value:5},{text:"退单",value:6}],multiple:!1},style:{width:"180",align:"center"}},create_time:{info:{prop:"create_time",label:"日期",sortable:!0},filter:{},style:{width:"260",align:"center"}},name:{info:{prop:"name",label:"订单名称",sortable:!0},filter:{},style:{width:"150",align:"center"}}}}},methods:{formatterStatus:function(t){return this.format_status_list[t.status]},filterStatus:function(t,e){return this.format_status_list[t]==this.format_status_list[e.status]},setPath:function(t,e){var a=this.$route.path,s=(0,o.default)({},this.$route.query);"object"===("undefined"==typeof t?"undefined":(0,n.default)(t))?s=t:s[t]=e,this.$router.push({path:a,query:s})},onChangeCurrentPage:function(t){var e=this;this.getList({page:t,fn:function(){e.setPath("page",t)}})},onChangePageSize:function(t){var e=this;this.getList({page_size:t,fn:function(){e.setPath("page_size",t)}})},getList:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.page,s=e.page_size,i=e.where,n=e.fn,r=this.$route.query;this.paginations.current_page=a||parseInt(r.page)||1,this.paginations.page_size=s||parseInt(r.page_size)||this.paginations.page_size;var l={page:this.paginations.current_page,page_size:this.paginations.page_size};i&&(l=(0,o.default)(l,i||{})),this.$$api_order_selectOrder(l,function(e){t.article_list=e.list.data,t.paginations.total=e.list.total,n&&n()})}},mounted:function(){this.getList({fn:function(){}})},$route:function(t,e){}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(468),n=s(i);t.exports=n.default},function(t,e,a){"use strict";t.exports={Edit:a(874),List:a(876)}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(141),n=s(i),r=a(813),o=s(r),l=a(241);t.exports={name:"user",components:{},data:function(){return{username:"",checkeds:{web_routers:{},api_routers:{}},props:{web_routers:{children:"children",label:"name"},api_routers:{children:"list",label:"name"}},datas:{web_routers:[],api_routers:[]},data:{id:"",web_routers:"",api_routers:"",default_web_routers:"",access_status:!1}}},methods:{checkChangeWebRouters:function(t,e,a){e!==!0||4!=t.access.split("/").length||this.checkeds.web_routers[t.access]||this.$set(this.checkeds.web_routers,t.access,t.name),e===!1&&this.checkeds.web_routers[t.access]&&(this.$delete(this.checkeds.web_routers,t.access),t.access===this.data.default_web_routers&&(this.data.default_web_routers=""))},checkChangeApiRouters:function(t,e,a){e!==!0||t.list||this.checkeds.api_routers[t.path]||this.$set(this.checkeds.api_routers,t.path,t.name),e===!1&&this.checkeds.api_routers[t.path]&&this.$delete(this.checkeds.api_routers,t.path)},initRouters:function(){for(var t=this.$router.options.routes,e=0;e<t.length;e++)if(t[e].hidden!==!0&&t[e].children&&t[e].children.length){var a={},s=t[e],i=s.children;a.name=s.name,a.path=s.path,a.access=s.path,a.children=[];for(var n=0;n<i.length;n++)if(i[n].hidden!==!0&&i[n].children&&i[n].children.length){var r={},o=i[n],l=o.children;r.name=o.name,r.path="/"+o.path,r.access=a.path+"/"+o.path,r.children=[];for(var u=0;u<l.length;u++)if(l[u].hidden!==!0){var c={},d=l[u];c.name=d.name,c.path="/"+d.path,c.access=a.path+"/"+o.path+"/"+d.path,r.children.push(c)}a.children.push(r)}this.datas.web_routers.push(a)}},initApis:function(){this.datas.api_routers=l.request},getUserinfo:function(){var t=this;this.$$api_user_findUser({id:this.data.id},function(e){t.username=e.userinfo.username,t.data.access_status=1===e.userinfo.access_status,t.data.default_web_routers=e.userinfo.default_web_routers,t.data.web_routers=e.userinfo.web_routers,t.data.api_routers=e.userinfo.api_routers,e.userinfo.web_routers&&(t.checkeds.web_routers=JSON.parse(e.userinfo.web_routers));var a=(0,o.default)(t.checkeds.web_routers).filter(function(t){return 4===t.split("/").length});t.$refs.webRouters.setCheckedKeys(a),e.userinfo.api_routers&&(t.checkeds.api_routers=JSON.parse(e.userinfo.api_routers)),t.$refs.apiRouters.setCheckedKeys((0,o.default)(t.checkeds.api_routers)),console.log(t.checkeds.web_routers)})},setUserAccess:function(){var t=this,e=!1;for(var a in this.checkeds.web_routers){var s=a.split("/");if(4===s.length){e=!0;var i="/"+s[1],r=i+"/"+s[2];this.checkeds.web_routers[i]||(this.checkeds.web_routers[i]=i),this.checkeds.web_routers[r]||(this.checkeds.web_routers[r]=r)}}e===!1&&(this.checkeds.web_routers={}),this.data.web_routers=(0,n.default)(this.checkeds.web_routers),this.data.api_routers=(0,n.default)(this.checkeds.api_routers),this.data.access_status=this.data.access_status===!0?1:2,this.data.id?1!==this.data.access_status||this.data.default_web_routers?this.$$api_user_updateUserAccess(this.data,function(e){t.data.access_status=1===t.data.access_status,t.$message.success("设置成功")}):this.$message.error("开启权限时必须设置默认页面"):this.$message.error("缺少用户ID")}},mounted:function(){this.data.id=this.$route.query.id,this.initRouters(),this.initApis(),this.getUserinfo()},watch:{}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(469),n=s(i);t.exports=n.default},function(t,e){"use strict";t.exports={name:"user",data:function(){return{user_data:{email:"",username:"",address:"",sex:"3",status:!0,birthday:"1992-11-5"},user_rules:{email:[{required:!0,message:"邮箱不能为空！",trigger:"blur"},{type:"email",message:"邮箱格式不正确！",trigger:"blur"}],username:[{required:!0,message:"用户名不能为空！",trigger:"blur"}],birthday:[{required:!0,message:"生日不能为空！",trigger:"change"}],address:[{required:!0,message:"地址不能为空！",trigger:"change"}]}}},methods:{save_user:function(t){var e=this;this.$refs[t].validate(function(a){a&&e.$$api_user_saveUser(e[t],function(t){e.$router.push("/demo/user/list")})})},reset_user:function(t){this.$refs[t].resetFields()},onChangeDate:function(t){this.user_data.birthday=t},getView:function(){var t=this;this.$route.query.id?this.$$api_user_findUser({id:this.$route.query.id},function(e){t.user_data=e.userinfo,t.user_data.status=1==t.user_data.status}):(this.$delete(this.user_data,"id"),this.$refs.user_data.resetFields())}},mounted:function(){this.getView()},watch:{$route:function(t,e){this.getView()}}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(470),n=s(i);t.exports=n.default},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(70),n=s(i),r=a(2),o=s(r);t.exports={name:"list",data:function(){return{user_list:[],batch_id:"",batch_flag:!0,search_data:{username:"",email:""},dialog:{show:!1,user_info:{}},dialog_access:{show:!1,userinfo:{},web_routers:[],api_routers:[]},sex_filters:{list:[{text:"男",value:1},{text:"女",value:2},{text:"保密",value:3}],multiple:!1},status_filters:{list:[{text:"启用",value:1},{text:"禁用",value:2}],multiple:!1},checkAll:!0,checkedCities:["上海","北京"],cities:["上海","北京","广州","深圳"],isIndeterminate:!0,accesss:[],checkeds:[],defaultProps:{children:"children",label:"name"}}},methods:{handleCheckAllChange:function(t){this.checkedCities=t.target.checked?this.cities:[],this.isIndeterminate=!1},handleCheckedCitiesChange:function(t){var e=t.length;this.checkAll=e===this.cities.length,this.isIndeterminate=e>0&&e<this.cities.length},filterNode:function(t,e){return!t||e.label.indexOf(t)!==-1},currentChange:function(t,e){},nodeClick:function(t,e,a){},checkChange:function(t,e,a){if(e===!0&&4==t.access.split("/").length&&this.checkeds.indexOf(t.access)===-1)this.checkeds.push(t.access);else{var s=this.checkeds.indexOf(t.access);s!==-1&&this.checkeds.splice(s,1)}},setUserAccess:function(){for(var t=this,e=!1,a=0;a<this.checkeds.length;a++){var s=this.checkeds[a].split("/");if(4===s.length){e=!0;var i="/"+s[1],n=i+"/"+s[2];this.checkeds.indexOf(i)===-1&&this.checkeds.push(i),this.checkeds.indexOf(n)===-1&&this.checkeds.push(n)}}e===!1&&(this.checkeds=[]),this.user_id.length?UserApi.setAccessUser.call(this,{user_id:this.user_id.join(","),user_accesss:this.checkeds.join(",")},function(e){t.$message.success("设置成功")}):this.$message.error("用户不能为空")},initRouters:function(){for(var t=this.$router.options.routes,e=0;e<t.length;e++)if(t[e].hidden!==!0&&t[e].children&&t[e].children.length){var a={},s=t[e],i=s.children;a.name=s.name,a.path=s.path,a.access=s.path,a.children=[];for(var n=0;n<i.length;n++)if(i[n].hidden!==!0&&i[n].children&&i[n].children.length){var r={},o=i[n],l=o.children;r.name=o.name,r.path="/"+o.path,r.access=a.path+"/"+o.path,r.children=[];for(var u=0;u<l.length;u++)if(l[u].hidden!==!0){var c={},d=l[u];c.name=d.name,c.path="/"+d.path,c.access=a.path+"/"+o.path+"/"+d.path,r.children.push(c)}a.children.push(r)}this.accesss.push(a)}},formatterSex:function(t){return 1==t.sex?"男":2==t.sex?"女":"保密"},formatterDate:function(t){return(0,o.default)(t).format("YYYY-MM-DD HH:MM:SS")},formatterYear:function(t){return(0,o.default)(t).format("YYYY-MM-DD")},formatterStatus:function(t){return 1==t.status?"启用":"禁用"},filterSex:function(t,e){return e.sex==t},filterStatus:function(t,e){return e.status==t},onSearch:function(){var t={},e=this.$route.query;for(var a in e)t[a]=e[a];for(var s in this.search_data)t[s]=this.search_data[s],t[s]||delete t[s];this.$router.push({path:this.$route.path,query:t})},onSelectionChange:function(t){if(t.length){this.batch_flag=!1;for(var e=[],a=0;a<t.length;a++)e.push(t[a].id);this.batch_id=e.join(",")}else this.batch_flag=!0,this.batch_id=""},setPath:function(t,e){var a=this.$route.path,s=(0,n.default)({},this.$route.query);s[t]=e,this.$router.push({path:a,query:s})},onChangeCurrentPage:function(t){this.setPath("page",t)},onChangePageSize:function(t){this.setPath("page_size",t)},onSetStatusUser:function(t,e,a){this.$$api_user_updateUser({id:t.id,flag:"status",value:0==t.status?1:0},function(e){t.status=1==t.status?2:1})},onSetAccess:function(t,e,a){this.$router.push({path:"/demo/user/access",query:{id:t.id}})},onDeleteUser:function(t,e,a){var s=this;if(t===!0)var i=this.batch_id;else var i=t.id;this.$confirm("你确定删除用户 "+t.username+" 么?","删除用户",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){s.$$api_user_deleteUser({id:i},function(n){t===!0?s.user_list=s.user_list.filter(function(t,e){return i.indexOf(t.id)===-1}):a.splice(e,1),s.getList()})})},onEditUser:function(t){t&&t.id?this.$router.push("/demo/user/edit?id="+t.id):this.$message({showClose:!0,message:"ID跑哪去了？",type:"error"})},onSelectUser:function(t){this.dialog.show=!0,this.dialog.user_info=t},getList:function(){var t=this,e={},a=this.$route.query;for(var s in a)void 0!==this.search_data[s]&&(this.search_data[s]=a[s],e[s]=a[s]);this.$$api_user_selectUser(e,function(e){t.user_list=e.list})}},mounted:function(){this.getList(),this.initRouters()},watch:{$route:function(t,e){this.getList()}}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(471),n=s(i);t.exports=n.default},function(t,e,a){"use strict";t.exports={Edit:a(881),List:a(883),Access:a(879)}},function(t,e,a){"use strict";t.exports={Article:a(867),User:a(884),Order:a(877),OrderStatis:a(872)}},function(t,e,a){"use strict";t.exports={Demo:a(885)}},function(t,e){"use strict";t.exports=[{name:"获取文章列表",method:"selectArticle",path:"/Article/selectArticle",type:"get"},{name:"添加/修改文章",method:"saveArticle",path:"/Article/saveArticle",type:"post"},{name:"删除文章",method:"deleteArticle",path:"/Article/deleteArticle",type:"post"},{name:"查看文章详情",method:"findArticle",path:"/Article/findArticle",type:"get"}]},function(t,e){"use strict";t.exports=[{name:"上传七牛图片",method:"uploadQiniuFile",path:"",type:"post"},{name:"获取七牛上传图片token",method:"getQiniuToken",path:"/Open/getQiniuToken",type:"get"},{name:"获取七牛图片列表",method:"getQiniuFileList",path:"/Open/getQiniuFileList",type:"get"},{name:"删除七牛文件",method:"deleteQiniuFile",path:"/Open/deleteQiniuFile",type:"post"}]},function(t,e){"use strict";t.exports=[{name:"统计订单",method:"statisOrder",path:"/Order/statisOrder",type:"get"},{name:"获取订单列表",method:"selectOrder",path:"/Order/selectOrder",type:"get"},{name:"添加订单",method:"saveOrder",path:"/Order/saveOrder",type:"post"}]},function(t,e){"use strict";t.exports=[{name:"获取系统设置信息",method:"getSetting",path:"/System/getSetting",type:"get"},{name:"修改系统设置信息",method:"updateSetting",path:"/System/updateSetting",type:"post"}]},function(t,e){"use strict";t.exports=[{name:"登录",method:"login",path:"/Login/login",type:"post"},{name:"注册",method:"register",path:"/User/register",type:"post"},{name:"获取用户列表",method:"selectUser",path:"/User/selectUser",type:"post"},{name:"添加修改用户公用接口",method:"saveUser",path:"/User/saveUser",type:"post"},{name:"删除用户",method:"deleteUser",path:"/User/deleteUser",
  type:"post"},{name:"获取用户信息",method:"findUser",path:"/User/findUser",type:"get"},{name:"修改密码",method:"updatePass",path:"/User/updatePass",type:"post"},{name:"设置权限",method:"updateUserAccess",path:"/User/updateUserAccess",type:"post"},{name:"设置用户状态",method:"updateUser",path:"/User/updateUser",type:"post"}]},function(t,e,a){"use strict";var s=a(240);t.exports=[{path:"/demo",name:"真实交互",icon:"inbox",component:s.Home,redirect:"/demo/user",children:[{path:"user",name:"用户管理",icon:"inbox",component:s.Content,redirect:"/demo/user/list",children:[{path:"list",name:"用户列表",icon:"reorder",component:s.Modules.Demo.User.List},{path:"edit",name:"编辑用户",icon:"edit",component:s.Modules.Demo.User.Edit},{path:"access",hidden:!0,name:"设置权限",icon:"edit",component:s.Modules.Demo.User.Access}]},{path:"article",name:"文章管理",icon:"inbox",component:s.Content,redirect:"/demo/article/list",children:[{path:"list",name:"文章列表",icon:"reorder",component:s.Modules.Demo.Article.List},{path:"edit",name:"编辑文章",icon:"edit",component:s.Modules.Demo.Article.Edit}]}]}]},function(t,e){"use strict";t.exports={onCheckEditor:function(t){var e=t.editor_temp_data,a=t.field_infos,s=t.type,i={status:200};for(var n in e)if(!e[n].text&&(e[n].html.indexOf("<iframe")==-1||e[n].html.indexOf("</iframe>")==-1)&&e[n].html.indexOf("<img")==-1){a&&a[n]&&this.$message.error(a[n].msg),i.status=1,i.id=n;break}return s===!0?200===i.status:i},onSubmit:function(t){var e=t.data,a=t.editor_temp_data;if(a){var s=this.onCheckEditor({editor_temp_data:a,field_infos:this.tips,type:!0});if(s){for(var i in this.tips)e[this.tips[i].field]=a[i].html;this.onSubmitFn&&this.onSubmitFn(e)}}else this.onSubmitFn&&this.onSubmitFn(e)}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(70),n=s(i);t.exports={getDataList:function(){var t=this,e=this.$route.query,a=(0,n.default)({},{page_size:this.pagination.page_size,page:this.pagination.current_page},e);this[this.apis.method.get_list](a,function(e){t.list=e.list.data,t.pagination.total=e.list.total})},onChangeCurrentPage:function(t){this.setRoutePath({page:t})},onChangePageSize:function(t){this.setRoutePath({page_size:t})},setRoutePath:function(t){var e=this.$route.query,a=(0,n.default)({},e,t),s=this.$route.path;this.$router.push({path:s,query:a}),this.getDataList()},onGetInfo:function(t){switch(console.log("on-get-info"),console.log(t),t.type){case"select":console.log("select");break;case"update":this.$router.push({path:this.apis.route.update_path,query:{id:t.row.id}})}},onDelete:function(t){var e=this;if(console.log("on-delete"),console.log(t),t.index>=0)var a=!1,s=t.data.id;else var a=!0,s=t.batch_ids.join(",");this[this.apis.method.delete_data]({id:s},function(s){a===!0?e.list=e.list.filter(function(e){return t.batch_ids.indexOf(e.id)===-1}):e.list.splice(t.index,1)})},onSelectionChange:function(t,e){console.log("on-selection-change")},onSelectionChangeObj:function(t){t.ids,t.datas;console.log("on-selection-change-obj")}}},function(t,e,a){"use strict";t.exports={ListData:a(894),FormData:a(893)}},function(t,e,a){"use strict";t.exports={Common:a(895)}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}function i(t){var e={};if(t&&"object"===("undefined"==typeof t?"undefined":(0,l.default)(t)))for(var a in t)"function"==typeof t[a]&&(e[a]=t[a]),"object"===(0,l.default)(t[a])&&(0,r.default)(e,i(t[a]));return e}var n=a(70),r=s(n),o=a(34),l=s(o),u=a(20),c=s(u),d={methods:i(a(896))};c.default.mixin(d)},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}for(var i=a(34),n=s(i),r=a(241),o=a(73),l={},u=0;u<r.request.length;u++)if("object"===(0,n.default)(r.request[u])&&r.request[u].list&&Array.isArray(r.request[u].list))for(var c=0;c<r.request[u].list.length;c++)l["api_"+r.request[u].module+"_"+r.request[u].list[c].method]=function(t,e){return function(a,s,i){this.$$ajax(r.request[t].list[e].type,r.request[t].list[e].path,a,s,i)}}(u,c);t.exports={plugins:{api_methods:l,ajax:o.ajax}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(34),n=s(i),r=a(20),o=s(r),l=a(898);o.default.use({install:function(t,e){var a=function t(e,a){for(var s in a)"object"===(0,n.default)(a[s])?t(e,a[s]):e.prototype["$$"+s]=a[s]};a(t,l.plugins)}})},function(t,e,a){"use strict";function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}var i=a(244),n=s(i);t.exports={clear_local:function(t){var e=t.commit;e(n.CLEAR_LOCAL)},update_local:function(t){var e=t.commit;e(n.UPDATE_LOCAL)},update_cur_shop_status:function(t,e){var a=t.commit;a(n.UPDATE_CUR_SHOP_STATUS,e)},delete_db:function(t){var e=t.commit;e(n.DELETE_DB),e(n.UPDATE_LOCAL)},create_db:function(t,e){var a=t.commit,s=e.shop;a(n.CREATE_DB,s),a(n.UPDATE_LOCAL)},add_db:function(t){var e=t.commit;e(n.ADD_DB),e(n.UPDATE_LOCAL)},reduce_db:function(t){var e=t.commit;e(n.REDUCE_DB),e(n.UPDATE_LOCAL)},check_db:function(t,e){var a=t.commit;a(n.CHECK_DB,e)}}},function(t,e){"use strict";t.exports={getInfos:function(t){t.cartInfos.total_price=0,t.cartInfos.total_nums=0;for(var e=t.cartList,a=0;a<e.length;a++){var s=parseInt(e[a].price),i=parseInt(e[a].num);t.cartInfos.total_price+=s*i,t.cartInfos.total_nums+=i}return t.cartInfos},getCartList:function(t){return t.cartList}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(904),n=s(i),r=a(903),o=s(r),l=a(901),u=s(l),c=a(900),d=s(c);t.exports={state:n.default,mutations:o.default,getters:u.default,actions:d.default}},function(t,e,a){"use strict";function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}var n,r=a(71),o=i(r),l=a(141),u=i(l),c=a(244),d=s(c);t.exports=(n={},(0,o.default)(n,d.CLEAR_LOCAL,function(t){t.cartList.forEach(function(t){t.num=0}),t.cartList=[],localStorage.removeItem("vuex_cart")}),(0,o.default)(n,d.UPDATE_LOCAL,function(t){localStorage.setItem("vuex_cart",(0,u.default)(t.cartList))}),(0,o.default)(n,d.UPDATE_CUR_SHOP_STATUS,function(t,e){var a=e.index,s=void 0===a?-1:a;t.curIndex=s}),(0,o.default)(n,d.DELETE_DB,function(t){t.curIndex>=0&&(t.cartList[t.curIndex].num=0,t.cartList.splice(t.curIndex,1))}),(0,o.default)(n,d.CREATE_DB,function(t,e){t.cartList.push(e)}),(0,o.default)(n,d.ADD_DB,function(t){t.cartList[t.curIndex].num=parseInt(t.cartList[t.curIndex].num),t.cartList[t.curIndex].num++}),(0,o.default)(n,d.REDUCE_DB,function(t){t.cartList[t.curIndex].num=parseInt(t.cartList[t.curIndex].num),t.cartList[t.curIndex].num--,0==t.cartList[t.curIndex].num&&t.cartList.splice(t.curIndex,1)}),(0,o.default)(n,d.CHECK_DB,function(t,e){var a=e.id;t.curIndex=-1;var s=t.cartList;if(s.length)for(var i=0;i<s.length;i++)if(s[i].id==a){t.curIndex=i;break}}),n)},function(t,e){"use strict";t.exports={cartList:localStorage.getItem("vuex_cart")?JSON.parse(localStorage.getItem("vuex_cart")):[],cartInfos:{total_price:0,total_nums:0},curIndex:-1}},function(t,e,a){"use strict";function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}var n=a(237),r=i(n),o=a(245),l=s(o);t.exports={show_loading:function(t){var e=t.commit;return new r.default(function(t,a){e(l.SHOW_LOADING),t()})},hide_loading:function(t){var e=t.commit;return new r.default(function(t,a){e(l.HIDE_LOADING),t()})}}},function(t,e){"use strict";t.exports={}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(909),n=s(i),r=a(908),o=s(r),l=a(906),u=s(l),c=a(905),d=s(c);t.exports={state:n.default,mutations:o.default,getters:u.default,actions:d.default}},function(t,e,a){"use strict";function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}var n,r=a(71),o=i(r),l=a(245),u=s(l);a(73);t.exports=(n={},(0,o.default)(n,u.SHOW_LOADING,function(t){t.ajax_loading=!0}),(0,o.default)(n,u.HIDE_LOADING,function(t){t.ajax_loading=!1}),n)},function(t,e,a){"use strict";a(73);t.exports={ajax_loading:!1}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(20),n=s(i),r=a(155),o=s(r),l=a(902),u=s(l),c=a(918),d=s(c),f=a(913),h=s(f),p=a(923),_=s(p),m=a(907),g=s(m);n.default.use(o.default),t.exports=new o.default.Store({modules:{global:g.default,cart:u.default,router:d.default,leftmenu:h.default,user:_.default}})},function(t,e,a){"use strict";function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}var i=a(246),n=s(i);t.exports={set_menu_open:function(t){var e=t.commit;e(n.SET_MENU_OPEN)},set_menu_close:function(t){var e=t.commit;e(n.SET_MENU_CLOSE)}}},function(t,e){"use strict";t.exports={}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(915),n=s(i),r=a(914),o=s(r),l=a(912),u=s(l),c=a(911),d=s(c);t.exports={state:n.default,mutations:o.default,getters:u.default,actions:d.default}},function(t,e,a){"use strict";function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}var n,r=a(71),o=i(r),l=a(246),u=s(l);t.exports=(n={},(0,o.default)(n,u.SET_MENU_OPEN,function(t){t.width="190px",t.menu_flag=!0}),(0,o.default)(n,u.SET_MENU_CLOSE,function(t){t.width="50px",t.menu_flag=!1}),n)},function(t,e){"use strict";t.exports={width:"190px",menu_flag:!0}},function(t,e,a){"use strict";function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}var i=a(247),n=s(i);t.exports={set_cur_route:function(t,e){var a=t.commit;a(n.SET_CUR_ROUTE,e)}}},function(t,e){"use strict";t.exports={}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(920),n=s(i),r=a(919),o=s(r),l=a(917),u=s(l),c=a(916),d=s(c);t.exports={state:n.default,mutations:o.default,getters:u.default,actions:d.default}},function(t,e,a){"use strict";function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}var n=a(71),r=i(n),o=a(247),l=s(o);t.exports=(0,r.default)({},l.SET_CUR_ROUTE,function(t,e){t.headerCurRouter=e.rootPath,t.leftCurRouter=e.fullPath})},function(t,e){"use strict";t.exports={headerCurRouter:"",leftCurRouter:""}},function(t,e,a){"use strict";function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}var n=a(237),r=i(n),o=a(248),l=s(o);t.exports={update_userinfo:function(t,e){var a=t.commit,s=e.userinfo;return new r.default(function(t,e){a(l.UPDATE_USERINFO,{userinfo:s}),t()})},remove_userinfo:function(t){var e=t.commit;return new r.default(function(t,a){e(l.REMOVE_USERINFO),t()})},update_remumber:function(t,e){var a=t.commit,s=e.remumber_flag,i=e.remumber_login_info;return new r.default(function(t,e){a(l.UPDATE_REMUMBER,{remumber_flag:s,remumber_login_info:i}),t()})},remove_remumber:function(t){var e=t.commit;return new r.default(function(t,a){e(l.REMOVE_REMUMBER),t()})}}},function(t,e){"use strict";t.exports={getUserinfo:function(t){return t.userinfo},getToken:function(t){return t.userinfo&&t.userinfo.token?t.userinfo.token:""},getRemumber:function(t){return t.remumber}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(925),n=s(i),r=a(924),o=s(r),l=a(922),u=s(l),c=a(921),d=s(c);t.exports={state:n.default,mutations:o.default,getters:u.default,actions:d.default}},function(t,e,a){"use strict";function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}var n,r=a(71),o=i(r),l=a(248),u=s(l),c=a(73);t.exports=(n={},(0,o.default)(n,u.UPDATE_USERINFO,function(t,e){t.userinfo=e.userinfo||{},c.store.set("userinfo",t.userinfo)}),(0,o.default)(n,u.REMOVE_USERINFO,function(t){c.store.remove("userinfo"),t.userinfo={}}),(0,o.default)(n,u.UPDATE_REMUMBER,function(t,e){t.remumber.remumber_flag=e.remumber_flag,t.remumber.remumber_login_info=e.remumber_login_info,c.store.set("remumber_flag",t.remumber.remumber_flag),c.store.set("remumber_login_info",t.remumber.remumber_login_info)}),(0,o.default)(n,u.REMOVE_REMUMBER,function(t){c.store.remove("remumber_flag"),c.store.remove("remumber_login_info"),t.remumber.remumber_flag=!1,t.remumber.remumber_login_info={username:"",token:""}}),n)},function(t,e,a){"use strict";var s=a(73);t.exports={userinfo:s.store.get("userinfo")||{},remumber:{remumber_flag:!!s.store.get("remumber_flag"),remumber_login_info:s.store.get("remumber_login_info")||{username:"",token:""}}}},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(34),n=s(i),r=a(20),o=s(r),l=a(364),u=s(l),c=a(411),d=s(c),f=a(72);o.default.use(d.default,u.default),o.default.axios.defaults.baseURL=f.gbs.host,t.exports=function(t,e,a,s){var i=this,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=r.cbFn,u=r.tokenFlag,c=r.errFn,d=r.host,h=r.headers,p=r.axios_opts,_={method:t,url:d||e,headers:h&&"object"===("undefined"==typeof h?"undefined":(0,n.default)(h))?h:{"Content-Type":"application/json "}},m=!0;if(_.url&&_.url.indexOf(f.gbs.host)&&1===this.$store.state.user.userinfo.access_status){var e=_.url.replace(f.gbs.host,""),g=this.$store.state.user.userinfo.api_routers;g&&!g.constructor!==Object&&g[e]||(m=!1)}if(m===!0){if(_["get"===t?"params":"data"]=a,this.$store.dispatch("show_loading"),p&&"object"===("undefined"==typeof p?"undefined":(0,n.default)(p)))for(var v in p)_[v]=p[v];o.default.axios(_).then(function(t){console.log(t),200===t.status?(console.log(t),s(t.data)):l?l(t.data):(f.cbs.statusError.call(i,t.data),u===!0&&c&&c.call(i)),i.$store.dispatch("hide_loading")}).catch(function(t){i.$store.dispatch("hide_loading"),f.cbs.requestError.call(i,t),c&&c.call(i)})}else this.$alert("您没用权限请求该接口！","请求错误",{confirmButtonText:"确定",type:"warning"})}},function(t,e,a){"use strict";t.exports=a(926)},function(t,e,a){"use strict";t.exports=a(929)},function(t,e,a){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var i=a(34),n=s(i),r=a(141),o=s(r),l=a(816),u=s(l),c=a(817),d=s(c),f=a(72),h=function(){function t(){(0,u.default)(this,t),this.store=window.localStorage,this.prefix=f.gbs.db_prefix}return(0,d.default)(t,[{key:"set",value:function(t,e,a){try{e=(0,o.default)(e)}catch(t){e=e}this.store.setItem(this.prefix+t,e),a&&a()}},{key:"get",value:function(t,e){if(!t)throw new Error("没有找到key。");if("object"===("undefined"==typeof t?"undefined":(0,n.default)(t)))throw new Error("key不能是一个对象。");var a=this.store.getItem(this.prefix+t);if(null!==a)try{a=JSON.parse(a)}catch(t){a=a}return a}},{key:"remove",value:function(t){this.store.removeItem(this.prefix+t)}}]),t}();t.exports=new h},function(t,e,a){function s(t){return a(i(t))}function i(t){return n[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var n={"./af":249,"./af.js":249,"./ar":256,"./ar-dz":250,"./ar-dz.js":250,"./ar-kw":251,"./ar-kw.js":251,"./ar-ly":252,"./ar-ly.js":252,"./ar-ma":253,"./ar-ma.js":253,"./ar-sa":254,"./ar-sa.js":254,"./ar-tn":255,"./ar-tn.js":255,"./ar.js":256,"./az":257,"./az.js":257,"./be":258,"./be.js":258,"./bg":259,"./bg.js":259,"./bn":260,"./bn.js":260,"./bo":261,"./bo.js":261,"./br":262,"./br.js":262,"./bs":263,"./bs.js":263,"./ca":264,"./ca.js":264,"./cs":265,"./cs.js":265,"./cv":266,"./cv.js":266,"./cy":267,"./cy.js":267,"./da":268,"./da.js":268,"./de":271,"./de-at":269,"./de-at.js":269,"./de-ch":270,"./de-ch.js":270,"./de.js":271,"./dv":272,"./dv.js":272,"./el":273,"./el.js":273,"./en-au":274,"./en-au.js":274,"./en-ca":275,"./en-ca.js":275,"./en-gb":276,"./en-gb.js":276,"./en-ie":277,"./en-ie.js":277,"./en-nz":278,"./en-nz.js":278,"./eo":279,"./eo.js":279,"./es":281,"./es-do":280,"./es-do.js":280,"./es.js":281,"./et":282,"./et.js":282,"./eu":283,"./eu.js":283,"./fa":284,"./fa.js":284,"./fi":285,"./fi.js":285,"./fo":286,"./fo.js":286,"./fr":289,"./fr-ca":287,"./fr-ca.js":287,"./fr-ch":288,"./fr-ch.js":288,"./fr.js":289,"./fy":290,"./fy.js":290,"./gd":291,"./gd.js":291,"./gl":292,"./gl.js":292,"./gom-latn":293,"./gom-latn.js":293,"./he":294,"./he.js":294,"./hi":295,"./hi.js":295,"./hr":296,"./hr.js":296,"./hu":297,"./hu.js":297,"./hy-am":298,"./hy-am.js":298,"./id":299,"./id.js":299,"./is":300,"./is.js":300,"./it":301,"./it.js":301,"./ja":302,"./ja.js":302,"./jv":303,"./jv.js":303,"./ka":304,"./ka.js":304,"./kk":305,"./kk.js":305,"./km":306,"./km.js":306,"./kn":307,"./kn.js":307,"./ko":308,"./ko.js":308,"./ky":309,"./ky.js":309,"./lb":310,"./lb.js":310,"./lo":311,"./lo.js":311,"./lt":312,"./lt.js":312,"./lv":313,"./lv.js":313,"./me":314,"./me.js":314,"./mi":315,"./mi.js":315,"./mk":316,"./mk.js":316,"./ml":317,"./ml.js":317,"./mr":318,"./mr.js":318,"./ms":320,"./ms-my":319,"./ms-my.js":319,"./ms.js":320,"./my":321,"./my.js":321,"./nb":322,"./nb.js":322,"./ne":323,"./ne.js":323,"./nl":325,"./nl-be":324,"./nl-be.js":324,"./nl.js":325,"./nn":326,"./nn.js":326,"./pa-in":327,"./pa-in.js":327,"./pl":328,"./pl.js":328,"./pt":330,"./pt-br":329,"./pt-br.js":329,"./pt.js":330,"./ro":331,"./ro.js":331,"./ru":332,"./ru.js":332,"./sd":333,"./sd.js":333,"./se":334,"./se.js":334,"./si":335,"./si.js":335,"./sk":336,"./sk.js":336,"./sl":337,"./sl.js":337,"./sq":338,"./sq.js":338,"./sr":340,"./sr-cyrl":339,"./sr-cyrl.js":339,"./sr.js":340,"./ss":341,"./ss.js":341,"./sv":342,"./sv.js":342,"./sw":343,"./sw.js":343,"./ta":344,"./ta.js":344,"./te":345,"./te.js":345,"./tet":346,"./tet.js":346,"./th":347,"./th.js":347,"./tl-ph":348,"./tl-ph.js":348,"./tlh":349,"./tlh.js":349,"./tr":350,"./tr.js":350,"./tzl":351,"./tzl.js":351,"./tzm":353,"./tzm-latn":352,"./tzm-latn.js":352,"./tzm.js":353,"./uk":354,"./uk.js":354,"./ur":355,"./ur.js":355,"./uz":357,"./uz-latn":356,"./uz-latn.js":356,"./uz.js":357,"./vi":358,"./vi.js":358,"./x-pseudo":359,"./x-pseudo.js":359,"./yo":360,"./yo.js":360,"./zh-cn":361,"./zh-cn.js":361,"./zh-hk":362,"./zh-hk.js":362,"./zh-tw":363,"./zh-tw.js":363};s.keys=function(){return Object.keys(n)},s.resolve=i,t.exports=s,s.id=930}]);
  //# sourceMappingURL=app.515ce8c6b959e216cd48.js.map