提交 44a45b92 编写于 作者: M maguohua

页面切换保存组件状态

上级 d7e1e76a
<!DOCTYPE html><html><head><meta charset=utf-8><title>back-manage</title><link href=/manage/static/css/app.e69ecc4bde4792820fa9c0381a41d481.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/manage/static/js/manifest.d1a2aa9b53ab49bb2a0d.js></script><script type=text/javascript src=/manage/static/js/vendor.bdebe48639b924078feb.js></script><script type=text/javascript src=/manage/static/js/app.9d147bc991d6a6165389.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><title>back-manage</title><link href=/manage/static/css/app.e69ecc4bde4792820fa9c0381a41d481.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/manage/static/js/manifest.b165962347fa288d3d29.js></script><script type=text/javascript src=/manage/static/js/vendor.bdebe48639b924078feb.js></script><script type=text/javascript src=/manage/static/js/app.50136cc01320068ee645.js></script></body></html>
\ No newline at end of file
webpackJsonp([16],{187:function(t,e,a){a(470);var i=a(77)(a(354),a(495),"data-v-2bb40f9e",null);t.exports=i.exports},354:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{defaultActive:function(){return this.$route.path.replace("/","")}}}},378:function(t,e,a){e=t.exports=a(177)(!1),e.push([t.i,".allcover[data-v-2bb40f9e]{position:absolute;top:0;right:0}.ctt[data-v-2bb40f9e]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.tb[data-v-2bb40f9e]{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.lr[data-v-2bb40f9e]{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}",""])},470:function(t,e,a){var i=a(378);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(178)("3920caea",i,!0)},495:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"manage_page fillcontain"},[a("el-row",{staticStyle:{height:"100%"}},[a("el-col",{staticStyle:{"min-height":"100%","background-color":"#324057"},attrs:{span:4}},[a("el-menu",{staticStyle:{"min-height":"100%"},attrs:{"default-active":t.defaultActive,theme:"dark",router:""}},[a("el-menu-item",{attrs:{index:"manage"}},[a("i",{staticClass:"el-icon-menu"}),t._v("首页")]),t._v(" "),a("el-submenu",{attrs:{index:"2"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-document"}),t._v("数据管理")]),t._v(" "),a("el-menu-item",{attrs:{index:"userList"}},[t._v("用户列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"shopList"}},[t._v("商家列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"foodList"}},[t._v("食品列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"orderList"}},[t._v("订单列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"adminList"}},[t._v("管理员列表")])],2),t._v(" "),a("el-submenu",{attrs:{index:"3"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-plus"}),t._v("添加数据")]),t._v(" "),a("el-menu-item",{attrs:{index:"addShop"}},[t._v("添加商铺")]),t._v(" "),a("el-menu-item",{attrs:{index:"addGoods"}},[t._v("添加商品")])],2),t._v(" "),a("el-submenu",{attrs:{index:"4"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-star-on"}),t._v("图表")]),t._v(" "),a("el-menu-item",{attrs:{index:"visitor"}},[t._v("用户分布")])],2),t._v(" "),a("el-submenu",{attrs:{index:"5"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-edit"}),t._v("编辑")]),t._v(" "),a("el-menu-item",{attrs:{index:"vueEdit"}},[t._v("文本编辑")])],2),t._v(" "),a("el-submenu",{attrs:{index:"6"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-setting"}),t._v("设置")]),t._v(" "),a("el-menu-item",{attrs:{index:"adminSet"}},[t._v("管理员设置")])],2),t._v(" "),a("el-submenu",{attrs:{index:"7"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-warning"}),t._v("说明")]),t._v(" "),a("el-menu-item",{attrs:{index:"explain"}},[t._v("说明")])],2)],1)],1),t._v(" "),a("el-col",{staticStyle:{height:"100%",overflow:"auto"},attrs:{span:20}},[a("router-view")],1)],1)],1)},staticRenderFns:[]}}});
\ No newline at end of file
webpackJsonp([16],{187:function(t,e,a){a(470);var i=a(77)(a(354),a(495),"data-v-2bb40f9e",null);t.exports=i.exports},354:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{defaultActive:function(){return this.$route.path.replace("/","")}}}},378:function(t,e,a){e=t.exports=a(177)(!1),e.push([t.i,".allcover[data-v-2bb40f9e]{position:absolute;top:0;right:0}.ctt[data-v-2bb40f9e]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.tb[data-v-2bb40f9e]{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.lr[data-v-2bb40f9e]{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}",""])},470:function(t,e,a){var i=a(378);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(178)("3920caea",i,!0)},495:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"manage_page fillcontain"},[a("el-row",{staticStyle:{height:"100%"}},[a("el-col",{staticStyle:{"min-height":"100%","background-color":"#324057"},attrs:{span:4}},[a("el-menu",{staticStyle:{"min-height":"100%"},attrs:{"default-active":t.defaultActive,theme:"dark",router:""}},[a("el-menu-item",{attrs:{index:"manage"}},[a("i",{staticClass:"el-icon-menu"}),t._v("首页")]),t._v(" "),a("el-submenu",{attrs:{index:"2"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-document"}),t._v("数据管理")]),t._v(" "),a("el-menu-item",{attrs:{index:"userList"}},[t._v("用户列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"shopList"}},[t._v("商家列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"foodList"}},[t._v("食品列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"orderList"}},[t._v("订单列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"adminList"}},[t._v("管理员列表")])],2),t._v(" "),a("el-submenu",{attrs:{index:"3"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-plus"}),t._v("添加数据")]),t._v(" "),a("el-menu-item",{attrs:{index:"addShop"}},[t._v("添加商铺")]),t._v(" "),a("el-menu-item",{attrs:{index:"addGoods"}},[t._v("添加商品")])],2),t._v(" "),a("el-submenu",{attrs:{index:"4"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-star-on"}),t._v("图表")]),t._v(" "),a("el-menu-item",{attrs:{index:"visitor"}},[t._v("用户分布")])],2),t._v(" "),a("el-submenu",{attrs:{index:"5"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-edit"}),t._v("编辑")]),t._v(" "),a("el-menu-item",{attrs:{index:"vueEdit"}},[t._v("文本编辑")])],2),t._v(" "),a("el-submenu",{attrs:{index:"6"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-setting"}),t._v("设置")]),t._v(" "),a("el-menu-item",{attrs:{index:"adminSet"}},[t._v("管理员设置")])],2),t._v(" "),a("el-submenu",{attrs:{index:"7"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-warning"}),t._v("说明")]),t._v(" "),a("el-menu-item",{attrs:{index:"explain"}},[t._v("说明")])],2)],1)],1),t._v(" "),a("el-col",{staticStyle:{height:"100%",overflow:"auto"},attrs:{span:20}},[a("keep-alive",[a("router-view")],1)],1)],1)],1)},staticRenderFns:[]}}});
\ No newline at end of file
webpackJsonp([18],{109:function(n,t,e){"use strict";var r=e(47),u=e.n(r),o=e(116),i=e.n(o),c=e(50),a=e.n(c),f=e(112),s=e.n(f),d=e(113),p=e.n(d),h=e(46),l=e.n(h),m=e(79),v=this;t.a=function(){var n=l()(u.a.mark(function n(){var t,e,r,o,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"fetch";return u.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(d=d.toUpperCase(),c=m.a+c,"GET"==d&&(t="",p()(f).forEach(function(n){t+=n+"="+f[n]+"&"}),""!==t&&(t=t.substr(0,t.lastIndexOf("&")),c=c+"?"+t)),!window.fetch||"fetch"!=h){n.next=21;break}return e={credentials:"include",method:d,headers:{Accept:"application/json","Content-Type":"application/json"},mode:"cors",cache:"force-cache"},"POST"==d&&Object.defineProperty(e,"body",{value:s()(f)}),n.prev=6,n.next=9,fetch(c,e);case 9:return r=n.sent,n.next=12,r.json();case 12:return o=n.sent,n.abrupt("return",o);case 16:throw n.prev=16,n.t0=n.catch(6),new Error(n.t0);case 19:n.next=22;break;case 21:return n.abrupt("return",new a.a(function(n,t){var e=void 0;e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject;var r="";"POST"==d&&(r=s()(f)),e.open(d,c,!0),e.setRequestHeader("Content-type","application/x-www-form-urlencoded"),e.send(r),e.onreadystatechange=function(){if(4==e.readyState)if(200==e.status){var r=e.response;"object"!==(void 0===r?"undefined":i()(r))&&(r=JSON.parse(r)),n(r)}else t(e)}}));case 22:case"end":return n.stop()}},n,v,[[6,16]])}));return function(){return n.apply(this,arguments)}}()},110:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e(3),u=e(76),o=e.n(u),i=e(72),c=e(73),a=e(74),f=e.n(a),s=e(75);e.n(s);r.default.config.productionTip=!1,r.default.use(f.a),new r.default({el:"#app",router:i.a,store:c.a,template:"<App/>",components:{App:o.a}})},111:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},168:function(n,t){},174:function(n,t){n.exports={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"fillcontain",attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]}},72:function(n,t,e){"use strict";var r=e(3),u=e(175);r.default.use(u.a);var o=function(n){return e.e(12).then(function(){return n(e(186))}.bind(null,e)).catch(e.oe)},i=function(n){return e.e(16).then(function(){return n(e(187))}.bind(null,e)).catch(e.oe)},c=function(n){return e.e(0).then(function(){return n(e(185))}.bind(null,e)).catch(e.oe)},a=function(n){return e.e(10).then(function(){return n(e(180))}.bind(null,e)).catch(e.oe)},f=function(n){return e.e(11).then(function(){return n(e(179))}.bind(null,e)).catch(e.oe)},s=function(n){return e.e(3).then(function(){return n(e(193))}.bind(null,e)).catch(e.oe)},d=function(n){return e.e(4).then(function(){return n(e(191))}.bind(null,e)).catch(e.oe)},p=function(n){return e.e(6).then(function(){return n(e(184))}.bind(null,e)).catch(e.oe)},h=function(n){return e.e(5).then(function(){return n(e(189))}.bind(null,e)).catch(e.oe)},l=function(n){return e.e(9).then(function(){return n(e(181))}.bind(null,e)).catch(e.oe)},m=function(n){return e.e(1).then(function(){return n(e(194))}.bind(null,e)).catch(e.oe)},v=function(n){return e.e(15).then(function(){return n(e(188))}.bind(null,e)).catch(e.oe)},g=function(n){return e.e(13).then(function(){return n(e(192))}.bind(null,e)).catch(e.oe)},b=function(n){return e.e(2).then(function(){return n(e(195))}.bind(null,e)).catch(e.oe)},w=function(n){return e.e(8).then(function(){return n(e(182))}.bind(null,e)).catch(e.oe)},y=function(n){return e.e(14).then(function(){return n(e(190))}.bind(null,e)).catch(e.oe)},x=function(n){return e.e(7).then(function(){return n(e(183))}.bind(null,e)).catch(e.oe)};t.a=new u.a({routes:[{path:"/",component:o},{path:"/manage",component:i,name:"",children:[{path:"",component:c,meta:[]},{path:"/addShop",component:a,meta:["添加数据","添加商铺"]},{path:"/addGoods",component:f,meta:["添加数据","添加商品"]},{path:"/userList",component:s,meta:["数据管理","用户列表"]},{path:"/shopList",component:d,meta:["数据管理","商家列表"]},{path:"/foodList",component:p,meta:["数据管理","食品列表"]},{path:"/orderList",component:h,meta:["数据管理","订单列表"]},{path:"/adminList",component:l,meta:["数据管理","管理员列表"]},{path:"/visitor",component:m,meta:["图表","用户分布"]},{path:"/newMember",component:v,meta:["图表","用户数据"]},{path:"/uploadImg",component:g,meta:["文本编辑","MarkDown"]},{path:"/vueEdit",component:b,meta:["编辑","文本编辑"]},{path:"/adminSet",component:w,meta:["设置","管理员设置"]},{path:"/sendMessage",component:y,meta:["设置","发送通知"]},{path:"/explain",component:x,meta:["说明","说明"]}]}]})},73:function(n,t,e){"use strict";var r=e(47),u=e.n(r),o=e(46),i=e.n(o),c=e(3),a=e(80),f=e(78);c.default.use(a.a);var s={adminInfo:{avatar:"default.jpg"}},d={saveAdminInfo:function(n,t){n.adminInfo=t}},p={getAdminData:function(n){var t=this,r=n.commit;return i()(u.a.mark(function n(){var o;return u.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e.i(f.a)();case 3:if(o=n.sent,1!=o.status){n.next=8;break}r("saveAdminInfo",o.data),n.next=9;break;case 8:throw new Error(o);case 9:n.next=14;break;case 11:n.prev=11,n.t0=n.catch(0),console.log("您尚未登陆或者session失效");case 14:case"end":return n.stop()}},n,t,[[0,11]])}))()}};t.a=new a.a.Store({state:s,actions:p,mutations:d})},75:function(n,t){},76:function(n,t,e){e(168);var r=e(77)(e(111),e(174),null,null);n.exports=r.exports},78:function(n,t,e){"use strict";var r=e(109);e.d(t,"I",function(){return u}),e.d(t,"b",function(){return o}),e.d(t,"a",function(){return i}),e.d(t,"D",function(){return c}),e.d(t,"H",function(){return a}),e.d(t,"E",function(){return f}),e.d(t,"F",function(){return s}),e.d(t,"G",function(){return d}),e.d(t,"e",function(){return p}),e.d(t,"d",function(){return h}),e.d(t,"q",function(){return l}),e.d(t,"C",function(){return m}),e.d(t,"v",function(){return v}),e.d(t,"z",function(){return g}),e.d(t,"A",function(){return b}),e.d(t,"B",function(){return w}),e.d(t,"s",function(){return y}),e.d(t,"t",function(){return x}),e.d(t,"h",function(){return E}),e.d(t,"r",function(){return O}),e.d(t,"w",function(){return S}),e.d(t,"u",function(){return T}),e.d(t,"m",function(){return k}),e.d(t,"k",function(){return P}),e.d(t,"l",function(){return j}),e.d(t,"n",function(){return L}),e.d(t,"p",function(){return A}),e.d(t,"o",function(){return I}),e.d(t,"y",function(){return M}),e.d(t,"x",function(){return _}),e.d(t,"g",function(){return C}),e.d(t,"f",function(){return D}),e.d(t,"i",function(){return q}),e.d(t,"j",function(){return G}),e.d(t,"c",function(){return H});var u=function(n){return e.i(r.a)("/admin/login",n,"POST")},o=function(){return e.i(r.a)("/admin/singout")},i=function(){return e.i(r.a)("/admin/info")},c=function(n){return e.i(r.a)("/statis/api/"+n+"/count")},a=function(){return e.i(r.a)("/statis/api/count")},f=function(n){return e.i(r.a)("/statis/user/"+n+"/count")},s=function(n){return e.i(r.a)("/statis/order/"+n+"/count")},d=function(n){return e.i(r.a)("/statis/admin/"+n+"/count")},p=function(n){return e.i(r.a)("/admin/all",n)},h=function(){return e.i(r.a)("/admin/count")},l=function(){return e.i(r.a)("/v1/cities",{type:"guess"})},m=function(n){return e.i(r.a)("/shopping/addShop",n,"POST")},v=function(n,t){return e.i(r.a)("/v1/pois",{type:"search",city_id:n,keyword:t})},g=function(n){return e.i(r.a)("/shopping/getcategory/"+n)},b=function(n){return e.i(r.a)("/shopping/addcategory",n,"POST")},w=function(n){return e.i(r.a)("/shopping/addfood",n,"POST")},y=function(n,t){return e.i(r.a)("/shopping/v2/restaurant/category")},x=function(n){return e.i(r.a)("/shopping/restaurants",n)},E=function(n){return e.i(r.a)("/shopping/restaurant/"+n)},O=function(){return e.i(r.a)("/shopping/restaurants/count")},S=function(n){return e.i(r.a)("/shopping/updateshop",n,"POST")},T=function(n){return e.i(r.a)("/shopping/restaurant/"+n,{},"DELETE")},k=function(n){return e.i(r.a)("/shopping/v2/foods",n)},P=function(n){return e.i(r.a)("/shopping/v2/foods/count",n)},j=function(n){return e.i(r.a)("/shopping/v2/menu",n)},L=function(n){return e.i(r.a)("/shopping/v2/menu/"+n)},A=function(n){return e.i(r.a)("/shopping/v2/updatefood",n,"POST")},I=function(n){return e.i(r.a)("/shopping/v2/food/"+n,{},"DELETE")},M=function(n){return e.i(r.a)("/v1/users/list",n)},_=function(n){return e.i(r.a)("/v1/users/count",n)},C=function(n){return e.i(r.a)("/bos/orders",n)},D=function(n){return e.i(r.a)("/bos/orders/count",n)},q=function(n){return e.i(r.a)("/v1/user/"+n)},G=function(n){return e.i(r.a)("/v1/addresse/"+n)},H=function(){return e.i(r.a)("/v1/user/city/count")}},79:function(n,t,e){"use strict";e.d(t,"a",function(){return r}),e.d(t,"b",function(){return u});var r="",u="http://images.cangdu.org/";r="http://cangdu.org:8001"}},[110]);
\ No newline at end of file
webpackJsonp([18],{109:function(n,t,e){"use strict";var r=e(47),u=e.n(r),o=e(116),i=e.n(o),c=e(50),a=e.n(c),f=e(112),s=e.n(f),d=e(113),p=e.n(d),h=e(46),l=e.n(h),m=e(79),v=this;t.a=function(){var n=l()(u.a.mark(function n(){var t,e,r,o,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"fetch";return u.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(d=d.toUpperCase(),c=m.a+c,"GET"==d&&(t="",p()(f).forEach(function(n){t+=n+"="+f[n]+"&"}),""!==t&&(t=t.substr(0,t.lastIndexOf("&")),c=c+"?"+t)),!window.fetch||"fetch"!=h){n.next=21;break}return e={credentials:"include",method:d,headers:{Accept:"application/json","Content-Type":"application/json"},mode:"cors",cache:"force-cache"},"POST"==d&&Object.defineProperty(e,"body",{value:s()(f)}),n.prev=6,n.next=9,fetch(c,e);case 9:return r=n.sent,n.next=12,r.json();case 12:return o=n.sent,n.abrupt("return",o);case 16:throw n.prev=16,n.t0=n.catch(6),new Error(n.t0);case 19:n.next=22;break;case 21:return n.abrupt("return",new a.a(function(n,t){var e=void 0;e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject;var r="";"POST"==d&&(r=s()(f)),e.open(d,c,!0),e.setRequestHeader("Content-type","application/x-www-form-urlencoded"),e.send(r),e.onreadystatechange=function(){if(4==e.readyState)if(200==e.status){var r=e.response;"object"!==(void 0===r?"undefined":i()(r))&&(r=JSON.parse(r)),n(r)}else t(e)}}));case 22:case"end":return n.stop()}},n,v,[[6,16]])}));return function(){return n.apply(this,arguments)}}()},110:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e(3),u=e(76),o=e.n(u),i=e(72),c=e(73),a=e(74),f=e.n(a),s=e(75);e.n(s);r.default.config.productionTip=!1,r.default.use(f.a),new r.default({el:"#app",router:i.a,store:c.a,template:"<App/>",components:{App:o.a}})},111:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},168:function(n,t){},174:function(n,t){n.exports={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"fillcontain",attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]}},72:function(n,t,e){"use strict";var r=e(3),u=e(175);r.default.use(u.a);var o=function(n){return e.e(12).then(function(){return n(e(186))}.bind(null,e)).catch(e.oe)},i=function(n){return e.e(16).then(function(){return n(e(187))}.bind(null,e)).catch(e.oe)},c=function(n){return e.e(0).then(function(){return n(e(185))}.bind(null,e)).catch(e.oe)},a=function(n){return e.e(10).then(function(){return n(e(180))}.bind(null,e)).catch(e.oe)},f=function(n){return e.e(11).then(function(){return n(e(179))}.bind(null,e)).catch(e.oe)},s=function(n){return e.e(3).then(function(){return n(e(193))}.bind(null,e)).catch(e.oe)},d=function(n){return e.e(4).then(function(){return n(e(191))}.bind(null,e)).catch(e.oe)},p=function(n){return e.e(6).then(function(){return n(e(184))}.bind(null,e)).catch(e.oe)},h=function(n){return e.e(5).then(function(){return n(e(189))}.bind(null,e)).catch(e.oe)},l=function(n){return e.e(9).then(function(){return n(e(181))}.bind(null,e)).catch(e.oe)},m=function(n){return e.e(1).then(function(){return n(e(194))}.bind(null,e)).catch(e.oe)},v=function(n){return e.e(15).then(function(){return n(e(188))}.bind(null,e)).catch(e.oe)},g=function(n){return e.e(13).then(function(){return n(e(192))}.bind(null,e)).catch(e.oe)},b=function(n){return e.e(2).then(function(){return n(e(195))}.bind(null,e)).catch(e.oe)},w=function(n){return e.e(8).then(function(){return n(e(182))}.bind(null,e)).catch(e.oe)},y=function(n){return e.e(14).then(function(){return n(e(190))}.bind(null,e)).catch(e.oe)},x=function(n){return e.e(7).then(function(){return n(e(183))}.bind(null,e)).catch(e.oe)},E=[{path:"/",component:o},{path:"/manage",component:i,name:"",children:[{path:"",component:c,meta:[]},{path:"/addShop",component:a,meta:["添加数据","添加商铺"]},{path:"/addGoods",component:f,meta:["添加数据","添加商品"]},{path:"/userList",component:s,meta:["数据管理","用户列表"]},{path:"/shopList",component:d,meta:["数据管理","商家列表"]},{path:"/foodList",component:p,meta:["数据管理","食品列表"]},{path:"/orderList",component:h,meta:["数据管理","订单列表"]},{path:"/adminList",component:l,meta:["数据管理","管理员列表"]},{path:"/visitor",component:m,meta:["图表","用户分布"]},{path:"/newMember",component:v,meta:["图表","用户数据"]},{path:"/uploadImg",component:g,meta:["文本编辑","MarkDown"]},{path:"/vueEdit",component:b,meta:["编辑","文本编辑"]},{path:"/adminSet",component:w,meta:["设置","管理员设置"]},{path:"/sendMessage",component:y,meta:["设置","发送通知"]},{path:"/explain",component:x,meta:["说明","说明"]}]}];t.a=new u.a({routes:E,strict:!1})},73:function(n,t,e){"use strict";var r=e(47),u=e.n(r),o=e(46),i=e.n(o),c=e(3),a=e(80),f=e(78);c.default.use(a.a);var s={adminInfo:{avatar:"default.jpg"}},d={saveAdminInfo:function(n,t){n.adminInfo=t}},p={getAdminData:function(n){var t=this,r=n.commit;return i()(u.a.mark(function n(){var o;return u.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e.i(f.a)();case 3:if(o=n.sent,1!=o.status){n.next=8;break}r("saveAdminInfo",o.data),n.next=9;break;case 8:throw new Error(o);case 9:n.next=14;break;case 11:n.prev=11,n.t0=n.catch(0),console.log("您尚未登陆或者session失效");case 14:case"end":return n.stop()}},n,t,[[0,11]])}))()}};t.a=new a.a.Store({state:s,actions:p,mutations:d})},75:function(n,t){},76:function(n,t,e){e(168);var r=e(77)(e(111),e(174),null,null);n.exports=r.exports},78:function(n,t,e){"use strict";var r=e(109);e.d(t,"I",function(){return u}),e.d(t,"b",function(){return o}),e.d(t,"a",function(){return i}),e.d(t,"D",function(){return c}),e.d(t,"H",function(){return a}),e.d(t,"E",function(){return f}),e.d(t,"F",function(){return s}),e.d(t,"G",function(){return d}),e.d(t,"e",function(){return p}),e.d(t,"d",function(){return h}),e.d(t,"q",function(){return l}),e.d(t,"C",function(){return m}),e.d(t,"v",function(){return v}),e.d(t,"z",function(){return g}),e.d(t,"A",function(){return b}),e.d(t,"B",function(){return w}),e.d(t,"s",function(){return y}),e.d(t,"t",function(){return x}),e.d(t,"h",function(){return E}),e.d(t,"r",function(){return O}),e.d(t,"w",function(){return S}),e.d(t,"u",function(){return T}),e.d(t,"m",function(){return k}),e.d(t,"k",function(){return P}),e.d(t,"l",function(){return j}),e.d(t,"n",function(){return L}),e.d(t,"p",function(){return A}),e.d(t,"o",function(){return I}),e.d(t,"y",function(){return M}),e.d(t,"x",function(){return _}),e.d(t,"g",function(){return C}),e.d(t,"f",function(){return D}),e.d(t,"i",function(){return q}),e.d(t,"j",function(){return G}),e.d(t,"c",function(){return H});var u=function(n){return e.i(r.a)("/admin/login",n,"POST")},o=function(){return e.i(r.a)("/admin/singout")},i=function(){return e.i(r.a)("/admin/info")},c=function(n){return e.i(r.a)("/statis/api/"+n+"/count")},a=function(){return e.i(r.a)("/statis/api/count")},f=function(n){return e.i(r.a)("/statis/user/"+n+"/count")},s=function(n){return e.i(r.a)("/statis/order/"+n+"/count")},d=function(n){return e.i(r.a)("/statis/admin/"+n+"/count")},p=function(n){return e.i(r.a)("/admin/all",n)},h=function(){return e.i(r.a)("/admin/count")},l=function(){return e.i(r.a)("/v1/cities",{type:"guess"})},m=function(n){return e.i(r.a)("/shopping/addShop",n,"POST")},v=function(n,t){return e.i(r.a)("/v1/pois",{type:"search",city_id:n,keyword:t})},g=function(n){return e.i(r.a)("/shopping/getcategory/"+n)},b=function(n){return e.i(r.a)("/shopping/addcategory",n,"POST")},w=function(n){return e.i(r.a)("/shopping/addfood",n,"POST")},y=function(n,t){return e.i(r.a)("/shopping/v2/restaurant/category")},x=function(n){return e.i(r.a)("/shopping/restaurants",n)},E=function(n){return e.i(r.a)("/shopping/restaurant/"+n)},O=function(){return e.i(r.a)("/shopping/restaurants/count")},S=function(n){return e.i(r.a)("/shopping/updateshop",n,"POST")},T=function(n){return e.i(r.a)("/shopping/restaurant/"+n,{},"DELETE")},k=function(n){return e.i(r.a)("/shopping/v2/foods",n)},P=function(n){return e.i(r.a)("/shopping/v2/foods/count",n)},j=function(n){return e.i(r.a)("/shopping/v2/menu",n)},L=function(n){return e.i(r.a)("/shopping/v2/menu/"+n)},A=function(n){return e.i(r.a)("/shopping/v2/updatefood",n,"POST")},I=function(n){return e.i(r.a)("/shopping/v2/food/"+n,{},"DELETE")},M=function(n){return e.i(r.a)("/v1/users/list",n)},_=function(n){return e.i(r.a)("/v1/users/count",n)},C=function(n){return e.i(r.a)("/bos/orders",n)},D=function(n){return e.i(r.a)("/bos/orders/count",n)},q=function(n){return e.i(r.a)("/v1/user/"+n)},G=function(n){return e.i(r.a)("/v1/addresse/"+n)},H=function(){return e.i(r.a)("/v1/user/city/count")}},79:function(n,t,e){"use strict";e.d(t,"a",function(){return r}),e.d(t,"b",function(){return u});var r="",u="http://images.cangdu.org/";r="http://cangdu.org:8001"}},[110]);
\ No newline at end of file
!function(e){function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,o,a){for(var f,b,d,i=0,u=[];i<t.length;i++)b=t[i],c[b]&&u.push(c[b][0]),c[b]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(t,o,a);u.length;)u.shift()();if(a)for(i=0;i<a.length;i++)d=r(r.s=a[i]);return d};var t={},c={19:0};r.e=function(e){function n(){a.onerror=a.onload=null,clearTimeout(f);var r=c[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}if(0===c[e])return Promise.resolve();if(c[e])return c[e][2];var t=new Promise(function(r,n){c[e]=[r,n]});c[e][2]=t;var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,r.nc&&a.setAttribute("nonce",r.nc),a.src=r.p+"static/js/"+e+"."+{0:"20300d5bc3b9456c353c",1:"1bfa0ac6e1d4e0ee5134",2:"860536530d170b49c3fa",3:"8723ecc4632f88306ec5",4:"360f6f8b8adb0ab782cb",5:"34e8f4ef52da44df92cb",6:"a61e815d6fef0f2153b0",7:"76a4bff9e994afb5c7b8",8:"5a1693cfb77becb6f3fe",9:"e79701f56bcccb114e02",10:"d5a6f51606d501eb9a2c",11:"93bf3a0c88abd12435b2",12:"e814f4f5fc73d3bd9888",13:"921f4e2dbdd56c821755",14:"c2427d1728c4cd3aad81",15:"17b52985aabe4614ea11",16:"597063024b15c1005b15",17:"bdebe48639b924078feb",18:"9d147bc991d6a6165389"}[e]+".js";var f=setTimeout(n,12e4);return a.onerror=a.onload=n,o.appendChild(a),t},r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="/manage/",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,o,a){for(var f,b,d,i=0,u=[];i<t.length;i++)b=t[i],c[b]&&u.push(c[b][0]),c[b]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(t,o,a);u.length;)u.shift()();if(a)for(i=0;i<a.length;i++)d=r(r.s=a[i]);return d};var t={},c={19:0};r.e=function(e){function n(){a.onerror=a.onload=null,clearTimeout(f);var r=c[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}if(0===c[e])return Promise.resolve();if(c[e])return c[e][2];var t=new Promise(function(r,n){c[e]=[r,n]});c[e][2]=t;var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,r.nc&&a.setAttribute("nonce",r.nc),a.src=r.p+"static/js/"+e+"."+{0:"20300d5bc3b9456c353c",1:"1bfa0ac6e1d4e0ee5134",2:"860536530d170b49c3fa",3:"8723ecc4632f88306ec5",4:"360f6f8b8adb0ab782cb",5:"34e8f4ef52da44df92cb",6:"a61e815d6fef0f2153b0",7:"76a4bff9e994afb5c7b8",8:"5a1693cfb77becb6f3fe",9:"e79701f56bcccb114e02",10:"d5a6f51606d501eb9a2c",11:"93bf3a0c88abd12435b2",12:"e814f4f5fc73d3bd9888",13:"921f4e2dbdd56c821755",14:"c2427d1728c4cd3aad81",15:"17b52985aabe4614ea11",16:"41a481965b105bcd743d",17:"bdebe48639b924078feb",18:"50136cc01320068ee645"}[e]+".js";var f=setTimeout(n,12e4);return a.onerror=a.onload=n,o.appendChild(a),t},r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="/manage/",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
<template>
<div id="app" class="fillcontain">
<router-view></router-view>
<router-view></router-view>
</div>
</template>
......
......@@ -5,9 +5,9 @@ import store from './store/'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
Vue.config.productionTip = false
Vue.config.productionTip = false;
Vue.use(ElementUI)
Vue.use(ElementUI);
new Vue({
el: '#app',
......
......@@ -39,7 +39,9 @@
</el-menu>
</el-col>
<el-col :span="20" style="height: 100%;overflow: auto;">
<router-view></router-view>
<keep-alive>
<router-view></router-view>
</keep-alive>
</el-col>
</el-row>
</div>
......
......@@ -21,78 +21,80 @@ const adminSet = r => require.ensure([], () => r(require('@/page/adminSet')), 'a
const sendMessage = r => require.ensure([], () => r(require('@/page/sendMessage')), 'sendMessage');
const explain = r => require.ensure([], () => r(require('@/page/explain')), 'explain');
const routes = [
{
path: '/',
component: login
},
{
path: '/manage',
component: manage,
name: '',
children: [{
path: '',
component: home,
meta: [],
},{
path: '/addShop',
component: addShop,
meta: ['添加数据', '添加商铺'],
},{
path: '/addGoods',
component: addGoods,
meta: ['添加数据', '添加商品'],
},{
path: '/userList',
component: userList,
meta: ['数据管理', '用户列表'],
},{
path: '/shopList',
component: shopList,
meta: ['数据管理', '商家列表'],
},{
path: '/foodList',
component: foodList,
meta: ['数据管理', '食品列表'],
},{
path: '/orderList',
component: orderList,
meta: ['数据管理', '订单列表'],
},{
path: '/adminList',
component: adminList,
meta: ['数据管理', '管理员列表'],
},{
path: '/visitor',
component: visitor,
meta: ['图表', '用户分布'],
},{
path: '/newMember',
component: newMember,
meta: ['图表', '用户数据'],
},{
path: '/uploadImg',
component: uploadImg,
meta: ['文本编辑', 'MarkDown'],
},{
path: '/vueEdit',
component: vueEdit,
meta: ['编辑', '文本编辑'],
},{
path: '/adminSet',
component: adminSet,
meta: ['设置', '管理员设置'],
},{
path: '/sendMessage',
component: sendMessage,
meta: ['设置', '发送通知'],
},{
path: '/explain',
component: explain,
meta: ['说明', '说明'],
}]
}
]
export default new Router({
routes: [
{
path: '/',
component: login
},
{
path: '/manage',
component: manage,
name: '',
children: [{
path: '',
component: home,
meta: [],
},{
path: '/addShop',
component: addShop,
meta: ['添加数据', '添加商铺'],
},{
path: '/addGoods',
component: addGoods,
meta: ['添加数据', '添加商品'],
},{
path: '/userList',
component: userList,
meta: ['数据管理', '用户列表'],
},{
path: '/shopList',
component: shopList,
meta: ['数据管理', '商家列表'],
},{
path: '/foodList',
component: foodList,
meta: ['数据管理', '食品列表'],
},{
path: '/orderList',
component: orderList,
meta: ['数据管理', '订单列表'],
},{
path: '/adminList',
component: adminList,
meta: ['数据管理', '管理员列表'],
},{
path: '/visitor',
component: visitor,
meta: ['图表', '用户分布'],
},{
path: '/newMember',
component: newMember,
meta: ['图表', '用户数据'],
},{
path: '/uploadImg',
component: uploadImg,
meta: ['文本编辑', 'MarkDown'],
},{
path: '/vueEdit',
component: vueEdit,
meta: ['编辑', '文本编辑'],
},{
path: '/adminSet',
component: adminSet,
meta: ['设置', '管理员设置'],
},{
path: '/sendMessage',
component: sendMessage,
meta: ['设置', '发送通知'],
},{
path: '/explain',
component: explain,
meta: ['说明', '说明'],
}]
}
]
routes,
strict: process.env.NODE_ENV !== 'production',
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册