app.dbb75526.js 9.8 KB

1
  1. (function(e){function n(n){for(var r,o,u=n[0],c=n[1],p=n[2],s=0,l=[];s<u.length;s++)o=u[s],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&l.push(a[o][0]),a[o]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);f&&f(n);while(l.length)l.shift()();return i.push.apply(i,p||[]),t()}function t(){for(var e,n=0;n<i.length;n++){for(var t=i[n],r=!0,o=1;o<t.length;o++){var u=t[o];0!==a[u]&&(r=!1)}r&&(i.splice(n--,1),e=c(c.s=t[0]))}return e}var r={},o={app:0},a={app:0},i=[];function u(e){return c.p+"js/"+({"group-app":"group-app","group-controlApp":"group-controlApp","group-mainPage":"group-mainPage"}[e]||e)+"."+{"group-app":"f7e1714e","group-controlApp":"fbd84220","group-mainPage":"6686df6a"}[e]+".js"}function c(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,c),t.l=!0,t.exports}c.e=function(e){var n=[],t={"group-app":1,"group-controlApp":1,"group-mainPage":1};o[e]?n.push(o[e]):0!==o[e]&&t[e]&&n.push(o[e]=new Promise((function(n,t){for(var r="css/"+({"group-app":"group-app","group-controlApp":"group-controlApp","group-mainPage":"group-mainPage"}[e]||e)+"."+{"group-app":"941369c8","group-controlApp":"f696243f","group-mainPage":"b613ded6"}[e]+".css",a=c.p+r,i=document.getElementsByTagName("link"),u=0;u<i.length;u++){var p=i[u],s=p.getAttribute("data-href")||p.getAttribute("href");if("stylesheet"===p.rel&&(s===r||s===a))return n()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){p=l[u],s=p.getAttribute("data-href");if(s===r||s===a)return n()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=n,f.onerror=function(n){var r=n&&n.target&&n.target.src||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=r,delete o[e],f.parentNode.removeChild(f),t(i)},f.href=a;var d=document.getElementsByTagName("head")[0];d.appendChild(f)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((function(n,t){r=a[e]=[n,t]}));n.push(r[2]=i);var p,s=document.createElement("script");s.charset="utf-8",s.timeout=120,c.nc&&s.setAttribute("nonce",c.nc),s.src=u(e);var l=new Error;p=function(n){s.onerror=s.onload=null,clearTimeout(f);var t=a[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",l.name="ChunkLoadError",l.type=r,l.request=o,t[1](l)}a[e]=void 0}};var f=setTimeout((function(){p({type:"timeout",target:s})}),12e4);s.onerror=s.onload=p,document.head.appendChild(s)}return Promise.all(n)},c.m=e,c.c=r,c.d=function(e,n,t){c.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,n){if(1&n&&(e=c(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(c.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)c.d(t,r,function(n){return e[n]}.bind(null,r));return t},c.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(n,"a",n),n},c.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},c.p="/",c.oe=function(e){throw console.error(e),e};var p=window["webpackJsonp"]=window["webpackJsonp"]||[],s=p.push.bind(p);p.push=n,p=p.slice();for(var l=0;l<p.length;l++)n(p[l]);var f=s;i.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},"1aa9":function(e,n,t){"use strict";t.d(n,"a",(function(){return r}));var r={menus:["head","bold","fontSize","fontName","underline","strikeThrough","indent","lineHeight","foreColor","backColor","list","quote","emoticon","justify","undo","redo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana"],height:400}},"3dfd":function(e,n,t){"use strict";t.r(n);var r=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("router-view")},o=[],a=(t("d8ad"),{name:"App"}),i=a,u=(t("e810"),t("4adf"),t("2877")),c=Object(u["a"])(i,r,o,!1,null,"5f2f570d",null);n["default"]=c.exports},"478b":function(e,n,t){},"4adf":function(e,n,t){"use strict";var r=t("e02f"),o=t.n(r);o.a},"56d7":function(e,n,t){"use strict";t.r(n);var r={};t.r(r),t.d(r,"setLoginUser",(function(){return s})),t.d(r,"setCheckUser",(function(){return l})),t.d(r,"setCurPlanSin",(function(){return f}));t("a481"),t("cadf"),t("551c"),t("f751"),t("097d");var o=t("a026"),a=t("3dfd"),i=t("bc3a"),u=t.n(i),c=t("2f62"),p=t("94d5"),s=function(e,n){var t=e.commit;t("setLoginUser",n)},l=function(e,n){var t=e.commit;t("setCheckUser",n)},f=function(e){var n=e.commit;n("setCurPlanSin")},d={setLoginUser:function(e,n){e.loginUser=n},setCheckUser:function(e,n){e.checkUser=n},setCurPlanSin:function(e){e.curPlanSin=!e.curPlanSin}};o["default"].use(c["a"]);var g={loginUser:{},checkUser:{},curPlanSin:!1},h=new c["a"].Store({modules:{},state:g,getters:p,actions:r,mutations:d}),m=t("8c4f"),v=t("7ded"),b=function(){return t.e("group-app").then(t.bind(null,"3dfd"))},y=function(){return t.e("group-controlApp").then(t.bind(null,"c8fb"))},w=function(){return t.e("group-app").then(t.bind(null,"fb03"))},P=function(){return t.e("group-mainPage").then(t.bind(null,"67f4"))},O=function(){return t.e("group-mainPage").then(t.bind(null,"0517"))},j=function(){return t.e("group-mainPage").then(t.bind(null,"491e"))},S=function(){return t.e("group-mainPage").then(t.bind(null,"9887"))},A=function(){return t.e("group-mainPage").then(t.bind(null,"0320"))},C=function(){return t.e("group-mainPage").then(t.bind(null,"ea9e"))},E=function(){return t.e("group-controlApp").then(t.bind(null,"f078"))};o["default"].use(m["a"]);var x=new m["a"]({routes:[{path:"/",redirect:{name:"App"}},{path:"/app",name:"App",component:b,beforeEnter:function(e,n,t){Object(v["a"])().then((function(e){h.dispatch("setLoginUser",e.data),h.dispatch("setCheckUser",e.data),t()})).catch((function(){t({name:"Login"})}))},redirect:{name:"MainPage"},children:[{path:"mainPage",name:"MainPage",component:P,redirect:{name:"Year"},children:[{path:"todo",name:"Todo",component:O},{path:"year",name:"Year",component:j},{path:"quarter",name:"Quarter",component:S},{path:"month",name:"Month",component:A},{path:"department",name:"Department",component:C}]}]},{path:"/login",name:"Login",component:y},{path:"*",name:"NotFound",component:w},{path:"/xxx",name:"UserTest",component:E}]}),k=t("5c96"),U=t.n(k),L=(t("0fae"),t("8e6e"),t("ac6a"),t("456d"),t("bd86")),N=t("1fba"),T=t("313e"),_=t.n(T),z=t("6fad"),D=t.n(z);function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?M(Object(t),!0).forEach((function(n){Object(L["a"])(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}o["default"].directive("echartsRender",{inserted:function(e,n){var t=_.a.init(e);e.chartoption=JSON.stringify(n.value.options),t.setOption(n.value.options),window.addEventListener("resize",t.resize)},update:function(e,n){if(JSON.stringify(n.value.options)!=e.chartoption){var t=_.a.getInstanceByDom(e);t&&(window.removeEventListener("resize",t.resize),t.dispose());var r=_.a.init(e);r.setOption(n.value.options),e.chartoption=JSON.stringify(n.value.options),window.addEventListener("resize",r.resize)}},unbind:function(e){var n=_.a.getInstanceByDom(e);n&&(window.removeEventListener("resize",n.resize),n.dispose())}}),o["default"].directive("betterScroll",{inserted:function(e,n){var t=q({scrollbar:{fade:!1,interactive:!0},mouseWheel:!0},n.value&&n.value.options),r=n.value&&n.value.events||{},o=new N["a"](e,t);for(var a in r)r.hasOwnProperty(a)&&o.on(a,r[a]);n.value&&n.value.init&&n.value.init(o),e.style.position="relative",e.style.overflow="hidden"}}),o["default"].directive("wangEditor",{bind:function(e,n){},inserted:function(e,n){var t={};if(t=e.children[1]?new D.a(e.children[0],e.children[1]):new D.a(e.children[0]),e.editor=t,n.value.config)for(var r in n.value.config)n.value.config.hasOwnProperty(r)&&(t.config[r]=n.value.config[r]);t.create(),t.txt.html(n.value.text?n.value.text:"")},update:function(e,n){var t=e.editor;n.value.signal&&t.txt.clear(),n.oldValue.changeSignal!=n.value.changeSignal&&t.txt.html(n.value.text?n.value.text:"")},unbind:function(e){}});t("1aa9");o["default"].use(U.a),u.a.defaults.withCredentials=!0,o["default"].prototype.$http=u.a;t("df7c");u.a.interceptors.request.use((function(e){return e.url="/rest/planning"+e.url,e})),u.a.interceptors.response.use((function(e){return e}),(function(e){return"401"!=e.response.status&&"403"!=e.response.status||x.replace({path:"/login"}),Promise.reject(e)})),x.onError((function(e){console.log(e)})),new o["default"]({el:"#app",router:x,store:h,render:function(e){return e(a["default"])}})},"7ded":function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"a",(function(){return i})),t.d(n,"c",(function(){return u}));var r=t("bc3a"),o=t.n(r);function a(e){var n=e.username,t=e.password,r=e.loginFrom;return o()({method:"post",url:"/login",data:{username:n,password:t,loginFrom:r},transformRequest:[function(e){var n="";for(var t in e)n+=encodeURIComponent(t)+"="+encodeURIComponent(e[t])+"&";return n}],headers:{}}).then((function(e){return e.data}))}function i(){return o.a.get("/user/cur").then((function(e){return e.data}))}function u(){return o.a.get("/logout").then((function(e){return e.data}))}},"94d5":function(e,n){},d8ad:function(e,n,t){"use strict";var r=t("a026");new r["default"]},e02f:function(e,n,t){},e810:function(e,n,t){"use strict";var r=t("478b"),o=t.n(r);o.a}});