app-legacy.c18d6f98.js 15 KB

1
  1. (function(){"use strict";var e={1219:function(e,t,n){n(6992),n(8674),n(9601),n(7727);var a=n(144),o=n(9669),r=n.n(o),i=n(4720),s=n.n(i),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},u=[],l=n(1001),m={},p=(0,l.Z)(m,c,u,!1,null,null,null),d=p.exports,f=(n(1539),n(8783),n(3948),n(8345));a["default"].use(f.Z);var h=[{path:"/",name:"login",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,1682))}},{path:"/accounts",name:"accounts",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,6840))}},{path:"/main",name:"main",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,1428))},redirect:"/home",children:[{path:"/appregister",name:"appregister",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,2418))}},{path:"/apps",name:"apps",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,3508))}},{path:"/dataimportmain",name:"dataimportmain",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,6344))}},{path:"/option",name:"option",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,3988))}},{path:"/role",name:"role",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,6770))}},{path:"/account",name:"account",meta:{title:"账号管理"},component:function(e){return Promise.all([n.e(495),n.e(507)]).then(function(){var t=[n(7507)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/site",name:"site",meta:{title:"站点管理"},component:function(e){return n.e(486).then(function(){var t=[n(486)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/service",name:"service",meta:{title:"自动任务注册"},component:function(e){return n.e(65).then(function(){var t=[n(8065)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/table_setting",name:"table_setting",meta:{title:"表格设置"},component:function(e){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(217)]).then(function(){var t=[n(7053)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/database",name:"database",meta:{title:"数据库管理"},component:function(e){return Promise.all([n.e(168),n.e(997),n.e(363)]).then(function(){var t=[n(5363)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/dataquery",name:"dataquery",meta:{title:"数据查询"},component:function(e){return Promise.all([n.e(168),n.e(188)]).then(function(){var t=[n(188)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/code_update",name:"code_update",meta:{title:"代码更新"},component:function(e){return n.e(2).then(function(){var t=[n(4002)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/apianalysis",name:"apianalysis",meta:{title:"接口清单"},component:function(e){return Promise.all([n.e(168),n.e(476)]).then(function(){var t=[n(5476)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/appapi",name:"appapi",meta:{title:"应用查询"},component:function(e){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(676)]).then(function(){var t=[n(2676)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/datalog",name:"datalog",meta:{title:"数据日志"},component:function(e){return Promise.all([n.e(168),n.e(775)]).then(function(){var t=[n(5775)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/yoslog",name:"yoslog",meta:{title:"YOSLog"},component:function(e){return n.e(901).then(function(){var t=[n(5901)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/yosmsg",name:"yosmsg",meta:{title:"内存监控"},component:function(e){return n.e(52).then(function(){var t=[n(8971)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/home",name:"home",meta:{title:"首页"},component:function(e){return n.e(841).then(function(){var t=[n(7841)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/formRegisterList",name:"formRegisterList",meta:{title:"注册表单列表"},component:function(e){return Promise.all([n.e(168),n.e(382)]).then(function(){var t=[n(5382)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/formRegister",name:"formRegister",meta:{title:"表单设计器"},component:function(e){return Promise.all([n.e(168),n.e(400)]).then(function(){var t=[n(448)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/wechatregister",name:"wechatregister",meta:{title:"微信应用注册"},component:function(e){return Promise.all([n.e(168),n.e(564)]).then(function(){var t=[n(8564)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/listsortscheme",name:"listsortscheme",meta:{title:"列表排序注册"},component:function(e){return Promise.all([n.e(168),n.e(149)]).then(function(){var t=[n(9149)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/updatewebproject",name:"updatewebproject",meta:{title:"web端更新"},component:function(e){return Promise.all([n.e(168),n.e(26)]).then(function(){var t=[n(26)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/report",name:"report",meta:{title:"报表开发"},component:function(e){return Promise.all([n.e(168),n.e(208)]).then(function(){var t=[n(4208)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/dataimport",name:"dataimport",meta:{title:"数据导入"},component:function(e){return Promise.all([n.e(168),n.e(997),n.e(21)]).then(function(){var t=[n(21)];e.apply(null,t)}.bind(this))["catch"](n.oe)}},{path:"/coderule",name:"coderule",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,5373))}},{path:"/remindconfig",name:"remindconfig",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,2342))}},{path:"/advertise",name:"advertise",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,6237))}},{path:"/custom_tag",name:"custom_tag",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,7780))}},{path:"/sysparameter",name:"sysparameter",component:function(){return Promise.all([n.e(168),n.e(997),n.e(357),n.e(53),n.e(495),n.e(443)]).then(n.bind(n,2706))}}]}],g=new f.Z({base:"",routes:h}),b=g,y=n(615);n(7042),n(8862),n(6699),n(2023);function v(){var e=window.location.href,t=e.indexOf("/"),n=0;while(-1!==t)if(n++,t=e.indexOf("/",t+1),3===n++)return e.slice(0,t)}var w=r().create({baseURL:v(),timeout:3e5}),k="";w.interceptors.request.use((function(e){k=i.Loading.service({fullscreen:!0});var t=sessionStorage.getItem("active_account")?JSON.parse(sessionStorage.getItem("active_account")).token:"";return e.data["accesstoken"]=t,e.data=JSON.stringify(e.data),e.headers||(e.headers={}),e.headers["Content-Type"]||(e.headers["Content-Type"]="application/json;charset=UTF-8"),e}),(function(e){Promise.reject(e)})),w.interceptors.response.use((function(e){return k.close(),-1===e.data.code?(b.push({path:"/"}),i.Message.error("登陆状态已过期,请重新登陆!")):e.data}),(function(e){if(console.log(e),e&&e.response)switch(e.response.status){case 400:e.message="错误请求";break;case 401:e.message="未授权,请重新登录";break;case 403:e.message="拒绝访问";break;case 404:e.message="请求错误,未找到该资源";break;case 405:e.message="请求方法未允许";break;case 408:e.message="请求超时";break;case 500:e.message="服务器端出错";break;case 501:e.message="网络未实现";break;case 502:e.message="网络错误";break;case 503:e.message="服务不可用";break;case 504:e.message="网络超时";break;case 505:e.message="http版本不支持该请求";break;default:e.message="连接错误".concat(e.response.status)}else JSON.stringify(e).includes("timeout")&&i.Message.error("服务器响应超时,请刷新当前页"),e.message="连接服务器失败";return i.Message.error(e.message),Promise.resolve(e.response)}));var _=w,P=r().create({baseURL:{NODE_ENV:"production",BASE_URL:""}.BASE_API,timeout:36e5,withCredentials:!1,validateStatus:function(e){return e>=200},maxRedirects:0,responseType:"text",onUploadProgress:function(e){}}),O={hw_upload:function(e,t,n){return P.put(e,t,n)}},S={get:function(e,t){var n={method:"get",url:e};return t&&(n.params=t),_(n)},post:function(e,t){var n={method:"post",url:e};return t&&(n.data=t),_(n)},put:function(e,t){var n={method:"put",url:e};return t&&(n.data=t),_(n)},delete:function(e,t){var n={method:"delete",url:e};return t&&(n.params=t),_(n)},upload:function(e,t,n,a){var o={headers:{"Content-Type":n},transformRequest:[function(e){return e}],onUploadProgress:function(e){var t=e.loaded/e.total*100|0;a(t)}};return O(e,t,o)}},x=S,C="",j={loginbyaccount:function(e){return x.post("".concat(C,"/yos/rest/index/loginbyaccount"),e)},loginCode:function(e){return x.post("".concat(C,"/yos/rest/index/getpassword"),e)},login:function(e){return x.post("".concat(C,"/yos/rest/index/login"),e)},requested:function(e){return x.post("".concat(C,"/yos/rest/index"),e)},yoslog:function(e){return x.get("".concat(C,"/yos/rest/index/syslog"),e)},yosmsg:function(e){return x.get("".concat(C,"/yos/rest/index/sysmsg"),e)},localuploadurl:function(){return"".concat(C,"/yos/servlet/index")}};a["default"].prototype.$upload=O,a["default"].prototype.$api=j,a["default"].prototype.$axios=r(),a["default"].config.productionTip=!1,a["default"].use(s()),new a["default"]({router:b,store:y.Z,render:function(e){return e(d)}}).$mount("#app")},615:function(e,t,n){var a=n(144),o=n(629);a["default"].use(o.ZP),t["Z"]=new o.ZP.Store({state:{loading:!1,websocketmessage:{system:{remind:{},data:{onlineusercount:0,requestcount_today:{},ram_data:[]}},imdialog:{}}},getters:{websocketmessage_system_data_onlineusercount:function(e){return e.websocketmessage.system.data.onlineusercount},websocketmessage_system_data_requestcount_today:function(e){return e.websocketmessage.system.data.requestcount_today},websocketmessage_system_data_ram_data:function(e){return e.websocketmessage.system.data.ram_data}},mutations:{websocketmessageSet:function(e,t){"system"===t.msgtype&&("remind"===t.message.class?e.websocketmessage.system.remind=t.message:"data"===t.message.class&&("onlineusercount"===t.message.type?e.websocketmessage.system.data.onlineusercount=t.message.data:"requestcount_today"===t.message.type?e.websocketmessage.system.data.requestcount_today=t.message.data:"ram_monitor"===t.message.type&&(e.websocketmessage.system.data.ram_data=t.message.data)))}},actions:{websocketmessageSet:function(e,t){var n=e.commit;n("websocketmessageSet",JSON.parse(t))}},modules:{}})}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,n),r.exports}n.m=e,function(){n.amdO={}}(),function(){var e=[];n.O=function(t,a,o,r){if(!a){var i=1/0;for(l=0;l<e.length;l++){a=e[l][0],o=e[l][1],r=e[l][2];for(var s=!0,c=0;c<a.length;c++)(!1&r||i>=r)&&Object.keys(n.O).every((function(e){return n.O[e](a[c])}))?a.splice(c--,1):(s=!1,r<i&&(i=r));if(s){e.splice(l--,1);var u=o();void 0!==u&&(t=u)}}return t}r=r||0;for(var l=e.length;l>0&&e[l-1][2]>r;l--)e[l]=e[l-1];e[l]=[a,o,r]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,a){return n.f[a](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/"+(443===e?"about":e)+"-legacy."+{2:"289bbfaf",21:"a1a253c6",26:"bd3659d4",52:"86e19b11",53:"7e5211ec",65:"e13c4f72",149:"d2191e9b",168:"8ce6da81",188:"66e23324",208:"702c9d49",217:"703c3923",357:"3ea2cb49",363:"7dd7b945",382:"d07d78ca",400:"1e0e8f11",443:"439bef55",476:"8453c963",486:"7e024470",495:"2e8ee323",507:"8d640182",564:"a26170f5",676:"6efd60b0",775:"f1847655",779:"161435b6",783:"435bd7cf",791:"34fc84d8",841:"91a846ad",901:"46d74247",997:"c2b3e630"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+(443===e?"about":e)+"."+{2:"ab820098",21:"a414bb9a",26:"9516169e",188:"1fca60b3",217:"f2b1004b",363:"e049f3c4",400:"f18c82ed",443:"bc0c1d38",476:"7a8d36f4",486:"3a206672",507:"715425a8",775:"a0c1a004",841:"f33d7f34"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="yos_manage:";n.l=function(a,o,r,i){if(e[a])e[a].push(o);else{var s,c;if(void 0!==r)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var m=u[l];if(m.getAttribute("src")==a||m.getAttribute("data-webpack")==t+r){s=m;break}}s||(c=!0,s=document.createElement("script"),s.charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+r),s.src=a),e[a]=[o];var p=function(t,n){s.onerror=s.onload=null,clearTimeout(d);var o=e[a];if(delete e[a],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((function(e){return e(n)})),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),c&&document.head.appendChild(s)}}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.p=""}(),function(){var e=function(e,t,n,a){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css";var r=function(r){if(o.onerror=o.onload=null,"load"===r.type)n();else{var i=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=i,c.request=s,o.parentNode.removeChild(o),a(c)}};return o.onerror=o.onload=r,o.href=t,document.head.appendChild(o),o},t=function(e,t){for(var n=document.getElementsByTagName("link"),a=0;a<n.length;a++){var o=n[a],r=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(r===e||r===t))return o}var i=document.getElementsByTagName("style");for(a=0;a<i.length;a++){o=i[a],r=o.getAttribute("data-href");if(r===e||r===t)return o}},a=function(a){return new Promise((function(o,r){var i=n.miniCssF(a),s=n.p+i;if(t(i,s))return o();e(a,s,o,r)}))},o={143:0};n.f.miniCss=function(e,t){var n={2:1,21:1,26:1,188:1,217:1,363:1,400:1,443:1,476:1,486:1,507:1,775:1,841:1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=a(e).then((function(){o[e]=0}),(function(t){throw delete o[e],t})))}}(),function(){var e={143:0};n.f.j=function(t,a){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)a.push(o[2]);else if(217!=t){var r=new Promise((function(n,a){o=e[t]=[n,a]}));a.push(o[2]=r);var i=n.p+n.u(t),s=new Error,c=function(a){if(n.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var r=a&&("load"===a.type?"missing":a.type),i=a&&a.target&&a.target.src;s.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,o[1](s)}};n.l(i,c,"chunk-"+t,t)}else e[t]=0},n.O.j=function(t){return 0===e[t]};var t=function(t,a){var o,r,i=a[0],s=a[1],c=a[2],u=0;if(i.some((function(t){return 0!==e[t]}))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(c)var l=c(n)}for(t&&t(a);u<i.length;u++)r=i[u],n.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return n.O(l)},a=self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))}();var a=n.O(void 0,[998],(function(){return n(1219)}));a=n.O(a)})();