| 1 |
- (function(e){function t(t){for(var o,r,l=t[0],u=t[1],c=t[2],d=0,s=[];d<l.length;d++)r=l[d],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&s.push(a[r][0]),a[r]=0;for(o in u)Object.prototype.hasOwnProperty.call(u,o)&&(e[o]=u[o]);f&&f(t);while(s.length)s.shift()();return i.push.apply(i,c||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],o=!0,r=1;r<n.length;r++){var l=n[r];0!==a[l]&&(o=!1)}o&&(i.splice(t--,1),e=u(u.s=n[0]))}return e}var o={},r={app:0},a={app:0},i=[];function l(e){return u.p+"static/js/"+({403:"403",404:"404",chart:"chart",dashboard:"dashboard","donate~editor":"donate~editor",donate:"donate",editor:"editor",drag:"drag",dragdialog:"dragdialog",form:"form",home:"home",i18n:"i18n",icon:"icon",login:"login",markdown:"markdown",permission:"permission",table:"table",tabs:"tabs",upload:"upload"}[e]||e)+"."+{403:"14819053",404:"2ce30009",chart:"6f72ed9d",dashboard:"ee8a6320","donate~editor":"c135937d",donate:"4562b97c",editor:"7016ee31",drag:"1f1fe229",dragdialog:"3fff67e3",form:"a134ea8f",home:"e85b97f5",i18n:"5d7c9928",icon:"49e0fb15",login:"b43d53f7",markdown:"672eb49b",permission:"1afedba4",table:"68cd0664",tabs:"02a62036",upload:"637e9e9c"}[e]+".js"}function u(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={403:1,404:1,chart:1,dashboard:1,"donate~editor":1,donate:1,editor:1,drag:1,home:1,i18n:1,icon:1,login:1,markdown:1,permission:1,table:1,tabs:1,upload:1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="static/css/"+({403:"403",404:"404",chart:"chart",dashboard:"dashboard","donate~editor":"donate~editor",donate:"donate",editor:"editor",drag:"drag",dragdialog:"dragdialog",form:"form",home:"home",i18n:"i18n",icon:"icon",login:"login",markdown:"markdown",permission:"permission",table:"table",tabs:"tabs",upload:"upload"}[e]||e)+"."+{403:"c0a72452",404:"1ecdb1c9",chart:"97ce4739",dashboard:"00d1b39a","donate~editor":"1f0a25b2",donate:"b4c4bd8b",editor:"ba996960",drag:"1e417d77",dragdialog:"31d6cfe0",form:"31d6cfe0",home:"32cf4d8d",i18n:"01cc2333",icon:"3b04e6fe",login:"2ad1457b",markdown:"0c7e69f1",permission:"e35d7ec1",table:"4f5a0b05",tabs:"aa11ab42",upload:"8837f3cd"}[e]+".css",a=u.p+o,i=document.getElementsByTagName("link"),l=0;l<i.length;l++){var c=i[l],d=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(d===o||d===a))return t()}var s=document.getElementsByTagName("style");for(l=0;l<s.length;l++){c=s[l],d=c.getAttribute("data-href");if(d===o||d===a)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var o=t&&t.target&&t.target.src||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=o,delete r[e],f.parentNode.removeChild(f),n(i)},f.href=a;var m=document.getElementsByTagName("head")[0];m.appendChild(f)})).then((function(){r[e]=0})));var o=a[e];if(0!==o)if(o)t.push(o[2]);else{var i=new Promise((function(t,n){o=a[e]=[t,n]}));t.push(o[2]=i);var c,d=document.createElement("script");d.charset="utf-8",d.timeout=120,u.nc&&d.setAttribute("nonce",u.nc),d.src=l(e);var s=new Error;c=function(t){d.onerror=d.onload=null,clearTimeout(f);var n=a[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",s.name="ChunkLoadError",s.type=o,s.request=r,n[1](s)}a[e]=void 0}};var f=setTimeout((function(){c({type:"timeout",target:d})}),12e4);d.onerror=d.onload=c,document.head.appendChild(d)}return Promise.all(t)},u.m=e,u.c=o,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)u.d(n,o,function(t){return e[t]}.bind(null,o));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="",u.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],d=c.push.bind(c);c.push=t,c=c.slice();for(var s=0;s<c.length;s++)t(c[s]);var f=d;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"034f":function(e,t,n){"use strict";var o=n("85ec"),r=n.n(o);r.a},4360:function(e,t,n){"use strict";var o=n("2b0e"),r=n("2f62");o["default"].use(r["a"]);var a=new r["a"].Store({state:{token:"",userInfo:null,menus:null},mutations:{setToken:function(e,t){e.token=t},setUserInfo:function(e,t){e.userInfo=t},setMenus:function(e,t){e.menus=t}}});t["a"]=a},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var o=n("2b0e"),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},a=[],i=(n("034f"),n("2877")),l={},u=Object(i["a"])(l,r,a,!1,null,null,null),c=u.exports,d=n("8c4f");o["default"].use(d["a"]);var s=new d["a"]({routes:[{path:"/",redirect:"/system/index/index"},{path:"/",component:function(){return n.e("home").then(n.bind(null,"bfe9"))},meta:{title:"自述文件"},children:[{path:"/system/index/index",component:function(){return n.e("dashboard").then(n.bind(null,"e2ad"))},meta:{title:"系统首页"}},{path:"/icon",component:function(){return n.e("icon").then(n.bind(null,"796c"))},meta:{title:"自定义图标"}},{path:"/table",component:function(){return n.e("table").then(n.bind(null,"3e92"))},meta:{title:"基础表格"}},{path:"/tabs",component:function(){return n.e("tabs").then(n.bind(null,"3a5b"))},meta:{title:"tab选项卡"}},{path:"/form",component:function(){return n.e("form").then(n.bind(null,"ec6b"))},meta:{title:"基本表单"}},{path:"/editor",component:function(){return Promise.all([n.e("donate~editor"),n.e("editor")]).then(n.bind(null,"ae84"))},meta:{title:"富文本编辑器"}},{path:"/markdown",component:function(){return n.e("markdown").then(n.bind(null,"36b9"))},meta:{title:"markdown编辑器"}},{path:"/upload",component:function(){return n.e("upload").then(n.bind(null,"a727"))},meta:{title:"文件上传"}},{path:"/charts",component:function(){return n.e("chart").then(n.bind(null,"026e"))},meta:{title:"schart图表"}},{path:"/drag",component:function(){return n.e("drag").then(n.bind(null,"2cbf"))},meta:{title:"拖拽列表"}},{path:"/dialog",component:function(){return n.e("dragdialog").then(n.bind(null,"0c3b"))},meta:{title:"拖拽弹框"}},{path:"/i18n",component:function(){return n.e("i18n").then(n.bind(null,"fa46"))},meta:{title:"国际化"}},{path:"/permission",component:function(){return n.e("permission").then(n.bind(null,"38d5"))},meta:{title:"权限测试",permission:!0}},{path:"/404",component:function(){return n.e("404").then(n.bind(null,"5b5e"))},meta:{title:"404"}},{path:"/403",component:function(){return n.e("403").then(n.bind(null,"9ebe"))},meta:{title:"403"}},{path:"/donate",component:function(){return Promise.all([n.e("donate~editor"),n.e("donate")]).then(n.bind(null,"8c81"))},meta:{title:"支持作者"}},{path:"/demo",component:function(){return Promise.all([n.e("donate~editor"),n.e("donate")]).then(n.bind(null,"f715"))},meta:{title:"测试页面"}},{path:"/system/auth/user-list",component:function(){return Promise.all([n.e("donate~editor"),n.e("donate")]).then(n.bind(null,"c3b0"))},meta:{title:"管理员管理"}},{path:"/system/auth/adminlog",component:function(){return Promise.all([n.e("donate~editor"),n.e("donate")]).then(n.bind(null,"12c7"))},meta:{title:"管理员日志"}},{path:"/system/auth/role-list",component:function(){return Promise.all([n.e("donate~editor"),n.e("donate")]).then(n.bind(null,"e22f"))},meta:{title:"角色组"}},{path:"/system/auth/menu-list",component:function(){return Promise.all([n.e("donate~editor"),n.e("donate")]).then(n.bind(null,"e663"))},meta:{title:"菜单管理"}},{path:"/system/cms/menu-list",component:function(){return Promise.all([n.e("donate~editor"),n.e("donate")]).then(n.bind(null,"e9ab"))},meta:{title:"栏目管理"}},{path:"/system/cms/news-list",component:function(){return Promise.all([n.e("donate~editor"),n.e("donate")]).then(n.bind(null,"ff83"))},meta:{title:"内容管理"}},{path:"/system/cms/mode-list",component:function(){return Promise.all([n.e("donate~editor"),n.e("donate")]).then(n.bind(null,"66d2"))},meta:{title:"模型管理"}},{path:"/system/cms/single-list",component:function(){return Promise.all([n.e("donate~editor"),n.e("donate")]).then(n.bind(null,"8d51"))},meta:{title:"单页管理"}},{path:"/system/cms/special-list",component:function(){return Promise.all([n.e("donate~editor"),n.e("donate")]).then(n.bind(null,"acfb"))},meta:{title:"专题管理"}}]},{path:"/login",component:function(){return n.e("login").then(n.bind(null,"0290"))},meta:{title:"登录"}},{path:"*",redirect:"/404"}]}),f=n("5c96"),m=n.n(f),p=n("a925"),h=n("4360"),b={zh:{i18n:{breadcrumb:"国际化产品",tips:"通过切换语言按钮,来改变当前内容的语言。",btn:"切换英文",title1:"常用用法",p1:"要是你把你的秘密告诉了风,那就别怪风把它带给树。",p2:"没有什么比信念更能支撑我们度过艰难的时光了。",p3:"只要能把自己的事做好,并让自己快乐,你就领先于大多数人了。",title2:"组件插值",info:"Element组件需要国际化,请参考 {action}。",value:"文档"}},en:{i18n:{breadcrumb:"International Products",tips:"Click on the button to change the current language. ",btn:"Switch Chinese",title1:"Common usage",p1:"If you reveal your secrets to the wind you should not blame the wind for revealing them to the trees.",p2:"Nothing can help us endure dark times better than our faith. ",p3:"If you can do what you do best and be happy, you're further along in life than most people.",title2:"Component interpolation",info:"The default language of Element is Chinese. If you wish to use another language, please refer to the {action}.",value:"documentation"}}};n("0fae"),n("d21e"),n("a481"),n("6762"),n("2fdb");o["default"].directive("dialogDrag",{bind:function(e,t,n,o){var r=e.querySelector(".el-dialog__header"),a=e.querySelector(".el-dialog");r.style.cssText+=";cursor:move;",a.style.cssText+=";top:0px;";var i=function(){return window.document.currentStyle?function(e,t){return e.currentStyle[t]}:function(e,t){return getComputedStyle(e,!1)[t]}}();r.onmousedown=function(e){var t=e.clientX-r.offsetLeft,n=e.clientY-r.offsetTop,o=document.body.clientWidth,l=document.documentElement.clientHeight,u=a.offsetWidth,c=a.offsetHeight,d=a.offsetLeft,s=o-a.offsetLeft-u,f=a.offsetTop,m=l-a.offsetTop-c,p=i(a,"left"),h=i(a,"top");p.includes("%")?(p=+document.body.clientWidth*(+p.replace(/\%/g,"")/100),h=+document.body.clientHeight*(+h.replace(/\%/g,"")/100)):(p=+p.replace(/\px/g,""),h=+h.replace(/\px/g,"")),document.onmousemove=function(e){var o=e.clientX-t,r=e.clientY-n;-o>d?o=-d:o>s&&(o=s),-r>f?r=-f:r>m&&(r=m),a.style.cssText+=";left:".concat(o+p,"px;top:").concat(r+h,"px;")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}});n("db4d");var g=n("6fa2"),v=n("4b00");o["default"].config.productionTip=!1,o["default"].use(p["a"]),o["default"].use(m.a,{size:"small"});var y=new p["a"]({locale:"zh",messages:b});h["a"].state.token||h["a"].commit("setToken",g["a"].getToken()),s.beforeEach((function(e,t,n){document.title="后台管理-".concat(e.meta.title);var r=h["a"].state.token;r||"/login"===e.path?r&&"/login"==e.path?n("/"):e.meta.permission?r?n():n("/403"):navigator.userAgent.indexOf("MSIE")>-1&&"/editor"===e.path?o["default"].prototype.$alert("vue-quill-editor组件不兼容IE10及以下浏览器,请使用更高版本的浏览器查看","浏览器不兼容通知",{confirmButtonText:"确定"}):n():n("/login")})),o["default"].use(v["a"]),new o["default"]({router:s,i18n:y,store:h["a"],render:function(e){return e(c)}}).$mount("#app")},"6fa2":function(e,t,n){"use strict";(function(e){n("ac6a"),n("456d");var o=n("b775"),r=n("4360"),a=n("5a0c"),i=n.n(a),l=n("5c96"),u=n("2b0e");function c(){var e="",t=localStorage.getItem("token");if(null!==t){var n=JSON.parse(t),o=Math.ceil((new Date).getTime()/1e3);n.timeLeft-o>0&&(n.timeLeft=o+604800,e=n.token,localStorage.setItem("token",JSON.stringify(n)))}else{var r=sessionStorage.getItem("token");e=null===r?"":r}return e}function d(e,t){if(t){var n=Math.ceil((new Date).getTime()/1e3),o={timeLeft:n+604800,token:e};localStorage.setItem("token",JSON.stringify(o))}else sessionStorage.setItem("token",e)}function s(){this.loadingInstance=null}s.prototype.config=function(e){var t={headers:{Authorization:"Bearer "+r["a"].state.token}};return e&&(t=Object.assign(t,e)),t},s.prototype.get=function(t,n,r){var a=this;return e.isObject(n)&&!e.isEmpty(n)&&(/\?/.test(t)?t+="&"+p(n):t+="?"+p(n)),r=this.config(r),o["a"].get(t,r).then((function(e){return a.loadingClose(),e}))},s.prototype.post=function(e,t,n){var r=this;return n=this.config(n),o["a"].post(e,t,n).then((function(e){return r.loadingClose(),e}))},s.prototype.loadingClose=function(){var t=this;e.isNull(this.loadingInstance)||u["default"].nextTick((function(){t.loadingInstance.close(),t.loadingInstance=null}))},s.prototype.loading=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e&&(this.loadingInstance=l["Loading"].service({background:"rgba(0, 0, 0, 0)"})),this};var f=new s;function m(e){return/^1[3456789]\d{9}$/.test(e)}function p(e){return Object.keys(e).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&")}function h(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return e.isString(t)||e.isNumber(t)?(t+="",length=t.length,10==length?i.a.unix(t).format(n):13==length?i.a.unix(t/1e3).format(n):""):""}t["a"]={getToken:c,setToken:d,request:f,checkMobile:m,objectToQueryString:p,dateFormat:h}}).call(this,n("2ef0"))},"85ec":function(e,t,n){},b775:function(e,t,n){"use strict";var o=n("bc3a"),r=n.n(o),a="http://47.107.158.252:8200",i={serverUrl:a},l=r.a.create({baseURL:i.serverUrl,headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}});l.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(e)})),l.interceptors.response.use((function(e){if(200===e.status)return e.data;Promise.reject(new Error("响应状态码错误"))}),(function(e){return Promise.reject(e)}));t["a"]=l},d21e:function(e,t,n){}});
|