From 27ef162ad4439a912d543b440408d9ff95ce028e Mon Sep 17 00:00:00 2001
From: yaosen <741606767@qq.com>
Date: Wed, 26 Jun 2024 16:50:38 +0800
Subject: [PATCH] a
---
admin/src/views/onlines/online.vue | 10 +++++-----
service/app/admin/controller/AdminController.php | 11 +++++++++--
service/public/index.html | 2 +-
service/public/static/css/chunk-7b09886d.2df4b740.css | 1 -
service/public/static/css/chunk-f14cda0a.2a8a1933.css | 1 +
.../static/js/{app.6940e510.js => app.bd666552.js} | 2 +-
service/public/static/js/chunk-7b09886d.1076a1f6.js | 1 -
service/public/static/js/chunk-f14cda0a.183ecd9d.js | 1 +
8 files changed, 18 insertions(+), 11 deletions(-)
delete mode 100644 service/public/static/css/chunk-7b09886d.2df4b740.css
create mode 100644 service/public/static/css/chunk-f14cda0a.2a8a1933.css
rename service/public/static/js/{app.6940e510.js => app.bd666552.js} (99%)
delete mode 100644 service/public/static/js/chunk-7b09886d.1076a1f6.js
create mode 100644 service/public/static/js/chunk-f14cda0a.183ecd9d.js
diff --git a/admin/src/views/onlines/online.vue b/admin/src/views/onlines/online.vue
index 706d3006..fc0f6eec 100644
--- a/admin/src/views/onlines/online.vue
+++ b/admin/src/views/onlines/online.vue
@@ -30,16 +30,16 @@
{{ scope.row.start_work_time | parseTime('{y}-{m}-{d} {h}:{i}') }}
-
-
- {{ scope.row.last_work_time | parseTime('{y}-{m}-{d} {h}:{i}') }}
-
-
{{ scope.row.end_work_time | parseTime('{y}-{m}-{d} {h}:{i}') }}
+
+
+ {{ scope.row.last_work_time | parseTime('{y}-{m}-{d} {h}:{i}') }}
+
+
diff --git a/service/app/admin/controller/AdminController.php b/service/app/admin/controller/AdminController.php
index bed647fd..a7686c9a 100644
--- a/service/app/admin/controller/AdminController.php
+++ b/service/app/admin/controller/AdminController.php
@@ -145,14 +145,21 @@ class AdminController extends base
}else{
$list[$adminId]['onlineTime'] = $user->last_work_time > 0 ? strtotime(date('Y-m-d H:i:00',$user->last_work_time)) - strtotime(date('Y-m-d H:i:00',$user->start_work_time)) : 0;
}
+ if ($user->start_work_time <=0){
+ $list[$adminId]['onlineTime'] = 0;
+ }
+ $list[$adminId]['last_work_time'] = $user->last_work_time;
+ $list[$adminId]['isOnline'] = 0;
+ if (Redis::get('CRM:USER:ONLINE:'.$adminId)){
+ $list[$adminId]['isOnline'] = 1;
+ $list[$adminId]['last_work_time'] = 0;//在线时不用展示
+ }
$list[$adminId]['start_work_time'] = $user->start_work_time;
$list[$adminId]['end_work_time'] = $user->end_work_time;
- $list[$adminId]['last_work_time'] = $user->last_work_time;
$list[$adminId]['order_num'] = $user->order_num;
$list[$adminId]['id'] = $adminId;
$list[$adminId]['username'] = $user->username;
- $list[$adminId]['isOnline'] = Redis::get('CRM:USER:ONLINE:'.$adminId) ? 1 : 0;
}
return $this->success(array_values($list));
diff --git a/service/public/index.html b/service/public/index.html
index b512eb8a..d814e9fc 100644
--- a/service/public/index.html
+++ b/service/public/index.html
@@ -1 +1 @@
-
Vue Element Admin
\ No newline at end of file
+Vue Element Admin
\ No newline at end of file
diff --git a/service/public/static/css/chunk-7b09886d.2df4b740.css b/service/public/static/css/chunk-7b09886d.2df4b740.css
deleted file mode 100644
index 235eff66..00000000
--- a/service/public/static/css/chunk-7b09886d.2df4b740.css
+++ /dev/null
@@ -1 +0,0 @@
-.app-container[data-v-0c7ec2ea]{position:relative;padding-bottom:60px}.el-table[data-v-0c7ec2ea],.filter-container[data-v-0c7ec2ea]{padding-bottom:52px}.search[data-v-0c7ec2ea]{margin-left:10px}
\ No newline at end of file
diff --git a/service/public/static/css/chunk-f14cda0a.2a8a1933.css b/service/public/static/css/chunk-f14cda0a.2a8a1933.css
new file mode 100644
index 00000000..d8401afa
--- /dev/null
+++ b/service/public/static/css/chunk-f14cda0a.2a8a1933.css
@@ -0,0 +1 @@
+.app-container[data-v-2926b996]{position:relative;padding-bottom:60px}.el-table[data-v-2926b996],.filter-container[data-v-2926b996]{padding-bottom:52px}.search[data-v-2926b996]{margin-left:10px}
\ No newline at end of file
diff --git a/service/public/static/js/app.6940e510.js b/service/public/static/js/app.bd666552.js
similarity index 99%
rename from service/public/static/js/app.6940e510.js
rename to service/public/static/js/app.bd666552.js
index 0cdee530..1db4317d 100644
--- a/service/public/static/js/app.6940e510.js
+++ b/service/public/static/js/app.bd666552.js
@@ -1 +1 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0185":function(e,t,n){"use strict";n("a187")},"0461":function(e,t,n){},"0781":function(e,t,n){"use strict";n.r(t);var a=n("24ab"),i=n.n(a),o=n("83d6"),c=n.n(o),s=c.a.showSettings,r=c.a.tagsView,l=c.a.fixedHeader,u=c.a.sidebarLogo,d={theme:i.a.theme,showSettings:s,tagsView:r,fixedHeader:l,sidebarLogo:u},h={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},m={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}};t["default"]={namespaced:!0,state:d,mutations:h,actions:m}},"096e":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"0f9a":function(e,t,n){"use strict";n.r(t);var a=n("c7eb"),i=n("1da1"),o=(n("b0c0"),n("d3b7"),n("498a"),n("b775"));function c(e){return Object(o["a"])({url:"/admin/login",method:"post",data:e})}function s(e){return Object(o["a"])({url:"/admin/index/info",method:"get",params:{token:e}})}function r(){return Object(o["a"])({url:"/admin/login/logout",method:"post"})}var l=n("5f87"),u=n("a18c"),d={token:Object(l["a"])(),name:"",avatar:"",is_anchor:0,introduction:"",roles:[],oss:[]},h={SET_TOKEN:function(e,t){e.token=t},SET_INTRODUCTION:function(e,t){e.introduction=t},SET_NAME:function(e,t){e.name=t},SET_AVATAR:function(e,t){e.avatar=t},SET_ANCHOR:function(e,t){e.is_anchor=t},SET_ROLES:function(e,t){e.roles=t},SET_OSS:function(e,t){e.oss=t}},m={login:function(e,t){var n=e.commit,a=t.username,i=t.password;return new Promise((function(e,t){c({username:a.trim(),password:i}).then((function(t){var a=t.data;n("SET_TOKEN",a.token),Object(l["c"])(a.token),e()})).catch((function(e){t(e)}))}))},getInfo:function(e){var t=e.commit,n=e.state;return new Promise((function(e,a){s(n.token).then((function(n){var i=n.data;i||a("Verification failed, please Login again.");var o=i.roles,c=i.name,s=i.avatar,r=i.is_anchor,l=i.introduction,u=i.oss;(!o||o.length<=0)&&a("getInfo: roles must be a non-null array!"),t("SET_ROLES",o),t("SET_NAME",c),t("SET_AVATAR",s),t("SET_ANCHOR",r),t("SET_INTRODUCTION",l),t("SET_OSS",u),e(i)})).catch((function(e){a(e)}))}))},logout:function(e){var t=e.commit,n=e.state,a=e.dispatch;return new Promise((function(e,i){r(n.token).then((function(){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(l["b"])(),Object(u["d"])(),a("tagsView/delAllViews",null,{root:!0}),e()})).catch((function(e){i(e)}))}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(l["b"])(),e()}))},changeRoles:function(e,t){return Object(i["a"])(Object(a["a"])().mark((function n(){var i,o,c,s,r,d;return Object(a["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e.commit,o=e.dispatch,c=t+"-token",i("SET_TOKEN",c),Object(l["c"])(c),n.next=6,o("getInfo");case 6:return s=n.sent,r=s.roles,Object(u["d"])(),n.next=11,o("permission/generateRoutes",r,{root:!0});case 11:d=n.sent,u["c"].addRoutes(d),o("tagsView/delAllViews",null,{root:!0});case 14:case"end":return n.stop()}}),n)})))()}};t["default"]={namespaced:!0,state:d,mutations:h,actions:m}},"10f2":function(e,t,n){},"12a5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},1430:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},1638:function(e,t,n){},1779:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"17df":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"18f0":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"24ab":function(e,t,n){e.exports={theme:"#1890ff"}},2580:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"279e":function(e,t,n){},"2a2d":function(e,t,n){n("4de4"),n("b0c0"),n("d3b7");for(var a=n("96eb"),i=[],o=100,c=0;c'});c.a.add(s);t["default"]=s},"2abb":function(e,t,n){"use strict";n("b747")},"2b29":function(e,t,n){"use strict";n("f6c3")},"2bb1":function(e,t,n){},"2f11":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},3046:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"30c3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"31c2":function(e,t,n){"use strict";n.r(t),n.d(t,"filterAsyncRoutes",(function(){return c}));var a=n("5530"),i=(n("99af"),n("caad"),n("d3b7"),n("2532"),n("159b"),n("a18c"));function o(e,t){return!t.meta||!t.meta.roles||e.some((function(e){return t.meta.roles.includes(e)}))}function c(e,t){var n=[];return e.forEach((function(e){var i=Object(a["a"])({},e);o(t,i)&&(i.children&&(i.children=c(i.children,t)),n.push(i))})),n}var s={routes:[],addRoutes:[]},r={SET_ROUTES:function(e,t){e.addRoutes=t,e.routes=i["b"].concat(t)}},l={generateRoutes:function(e,t){var n=e.commit;return new Promise((function(e){var a;a=t.includes("admin")?i["a"]||[]:c(i["a"],t),n("SET_ROUTES",a),e(a)}))}};t["default"]={namespaced:!0,state:s,mutations:r,actions:l}},3289:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"331a":function(e,t){var n={admin:{token:"admin-token"},editor:{token:"editor-token"}},a={"admin-token":{roles:["admin"],introduction:"I am a super administrator",avatar:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",name:"Super Admin"},"editor-token":{roles:["editor"],introduction:"I am an editor",avatar:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",name:"Normal Editor"}};e.exports=[{url:"/vue-element-admin/user/login",type:"post",response:function(e){var t=e.body.username,a=n[t];return a?{code:2e4,data:a}:{code:60204,message:"Account and password are incorrect."}}},{url:"/vue-element-admin/user/info.*",type:"get",response:function(e){var t=e.query.token,n=a[t];return n?{code:2e4,data:n}:{code:50008,message:"Login failed, unable to get user details."}}},{url:"/vue-element-admin/user/logout",type:"post",response:function(e){return{code:2e4,data:"success"}}}]},"3a82":function(e,t,n){"use strict";n("10f2")},"3dde":function(e,t,n){"use strict";n("d450")},4360:function(e,t,n){"use strict";n("13d5"),n("d3b7"),n("ac1f"),n("5319"),n("ddb0");var a=n("2b0e"),i=n("2f62"),o=(n("b0c0"),{sidebar:function(e){return e.app.sidebar},size:function(e){return e.app.size},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},username:function(e){return e.user.username},oss:function(e){return e.user.oss},is_anchor:function(e){return e.user.is_anchor},introduction:function(e){return e.user.introduction},roles:function(e){return e.user.roles},permission_routes:function(e){return e.permission.routes},errorLogs:function(e){return e.errorLog.logs}}),c=o;a["default"].use(i["a"]);var s=n("c653"),r=s.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),a=s(t);return e[n]=a.default,e}),{}),l=new i["a"].Store({modules:r,getters:c});t["a"]=l},"47f1":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"47ff":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"4b0f":function(e,t,n){var a=n("6374").default,i=n("448a").default;n("99af"),n("b64b"),n("4d63"),n("ac1f"),n("2c3e"),n("25f0");var o=n("96eb"),c=n("8a60"),s=c.param2Obj,r=n("331a"),l=n("f3d6"),u=n("a109"),d=n("2a2d"),h=[].concat(i(r),i(l),i(u),i(d));function m(){function e(e){return function(t){var n=null;if(e instanceof Function){var a=t.body,i=t.type,c=t.url;n=e({method:i,body:JSON.parse(a),query:s(c)})}else n=e;return o.mock(n)}}o.XHR.prototype.proxy_send=o.XHR.prototype.send,o.XHR.prototype.send=function(){this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.proxy_send.apply(this,arguments)};var t,n=a(h);try{for(n.s();!(t=n.n()).done;){var i=t.value;o.mock(new RegExp(i.url),i.type||"get",e(i.response))}}catch(c){n.e(c)}finally{n.f()}}e.exports={mocks:h,mockXHR:m}},"4d27":function(e,t,n){"use strict";n("bae7")},"4d49":function(e,t,n){"use strict";n.r(t);n("a434");var a={logs:[]},i={ADD_ERROR_LOG:function(e,t){e.logs.push(t)},CLEAR_ERROR_LOG:function(e){e.logs.splice(0)}},o={addErrorLog:function(e,t){var n=e.commit;n("ADD_ERROR_LOG",t)},clearErrorLog:function(e){var t=e.commit;t("CLEAR_ERROR_LOG")}};t["default"]={namespaced:!0,state:a,mutations:i,actions:o}},"4df5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});c.a.add(s);t["default"]=s},"51ff":function(e,t,n){var a={"./404.svg":"a14a","./bug.svg":"1779","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./user.svg":"b3b5","./wechat.svg":"80da","./zip.svg":"8aa6"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=o,e.exports=i,i.id="51ff"},"56d6":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"56d7":function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"parseTime",(function(){return Q["d"]})),n.d(a,"formatTime",(function(){return Q["c"]})),n.d(a,"timeAgo",(function(){return J})),n.d(a,"numberFormatter",(function(){return K})),n.d(a,"toThousandFilter",(function(){return X})),n.d(a,"uppercaseFirst",(function(){return Z}));n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("4de4"),n("b64b"),n("d3b7"),n("159b");var i=n("2b0e"),o=n("a78e"),c=n.n(o),s=(n("f5df1"),n("5c96")),r=n.n(s),l=(n("24ab"),n("b20f"),n("caad"),n("2532"),n("4360"));function u(e,t){var n=t.value,a=l["a"].getters&&l["a"].getters.roles;if(!(n&&n instanceof Array))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");if(n.length>0){var i=n,o=a.some((function(e){return i.includes(e)}));o||e.parentNode&&e.parentNode.removeChild(e)}}var d={inserted:function(e,t){u(e,t)},update:function(e,t){u(e,t)}},h=function(e){e.directive("permission",d)};window.Vue&&(window["permission"]=d,Vue.use(h)),d.install=h;var m=d,f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},p=[],v=(n("b0c0"),n("99af"),function e(t){var n=t.container,a=void 0===n?document.body:n,i=t.width,o=void 0===i?"110px":i,c=t.height,s=void 0===c?"60px":c,r=t.textAlign,l=void 0===r?"center":r,u=t.textBaseline,d=void 0===u?"middle":u,h=t.font,m=void 0===h?"16px Microsoft Yahei":h,f=t.fillStyle,p=void 0===f?"rgba(184, 184, 184, 0.2)":f,v=t.content,g=void 0===v?"":v,w=t.rotate,b=void 0===w?-30:w,x=t.zIndex,y=void 0===x?1e4:x,k=document.createElement("canvas");k.setAttribute("width",o),k.setAttribute("height",s);var V=k.getContext("2d");V.textAlign=l,V.textBaseline=d,V.font=m,V.fillStyle=p,V.rotate(Math.PI/180*b),V.fillText(g,parseFloat(o)/2,parseFloat(s));var C=k.toDataURL("image/png"),_=document.querySelector(".__wm"),z=_||document.createElement("div"),S="\n position: fixed;\n top: 0;\n left: -20%;\n bottom: 0;\n right: 0;\n width: 260%;\n height: 100%;\n z-index: ".concat(y,";\n pointer-events: none;\n background: url('").concat(C,"') left top repeat;\n ");z.setAttribute("style",S),z.classList.add("__wm"),_||(a.style.position="relative",a.insertBefore(z,a.firstChild));var E=window,L=E.MutationObserver;if(L){var O=new L((function(){var t=document.querySelector(".__wm");(t&&t.getAttribute("style")!==S||!t)&&(O.disconnect(),O=new L((function(){})),e({container:document.getElementById("app"),width:"110px",height:"60px",textAlign:"center",textBaseline:"middle",font:"16px Microsoft Yahei",fillStyle:"rgba(184, 184, 184, 0.2 )",content:g,rotate:-30,zIndex:1e4}))}));O.observe(a,{attributes:!0,subtree:!0,childList:!0})}}),g=v,w={watch:{"$store.getters.name":"updateWatermark"},created:function(){this.addDefaultWatermark()},mounted:function(){this.updateWatermark()},methods:{addDefaultWatermark:function(){g({container:document.body,content:"金澳"})},updateWatermark:function(){var e=this.$store.getters.name;g({container:document.body,content:e?"".concat(e):"金澳"})}}},b=w,x=n("2877"),y=Object(x["a"])(b,f,p,!1,null,null,null),k=y.exports,V=n("a18c"),C=n("b775"),_=(n("d81d"),n("ddb0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isExternal?n("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):n("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[n("use",{attrs:{"xlink:href":e.iconName}})])}),z=[],S=n("61f7"),E={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(S["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},L=E,O=(n("2b29"),Object(x["a"])(L,_,z,!1,null,"f9f7fefc",null)),M=O.exports;i["default"].component("svg-icon",M);var T=n("51ff"),H=function(e){return e.keys().map(e)};H(T);var $=n("c7eb"),B=n("5530"),D=n("1da1"),A=n("323e"),j=n.n(A),I=(n("a5d8"),n("5f87")),P=n("83d6"),R=n.n(P),W=R.a.title||"Vue Element Admin";function N(e){return e?"".concat(e," - ").concat(W):"".concat(W)}j.a.configure({showSpinner:!1});var q=["/login","/auth-redirect"];V["c"].beforeEach(function(){var e=Object(D["a"])(Object($["a"])().mark((function e(t,n,a){var i,o,c,r,u;return Object($["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(j.a.start(),document.title=N(t.meta.title),i=Object(I["a"])(),!i){e.next=35;break}if("/login"!==t.path){e.next=9;break}a({path:"/"}),j.a.done(),e.next=33;break;case 9:if(o=l["a"].getters.roles&&l["a"].getters.roles.length>0,!o){e.next=14;break}a(),e.next=33;break;case 14:return e.prev=14,e.next=17,l["a"].dispatch("user/getInfo");case 17:return c=e.sent,r=c.roles,e.next=21,l["a"].dispatch("permission/generateRoutes",r);case 21:u=e.sent,V["c"].addRoutes(u),a(Object(B["a"])(Object(B["a"])({},t),{},{replace:!0})),e.next=33;break;case 26:return e.prev=26,e.t0=e["catch"](14),e.next=30,l["a"].dispatch("user/resetToken");case 30:s["Message"].error(e.t0||"Has Error"),a("/login?redirect=".concat(t.path)),j.a.done();case 33:e.next=36;break;case 35:-1!==q.indexOf(t.path)?a():(a("/login?redirect=".concat(t.path)),j.a.done());case 36:case"end":return e.stop()}}),e,null,[[14,26]])})));return function(t,n,a){return e.apply(this,arguments)}}()),V["c"].afterEach((function(){j.a.done()}));var U=R.a.errorLog;function F(){var e="production";return Object(S["c"])(U)?e===U:!!Object(S["a"])(U)&&U.includes(e)}F()&&(i["default"].config.errorHandler=function(e,t,n,a){i["default"].nextTick((function(){l["a"].dispatch("errorLog/addErrorLog",{err:e,vm:t,info:n,url:window.location.href}),console.error(e,n)}))});n("fb6a"),n("a9e3"),n("b680"),n("ac1f"),n("25f0"),n("5319");var Q=n("ed08");function G(e,t){return 1===e?e+t:e+t+"s"}function J(e){var t=Date.now()/1e3-Number(e);return t<3600?G(~~(t/60)," minute"):t<86400?G(~~(t/3600)," hour"):G(~~(t/86400)," day")}function K(e,t){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],a=0;a=n[a].value)return(e/n[a].value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[a].symbol;return e.toString()}function X(e){return(+e||0).toString().replace(/^-?\d+/g,(function(e){return e.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function Z(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Y=n("4b0f"),ee=Y.mockXHR;ee(),i["default"].use(r.a,{size:c.a.get("size")||"medium"}),i["default"].use(m),Object.keys(a).forEach((function(e){i["default"].filter(e,a[e])})),i["default"].config.productionTip=!1,i["default"].prototype.$axios=C["a"],i["default"].use(g);t["default"]=new i["default"]({el:"#app",router:V["c"],store:l["a"],render:function(e){return e(k)}})},"5efb":function(e,t,n){},"5f87":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return r}));var a=n("a78e"),i=n.n(a),o="AdminToken";function c(){return i.a.get(o)}function s(e){return i.a.set(o,e)}function r(){return i.a.remove(o)}},"61f7":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return c}));n("d3b7"),n("ac1f"),n("00b4"),n("25f0");function a(e){return/^(https?:|mailto:|tel:)/.test(e)}function i(e){return e.length>=2}function o(e){return"string"===typeof e||e instanceof String}function c(e){return"undefined"===typeof Array.isArray?"[object Array]"===Object.prototype.toString.call(e):Array.isArray(e)}},6599:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},6683:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"6ece":function(e,t,n){"use strict";n("1638")},"708a":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},7509:function(e,t,n){"use strict";n.r(t);var a=n("2909"),i=n("3835"),o=n("b85c"),c=(n("4de4"),n("caad"),n("fb6a"),n("a434"),n("b0c0"),n("d3b7"),n("2532"),n("ddb0"),{visitedViews:[],cachedViews:[]}),s={ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var n,a=Object(o["a"])(e.visitedViews.entries());try{for(a.s();!(n=a.n()).done;){var c=Object(i["a"])(n.value,2),s=c[0],r=c[1];if(r.path===t.path){e.visitedViews.splice(s,1);break}}}catch(l){a.e(l)}finally{a.f()}},DEL_CACHED_VIEW:function(e,t){var n=e.cachedViews.indexOf(t.name);n>-1&&e.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var n=e.cachedViews.indexOf(t.name);e.cachedViews=n>-1?e.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var n,a=Object(o["a"])(e.visitedViews);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i.path===t.path){i=Object.assign(i,t);break}}}catch(c){a.e(c)}finally{a.f()}}},r={addView:function(e,t){var n=e.dispatch;n("addVisitedView",t),n("addCachedView",t)},addVisitedView:function(e,t){var n=e.commit;n("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var n=e.commit;n("ADD_CACHED_VIEW",t)},delView:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delVisitedView",t),n("delCachedView",t),e({visitedViews:Object(a["a"])(i.visitedViews),cachedViews:Object(a["a"])(i.cachedViews)})}))},delVisitedView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_VISITED_VIEW",t),e(Object(a["a"])(i.visitedViews))}))},delCachedView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_CACHED_VIEW",t),e(Object(a["a"])(i.cachedViews))}))},delOthersViews:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delOthersVisitedViews",t),n("delOthersCachedViews",t),e({visitedViews:Object(a["a"])(i.visitedViews),cachedViews:Object(a["a"])(i.cachedViews)})}))},delOthersVisitedViews:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_OTHERS_VISITED_VIEWS",t),e(Object(a["a"])(i.visitedViews))}))},delOthersCachedViews:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_OTHERS_CACHED_VIEWS",t),e(Object(a["a"])(i.cachedViews))}))},delAllViews:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delAllVisitedViews",t),n("delAllCachedViews",t),e({visitedViews:Object(a["a"])(i.visitedViews),cachedViews:Object(a["a"])(i.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(a["a"])(n.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(a["a"])(n.cachedViews))}))},updateVisitedView:function(e,t){var n=e.commit;n("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:c,mutations:s,actions:r}},"75e1":function(e,t,n){"use strict";n("0461")},"80da":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});c.a.add(s);t["default"]=s},"83d6":function(e,t){e.exports={title:"Vue Element Admin",showSettings:!0,tagsView:!0,fixedHeader:!1,sidebarLogo:!1,errorLog:"production"}},8644:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"8a60":function(e,t,n){var a=n("7037").default;function i(e){var t=decodeURIComponent(e.split("?")[1]).replace(/\+/g," ");if(!t)return{};var n={},a=t.split("&");return a.forEach((function(e){var t=e.indexOf("=");if(-1!==t){var a=e.substring(0,t),i=e.substring(t+1,e.length);n[a]=i}})),n}function o(e){if(!e&&"object"!==a(e))throw new Error("error arguments","deepClone");var t=e.constructor===Array?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"===a(e[n])?t[n]=o(e[n]):t[n]=e[n]})),t}n("b64b"),n("d3b7"),n("ac1f"),n("5319"),n("159b"),e.exports={param2Obj:i,deepClone:o}},"8aa6":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"8dd0":function(e,t,n){"use strict";n("c459")},"8e8d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"8fb7":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"90fb":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"93cd":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"97bb":function(e,t,n){},9921:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"9bbf":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"9d91":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},a109:function(e,t,n){n("4de4"),n("4e82"),n("d3b7");for(var a=n("96eb"),i=[],o=100,c='I am testing data, I am testing data.
',s="https://wpimg.wallstcn.com/e4558086-631c-425c-9430-56ffb46e70b3",r=0;r=l*(s-1)}));return{code:2e4,data:{total:d.length,items:h}}}},{url:"/vue-element-admin/article/detail",type:"get",response:function(e){for(var t=e.query.id,n=0,a=i;n'});c.a.add(s);t["default"]=s},a187:function(e,t,n){},a18c:function(e,t,n){"use strict";n.d(t,"b",(function(){return It})),n.d(t,"a",(function(){return Pt})),n.d(t,"d",(function(){return Nt}));n("d3b7"),n("3ca3"),n("ddb0");var a,i,o=n("2b0e"),c=n("8c4f"),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView}},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar"),e.needTagsView?n("tags-view"):e._e()],1),n("app-main")],1)],1)},r=[],l=n("5530"),u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"rightPanel",staticClass:"rightPanel-container",class:{show:e.show}},[n("div",{staticClass:"rightPanel-background"}),n("div",{staticClass:"rightPanel"},[n("div",{staticClass:"handle-button",style:{top:e.buttonTop+"px","background-color":e.theme},on:{click:function(t){e.show=!e.show}}},[n("i",{class:e.show?"el-icon-close":"el-icon-setting"})]),n("div",{staticClass:"rightPanel-items"},[e._t("default")],2)])])},d=[],h=(n("a9e3"),n("ed08")),m={name:"RightPanel",props:{clickNotClose:{default:!1,type:Boolean},buttonTop:{default:250,type:Number}},data:function(){return{show:!1}},computed:{theme:function(){return this.$store.state.settings.theme}},watch:{show:function(e){e&&!this.clickNotClose&&this.addEventClick(),e?Object(h["a"])(document.body,"showRightPanel"):Object(h["e"])(document.body,"showRightPanel")}},mounted:function(){this.insertToBody()},beforeDestroy:function(){var e=this.$refs.rightPanel;e.remove()},methods:{addEventClick:function(){window.addEventListener("click",this.closeSidebar)},closeSidebar:function(e){var t=e.target.closest(".rightPanel");t||(this.show=!1,window.removeEventListener("click",this.closeSidebar))},insertToBody:function(){var e=this.$refs.rightPanel,t=document.querySelector("body");t.insertBefore(e,t.firstChild)}}},f=m,p=(n("3a82"),n("e4d6"),n("2877")),v=Object(p["a"])(f,u,d,!1,null,"7ce91d5a",null),g=v.exports,w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("keep-alive",{attrs:{include:e.cachedViews}},[n("router-view",{key:e.key})],1)],1)],1)},b=[],x={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},y=x,k=(n("3dde"),n("bf48"),Object(p["a"])(y,w,b,!1,null,"92459f82",null)),V=k.exports,C=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),n("div",{staticClass:"right-menu"},["mobile"!==e.device?void 0:e._e(),n("div",{staticClass:"right-menu-item hover-effect"},[n("el-button",{on:{click:function(t){e.drawer=!0}}},[e._v("QA常见问题")])],1),e.$store.getters.is_anchor?n("div",{staticClass:"right-menu-item hover-effect"},[n("el-button",{on:{click:function(t){e.dialogWorks=!0}}},[e._v("排班"+e._s(e.$store.getters.name))])],1):e._e(),n("div",{staticClass:"right-menu-item hover-effect"},[n("el-button",{style:{backgroundColor:e.workstatus?"#fff":"#409EFF",color:e.workstatus?"#979797":"#fff"},on:{click:e.startWorks}},[e._v(e._s(e.workstatus?"上班":"上班中"))]),n("el-button",{style:{backgroundColor:e.workstatus?"#409EFF":"#fff",color:e.workstatus?"#fff":"#979797"},on:{click:e.endWorks}},[e._v(e._s(e.workstatus?"下班中":"下班"))])],1),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[n("div",{staticClass:"avatar-wrapper"},[n("img",{staticClass:"user-avatar",attrs:{src:e.avatar+"?imageView2/1/w/80/h/80",alt:""}}),n("i",{staticClass:"el-icon-camera",staticStyle:{position:"absolute"},on:{click:function(t){t.stopPropagation(),e.showAvatar=!0}}}),n("i",{staticClass:"el-icon-caret-bottom"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("router-link",{attrs:{to:"/"}},[n("el-dropdown-item",[e._v("系统面板")])],1),n("div",{on:{click:function(t){e.dialogPWD=!0}}},[n("el-dropdown-item",[e._v("修改密码")])],1),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout(t)}}},[n("span",{staticStyle:{display:"block"}},[e._v("退出登录")])])],1)],1)],2),n("el-dialog",{attrs:{title:"提示",visible:e.showAvatar,width:"30%",center:""},on:{"update:visible":function(t){e.showAvatar=t}}},[n("el-upload",{staticClass:"avatar-uploader",attrs:{action:"/admin/index/avatar","show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.imageUrl?n("img",{staticClass:"avatar",attrs:{src:e.imageUrl,alt:""}}):n("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),n("el-dialog",{attrs:{title:"修改密码",visible:e.dialogPWD},on:{"update:visible":function(t){e.dialogPWD=t}}},[n("el-form",{attrs:{rules:e.rules,model:e.form}},[n("el-form-item",{attrs:{label:"旧密码",prop:"oldpwd"}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.oldpwd,callback:function(t){e.$set(e.form,"oldpwd",t)},expression:"form.oldpwd"}})],1),n("el-form-item",{attrs:{label:"新密码",prop:"pwd"}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.pwd,callback:function(t){e.$set(e.form,"pwd",t)},expression:"form.pwd"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogPWD=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.pwd}},[e._v("确 定")])],1)],1),n("el-dialog",{attrs:{title:"排班",width:"90%",visible:e.dialogWorks},on:{"update:visible":function(t){e.dialogWorks=t}}},[n("el-form",{attrs:{rules:e.rules}},[n("el-row",{staticStyle:{"margin-bottom":"10px"}},[n("el-col",{attrs:{span:24}},[n("el-date-picker",{attrs:{placeholder:"选择开始时间","default-time":"07:00:00",type:"datetime"},model:{value:e.times[0],callback:function(t){e.$set(e.times,0,t)},expression:"times[0]"}})],1)],1),n("el-row",{staticStyle:{"margin-bottom":"10px"}},[n("el-col",{attrs:{span:24}},[n("el-date-picker",{attrs:{placeholder:"选择结束时间","default-time":"07:59:59",type:"datetime"},model:{value:e.times[1],callback:function(t){e.$set(e.times,1,t)},expression:"times[1]"}})],1)],1),n("el-row",{staticStyle:{"margin-bottom":"10px"}},[n("el-col",{attrs:{span:24}},[n("el-checkbox-group",{model:{value:e.os,callback:function(t){e.os=t},expression:"os"}},e._l(e.$store.getters.oss,(function(t,a,i){return n("el-checkbox",{key:i,attrs:{label:a}},[e._v(e._s(t))])})),1)],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogWorks=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveWork}},[e._v("确 定")])],1)],1),n("el-drawer",{attrs:{"with-header":!1,visible:e.drawer,size:"800px",direction:"rtl",modal:!1},on:{"update:visible":function(t){e.drawer=t}}},[n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"drawer"},[e.QaShow?n("el-button",{attrs:{type:"success"},on:{click:function(t){e.drawer=!1}}},[e._v("关 闭")]):e._e(),e.QaShow?e._e():n("el-button",{attrs:{type:"success"},on:{click:function(t){e.QaShow=!0}}},[e._v("返 回")]),e.QaShow?n("div",{staticClass:"mod"},e._l(e.getQaList,(function(t){return n("el-button",{staticStyle:{width:"150px"},attrs:{size:"medium",type:"primary"},on:{click:function(n){return e.getQaDetail(t)}}},[e._v(" "+e._s(t.city_name)+" ")])})),1):e._e(),e.QaInfo&&!e.QaShow?n("div",{staticClass:"ver"},[n("div",{staticClass:"ver_title"},[e._v(e._s(e.QaInfo.title))]),n("div",{staticClass:"ver_content"},[e._v(e._s(e.QaInfo.content))])]):e._e()],1)])],1)},_=[],z=n("c7eb"),S=n("1da1"),E=(n("2b3d"),n("bf19"),n("9861"),n("2f62")),L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,a){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||a==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},O=[],M=(n("99af"),n("4de4"),n("b0c0"),n("2ca0"),n("498a"),n("bd11")),T=n.n(M),H={data:function(){return{levelList:null}},watch:{$route:function(e){e.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"Dashboard"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=T.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},$=H,B=(n("6ece"),Object(p["a"])($,L,O,!1,null,"1919fc1a",null)),D=B.exports,A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},j=[],I={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},P=I,R=(n("8dd0"),Object(p["a"])(P,A,j,!1,null,"49e15297",null)),W=R.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("svg-icon",{attrs:{"icon-class":e.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:e.click}})],1)},q=[],U=n("93bf"),F=n.n(U),Q={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!F.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;F.a.toggle()},change:function(){this.isFullscreen=F.a.isFullscreen},init:function(){F.a.enabled&&F.a.on("change",this.change)},destroy:function(){F.a.enabled&&F.a.off("change",this.change)}}},G=Q,J=(n("2abb"),Object(p["a"])(G,N,q,!1,null,"1d75d652",null)),K=J.exports,X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleSetSize}},[n("div",[n("svg-icon",{attrs:{"class-name":"size-icon","icon-class":"size"}})],1),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.sizeOptions,(function(t){return n("el-dropdown-item",{key:t.value,attrs:{disabled:e.size===t.value,command:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1)],1)},Z=[],Y=(n("ac1f"),n("5319"),{data:function(){return{sizeOptions:[{label:"Default",value:"default"},{label:"Medium",value:"medium"},{label:"Small",value:"small"},{label:"Mini",value:"mini"}]}},computed:{size:function(){return this.$store.getters.size}},methods:{handleSetSize:function(e){this.$ELEMENT.size=e,this.$store.dispatch("app/setSize",e),this.refreshView(),this.$message({message:"Switch Size Success",type:"success"})},refreshView:function(){var e=this;this.$store.dispatch("tagsView/delAllCachedViews",this.$route);var t=this.$route.fullPath;this.$nextTick((function(){e.$router.replace({path:"/redirect"+t})}))}}}),ee=Y,te=Object(p["a"])(ee,X,Z,!1,null,null,null),ne=te.exports,ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header-search",class:{show:e.show}},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(t){return t.stopPropagation(),e.click(t)}}}),n("el-select",{ref:"headerSearchSelect",staticClass:"header-search-select",attrs:{"remote-method":e.querySearch,filterable:"","default-first-option":"",remote:"",placeholder:"Search"},on:{change:e.change},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}},e._l(e.options,(function(e){return n("el-option",{key:e.path,attrs:{value:e,label:e.title.join(" > ")}})})),1)],1)},ie=[],oe=n("2909"),ce=n("b85c"),se=(n("841c"),n("ffe7")),re=n.n(se),le=n("df7c"),ue=n.n(le),de={name:"HeaderSearch",data:function(){return{search:"",options:[],searchPool:[],show:!1,fuse:void 0}},computed:{routes:function(){return this.$store.getters.permission_routes}},watch:{routes:function(){this.searchPool=this.generateRoutes(this.routes)},searchPool:function(e){this.initFuse(e)},show:function(e){e?document.body.addEventListener("click",this.close):document.body.removeEventListener("click",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.routes)},methods:{click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(e){var t=this;this.$router.push(e.path),this.search="",this.options=[],this.$nextTick((function(){t.show=!1}))},initFuse:function(e){this.fuse=new re.a(e,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"title",weight:.7},{name:"path",weight:.3}]})},generateRoutes:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=[],o=Object(ce["a"])(e);try{for(o.s();!(t=o.n()).done;){var c=t.value;if(!c.hidden){var s={path:ue.a.resolve(n,c.path),title:Object(oe["a"])(a)};if(c.meta&&c.meta.title&&(s.title=[].concat(Object(oe["a"])(s.title),[c.meta.title]),"noRedirect"!==c.redirect&&i.push(s)),c.children){var r=this.generateRoutes(c.children,s.path,s.title);r.length>=1&&(i=[].concat(Object(oe["a"])(i),Object(oe["a"])(r)))}}}}catch(l){o.e(l)}finally{o.f()}return i},querySearch:function(e){this.options=""!==e?this.fuse.search(e):[]}}},he=de,me=(n("0185"),Object(p["a"])(he,ae,ie,!1,null,"7633dc5e",null)),fe=me.exports,pe=n("b719"),ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.permission_routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},ge=[],we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},be=[],xe={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"Vue Element Admin",logo:"https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png"}}},ye=xe,ke=(n("f060"),Object(p["a"])(ye,we,be,!1,null,"c28012ce",null)),Ve=ke.exports,Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},_e=[],ze=n("61f7"),Se=(n("caad"),n("2532"),{name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,a=n.icon,i=n.title,o=[];return a&&(a.includes("el-icon")?o.push(e("i",{class:[a,"sub-el-icon"]})):o.push(e("svg-icon",{attrs:{"icon-class":a}}))),i&&o.push(e("span",{slot:"title"},[i])),o}}),Ee=Se,Le=(n("f87e"),Object(p["a"])(Ee,a,i,!1,null,"18eeea00",null)),Oe=Le.exports,Me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},Te=[],He={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(ze["b"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},$e=He,Be=Object(p["a"])($e,Me,Te,!1,null,null,null),De=Be.exports,Ae={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},je={name:"SidebarItem",components:{Item:Oe,AppLink:De},mixins:[Ae],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(l["a"])(Object(l["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(ze["b"])(e)?e:Object(ze["b"])(this.basePath)?this.basePath:ue.a.resolve(this.basePath,e)}}},Ie=je,Pe=Object(p["a"])(Ie,Ce,_e,!1,null,null,null),Re=Pe.exports,We=n("cf1e"),Ne=n.n(We),qe={components:{SidebarItem:Re,Logo:Ve},computed:Object(l["a"])(Object(l["a"])({},Object(E["b"])(["permission_routes","sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Ne.a},isCollapse:function(){return!this.sidebar.opened}})},Ue=qe,Fe=Object(p["a"])(Ue,ve,ge,!1,null,null,null),Qe=Fe.exports,Ge=n("5b23"),Je=n("b775");function Ke(){return Object(Je["a"])({url:"/admin/qa/getQaList",method:"get"})}var Xe=n("9169"),Ze={directives:{clickoutside:Xe["a"]},components:{Breadcrumb:D,Hamburger:W,Screenfull:K,SizeSelect:ne,Search:fe},computed:Object(l["a"])({avatar:function(){return Ge["a"]},sidebar:function(){return Qe}},Object(E["b"])(["sidebar","avatar","device"])),data:function(){return{workstatus:!1,drawer:!1,showAvatar:!1,dialogPWD:!1,dialogWorks:!1,centerDialogVisible:!1,imageUrl:!1,QaShow:!0,os:[],getQaList:[],times:[],form:{oldpwd:"",pwd:""},QaInfo:{title:"",content:""},rules:{oldpwd:[{required:!0,message:"请输入旧密码",trigger:"blur"},{min:6,max:20,message:"长度在 6 到 20 个字符",trigger:"blur"}],pwd:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,max:20,message:"长度在 6 到 20 个字符",trigger:"blur"}]}}},created:function(){var e=this;this.getworkstatus(),Ke().then((function(t){e.getQaList=t.data}))},methods:{color:pe["color"],toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},handleClose:function(){this.drawer=!1,this.QaShow=!0},getQaDetail:function(e){if(this.QaInfo=e,!this.QaInfo)return this.$message({message:"暂无QA问题",type:"warning",duration:1500});this.QaShow=!1},logout:function(){var e=this;return Object(S["a"])(Object(z["a"])().mark((function t(){return Object(z["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("user/logout");case 2:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 3:case"end":return t.stop()}}),t)})))()},handleAvatarSuccess:function(e,t){this.imageUrl=URL.createObjectURL(t.raw)},pwd:function(){var e=this;this.$axios.post("/admin/admin/pwd",this.form).then((function(t){e.dialogPWD=!1,e.form={}})).catch((function(e){console.log(e)}))},saveWork:function(){var e=this;this.$axios.post("/admin/work/save2",{times:this.times,os:this.os}).then((function(t){console.log(t),e.$message({showClose:!0,message:"添加成功"}),e.dialogWorks=!1})).catch((function(e){console.log(e)}))},startWorks:function(){var e=this;this.$axios.post("/admin/admin/editInfo",{is_order:1}).then((function(t){console.log(t),e.$message({showClose:!0,message:"上班成功"}),e.getworkstatus()})).catch((function(e){console.log(e)}))},endWorks:function(){var e=this;this.$axios.post("/admin/admin/editInfo",{is_order:0}).then((function(t){console.log(t),e.$message({showClose:!0,message:"下班成功"}),e.getworkstatus()})).catch((function(e){console.log(e)}))},getworkstatus:function(){var e=this;this.$axios.post("/admin/work/getworkstatus",{id:this.id}).then((function(t){console.log(t),e.workstatus=t.data})).catch((function(e){console.log(e)}))},beforeAvatarUpload:function(e){var t="image/jpeg"===e.type,n=e.size/1024/1024<2;return t||this.$message.error("上传头像图片只能是 JPG 格式!"),n||this.$message.error("上传头像图片大小不能超过 2MB!"),t&&n}}},Ye=Ze,et=(n("75e1"),Object(p["a"])(Ye,C,_,!1,null,"beddb142",null)),tt=et.exports,nt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"drawer-container"},[n("div",[n("h3",{staticClass:"drawer-title"},[e._v("Page style setting")]),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Theme Color")]),n("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:e.themeChange}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Open Tags-View")]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.tagsView,callback:function(t){e.tagsView=t},expression:"tagsView"}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Fixed Header")]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.fixedHeader,callback:function(t){e.fixedHeader=t},expression:"fixedHeader"}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Sidebar Logo")]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.sidebarLogo,callback:function(t){e.sidebarLogo=t},expression:"sidebarLogo"}})],1)])])},at=[],it=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})},ot=[],ct=(n("a15b"),n("fb6a"),n("b680"),n("4d63"),n("2c3e"),n("00b4"),n("25f0"),n("159b"),n("f6f8").version),st="#409EFF",rt={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(e,t){this.theme=e},immediate:!0},theme:function(e){var t=this;return Object(S["a"])(Object(z["a"])().mark((function n(){var a,i,o,c,s,r,l,u;return Object(z["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=t.chalk?t.theme:st,"string"===typeof e){n.next=3;break}return n.abrupt("return");case 3:if(i=t.getThemeCluster(e.replace("#","")),o=t.getThemeCluster(a.replace("#","")),console.log(i,o),c=t.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),s=function(e,n){return function(){var a=t.getThemeCluster(st.replace("#","")),o=t.updateStyle(t[e],a,i),c=document.getElementById(n);c||(c=document.createElement("style"),c.setAttribute("id",n),document.head.appendChild(c)),c.innerText=o}},t.chalk){n.next=12;break}return r="https://unpkg.com/element-ui@".concat(ct,"/lib/theme-chalk/index.css"),n.next=12,t.getCSSString(r,"chalk");case 12:l=s("chalk","chalk-style"),l(),u=[].slice.call(document.querySelectorAll("style")).filter((function(e){var t=e.innerText;return new RegExp(a,"i").test(t)&&!/Chalk Variables/.test(t)})),u.forEach((function(e){var n=e.innerText;"string"===typeof n&&(e.innerText=t.updateStyle(n,o,i))})),t.$emit("change",e),c.close();case 18:case"end":return n.stop()}}),n)})))()}},methods:{updateStyle:function(e,t,n){var a=e;return t.forEach((function(e,t){a=a.replace(new RegExp(e,"ig"),n[t])})),a},getCSSString:function(e,t){var n=this;return new Promise((function(a){var i=new XMLHttpRequest;i.onreadystatechange=function(){4===i.readyState&&200===i.status&&(n[t]=i.responseText.replace(/@font-face{[^}]+}/,""),a())},i.open("GET",e),i.send()}))},getThemeCluster:function(e){for(var t=function(e,t){var n=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16);return 0===t?[n,a,i].join(","):(n+=Math.round(t*(255-n)),a+=Math.round(t*(255-a)),i+=Math.round(t*(255-i)),n=n.toString(16),a=a.toString(16),i=i.toString(16),"#".concat(n).concat(a).concat(i))},n=function(e,t){var n=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16);return n=Math.round((1-t)*n),a=Math.round((1-t)*a),i=Math.round((1-t)*i),n=n.toString(16),a=a.toString(16),i=i.toString(16),"#".concat(n).concat(a).concat(i)},a=[e],i=0;i<=9;i++)a.push(t(e,Number((i/10).toFixed(2))));return a.push(n(e,.1)),a}}},lt=rt,ut=(n("f26d"),Object(p["a"])(lt,it,ot,!1,null,null,null)),dt=ut.exports,ht={components:{ThemePicker:dt},data:function(){return{}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:e})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:e})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:e})}}},methods:{themeChange:function(e){this.$store.dispatch("settings/changeSetting",{key:"theme",value:e})}}},mt=ht,ft=(n("4d27"),Object(p["a"])(mt,nt,at,!1,null,"5d274279",null)),pt=ft.exports,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[n("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper",on:{scroll:e.handleScroll}},e._l(e.visitedViews,(function(t){return n("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:e.isActive(t)?"active":"",attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath},tag:"span"},nativeOn:{mouseup:function(n){if("button"in n&&1!==n.button)return null;!e.isAffix(t)&&e.closeSelectedTag(t)},contextmenu:function(n){return n.preventDefault(),e.openMenu(t,n)}}},[e._v(" "+e._s(t.title)+" "),e.isAffix(t)?e._e():n("span",{staticClass:"el-icon-close",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.closeSelectedTag(t)}}})])})),1),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[n("li",{on:{click:function(t){return e.refreshSelectedTag(e.selectedTag)}}},[e._v("刷新")]),e.isAffix(e.selectedTag)?e._e():n("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[e._v("关闭")]),n("li",{on:{click:e.closeOthersTags}},[e._v("关闭其他")]),n("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[e._v("关闭所有")])])],1)},gt=[],wt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[e._t("default")],2)},bt=[],xt=(n("c740"),4),yt={name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},mounted:function(){this.scrollWrapper.addEventListener("scroll",this.emitScroll,!0)},beforeDestroy:function(){this.scrollWrapper.removeEventListener("scroll",this.emitScroll)},methods:{handleScroll:function(e){var t=e.wheelDelta||40*-e.deltaY,n=this.scrollWrapper;n.scrollLeft=n.scrollLeft+t/4},emitScroll:function(){this.$emit("scroll")},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el,n=t.offsetWidth,a=this.scrollWrapper,i=this.$parent.$refs.tag,o=null,c=null;if(i.length>0&&(o=i[0],c=i[i.length-1]),o===e)a.scrollLeft=0;else if(c===e)a.scrollLeft=a.scrollWidth-n;else{var s=i.findIndex((function(t){return t===e})),r=i[s-1],l=i[s+1],u=l.$el.offsetLeft+l.$el.offsetWidth+xt,d=r.$el.offsetLeft-xt;u>a.scrollLeft+n?a.scrollLeft=u-n:d1&&void 0!==arguments[1]?arguments[1]:"/",a=[];return e.forEach((function(e){if(e.meta&&e.meta.affix){var i=ue.a.resolve(n,e.path);a.push({fullPath:i,path:i,name:e.name,meta:Object(l["a"])({},e.meta)})}if(e.children){var o=t.filterAffixTags(e.children,e.path);o.length>=1&&(a=[].concat(Object(oe["a"])(a),Object(oe["a"])(o)))}})),a},initTags:function(){var e,t=this.affixTags=this.filterAffixTags(this.routes),n=Object(ce["a"])(t);try{for(n.s();!(e=n.n()).done;){var a=e.value;a.name&&this.$store.dispatch("tagsView/addVisitedView",a)}}catch(i){n.e(i)}finally{n.f()}},addTags:function(){var e=this.$route.name;return e&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick((function(){var n,a=Object(ce["a"])(t);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(i),i.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(o){a.e(o)}finally{a.f()}}))},refreshSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delCachedView",e).then((function(){var n=e.fullPath;t.$nextTick((function(){t.$router.replace({path:"/redirect"+n})}))}))},closeSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delView",e).then((function(n){var a=n.visitedViews;t.isActive(e)&&t.toLastView(a,e)}))},closeOthersTags:function(){var e=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){e.moveToCurrentTag()}))},closeAllTags:function(e){var t=this;this.$store.dispatch("tagsView/delAllViews").then((function(n){var a=n.visitedViews;t.affixTags.some((function(t){return t.path===e.path}))||t.toLastView(a,e)}))},toLastView:function(e,t){var n=e.slice(-1)[0];n?this.$router.push(n.fullPath):"Dashboard"===t.name?this.$router.replace({path:"/redirect"+t.fullPath}):this.$router.push("/")},openMenu:function(e,t){var n=105,a=this.$el.getBoundingClientRect().left,i=this.$el.offsetWidth,o=i-n,c=t.clientX-a+15;this.left=c>o?o:c,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1},handleScroll:function(){this.closeMenu()}}},zt=_t,St=(n("ec31"),n("dd78"),Object(p["a"])(zt,vt,gt,!1,null,"ab894734",null)),Et=St.exports,Lt=n("4360"),Ot=document,Mt=Ot.body,Tt=992,Ht={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&Lt["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(Lt["a"].dispatch("app/toggleDevice","mobile"),Lt["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=Mt.getBoundingClientRect();return e.width-10&&e.$notify({title:"新的订单提醒",duration:0,dangerouslyUseHTMLString:!0,message:"你有("+t.data.new+")个新的订单,需要处理"}),t&&t.data.follow>0&&e.$notify({title:"新的跟进提醒",duration:1e4,dangerouslyUseHTMLString:!0,message:"你有("+t.data.follow+")个跟进订单,需要处理"}),t&&t.data.back>0&&e.$notify({title:"转单申请",duration:1e4,dangerouslyUseHTMLString:!0,message:"你有("+t.data.back+")个转单订单,需要处理"})})).catch((function(e){console.log(e)}))}),3e4)},methods:{handleClickOutside:function(){this.$store.dispatch("app/closeSideBar",{withoutAnimation:!1})}}},Dt=Bt,At=(n("e340"),Object(p["a"])(Dt,s,r,!1,null,"f03d213a",null)),jt=At.exports;o["default"].use(c["a"]);var It=[{path:"/redirect",component:jt,hidden:!0,children:[{path:"/redirect/:path(.*)",component:function(){return n.e("chunk-2d230fe7").then(n.bind(null,"ef3c"))}}]},{path:"/login",component:function(){return n.e("chunk-0579811f").then(n.bind(null,"9ed6"))},hidden:!0},{path:"/auth-redirect",component:function(){return n.e("chunk-2d2105d3").then(n.bind(null,"b829"))},hidden:!0},{path:"/404",component:function(){return n.e("chunk-169fa71c").then(n.bind(null,"1db4"))},hidden:!0},{path:"/401",component:function(){return n.e("chunk-023b2e94").then(n.bind(null,"24e2"))},hidden:!0},{path:"/",component:jt,redirect:"/dashboard",children:[{path:"dashboard",component:function(){return Promise.all([n.e("chunk-a73bcc0e"),n.e("chunk-15c26030")]).then(n.bind(null,"9406"))},name:"Dashboard",meta:{title:"系统面板",icon:"dashboard",affix:!0}}]}],Pt=[{path:"/system",component:jt,redirect:"/system",alwaysShow:!0,name:"System",meta:{title:"系统管理",icon:"el-icon-s-home",roles:["admin"]},children:[{path:"admin",component:function(){return n.e("chunk-2681d490").then(n.bind(null,"2953"))},name:"Admin",meta:{title:"管理员",roles:["admin"]}},{path:"works",component:function(){return n.e("chunk-f00febf4").then(n.bind(null,"da0f"))},name:"Works",meta:{title:"排班表",roles:["admin"]}},{path:"onlines",component:function(){return n.e("chunk-7b09886d").then(n.bind(null,"5c7c"))},name:"onlines",meta:{title:"在线客服",roles:["admin"]}}]},{path:"/order",component:jt,redirect:"/order/index",alwaysShow:!0,name:"Orders",meta:{title:"订单管理",icon:"money",roles:["order_index","editor"]},children:[{path:"index",component:function(){return n.e("chunk-9f239d64").then(n.bind(null,"634a"))},name:"OrderList",meta:{title:"订单列表",roles:["order_pub","editor"]}},{path:"back",component:function(){return n.e("chunk-f0f9165e").then(n.bind(null,"d0fc"))},name:"OrderBack",meta:{title:"流转订单",roles:["order_back","editor"]}},{path:"product",component:function(){return n.e("chunk-1d7aacc9").then(n.bind(null,"a25c"))},name:"productNameList",meta:{title:"产品统计",roles:["order_pub","editor"]}}]},{path:"/log",component:jt,redirect:"/log/index",alwaysShow:!0,name:"Log",meta:{title:"日志记录",icon:"nested",roles:["follow_index","log_index","editor"]},children:[{path:"follow",component:function(){return n.e("chunk-46a84215").then(n.bind(null,"16eb"))},name:"Follow",meta:{title:"跟进记录",roles:["follow_index","editor"]}},{path:"index",component:function(){return n.e("chunk-6e1eea3c").then(n.bind(null,"5905"))},name:"LogIndex",meta:{title:"日志记录",roles:["log_index"]}}]},{path:"/data",component:jt,redirect:"/data/index",alwaysShow:!0,name:"Data",meta:{title:"数据统计",icon:"chart",roles:["data_index"]},children:[{path:"index",component:function(){return n.e("chunk-2d0de3a1").then(n.bind(null,"856d"))},name:"Index",meta:{title:"跟进统计",roles:["data_index"]}},{path:"sale",component:function(){return n.e("chunk-2d21a050").then(n.bind(null,"ba72"))},name:"Sale",meta:{title:"销售统计",roles:["data_sale"]}}]},{path:"/icon",component:jt,children:[{path:"index",component:function(){return n.e("chunk-bc86863a").then(n.bind(null,"105d"))},name:"Icons",meta:{title:"Icons",icon:"icon",noCache:!0}}]},{path:"*",redirect:"/404",hidden:!0}],Rt=function(){return new c["a"]({scrollBehavior:function(){return{y:0}},routes:It})},Wt=Rt();function Nt(){var e=Rt();Wt.matcher=e.matcher}t["c"]=Wt},aa46:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-edit",use:"icon-edit-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},ab00:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},ad1c:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});c.a.add(s);t["default"]=s},b747:function(e,t,n){},b775:function(e,t,n){"use strict";n("d3b7");var a=n("bc3a"),i=n.n(a),o=n("5c96"),c=n("4360"),s=n("5f87"),r=i.a.create({baseURL:"/",timeout:1e4});r.interceptors.request.use((function(e){return c["a"].getters.token&&(e.headers["X-Token"]=Object(s["a"])()),e}),(function(e){return Promise.reject(e)})),r.interceptors.response.use((function(e){var t=e.data;return 0!==t.error?(Object(o["Message"])({message:t.msg||"Error",type:"error",duration:5e3}),50008!==t.code&&50012!==t.code&&50014!==t.code||o["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then((function(){c["a"].dispatch("user/resetToken").then((function(){location.reload()}))})),Promise.reject(new Error(t.message||"Error"))):t}),(function(e){return console.log("err"+e),Object(o["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)})),t["a"]=r},b8c7:function(e,t,n){},bae7:function(e,t,n){},bc35:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},bf48:function(e,t,n){"use strict";n("97bb")},c459:function(e,t,n){},c469:function(e,t,n){},c653:function(e,t,n){var a={"./app.js":"d9cd","./errorLog.js":"4d49","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=o,e.exports=i,i.id="c653"},c829:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},cbb7:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});c.a.add(s);t["default"]=s},ccbe:function(e,t,n){},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d056:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},d450:function(e,t,n){},d7ec:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(s);t["default"]=s},d9cd:function(e,t,n){"use strict";n.r(t);var a=n("a78e"),i=n.n(a),o={sidebar:{opened:!i.a.get("sidebarStatus")||!!+i.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",size:i.a.get("size")||"medium"},c={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?i.a.set("sidebarStatus",1):i.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){i.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_SIZE:function(e,t){e.size=t,i.a.set("size",t)}},s={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)},setSize:function(e,t){var n=e.commit;n("SET_SIZE",t)}};t["default"]={namespaced:!0,state:o,mutations:c,actions:s}},dbc7:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},dcf8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},dd78:function(e,t,n){"use strict";n("b8c7")},de06:function(e,t,n){"use strict";n("2bb1")},e340:function(e,t,n){"use strict";n("ccbe")},e4d6:function(e,t,n){"use strict";n("5efb")},e534:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},e7c8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},eb1b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},ec31:function(e,t,n){"use strict";n("fe8b")},ed08:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return l}));var a=n("53ca");n("a630"),n("a15b"),n("d81d"),n("fb6a"),n("b64b"),n("d3b7"),n("4d63"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("6062"),n("3ca3"),n("466d"),n("4d90"),n("5319"),n("159b"),n("ddb0");function i(e,t){if(0===arguments.length||!e)return null;var n,i=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(a["a"])(e)?n=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(new RegExp(/-/gm),"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),n=new Date(e));var o={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},c=i.replace(/{([ymdhisa])+}/g,(function(e,t){var n=o[t];return"a"===t?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return c}function o(e,t){e=10===(""+e).length?1e3*parseInt(e):+e;var n=new Date(e),a=Date.now(),o=(a-n)/1e3;return o<30?"刚刚":o<3600?Math.ceil(o/60)+"分钟前":o<86400?Math.ceil(o/3600)+"小时前":o<172800?"1天前":t?i(e,t):n.getMonth()+1+"月"+n.getDate()+"日"+n.getHours()+"时"+n.getMinutes()+"分"}function c(e,t,n){var a,i,o,c,s,r=function r(){var l=+new Date-c;l0?a=setTimeout(r,t-l):(a=null,n||(s=e.apply(o,i),a||(o=i=null)))};return function(){for(var i=arguments.length,l=new Array(i),u=0;u'});c.a.add(s);t["default"]=s},f819:function(e,t,n){},f87e:function(e,t,n){"use strict";n("279e")},f96b:function(e,t){var n=[{path:"/redirect",component:"layout/Layout",hidden:!0,children:[{path:"/redirect/:path*",component:"views/redirect/index"}]},{path:"/login",component:"views/login/index",hidden:!0},{path:"/auth-redirect",component:"views/login/auth-redirect",hidden:!0},{path:"/404",component:"views/error-page/404",hidden:!0},{path:"/401",component:"views/error-page/401",hidden:!0},{path:"",component:"layout/Layout",redirect:"dashboard",children:[{path:"dashboard",component:"views/dashboard/index",name:"Dashboard",meta:{title:"Dashboard",icon:"dashboard",affix:!0}}]},{path:"/documentation",component:"layout/Layout",children:[{path:"index",component:"views/documentation/index",name:"Documentation",meta:{title:"Documentation",icon:"documentation",affix:!0}}]},{path:"/guide",component:"layout/Layout",redirect:"/guide/index",children:[{path:"index",component:"views/guide/index",name:"Guide",meta:{title:"Guide",icon:"guide",noCache:!0}}]}],a=[{path:"/permission",component:"layout/Layout",redirect:"/permission/index",alwaysShow:!0,meta:{title:"Permission",icon:"lock",roles:["admin","editor"]},children:[{path:"page",component:"views/permission/page",name:"PagePermission",meta:{title:"Page Permission",roles:["admin"]}},{path:"directive",component:"views/permission/directive",name:"DirectivePermission",meta:{title:"Directive Permission"}},{path:"role",component:"views/permission/role",name:"RolePermission",meta:{title:"Role Permission",roles:["admin"]}}]},{path:"/icon",component:"layout/Layout",children:[{path:"index",component:"views/icons/index",name:"Icons",meta:{title:"Icons",icon:"icon",noCache:!0}}]},{path:"/components",component:"layout/Layout",redirect:"noRedirect",name:"ComponentDemo",meta:{title:"Components",icon:"component"},children:[{path:"tinymce",component:"views/components-demo/tinymce",name:"TinymceDemo",meta:{title:"Tinymce"}},{path:"markdown",component:"views/components-demo/markdown",name:"MarkdownDemo",meta:{title:"Markdown"}},{path:"json-editor",component:"views/components-demo/json-editor",name:"JsonEditorDemo",meta:{title:"Json Editor"}},{path:"split-pane",component:"views/components-demo/split-pane",name:"SplitpaneDemo",meta:{title:"SplitPane"}},{path:"avatar-upload",component:"views/components-demo/avatar-upload",name:"AvatarUploadDemo",meta:{title:"Avatar Upload"}},{path:"dropzone",component:"views/components-demo/dropzone",name:"DropzoneDemo",meta:{title:"Dropzone"}},{path:"sticky",component:"views/components-demo/sticky",name:"StickyDemo",meta:{title:"Sticky"}},{path:"count-to",component:"views/components-demo/count-to",name:"CountToDemo",meta:{title:"Count To"}},{path:"mixin",component:"views/components-demo/mixin",name:"ComponentMixinDemo",meta:{title:"componentMixin"}},{path:"back-to-top",component:"views/components-demo/back-to-top",name:"BackToTopDemo",meta:{title:"Back To Top"}},{path:"drag-dialog",component:"views/components-demo/drag-dialog",name:"DragDialogDemo",meta:{title:"Drag Dialog"}},{path:"drag-select",component:"views/components-demo/drag-select",name:"DragSelectDemo",meta:{title:"Drag Select"}},{path:"dnd-list",component:"views/components-demo/dnd-list",name:"DndListDemo",meta:{title:"Dnd List"}},{path:"drag-kanban",component:"views/components-demo/drag-kanban",name:"DragKanbanDemo",meta:{title:"Drag Kanban"}}]},{path:"/charts",component:"layout/Layout",redirect:"noRedirect",name:"Charts",meta:{title:"Charts",icon:"chart"},children:[{path:"keyboard",component:"views/charts/keyboard",name:"KeyboardChart",meta:{title:"Keyboard Chart",noCache:!0}},{path:"line",component:"views/charts/line",name:"LineChart",meta:{title:"Line Chart",noCache:!0}},{path:"mixchart",component:"views/charts/mixChart",name:"MixChart",meta:{title:"Mix Chart",noCache:!0}}]},{path:"/nested",component:"layout/Layout",redirect:"/nested/menu1/menu1-1",name:"Nested",meta:{title:"Nested",icon:"nested"},children:[{path:"menu1",component:"views/nested/menu1/index",name:"Menu1",meta:{title:"Menu1"},redirect:"/nested/menu1/menu1-1",children:[{path:"menu1-1",component:"views/nested/menu1/menu1-1",name:"Menu1-1",meta:{title:"Menu1-1"}},{path:"menu1-2",component:"views/nested/menu1/menu1-2",name:"Menu1-2",redirect:"/nested/menu1/menu1-2/menu1-2-1",meta:{title:"Menu1-2"},children:[{path:"menu1-2-1",component:"views/nested/menu1/menu1-2/menu1-2-1",name:"Menu1-2-1",meta:{title:"Menu1-2-1"}},{path:"menu1-2-2",component:"views/nested/menu1/menu1-2/menu1-2-2",name:"Menu1-2-2",meta:{title:"Menu1-2-2"}}]},{path:"menu1-3",component:"views/nested/menu1/menu1-3",name:"Menu1-3",meta:{title:"Menu1-3"}}]},{path:"menu2",name:"Menu2",component:"views/nested/menu2/index",meta:{title:"Menu2"}}]},{path:"/example",component:"layout/Layout",redirect:"/example/list",name:"Example",meta:{title:"Example",icon:"example"},children:[{path:"create",component:"views/example/create",name:"CreateArticle",meta:{title:"Create Article",icon:"edit"}},{path:"edit/:id(\\d+)",component:"views/example/edit",name:"EditArticle",meta:{title:"Edit Article",noCache:!0},hidden:!0},{path:"list",component:"views/example/list",name:"ArticleList",meta:{title:"Article List",icon:"list"}}]},{path:"/tab",component:"layout/Layout",children:[{path:"index",component:"views/tab/index",name:"Tab",meta:{title:"Tab",icon:"tab"}}]},{path:"/error",component:"layout/Layout",redirect:"noRedirect",name:"ErrorPages",meta:{title:"Error Pages",icon:"404"},children:[{path:"401",component:"views/error-page/401",name:"Page401",meta:{title:"Page 401",noCache:!0}},{path:"404",component:"views/error-page/404",name:"Page404",meta:{title:"Page 404",noCache:!0}}]},{path:"/error-log",component:"layout/Layout",redirect:"noRedirect",children:[{path:"log",component:"views/error-log/index",name:"ErrorLog",meta:{title:"Error Log",icon:"bug"}}]},{path:"/excel",component:"layout/Layout",redirect:"/excel/export-excel",name:"Excel",meta:{title:"Excel",icon:"excel"},children:[{path:"export-excel",component:"views/excel/export-excel",name:"ExportExcel",meta:{title:"Export Excel"}},{path:"export-selected-excel",component:"views/excel/select-excel",name:"SelectExcel",meta:{title:"Select Excel"}},{path:"export-merge-header",component:"views/excel/merge-header",name:"MergeHeader",meta:{title:"Merge Header"}},{path:"upload-excel",component:"views/excel/upload-excel",name:"UploadExcel",meta:{title:"Upload Excel"}}]},{path:"/zip",component:"layout/Layout",redirect:"/zip/download",alwaysShow:!0,meta:{title:"Zip",icon:"zip"},children:[{path:"download",component:"views/zip/index",name:"ExportZip",meta:{title:"Export Zip"}}]},{path:"/pdf",component:"layout/Layout",redirect:"/pdf/index",children:[{path:"index",component:"views/pdf/index",name:"PDF",meta:{title:"PDF",icon:"pdf"}}]},{path:"/pdf/download",component:"views/pdf/download",hidden:!0},{path:"/theme",component:"layout/Layout",redirect:"noRedirect",children:[{path:"index",component:"views/theme/index",name:"Theme",meta:{title:"Theme",icon:"theme"}}]},{path:"/clipboard",component:"layout/Layout",redirect:"noRedirect",children:[{path:"index",component:"views/clipboard/index",name:"ClipboardDemo",meta:{title:"Clipboard Demo",icon:"clipboard"}}]},{path:"/i18n",component:"layout/Layout",children:[{path:"index",component:"views/i18n-demo/index",name:"I18n",meta:{title:"I18n",icon:"international"}}]},{path:"external-link",component:"layout/Layout",children:[{path:"https://github.com/PanJiaChen/vue-element-admin",meta:{title:"External Link",icon:"link"}}]},{path:"*",redirect:"/404",hidden:!0}];e.exports={constantRoutes:n,asyncRoutes:a}},f9a1:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(s);t["default"]=s},fe8b:function(e,t,n){}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);
\ No newline at end of file
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0185":function(e,t,n){"use strict";n("a187")},"0461":function(e,t,n){},"0781":function(e,t,n){"use strict";n.r(t);var a=n("24ab"),i=n.n(a),o=n("83d6"),c=n.n(o),s=c.a.showSettings,r=c.a.tagsView,l=c.a.fixedHeader,u=c.a.sidebarLogo,d={theme:i.a.theme,showSettings:s,tagsView:r,fixedHeader:l,sidebarLogo:u},h={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},m={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}};t["default"]={namespaced:!0,state:d,mutations:h,actions:m}},"096e":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"0f9a":function(e,t,n){"use strict";n.r(t);var a=n("c7eb"),i=n("1da1"),o=(n("b0c0"),n("d3b7"),n("498a"),n("b775"));function c(e){return Object(o["a"])({url:"/admin/login",method:"post",data:e})}function s(e){return Object(o["a"])({url:"/admin/index/info",method:"get",params:{token:e}})}function r(){return Object(o["a"])({url:"/admin/login/logout",method:"post"})}var l=n("5f87"),u=n("a18c"),d={token:Object(l["a"])(),name:"",avatar:"",is_anchor:0,introduction:"",roles:[],oss:[]},h={SET_TOKEN:function(e,t){e.token=t},SET_INTRODUCTION:function(e,t){e.introduction=t},SET_NAME:function(e,t){e.name=t},SET_AVATAR:function(e,t){e.avatar=t},SET_ANCHOR:function(e,t){e.is_anchor=t},SET_ROLES:function(e,t){e.roles=t},SET_OSS:function(e,t){e.oss=t}},m={login:function(e,t){var n=e.commit,a=t.username,i=t.password;return new Promise((function(e,t){c({username:a.trim(),password:i}).then((function(t){var a=t.data;n("SET_TOKEN",a.token),Object(l["c"])(a.token),e()})).catch((function(e){t(e)}))}))},getInfo:function(e){var t=e.commit,n=e.state;return new Promise((function(e,a){s(n.token).then((function(n){var i=n.data;i||a("Verification failed, please Login again.");var o=i.roles,c=i.name,s=i.avatar,r=i.is_anchor,l=i.introduction,u=i.oss;(!o||o.length<=0)&&a("getInfo: roles must be a non-null array!"),t("SET_ROLES",o),t("SET_NAME",c),t("SET_AVATAR",s),t("SET_ANCHOR",r),t("SET_INTRODUCTION",l),t("SET_OSS",u),e(i)})).catch((function(e){a(e)}))}))},logout:function(e){var t=e.commit,n=e.state,a=e.dispatch;return new Promise((function(e,i){r(n.token).then((function(){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(l["b"])(),Object(u["d"])(),a("tagsView/delAllViews",null,{root:!0}),e()})).catch((function(e){i(e)}))}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(l["b"])(),e()}))},changeRoles:function(e,t){return Object(i["a"])(Object(a["a"])().mark((function n(){var i,o,c,s,r,d;return Object(a["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e.commit,o=e.dispatch,c=t+"-token",i("SET_TOKEN",c),Object(l["c"])(c),n.next=6,o("getInfo");case 6:return s=n.sent,r=s.roles,Object(u["d"])(),n.next=11,o("permission/generateRoutes",r,{root:!0});case 11:d=n.sent,u["c"].addRoutes(d),o("tagsView/delAllViews",null,{root:!0});case 14:case"end":return n.stop()}}),n)})))()}};t["default"]={namespaced:!0,state:d,mutations:h,actions:m}},"10f2":function(e,t,n){},"12a5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},1430:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},1638:function(e,t,n){},1779:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"17df":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"18f0":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"24ab":function(e,t,n){e.exports={theme:"#1890ff"}},2580:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"279e":function(e,t,n){},"2a2d":function(e,t,n){n("4de4"),n("b0c0"),n("d3b7");for(var a=n("96eb"),i=[],o=100,c=0;c'});c.a.add(s);t["default"]=s},"2abb":function(e,t,n){"use strict";n("b747")},"2b29":function(e,t,n){"use strict";n("f6c3")},"2bb1":function(e,t,n){},"2f11":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},3046:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"30c3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"31c2":function(e,t,n){"use strict";n.r(t),n.d(t,"filterAsyncRoutes",(function(){return c}));var a=n("5530"),i=(n("99af"),n("caad"),n("d3b7"),n("2532"),n("159b"),n("a18c"));function o(e,t){return!t.meta||!t.meta.roles||e.some((function(e){return t.meta.roles.includes(e)}))}function c(e,t){var n=[];return e.forEach((function(e){var i=Object(a["a"])({},e);o(t,i)&&(i.children&&(i.children=c(i.children,t)),n.push(i))})),n}var s={routes:[],addRoutes:[]},r={SET_ROUTES:function(e,t){e.addRoutes=t,e.routes=i["b"].concat(t)}},l={generateRoutes:function(e,t){var n=e.commit;return new Promise((function(e){var a;a=t.includes("admin")?i["a"]||[]:c(i["a"],t),n("SET_ROUTES",a),e(a)}))}};t["default"]={namespaced:!0,state:s,mutations:r,actions:l}},3289:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"331a":function(e,t){var n={admin:{token:"admin-token"},editor:{token:"editor-token"}},a={"admin-token":{roles:["admin"],introduction:"I am a super administrator",avatar:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",name:"Super Admin"},"editor-token":{roles:["editor"],introduction:"I am an editor",avatar:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",name:"Normal Editor"}};e.exports=[{url:"/vue-element-admin/user/login",type:"post",response:function(e){var t=e.body.username,a=n[t];return a?{code:2e4,data:a}:{code:60204,message:"Account and password are incorrect."}}},{url:"/vue-element-admin/user/info.*",type:"get",response:function(e){var t=e.query.token,n=a[t];return n?{code:2e4,data:n}:{code:50008,message:"Login failed, unable to get user details."}}},{url:"/vue-element-admin/user/logout",type:"post",response:function(e){return{code:2e4,data:"success"}}}]},"3a82":function(e,t,n){"use strict";n("10f2")},"3dde":function(e,t,n){"use strict";n("d450")},4360:function(e,t,n){"use strict";n("13d5"),n("d3b7"),n("ac1f"),n("5319"),n("ddb0");var a=n("2b0e"),i=n("2f62"),o=(n("b0c0"),{sidebar:function(e){return e.app.sidebar},size:function(e){return e.app.size},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},username:function(e){return e.user.username},oss:function(e){return e.user.oss},is_anchor:function(e){return e.user.is_anchor},introduction:function(e){return e.user.introduction},roles:function(e){return e.user.roles},permission_routes:function(e){return e.permission.routes},errorLogs:function(e){return e.errorLog.logs}}),c=o;a["default"].use(i["a"]);var s=n("c653"),r=s.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),a=s(t);return e[n]=a.default,e}),{}),l=new i["a"].Store({modules:r,getters:c});t["a"]=l},"47f1":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"47ff":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"4b0f":function(e,t,n){var a=n("6374").default,i=n("448a").default;n("99af"),n("b64b"),n("4d63"),n("ac1f"),n("2c3e"),n("25f0");var o=n("96eb"),c=n("8a60"),s=c.param2Obj,r=n("331a"),l=n("f3d6"),u=n("a109"),d=n("2a2d"),h=[].concat(i(r),i(l),i(u),i(d));function m(){function e(e){return function(t){var n=null;if(e instanceof Function){var a=t.body,i=t.type,c=t.url;n=e({method:i,body:JSON.parse(a),query:s(c)})}else n=e;return o.mock(n)}}o.XHR.prototype.proxy_send=o.XHR.prototype.send,o.XHR.prototype.send=function(){this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.proxy_send.apply(this,arguments)};var t,n=a(h);try{for(n.s();!(t=n.n()).done;){var i=t.value;o.mock(new RegExp(i.url),i.type||"get",e(i.response))}}catch(c){n.e(c)}finally{n.f()}}e.exports={mocks:h,mockXHR:m}},"4d27":function(e,t,n){"use strict";n("bae7")},"4d49":function(e,t,n){"use strict";n.r(t);n("a434");var a={logs:[]},i={ADD_ERROR_LOG:function(e,t){e.logs.push(t)},CLEAR_ERROR_LOG:function(e){e.logs.splice(0)}},o={addErrorLog:function(e,t){var n=e.commit;n("ADD_ERROR_LOG",t)},clearErrorLog:function(e){var t=e.commit;t("CLEAR_ERROR_LOG")}};t["default"]={namespaced:!0,state:a,mutations:i,actions:o}},"4df5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});c.a.add(s);t["default"]=s},"51ff":function(e,t,n){var a={"./404.svg":"a14a","./bug.svg":"1779","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./user.svg":"b3b5","./wechat.svg":"80da","./zip.svg":"8aa6"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=o,e.exports=i,i.id="51ff"},"56d6":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"56d7":function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"parseTime",(function(){return Q["d"]})),n.d(a,"formatTime",(function(){return Q["c"]})),n.d(a,"timeAgo",(function(){return J})),n.d(a,"numberFormatter",(function(){return K})),n.d(a,"toThousandFilter",(function(){return X})),n.d(a,"uppercaseFirst",(function(){return Z}));n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("4de4"),n("b64b"),n("d3b7"),n("159b");var i=n("2b0e"),o=n("a78e"),c=n.n(o),s=(n("f5df1"),n("5c96")),r=n.n(s),l=(n("24ab"),n("b20f"),n("caad"),n("2532"),n("4360"));function u(e,t){var n=t.value,a=l["a"].getters&&l["a"].getters.roles;if(!(n&&n instanceof Array))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");if(n.length>0){var i=n,o=a.some((function(e){return i.includes(e)}));o||e.parentNode&&e.parentNode.removeChild(e)}}var d={inserted:function(e,t){u(e,t)},update:function(e,t){u(e,t)}},h=function(e){e.directive("permission",d)};window.Vue&&(window["permission"]=d,Vue.use(h)),d.install=h;var m=d,f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},p=[],v=(n("b0c0"),n("99af"),function e(t){var n=t.container,a=void 0===n?document.body:n,i=t.width,o=void 0===i?"110px":i,c=t.height,s=void 0===c?"60px":c,r=t.textAlign,l=void 0===r?"center":r,u=t.textBaseline,d=void 0===u?"middle":u,h=t.font,m=void 0===h?"16px Microsoft Yahei":h,f=t.fillStyle,p=void 0===f?"rgba(184, 184, 184, 0.2)":f,v=t.content,g=void 0===v?"":v,w=t.rotate,b=void 0===w?-30:w,x=t.zIndex,y=void 0===x?1e4:x,k=document.createElement("canvas");k.setAttribute("width",o),k.setAttribute("height",s);var V=k.getContext("2d");V.textAlign=l,V.textBaseline=d,V.font=m,V.fillStyle=p,V.rotate(Math.PI/180*b),V.fillText(g,parseFloat(o)/2,parseFloat(s));var C=k.toDataURL("image/png"),_=document.querySelector(".__wm"),z=_||document.createElement("div"),S="\n position: fixed;\n top: 0;\n left: -20%;\n bottom: 0;\n right: 0;\n width: 260%;\n height: 100%;\n z-index: ".concat(y,";\n pointer-events: none;\n background: url('").concat(C,"') left top repeat;\n ");z.setAttribute("style",S),z.classList.add("__wm"),_||(a.style.position="relative",a.insertBefore(z,a.firstChild));var E=window,L=E.MutationObserver;if(L){var O=new L((function(){var t=document.querySelector(".__wm");(t&&t.getAttribute("style")!==S||!t)&&(O.disconnect(),O=new L((function(){})),e({container:document.getElementById("app"),width:"110px",height:"60px",textAlign:"center",textBaseline:"middle",font:"16px Microsoft Yahei",fillStyle:"rgba(184, 184, 184, 0.2 )",content:g,rotate:-30,zIndex:1e4}))}));O.observe(a,{attributes:!0,subtree:!0,childList:!0})}}),g=v,w={watch:{"$store.getters.name":"updateWatermark"},created:function(){this.addDefaultWatermark()},mounted:function(){this.updateWatermark()},methods:{addDefaultWatermark:function(){g({container:document.body,content:"金澳"})},updateWatermark:function(){var e=this.$store.getters.name;g({container:document.body,content:e?"".concat(e):"金澳"})}}},b=w,x=n("2877"),y=Object(x["a"])(b,f,p,!1,null,null,null),k=y.exports,V=n("a18c"),C=n("b775"),_=(n("d81d"),n("ddb0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isExternal?n("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):n("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[n("use",{attrs:{"xlink:href":e.iconName}})])}),z=[],S=n("61f7"),E={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(S["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},L=E,O=(n("2b29"),Object(x["a"])(L,_,z,!1,null,"f9f7fefc",null)),M=O.exports;i["default"].component("svg-icon",M);var T=n("51ff"),H=function(e){return e.keys().map(e)};H(T);var $=n("c7eb"),B=n("5530"),D=n("1da1"),A=n("323e"),j=n.n(A),I=(n("a5d8"),n("5f87")),P=n("83d6"),R=n.n(P),W=R.a.title||"Vue Element Admin";function N(e){return e?"".concat(e," - ").concat(W):"".concat(W)}j.a.configure({showSpinner:!1});var q=["/login","/auth-redirect"];V["c"].beforeEach(function(){var e=Object(D["a"])(Object($["a"])().mark((function e(t,n,a){var i,o,c,r,u;return Object($["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(j.a.start(),document.title=N(t.meta.title),i=Object(I["a"])(),!i){e.next=35;break}if("/login"!==t.path){e.next=9;break}a({path:"/"}),j.a.done(),e.next=33;break;case 9:if(o=l["a"].getters.roles&&l["a"].getters.roles.length>0,!o){e.next=14;break}a(),e.next=33;break;case 14:return e.prev=14,e.next=17,l["a"].dispatch("user/getInfo");case 17:return c=e.sent,r=c.roles,e.next=21,l["a"].dispatch("permission/generateRoutes",r);case 21:u=e.sent,V["c"].addRoutes(u),a(Object(B["a"])(Object(B["a"])({},t),{},{replace:!0})),e.next=33;break;case 26:return e.prev=26,e.t0=e["catch"](14),e.next=30,l["a"].dispatch("user/resetToken");case 30:s["Message"].error(e.t0||"Has Error"),a("/login?redirect=".concat(t.path)),j.a.done();case 33:e.next=36;break;case 35:-1!==q.indexOf(t.path)?a():(a("/login?redirect=".concat(t.path)),j.a.done());case 36:case"end":return e.stop()}}),e,null,[[14,26]])})));return function(t,n,a){return e.apply(this,arguments)}}()),V["c"].afterEach((function(){j.a.done()}));var U=R.a.errorLog;function F(){var e="production";return Object(S["c"])(U)?e===U:!!Object(S["a"])(U)&&U.includes(e)}F()&&(i["default"].config.errorHandler=function(e,t,n,a){i["default"].nextTick((function(){l["a"].dispatch("errorLog/addErrorLog",{err:e,vm:t,info:n,url:window.location.href}),console.error(e,n)}))});n("fb6a"),n("a9e3"),n("b680"),n("ac1f"),n("25f0"),n("5319");var Q=n("ed08");function G(e,t){return 1===e?e+t:e+t+"s"}function J(e){var t=Date.now()/1e3-Number(e);return t<3600?G(~~(t/60)," minute"):t<86400?G(~~(t/3600)," hour"):G(~~(t/86400)," day")}function K(e,t){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],a=0;a=n[a].value)return(e/n[a].value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[a].symbol;return e.toString()}function X(e){return(+e||0).toString().replace(/^-?\d+/g,(function(e){return e.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function Z(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Y=n("4b0f"),ee=Y.mockXHR;ee(),i["default"].use(r.a,{size:c.a.get("size")||"medium"}),i["default"].use(m),Object.keys(a).forEach((function(e){i["default"].filter(e,a[e])})),i["default"].config.productionTip=!1,i["default"].prototype.$axios=C["a"],i["default"].use(g);t["default"]=new i["default"]({el:"#app",router:V["c"],store:l["a"],render:function(e){return e(k)}})},"5efb":function(e,t,n){},"5f87":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return r}));var a=n("a78e"),i=n.n(a),o="AdminToken";function c(){return i.a.get(o)}function s(e){return i.a.set(o,e)}function r(){return i.a.remove(o)}},"61f7":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return c}));n("d3b7"),n("ac1f"),n("00b4"),n("25f0");function a(e){return/^(https?:|mailto:|tel:)/.test(e)}function i(e){return e.length>=2}function o(e){return"string"===typeof e||e instanceof String}function c(e){return"undefined"===typeof Array.isArray?"[object Array]"===Object.prototype.toString.call(e):Array.isArray(e)}},6599:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},6683:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"6ece":function(e,t,n){"use strict";n("1638")},"708a":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},7509:function(e,t,n){"use strict";n.r(t);var a=n("2909"),i=n("3835"),o=n("b85c"),c=(n("4de4"),n("caad"),n("fb6a"),n("a434"),n("b0c0"),n("d3b7"),n("2532"),n("ddb0"),{visitedViews:[],cachedViews:[]}),s={ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var n,a=Object(o["a"])(e.visitedViews.entries());try{for(a.s();!(n=a.n()).done;){var c=Object(i["a"])(n.value,2),s=c[0],r=c[1];if(r.path===t.path){e.visitedViews.splice(s,1);break}}}catch(l){a.e(l)}finally{a.f()}},DEL_CACHED_VIEW:function(e,t){var n=e.cachedViews.indexOf(t.name);n>-1&&e.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var n=e.cachedViews.indexOf(t.name);e.cachedViews=n>-1?e.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var n,a=Object(o["a"])(e.visitedViews);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i.path===t.path){i=Object.assign(i,t);break}}}catch(c){a.e(c)}finally{a.f()}}},r={addView:function(e,t){var n=e.dispatch;n("addVisitedView",t),n("addCachedView",t)},addVisitedView:function(e,t){var n=e.commit;n("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var n=e.commit;n("ADD_CACHED_VIEW",t)},delView:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delVisitedView",t),n("delCachedView",t),e({visitedViews:Object(a["a"])(i.visitedViews),cachedViews:Object(a["a"])(i.cachedViews)})}))},delVisitedView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_VISITED_VIEW",t),e(Object(a["a"])(i.visitedViews))}))},delCachedView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_CACHED_VIEW",t),e(Object(a["a"])(i.cachedViews))}))},delOthersViews:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delOthersVisitedViews",t),n("delOthersCachedViews",t),e({visitedViews:Object(a["a"])(i.visitedViews),cachedViews:Object(a["a"])(i.cachedViews)})}))},delOthersVisitedViews:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_OTHERS_VISITED_VIEWS",t),e(Object(a["a"])(i.visitedViews))}))},delOthersCachedViews:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_OTHERS_CACHED_VIEWS",t),e(Object(a["a"])(i.cachedViews))}))},delAllViews:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delAllVisitedViews",t),n("delAllCachedViews",t),e({visitedViews:Object(a["a"])(i.visitedViews),cachedViews:Object(a["a"])(i.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(a["a"])(n.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(a["a"])(n.cachedViews))}))},updateVisitedView:function(e,t){var n=e.commit;n("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:c,mutations:s,actions:r}},"75e1":function(e,t,n){"use strict";n("0461")},"80da":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});c.a.add(s);t["default"]=s},"83d6":function(e,t){e.exports={title:"Vue Element Admin",showSettings:!0,tagsView:!0,fixedHeader:!1,sidebarLogo:!1,errorLog:"production"}},8644:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"8a60":function(e,t,n){var a=n("7037").default;function i(e){var t=decodeURIComponent(e.split("?")[1]).replace(/\+/g," ");if(!t)return{};var n={},a=t.split("&");return a.forEach((function(e){var t=e.indexOf("=");if(-1!==t){var a=e.substring(0,t),i=e.substring(t+1,e.length);n[a]=i}})),n}function o(e){if(!e&&"object"!==a(e))throw new Error("error arguments","deepClone");var t=e.constructor===Array?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"===a(e[n])?t[n]=o(e[n]):t[n]=e[n]})),t}n("b64b"),n("d3b7"),n("ac1f"),n("5319"),n("159b"),e.exports={param2Obj:i,deepClone:o}},"8aa6":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"8dd0":function(e,t,n){"use strict";n("c459")},"8e8d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"8fb7":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"90fb":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"93cd":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"97bb":function(e,t,n){},9921:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"9bbf":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"9d91":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},a109:function(e,t,n){n("4de4"),n("4e82"),n("d3b7");for(var a=n("96eb"),i=[],o=100,c='I am testing data, I am testing data.
',s="https://wpimg.wallstcn.com/e4558086-631c-425c-9430-56ffb46e70b3",r=0;r=l*(s-1)}));return{code:2e4,data:{total:d.length,items:h}}}},{url:"/vue-element-admin/article/detail",type:"get",response:function(e){for(var t=e.query.id,n=0,a=i;n'});c.a.add(s);t["default"]=s},a187:function(e,t,n){},a18c:function(e,t,n){"use strict";n.d(t,"b",(function(){return It})),n.d(t,"a",(function(){return Pt})),n.d(t,"d",(function(){return Nt}));n("d3b7"),n("3ca3"),n("ddb0");var a,i,o=n("2b0e"),c=n("8c4f"),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView}},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar"),e.needTagsView?n("tags-view"):e._e()],1),n("app-main")],1)],1)},r=[],l=n("5530"),u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"rightPanel",staticClass:"rightPanel-container",class:{show:e.show}},[n("div",{staticClass:"rightPanel-background"}),n("div",{staticClass:"rightPanel"},[n("div",{staticClass:"handle-button",style:{top:e.buttonTop+"px","background-color":e.theme},on:{click:function(t){e.show=!e.show}}},[n("i",{class:e.show?"el-icon-close":"el-icon-setting"})]),n("div",{staticClass:"rightPanel-items"},[e._t("default")],2)])])},d=[],h=(n("a9e3"),n("ed08")),m={name:"RightPanel",props:{clickNotClose:{default:!1,type:Boolean},buttonTop:{default:250,type:Number}},data:function(){return{show:!1}},computed:{theme:function(){return this.$store.state.settings.theme}},watch:{show:function(e){e&&!this.clickNotClose&&this.addEventClick(),e?Object(h["a"])(document.body,"showRightPanel"):Object(h["e"])(document.body,"showRightPanel")}},mounted:function(){this.insertToBody()},beforeDestroy:function(){var e=this.$refs.rightPanel;e.remove()},methods:{addEventClick:function(){window.addEventListener("click",this.closeSidebar)},closeSidebar:function(e){var t=e.target.closest(".rightPanel");t||(this.show=!1,window.removeEventListener("click",this.closeSidebar))},insertToBody:function(){var e=this.$refs.rightPanel,t=document.querySelector("body");t.insertBefore(e,t.firstChild)}}},f=m,p=(n("3a82"),n("e4d6"),n("2877")),v=Object(p["a"])(f,u,d,!1,null,"7ce91d5a",null),g=v.exports,w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("keep-alive",{attrs:{include:e.cachedViews}},[n("router-view",{key:e.key})],1)],1)],1)},b=[],x={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},y=x,k=(n("3dde"),n("bf48"),Object(p["a"])(y,w,b,!1,null,"92459f82",null)),V=k.exports,C=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),n("div",{staticClass:"right-menu"},["mobile"!==e.device?void 0:e._e(),n("div",{staticClass:"right-menu-item hover-effect"},[n("el-button",{on:{click:function(t){e.drawer=!0}}},[e._v("QA常见问题")])],1),e.$store.getters.is_anchor?n("div",{staticClass:"right-menu-item hover-effect"},[n("el-button",{on:{click:function(t){e.dialogWorks=!0}}},[e._v("排班"+e._s(e.$store.getters.name))])],1):e._e(),n("div",{staticClass:"right-menu-item hover-effect"},[n("el-button",{style:{backgroundColor:e.workstatus?"#fff":"#409EFF",color:e.workstatus?"#979797":"#fff"},on:{click:e.startWorks}},[e._v(e._s(e.workstatus?"上班":"上班中"))]),n("el-button",{style:{backgroundColor:e.workstatus?"#409EFF":"#fff",color:e.workstatus?"#fff":"#979797"},on:{click:e.endWorks}},[e._v(e._s(e.workstatus?"下班中":"下班"))])],1),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[n("div",{staticClass:"avatar-wrapper"},[n("img",{staticClass:"user-avatar",attrs:{src:e.avatar+"?imageView2/1/w/80/h/80",alt:""}}),n("i",{staticClass:"el-icon-camera",staticStyle:{position:"absolute"},on:{click:function(t){t.stopPropagation(),e.showAvatar=!0}}}),n("i",{staticClass:"el-icon-caret-bottom"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("router-link",{attrs:{to:"/"}},[n("el-dropdown-item",[e._v("系统面板")])],1),n("div",{on:{click:function(t){e.dialogPWD=!0}}},[n("el-dropdown-item",[e._v("修改密码")])],1),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout(t)}}},[n("span",{staticStyle:{display:"block"}},[e._v("退出登录")])])],1)],1)],2),n("el-dialog",{attrs:{title:"提示",visible:e.showAvatar,width:"30%",center:""},on:{"update:visible":function(t){e.showAvatar=t}}},[n("el-upload",{staticClass:"avatar-uploader",attrs:{action:"/admin/index/avatar","show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.imageUrl?n("img",{staticClass:"avatar",attrs:{src:e.imageUrl,alt:""}}):n("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),n("el-dialog",{attrs:{title:"修改密码",visible:e.dialogPWD},on:{"update:visible":function(t){e.dialogPWD=t}}},[n("el-form",{attrs:{rules:e.rules,model:e.form}},[n("el-form-item",{attrs:{label:"旧密码",prop:"oldpwd"}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.oldpwd,callback:function(t){e.$set(e.form,"oldpwd",t)},expression:"form.oldpwd"}})],1),n("el-form-item",{attrs:{label:"新密码",prop:"pwd"}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.pwd,callback:function(t){e.$set(e.form,"pwd",t)},expression:"form.pwd"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogPWD=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.pwd}},[e._v("确 定")])],1)],1),n("el-dialog",{attrs:{title:"排班",width:"90%",visible:e.dialogWorks},on:{"update:visible":function(t){e.dialogWorks=t}}},[n("el-form",{attrs:{rules:e.rules}},[n("el-row",{staticStyle:{"margin-bottom":"10px"}},[n("el-col",{attrs:{span:24}},[n("el-date-picker",{attrs:{placeholder:"选择开始时间","default-time":"07:00:00",type:"datetime"},model:{value:e.times[0],callback:function(t){e.$set(e.times,0,t)},expression:"times[0]"}})],1)],1),n("el-row",{staticStyle:{"margin-bottom":"10px"}},[n("el-col",{attrs:{span:24}},[n("el-date-picker",{attrs:{placeholder:"选择结束时间","default-time":"07:59:59",type:"datetime"},model:{value:e.times[1],callback:function(t){e.$set(e.times,1,t)},expression:"times[1]"}})],1)],1),n("el-row",{staticStyle:{"margin-bottom":"10px"}},[n("el-col",{attrs:{span:24}},[n("el-checkbox-group",{model:{value:e.os,callback:function(t){e.os=t},expression:"os"}},e._l(e.$store.getters.oss,(function(t,a,i){return n("el-checkbox",{key:i,attrs:{label:a}},[e._v(e._s(t))])})),1)],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogWorks=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveWork}},[e._v("确 定")])],1)],1),n("el-drawer",{attrs:{"with-header":!1,visible:e.drawer,size:"800px",direction:"rtl",modal:!1},on:{"update:visible":function(t){e.drawer=t}}},[n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"drawer"},[e.QaShow?n("el-button",{attrs:{type:"success"},on:{click:function(t){e.drawer=!1}}},[e._v("关 闭")]):e._e(),e.QaShow?e._e():n("el-button",{attrs:{type:"success"},on:{click:function(t){e.QaShow=!0}}},[e._v("返 回")]),e.QaShow?n("div",{staticClass:"mod"},e._l(e.getQaList,(function(t){return n("el-button",{staticStyle:{width:"150px"},attrs:{size:"medium",type:"primary"},on:{click:function(n){return e.getQaDetail(t)}}},[e._v(" "+e._s(t.city_name)+" ")])})),1):e._e(),e.QaInfo&&!e.QaShow?n("div",{staticClass:"ver"},[n("div",{staticClass:"ver_title"},[e._v(e._s(e.QaInfo.title))]),n("div",{staticClass:"ver_content"},[e._v(e._s(e.QaInfo.content))])]):e._e()],1)])],1)},_=[],z=n("c7eb"),S=n("1da1"),E=(n("2b3d"),n("bf19"),n("9861"),n("2f62")),L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,a){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||a==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},O=[],M=(n("99af"),n("4de4"),n("b0c0"),n("2ca0"),n("498a"),n("bd11")),T=n.n(M),H={data:function(){return{levelList:null}},watch:{$route:function(e){e.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"Dashboard"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=T.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},$=H,B=(n("6ece"),Object(p["a"])($,L,O,!1,null,"1919fc1a",null)),D=B.exports,A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},j=[],I={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},P=I,R=(n("8dd0"),Object(p["a"])(P,A,j,!1,null,"49e15297",null)),W=R.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("svg-icon",{attrs:{"icon-class":e.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:e.click}})],1)},q=[],U=n("93bf"),F=n.n(U),Q={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!F.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;F.a.toggle()},change:function(){this.isFullscreen=F.a.isFullscreen},init:function(){F.a.enabled&&F.a.on("change",this.change)},destroy:function(){F.a.enabled&&F.a.off("change",this.change)}}},G=Q,J=(n("2abb"),Object(p["a"])(G,N,q,!1,null,"1d75d652",null)),K=J.exports,X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleSetSize}},[n("div",[n("svg-icon",{attrs:{"class-name":"size-icon","icon-class":"size"}})],1),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.sizeOptions,(function(t){return n("el-dropdown-item",{key:t.value,attrs:{disabled:e.size===t.value,command:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1)],1)},Z=[],Y=(n("ac1f"),n("5319"),{data:function(){return{sizeOptions:[{label:"Default",value:"default"},{label:"Medium",value:"medium"},{label:"Small",value:"small"},{label:"Mini",value:"mini"}]}},computed:{size:function(){return this.$store.getters.size}},methods:{handleSetSize:function(e){this.$ELEMENT.size=e,this.$store.dispatch("app/setSize",e),this.refreshView(),this.$message({message:"Switch Size Success",type:"success"})},refreshView:function(){var e=this;this.$store.dispatch("tagsView/delAllCachedViews",this.$route);var t=this.$route.fullPath;this.$nextTick((function(){e.$router.replace({path:"/redirect"+t})}))}}}),ee=Y,te=Object(p["a"])(ee,X,Z,!1,null,null,null),ne=te.exports,ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header-search",class:{show:e.show}},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(t){return t.stopPropagation(),e.click(t)}}}),n("el-select",{ref:"headerSearchSelect",staticClass:"header-search-select",attrs:{"remote-method":e.querySearch,filterable:"","default-first-option":"",remote:"",placeholder:"Search"},on:{change:e.change},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}},e._l(e.options,(function(e){return n("el-option",{key:e.path,attrs:{value:e,label:e.title.join(" > ")}})})),1)],1)},ie=[],oe=n("2909"),ce=n("b85c"),se=(n("841c"),n("ffe7")),re=n.n(se),le=n("df7c"),ue=n.n(le),de={name:"HeaderSearch",data:function(){return{search:"",options:[],searchPool:[],show:!1,fuse:void 0}},computed:{routes:function(){return this.$store.getters.permission_routes}},watch:{routes:function(){this.searchPool=this.generateRoutes(this.routes)},searchPool:function(e){this.initFuse(e)},show:function(e){e?document.body.addEventListener("click",this.close):document.body.removeEventListener("click",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.routes)},methods:{click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(e){var t=this;this.$router.push(e.path),this.search="",this.options=[],this.$nextTick((function(){t.show=!1}))},initFuse:function(e){this.fuse=new re.a(e,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"title",weight:.7},{name:"path",weight:.3}]})},generateRoutes:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=[],o=Object(ce["a"])(e);try{for(o.s();!(t=o.n()).done;){var c=t.value;if(!c.hidden){var s={path:ue.a.resolve(n,c.path),title:Object(oe["a"])(a)};if(c.meta&&c.meta.title&&(s.title=[].concat(Object(oe["a"])(s.title),[c.meta.title]),"noRedirect"!==c.redirect&&i.push(s)),c.children){var r=this.generateRoutes(c.children,s.path,s.title);r.length>=1&&(i=[].concat(Object(oe["a"])(i),Object(oe["a"])(r)))}}}}catch(l){o.e(l)}finally{o.f()}return i},querySearch:function(e){this.options=""!==e?this.fuse.search(e):[]}}},he=de,me=(n("0185"),Object(p["a"])(he,ae,ie,!1,null,"7633dc5e",null)),fe=me.exports,pe=n("b719"),ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.permission_routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},ge=[],we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},be=[],xe={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"Vue Element Admin",logo:"https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png"}}},ye=xe,ke=(n("f060"),Object(p["a"])(ye,we,be,!1,null,"c28012ce",null)),Ve=ke.exports,Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},_e=[],ze=n("61f7"),Se=(n("caad"),n("2532"),{name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,a=n.icon,i=n.title,o=[];return a&&(a.includes("el-icon")?o.push(e("i",{class:[a,"sub-el-icon"]})):o.push(e("svg-icon",{attrs:{"icon-class":a}}))),i&&o.push(e("span",{slot:"title"},[i])),o}}),Ee=Se,Le=(n("f87e"),Object(p["a"])(Ee,a,i,!1,null,"18eeea00",null)),Oe=Le.exports,Me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},Te=[],He={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(ze["b"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},$e=He,Be=Object(p["a"])($e,Me,Te,!1,null,null,null),De=Be.exports,Ae={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},je={name:"SidebarItem",components:{Item:Oe,AppLink:De},mixins:[Ae],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(l["a"])(Object(l["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(ze["b"])(e)?e:Object(ze["b"])(this.basePath)?this.basePath:ue.a.resolve(this.basePath,e)}}},Ie=je,Pe=Object(p["a"])(Ie,Ce,_e,!1,null,null,null),Re=Pe.exports,We=n("cf1e"),Ne=n.n(We),qe={components:{SidebarItem:Re,Logo:Ve},computed:Object(l["a"])(Object(l["a"])({},Object(E["b"])(["permission_routes","sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Ne.a},isCollapse:function(){return!this.sidebar.opened}})},Ue=qe,Fe=Object(p["a"])(Ue,ve,ge,!1,null,null,null),Qe=Fe.exports,Ge=n("5b23"),Je=n("b775");function Ke(){return Object(Je["a"])({url:"/admin/qa/getQaList",method:"get"})}var Xe=n("9169"),Ze={directives:{clickoutside:Xe["a"]},components:{Breadcrumb:D,Hamburger:W,Screenfull:K,SizeSelect:ne,Search:fe},computed:Object(l["a"])({avatar:function(){return Ge["a"]},sidebar:function(){return Qe}},Object(E["b"])(["sidebar","avatar","device"])),data:function(){return{workstatus:!1,drawer:!1,showAvatar:!1,dialogPWD:!1,dialogWorks:!1,centerDialogVisible:!1,imageUrl:!1,QaShow:!0,os:[],getQaList:[],times:[],form:{oldpwd:"",pwd:""},QaInfo:{title:"",content:""},rules:{oldpwd:[{required:!0,message:"请输入旧密码",trigger:"blur"},{min:6,max:20,message:"长度在 6 到 20 个字符",trigger:"blur"}],pwd:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,max:20,message:"长度在 6 到 20 个字符",trigger:"blur"}]}}},created:function(){var e=this;this.getworkstatus(),Ke().then((function(t){e.getQaList=t.data}))},methods:{color:pe["color"],toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},handleClose:function(){this.drawer=!1,this.QaShow=!0},getQaDetail:function(e){if(this.QaInfo=e,!this.QaInfo)return this.$message({message:"暂无QA问题",type:"warning",duration:1500});this.QaShow=!1},logout:function(){var e=this;return Object(S["a"])(Object(z["a"])().mark((function t(){return Object(z["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("user/logout");case 2:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 3:case"end":return t.stop()}}),t)})))()},handleAvatarSuccess:function(e,t){this.imageUrl=URL.createObjectURL(t.raw)},pwd:function(){var e=this;this.$axios.post("/admin/admin/pwd",this.form).then((function(t){e.dialogPWD=!1,e.form={}})).catch((function(e){console.log(e)}))},saveWork:function(){var e=this;this.$axios.post("/admin/work/save2",{times:this.times,os:this.os}).then((function(t){console.log(t),e.$message({showClose:!0,message:"添加成功"}),e.dialogWorks=!1})).catch((function(e){console.log(e)}))},startWorks:function(){var e=this;this.$axios.post("/admin/admin/editInfo",{is_order:1}).then((function(t){console.log(t),e.$message({showClose:!0,message:"上班成功"}),e.getworkstatus()})).catch((function(e){console.log(e)}))},endWorks:function(){var e=this;this.$axios.post("/admin/admin/editInfo",{is_order:0}).then((function(t){console.log(t),e.$message({showClose:!0,message:"下班成功"}),e.getworkstatus()})).catch((function(e){console.log(e)}))},getworkstatus:function(){var e=this;this.$axios.post("/admin/work/getworkstatus",{id:this.id}).then((function(t){console.log(t),e.workstatus=t.data})).catch((function(e){console.log(e)}))},beforeAvatarUpload:function(e){var t="image/jpeg"===e.type,n=e.size/1024/1024<2;return t||this.$message.error("上传头像图片只能是 JPG 格式!"),n||this.$message.error("上传头像图片大小不能超过 2MB!"),t&&n}}},Ye=Ze,et=(n("75e1"),Object(p["a"])(Ye,C,_,!1,null,"beddb142",null)),tt=et.exports,nt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"drawer-container"},[n("div",[n("h3",{staticClass:"drawer-title"},[e._v("Page style setting")]),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Theme Color")]),n("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:e.themeChange}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Open Tags-View")]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.tagsView,callback:function(t){e.tagsView=t},expression:"tagsView"}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Fixed Header")]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.fixedHeader,callback:function(t){e.fixedHeader=t},expression:"fixedHeader"}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Sidebar Logo")]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.sidebarLogo,callback:function(t){e.sidebarLogo=t},expression:"sidebarLogo"}})],1)])])},at=[],it=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})},ot=[],ct=(n("a15b"),n("fb6a"),n("b680"),n("4d63"),n("2c3e"),n("00b4"),n("25f0"),n("159b"),n("f6f8").version),st="#409EFF",rt={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(e,t){this.theme=e},immediate:!0},theme:function(e){var t=this;return Object(S["a"])(Object(z["a"])().mark((function n(){var a,i,o,c,s,r,l,u;return Object(z["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=t.chalk?t.theme:st,"string"===typeof e){n.next=3;break}return n.abrupt("return");case 3:if(i=t.getThemeCluster(e.replace("#","")),o=t.getThemeCluster(a.replace("#","")),console.log(i,o),c=t.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),s=function(e,n){return function(){var a=t.getThemeCluster(st.replace("#","")),o=t.updateStyle(t[e],a,i),c=document.getElementById(n);c||(c=document.createElement("style"),c.setAttribute("id",n),document.head.appendChild(c)),c.innerText=o}},t.chalk){n.next=12;break}return r="https://unpkg.com/element-ui@".concat(ct,"/lib/theme-chalk/index.css"),n.next=12,t.getCSSString(r,"chalk");case 12:l=s("chalk","chalk-style"),l(),u=[].slice.call(document.querySelectorAll("style")).filter((function(e){var t=e.innerText;return new RegExp(a,"i").test(t)&&!/Chalk Variables/.test(t)})),u.forEach((function(e){var n=e.innerText;"string"===typeof n&&(e.innerText=t.updateStyle(n,o,i))})),t.$emit("change",e),c.close();case 18:case"end":return n.stop()}}),n)})))()}},methods:{updateStyle:function(e,t,n){var a=e;return t.forEach((function(e,t){a=a.replace(new RegExp(e,"ig"),n[t])})),a},getCSSString:function(e,t){var n=this;return new Promise((function(a){var i=new XMLHttpRequest;i.onreadystatechange=function(){4===i.readyState&&200===i.status&&(n[t]=i.responseText.replace(/@font-face{[^}]+}/,""),a())},i.open("GET",e),i.send()}))},getThemeCluster:function(e){for(var t=function(e,t){var n=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16);return 0===t?[n,a,i].join(","):(n+=Math.round(t*(255-n)),a+=Math.round(t*(255-a)),i+=Math.round(t*(255-i)),n=n.toString(16),a=a.toString(16),i=i.toString(16),"#".concat(n).concat(a).concat(i))},n=function(e,t){var n=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16);return n=Math.round((1-t)*n),a=Math.round((1-t)*a),i=Math.round((1-t)*i),n=n.toString(16),a=a.toString(16),i=i.toString(16),"#".concat(n).concat(a).concat(i)},a=[e],i=0;i<=9;i++)a.push(t(e,Number((i/10).toFixed(2))));return a.push(n(e,.1)),a}}},lt=rt,ut=(n("f26d"),Object(p["a"])(lt,it,ot,!1,null,null,null)),dt=ut.exports,ht={components:{ThemePicker:dt},data:function(){return{}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:e})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:e})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:e})}}},methods:{themeChange:function(e){this.$store.dispatch("settings/changeSetting",{key:"theme",value:e})}}},mt=ht,ft=(n("4d27"),Object(p["a"])(mt,nt,at,!1,null,"5d274279",null)),pt=ft.exports,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[n("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper",on:{scroll:e.handleScroll}},e._l(e.visitedViews,(function(t){return n("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:e.isActive(t)?"active":"",attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath},tag:"span"},nativeOn:{mouseup:function(n){if("button"in n&&1!==n.button)return null;!e.isAffix(t)&&e.closeSelectedTag(t)},contextmenu:function(n){return n.preventDefault(),e.openMenu(t,n)}}},[e._v(" "+e._s(t.title)+" "),e.isAffix(t)?e._e():n("span",{staticClass:"el-icon-close",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.closeSelectedTag(t)}}})])})),1),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[n("li",{on:{click:function(t){return e.refreshSelectedTag(e.selectedTag)}}},[e._v("刷新")]),e.isAffix(e.selectedTag)?e._e():n("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[e._v("关闭")]),n("li",{on:{click:e.closeOthersTags}},[e._v("关闭其他")]),n("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[e._v("关闭所有")])])],1)},gt=[],wt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[e._t("default")],2)},bt=[],xt=(n("c740"),4),yt={name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},mounted:function(){this.scrollWrapper.addEventListener("scroll",this.emitScroll,!0)},beforeDestroy:function(){this.scrollWrapper.removeEventListener("scroll",this.emitScroll)},methods:{handleScroll:function(e){var t=e.wheelDelta||40*-e.deltaY,n=this.scrollWrapper;n.scrollLeft=n.scrollLeft+t/4},emitScroll:function(){this.$emit("scroll")},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el,n=t.offsetWidth,a=this.scrollWrapper,i=this.$parent.$refs.tag,o=null,c=null;if(i.length>0&&(o=i[0],c=i[i.length-1]),o===e)a.scrollLeft=0;else if(c===e)a.scrollLeft=a.scrollWidth-n;else{var s=i.findIndex((function(t){return t===e})),r=i[s-1],l=i[s+1],u=l.$el.offsetLeft+l.$el.offsetWidth+xt,d=r.$el.offsetLeft-xt;u>a.scrollLeft+n?a.scrollLeft=u-n:d1&&void 0!==arguments[1]?arguments[1]:"/",a=[];return e.forEach((function(e){if(e.meta&&e.meta.affix){var i=ue.a.resolve(n,e.path);a.push({fullPath:i,path:i,name:e.name,meta:Object(l["a"])({},e.meta)})}if(e.children){var o=t.filterAffixTags(e.children,e.path);o.length>=1&&(a=[].concat(Object(oe["a"])(a),Object(oe["a"])(o)))}})),a},initTags:function(){var e,t=this.affixTags=this.filterAffixTags(this.routes),n=Object(ce["a"])(t);try{for(n.s();!(e=n.n()).done;){var a=e.value;a.name&&this.$store.dispatch("tagsView/addVisitedView",a)}}catch(i){n.e(i)}finally{n.f()}},addTags:function(){var e=this.$route.name;return e&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick((function(){var n,a=Object(ce["a"])(t);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(i),i.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(o){a.e(o)}finally{a.f()}}))},refreshSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delCachedView",e).then((function(){var n=e.fullPath;t.$nextTick((function(){t.$router.replace({path:"/redirect"+n})}))}))},closeSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delView",e).then((function(n){var a=n.visitedViews;t.isActive(e)&&t.toLastView(a,e)}))},closeOthersTags:function(){var e=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){e.moveToCurrentTag()}))},closeAllTags:function(e){var t=this;this.$store.dispatch("tagsView/delAllViews").then((function(n){var a=n.visitedViews;t.affixTags.some((function(t){return t.path===e.path}))||t.toLastView(a,e)}))},toLastView:function(e,t){var n=e.slice(-1)[0];n?this.$router.push(n.fullPath):"Dashboard"===t.name?this.$router.replace({path:"/redirect"+t.fullPath}):this.$router.push("/")},openMenu:function(e,t){var n=105,a=this.$el.getBoundingClientRect().left,i=this.$el.offsetWidth,o=i-n,c=t.clientX-a+15;this.left=c>o?o:c,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1},handleScroll:function(){this.closeMenu()}}},zt=_t,St=(n("ec31"),n("dd78"),Object(p["a"])(zt,vt,gt,!1,null,"ab894734",null)),Et=St.exports,Lt=n("4360"),Ot=document,Mt=Ot.body,Tt=992,Ht={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&Lt["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(Lt["a"].dispatch("app/toggleDevice","mobile"),Lt["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=Mt.getBoundingClientRect();return e.width-10&&e.$notify({title:"新的订单提醒",duration:0,dangerouslyUseHTMLString:!0,message:"你有("+t.data.new+")个新的订单,需要处理"}),t&&t.data.follow>0&&e.$notify({title:"新的跟进提醒",duration:1e4,dangerouslyUseHTMLString:!0,message:"你有("+t.data.follow+")个跟进订单,需要处理"}),t&&t.data.back>0&&e.$notify({title:"转单申请",duration:1e4,dangerouslyUseHTMLString:!0,message:"你有("+t.data.back+")个转单订单,需要处理"})})).catch((function(e){console.log(e)}))}),3e4)},methods:{handleClickOutside:function(){this.$store.dispatch("app/closeSideBar",{withoutAnimation:!1})}}},Dt=Bt,At=(n("e340"),Object(p["a"])(Dt,s,r,!1,null,"f03d213a",null)),jt=At.exports;o["default"].use(c["a"]);var It=[{path:"/redirect",component:jt,hidden:!0,children:[{path:"/redirect/:path(.*)",component:function(){return n.e("chunk-2d230fe7").then(n.bind(null,"ef3c"))}}]},{path:"/login",component:function(){return n.e("chunk-0579811f").then(n.bind(null,"9ed6"))},hidden:!0},{path:"/auth-redirect",component:function(){return n.e("chunk-2d2105d3").then(n.bind(null,"b829"))},hidden:!0},{path:"/404",component:function(){return n.e("chunk-169fa71c").then(n.bind(null,"1db4"))},hidden:!0},{path:"/401",component:function(){return n.e("chunk-023b2e94").then(n.bind(null,"24e2"))},hidden:!0},{path:"/",component:jt,redirect:"/dashboard",children:[{path:"dashboard",component:function(){return Promise.all([n.e("chunk-a73bcc0e"),n.e("chunk-15c26030")]).then(n.bind(null,"9406"))},name:"Dashboard",meta:{title:"系统面板",icon:"dashboard",affix:!0}}]}],Pt=[{path:"/system",component:jt,redirect:"/system",alwaysShow:!0,name:"System",meta:{title:"系统管理",icon:"el-icon-s-home",roles:["admin"]},children:[{path:"admin",component:function(){return n.e("chunk-2681d490").then(n.bind(null,"2953"))},name:"Admin",meta:{title:"管理员",roles:["admin"]}},{path:"works",component:function(){return n.e("chunk-f00febf4").then(n.bind(null,"da0f"))},name:"Works",meta:{title:"排班表",roles:["admin"]}},{path:"onlines",component:function(){return n.e("chunk-f14cda0a").then(n.bind(null,"5c7c"))},name:"onlines",meta:{title:"在线客服",roles:["admin"]}}]},{path:"/order",component:jt,redirect:"/order/index",alwaysShow:!0,name:"Orders",meta:{title:"订单管理",icon:"money",roles:["order_index","editor"]},children:[{path:"index",component:function(){return n.e("chunk-9f239d64").then(n.bind(null,"634a"))},name:"OrderList",meta:{title:"订单列表",roles:["order_pub","editor"]}},{path:"back",component:function(){return n.e("chunk-f0f9165e").then(n.bind(null,"d0fc"))},name:"OrderBack",meta:{title:"流转订单",roles:["order_back","editor"]}},{path:"product",component:function(){return n.e("chunk-1d7aacc9").then(n.bind(null,"a25c"))},name:"productNameList",meta:{title:"产品统计",roles:["order_pub","editor"]}}]},{path:"/log",component:jt,redirect:"/log/index",alwaysShow:!0,name:"Log",meta:{title:"日志记录",icon:"nested",roles:["follow_index","log_index","editor"]},children:[{path:"follow",component:function(){return n.e("chunk-46a84215").then(n.bind(null,"16eb"))},name:"Follow",meta:{title:"跟进记录",roles:["follow_index","editor"]}},{path:"index",component:function(){return n.e("chunk-6e1eea3c").then(n.bind(null,"5905"))},name:"LogIndex",meta:{title:"日志记录",roles:["log_index"]}}]},{path:"/data",component:jt,redirect:"/data/index",alwaysShow:!0,name:"Data",meta:{title:"数据统计",icon:"chart",roles:["data_index"]},children:[{path:"index",component:function(){return n.e("chunk-2d0de3a1").then(n.bind(null,"856d"))},name:"Index",meta:{title:"跟进统计",roles:["data_index"]}},{path:"sale",component:function(){return n.e("chunk-2d21a050").then(n.bind(null,"ba72"))},name:"Sale",meta:{title:"销售统计",roles:["data_sale"]}}]},{path:"/icon",component:jt,children:[{path:"index",component:function(){return n.e("chunk-bc86863a").then(n.bind(null,"105d"))},name:"Icons",meta:{title:"Icons",icon:"icon",noCache:!0}}]},{path:"*",redirect:"/404",hidden:!0}],Rt=function(){return new c["a"]({scrollBehavior:function(){return{y:0}},routes:It})},Wt=Rt();function Nt(){var e=Rt();Wt.matcher=e.matcher}t["c"]=Wt},aa46:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-edit",use:"icon-edit-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},ab00:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},ad1c:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});c.a.add(s);t["default"]=s},b747:function(e,t,n){},b775:function(e,t,n){"use strict";n("d3b7");var a=n("bc3a"),i=n.n(a),o=n("5c96"),c=n("4360"),s=n("5f87"),r=i.a.create({baseURL:"/",timeout:1e4});r.interceptors.request.use((function(e){return c["a"].getters.token&&(e.headers["X-Token"]=Object(s["a"])()),e}),(function(e){return Promise.reject(e)})),r.interceptors.response.use((function(e){var t=e.data;return 0!==t.error?(Object(o["Message"])({message:t.msg||"Error",type:"error",duration:5e3}),50008!==t.code&&50012!==t.code&&50014!==t.code||o["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then((function(){c["a"].dispatch("user/resetToken").then((function(){location.reload()}))})),Promise.reject(new Error(t.message||"Error"))):t}),(function(e){return console.log("err"+e),Object(o["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)})),t["a"]=r},b8c7:function(e,t,n){},bae7:function(e,t,n){},bc35:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},bf48:function(e,t,n){"use strict";n("97bb")},c459:function(e,t,n){},c469:function(e,t,n){},c653:function(e,t,n){var a={"./app.js":"d9cd","./errorLog.js":"4d49","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=o,e.exports=i,i.id="c653"},c829:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},cbb7:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});c.a.add(s);t["default"]=s},ccbe:function(e,t,n){},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d056:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},d450:function(e,t,n){},d7ec:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(s);t["default"]=s},d9cd:function(e,t,n){"use strict";n.r(t);var a=n("a78e"),i=n.n(a),o={sidebar:{opened:!i.a.get("sidebarStatus")||!!+i.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",size:i.a.get("size")||"medium"},c={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?i.a.set("sidebarStatus",1):i.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){i.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_SIZE:function(e,t){e.size=t,i.a.set("size",t)}},s={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)},setSize:function(e,t){var n=e.commit;n("SET_SIZE",t)}};t["default"]={namespaced:!0,state:o,mutations:c,actions:s}},dbc7:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},dcf8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},dd78:function(e,t,n){"use strict";n("b8c7")},de06:function(e,t,n){"use strict";n("2bb1")},e340:function(e,t,n){"use strict";n("ccbe")},e4d6:function(e,t,n){"use strict";n("5efb")},e534:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},e7c8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},eb1b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},ec31:function(e,t,n){"use strict";n("fe8b")},ed08:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return l}));var a=n("53ca");n("a630"),n("a15b"),n("d81d"),n("fb6a"),n("b64b"),n("d3b7"),n("4d63"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("6062"),n("3ca3"),n("466d"),n("4d90"),n("5319"),n("159b"),n("ddb0");function i(e,t){if(0===arguments.length||!e)return null;var n,i=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(a["a"])(e)?n=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(new RegExp(/-/gm),"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),n=new Date(e));var o={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},c=i.replace(/{([ymdhisa])+}/g,(function(e,t){var n=o[t];return"a"===t?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return c}function o(e,t){e=10===(""+e).length?1e3*parseInt(e):+e;var n=new Date(e),a=Date.now(),o=(a-n)/1e3;return o<30?"刚刚":o<3600?Math.ceil(o/60)+"分钟前":o<86400?Math.ceil(o/3600)+"小时前":o<172800?"1天前":t?i(e,t):n.getMonth()+1+"月"+n.getDate()+"日"+n.getHours()+"时"+n.getMinutes()+"分"}function c(e,t,n){var a,i,o,c,s,r=function r(){var l=+new Date-c;l0?a=setTimeout(r,t-l):(a=null,n||(s=e.apply(o,i),a||(o=i=null)))};return function(){for(var i=arguments.length,l=new Array(i),u=0;u'});c.a.add(s);t["default"]=s},f819:function(e,t,n){},f87e:function(e,t,n){"use strict";n("279e")},f96b:function(e,t){var n=[{path:"/redirect",component:"layout/Layout",hidden:!0,children:[{path:"/redirect/:path*",component:"views/redirect/index"}]},{path:"/login",component:"views/login/index",hidden:!0},{path:"/auth-redirect",component:"views/login/auth-redirect",hidden:!0},{path:"/404",component:"views/error-page/404",hidden:!0},{path:"/401",component:"views/error-page/401",hidden:!0},{path:"",component:"layout/Layout",redirect:"dashboard",children:[{path:"dashboard",component:"views/dashboard/index",name:"Dashboard",meta:{title:"Dashboard",icon:"dashboard",affix:!0}}]},{path:"/documentation",component:"layout/Layout",children:[{path:"index",component:"views/documentation/index",name:"Documentation",meta:{title:"Documentation",icon:"documentation",affix:!0}}]},{path:"/guide",component:"layout/Layout",redirect:"/guide/index",children:[{path:"index",component:"views/guide/index",name:"Guide",meta:{title:"Guide",icon:"guide",noCache:!0}}]}],a=[{path:"/permission",component:"layout/Layout",redirect:"/permission/index",alwaysShow:!0,meta:{title:"Permission",icon:"lock",roles:["admin","editor"]},children:[{path:"page",component:"views/permission/page",name:"PagePermission",meta:{title:"Page Permission",roles:["admin"]}},{path:"directive",component:"views/permission/directive",name:"DirectivePermission",meta:{title:"Directive Permission"}},{path:"role",component:"views/permission/role",name:"RolePermission",meta:{title:"Role Permission",roles:["admin"]}}]},{path:"/icon",component:"layout/Layout",children:[{path:"index",component:"views/icons/index",name:"Icons",meta:{title:"Icons",icon:"icon",noCache:!0}}]},{path:"/components",component:"layout/Layout",redirect:"noRedirect",name:"ComponentDemo",meta:{title:"Components",icon:"component"},children:[{path:"tinymce",component:"views/components-demo/tinymce",name:"TinymceDemo",meta:{title:"Tinymce"}},{path:"markdown",component:"views/components-demo/markdown",name:"MarkdownDemo",meta:{title:"Markdown"}},{path:"json-editor",component:"views/components-demo/json-editor",name:"JsonEditorDemo",meta:{title:"Json Editor"}},{path:"split-pane",component:"views/components-demo/split-pane",name:"SplitpaneDemo",meta:{title:"SplitPane"}},{path:"avatar-upload",component:"views/components-demo/avatar-upload",name:"AvatarUploadDemo",meta:{title:"Avatar Upload"}},{path:"dropzone",component:"views/components-demo/dropzone",name:"DropzoneDemo",meta:{title:"Dropzone"}},{path:"sticky",component:"views/components-demo/sticky",name:"StickyDemo",meta:{title:"Sticky"}},{path:"count-to",component:"views/components-demo/count-to",name:"CountToDemo",meta:{title:"Count To"}},{path:"mixin",component:"views/components-demo/mixin",name:"ComponentMixinDemo",meta:{title:"componentMixin"}},{path:"back-to-top",component:"views/components-demo/back-to-top",name:"BackToTopDemo",meta:{title:"Back To Top"}},{path:"drag-dialog",component:"views/components-demo/drag-dialog",name:"DragDialogDemo",meta:{title:"Drag Dialog"}},{path:"drag-select",component:"views/components-demo/drag-select",name:"DragSelectDemo",meta:{title:"Drag Select"}},{path:"dnd-list",component:"views/components-demo/dnd-list",name:"DndListDemo",meta:{title:"Dnd List"}},{path:"drag-kanban",component:"views/components-demo/drag-kanban",name:"DragKanbanDemo",meta:{title:"Drag Kanban"}}]},{path:"/charts",component:"layout/Layout",redirect:"noRedirect",name:"Charts",meta:{title:"Charts",icon:"chart"},children:[{path:"keyboard",component:"views/charts/keyboard",name:"KeyboardChart",meta:{title:"Keyboard Chart",noCache:!0}},{path:"line",component:"views/charts/line",name:"LineChart",meta:{title:"Line Chart",noCache:!0}},{path:"mixchart",component:"views/charts/mixChart",name:"MixChart",meta:{title:"Mix Chart",noCache:!0}}]},{path:"/nested",component:"layout/Layout",redirect:"/nested/menu1/menu1-1",name:"Nested",meta:{title:"Nested",icon:"nested"},children:[{path:"menu1",component:"views/nested/menu1/index",name:"Menu1",meta:{title:"Menu1"},redirect:"/nested/menu1/menu1-1",children:[{path:"menu1-1",component:"views/nested/menu1/menu1-1",name:"Menu1-1",meta:{title:"Menu1-1"}},{path:"menu1-2",component:"views/nested/menu1/menu1-2",name:"Menu1-2",redirect:"/nested/menu1/menu1-2/menu1-2-1",meta:{title:"Menu1-2"},children:[{path:"menu1-2-1",component:"views/nested/menu1/menu1-2/menu1-2-1",name:"Menu1-2-1",meta:{title:"Menu1-2-1"}},{path:"menu1-2-2",component:"views/nested/menu1/menu1-2/menu1-2-2",name:"Menu1-2-2",meta:{title:"Menu1-2-2"}}]},{path:"menu1-3",component:"views/nested/menu1/menu1-3",name:"Menu1-3",meta:{title:"Menu1-3"}}]},{path:"menu2",name:"Menu2",component:"views/nested/menu2/index",meta:{title:"Menu2"}}]},{path:"/example",component:"layout/Layout",redirect:"/example/list",name:"Example",meta:{title:"Example",icon:"example"},children:[{path:"create",component:"views/example/create",name:"CreateArticle",meta:{title:"Create Article",icon:"edit"}},{path:"edit/:id(\\d+)",component:"views/example/edit",name:"EditArticle",meta:{title:"Edit Article",noCache:!0},hidden:!0},{path:"list",component:"views/example/list",name:"ArticleList",meta:{title:"Article List",icon:"list"}}]},{path:"/tab",component:"layout/Layout",children:[{path:"index",component:"views/tab/index",name:"Tab",meta:{title:"Tab",icon:"tab"}}]},{path:"/error",component:"layout/Layout",redirect:"noRedirect",name:"ErrorPages",meta:{title:"Error Pages",icon:"404"},children:[{path:"401",component:"views/error-page/401",name:"Page401",meta:{title:"Page 401",noCache:!0}},{path:"404",component:"views/error-page/404",name:"Page404",meta:{title:"Page 404",noCache:!0}}]},{path:"/error-log",component:"layout/Layout",redirect:"noRedirect",children:[{path:"log",component:"views/error-log/index",name:"ErrorLog",meta:{title:"Error Log",icon:"bug"}}]},{path:"/excel",component:"layout/Layout",redirect:"/excel/export-excel",name:"Excel",meta:{title:"Excel",icon:"excel"},children:[{path:"export-excel",component:"views/excel/export-excel",name:"ExportExcel",meta:{title:"Export Excel"}},{path:"export-selected-excel",component:"views/excel/select-excel",name:"SelectExcel",meta:{title:"Select Excel"}},{path:"export-merge-header",component:"views/excel/merge-header",name:"MergeHeader",meta:{title:"Merge Header"}},{path:"upload-excel",component:"views/excel/upload-excel",name:"UploadExcel",meta:{title:"Upload Excel"}}]},{path:"/zip",component:"layout/Layout",redirect:"/zip/download",alwaysShow:!0,meta:{title:"Zip",icon:"zip"},children:[{path:"download",component:"views/zip/index",name:"ExportZip",meta:{title:"Export Zip"}}]},{path:"/pdf",component:"layout/Layout",redirect:"/pdf/index",children:[{path:"index",component:"views/pdf/index",name:"PDF",meta:{title:"PDF",icon:"pdf"}}]},{path:"/pdf/download",component:"views/pdf/download",hidden:!0},{path:"/theme",component:"layout/Layout",redirect:"noRedirect",children:[{path:"index",component:"views/theme/index",name:"Theme",meta:{title:"Theme",icon:"theme"}}]},{path:"/clipboard",component:"layout/Layout",redirect:"noRedirect",children:[{path:"index",component:"views/clipboard/index",name:"ClipboardDemo",meta:{title:"Clipboard Demo",icon:"clipboard"}}]},{path:"/i18n",component:"layout/Layout",children:[{path:"index",component:"views/i18n-demo/index",name:"I18n",meta:{title:"I18n",icon:"international"}}]},{path:"external-link",component:"layout/Layout",children:[{path:"https://github.com/PanJiaChen/vue-element-admin",meta:{title:"External Link",icon:"link"}}]},{path:"*",redirect:"/404",hidden:!0}];e.exports={constantRoutes:n,asyncRoutes:a}},f9a1:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(s);t["default"]=s},fe8b:function(e,t,n){}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);
\ No newline at end of file
diff --git a/service/public/static/js/chunk-7b09886d.1076a1f6.js b/service/public/static/js/chunk-7b09886d.1076a1f6.js
deleted file mode 100644
index 33669545..00000000
--- a/service/public/static/js/chunk-7b09886d.1076a1f6.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b09886d"],{"5c7c":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"center",label:"ID",width:"60",prop:"id"}}),n("el-table-column",{attrs:{align:"center",label:"姓名",width:"80",prop:"username"}}),n("el-table-column",{attrs:{align:"center",label:"状态",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.isOnline?n("el-tag",{attrs:{type:"border-card"}},[t._v("下线")]):t._e(),1===e.row.isOnline?n("el-tag",{attrs:{type:"success"}},[t._v("在线")]):t._e(),2===e.row.isOnline?n("el-tag",{attrs:{type:"info"}},[t._v("没上线")]):t._e()]}}])}),n("el-table-column",{attrs:{align:"center",label:"是否分单",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(n){return t.updateStatus(e.row)}},model:{value:e.row.isEndWork,callback:function(n){t.$set(e.row,"isEndWork",n)},expression:"scope.row.isEndWork"}})]}}])}),n("el-table-column",{attrs:{align:"center",label:"在线时长",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(Math.floor((e.row.data?e.row.data.onlineTime:e.row.onlineTime)/60)||"--")+" 分钟 ")]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"上线时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.start_work_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"下线时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.last_work_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"停止分单时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.end_work_time,"{y}-{m}-{d} {h}:{i}")))])]}}])})],1)],1)},a=[],l={name:"GetOnlineList",components:{},data:function(){return{statusArr:{0:"禁用",1:"启用"},list:[],total:0,loading:!1,listLoading:!0,listQuery:{page:1,limit:10,status:null,content:""},dialogCreate:!1,dialogEdit:!1,item:{},anchors:{}}},created:function(){this.listQuery.status=this.$route.query.status||null,this.listQuery.content=this.$route.query.content||null,this.getOnlineList()},methods:{getOnlineList:function(){var t=this;this.listLoading=!0,this.$axios.get("/admin/admin/getOnlineList",{params:this.listQuery}).then((function(e){t.list=e.data,t.listLoading=!1})).catch((function(){t.listLoading=!1}))},updateStatus:function(t){var e=this;this.$axios.post("/admin/admin/editInfo",{id:t.id,order_num:t.order_num,is_order:t.isEndWork}).then((function(){e.getOnlineList()})).catch((function(){}))}}},s=l,o=(n("931e"),n("2877")),r=Object(o["a"])(s,i,a,!1,null,"0c7ec2ea",null);e["default"]=r.exports},"931e":function(t,e,n){"use strict";n("e706")},e706:function(t,e,n){}}]);
\ No newline at end of file
diff --git a/service/public/static/js/chunk-f14cda0a.183ecd9d.js b/service/public/static/js/chunk-f14cda0a.183ecd9d.js
new file mode 100644
index 00000000..945bd330
--- /dev/null
+++ b/service/public/static/js/chunk-f14cda0a.183ecd9d.js
@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f14cda0a"],{4697:function(t,e,n){},"5c7c":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"center",label:"ID",width:"60",prop:"id"}}),n("el-table-column",{attrs:{align:"center",label:"姓名",width:"80",prop:"username"}}),n("el-table-column",{attrs:{align:"center",label:"状态",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.isOnline?n("el-tag",{attrs:{type:"border-card"}},[t._v("下线")]):t._e(),1===e.row.isOnline?n("el-tag",{attrs:{type:"success"}},[t._v("在线")]):t._e(),2===e.row.isOnline?n("el-tag",{attrs:{type:"info"}},[t._v("没上线")]):t._e()]}}])}),n("el-table-column",{attrs:{align:"center",label:"是否分单",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(n){return t.updateStatus(e.row)}},model:{value:e.row.isEndWork,callback:function(n){t.$set(e.row,"isEndWork",n)},expression:"scope.row.isEndWork"}})]}}])}),n("el-table-column",{attrs:{align:"center",label:"在线时长",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(Math.floor((e.row.data?e.row.data.onlineTime:e.row.onlineTime)/60)||"--")+" 分钟 ")]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"上线时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.start_work_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"停止分单时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.end_work_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"下线时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.last_work_time,"{y}-{m}-{d} {h}:{i}")))])]}}])})],1)],1)},a=[],l={name:"GetOnlineList",components:{},data:function(){return{statusArr:{0:"禁用",1:"启用"},list:[],total:0,loading:!1,listLoading:!0,listQuery:{page:1,limit:10,status:null,content:""},dialogCreate:!1,dialogEdit:!1,item:{},anchors:{}}},created:function(){this.listQuery.status=this.$route.query.status||null,this.listQuery.content=this.$route.query.content||null,this.getOnlineList()},methods:{getOnlineList:function(){var t=this;this.listLoading=!0,this.$axios.get("/admin/admin/getOnlineList",{params:this.listQuery}).then((function(e){t.list=e.data,t.listLoading=!1})).catch((function(){t.listLoading=!1}))},updateStatus:function(t){var e=this;this.$axios.post("/admin/admin/editInfo",{id:t.id,order_num:t.order_num,is_order:t.isEndWork}).then((function(){e.getOnlineList()})).catch((function(){}))}}},s=l,o=(n("c1db"),n("2877")),r=Object(o["a"])(s,i,a,!1,null,"2926b996",null);e["default"]=r.exports},c1db:function(t,e,n){"use strict";n("4697")}}]);
\ No newline at end of file