From dececa651cc97ecd9139d0fa1c4af4a6f70e71a8 Mon Sep 17 00:00:00 2001 From: skyselang <215817969@qq.com> Date: Mon, 16 Jan 2023 16:50:11 +0800 Subject: [PATCH 1/5] v2.7 Signed-off-by: skyselang <215817969@qq.com> --- .env.development | 6 - .env.production | 6 - .env.production.domain | 6 - .env.staging | 6 - .eslintrc.js | 2 +- admin/index.html | 2 +- .../{app.e9c4639c.css => app.e3ca7543.css} | 2 +- admin/static/css/chunk-04a70b6c.6c5fcb8a.css | 1 - admin/static/css/chunk-33142cd7.1b0b602f.css | 1 - admin/static/css/chunk-5c0b331e.01499ea5.css | 1 - admin/static/css/chunk-5dea3fff.40172b70.css | 1 + admin/static/css/chunk-7eb063e3.39453a35.css | 1 - ...297177.css => chunk-a2b927c8.5b297177.css} | 0 ...d6a4ea.css => chunk-c0bf4e14.b904112b.css} | 2 +- admin/static/css/chunk-c5dcbf9c.4b640908.css | 1 + admin/static/css/chunk-dbfc13d6.dd6d7c68.css | 1 + admin/static/css/chunk-de8d68d6.a53acf0b.css | 1 + admin/static/js/app.2217fe3a.js | 1 + admin/static/js/app.9b69cf85.js | 1 - admin/static/js/chunk-04a70b6c.3b50e200.js | 1 - admin/static/js/chunk-2d0d7805.4df78913.js | 1 + admin/static/js/chunk-2d0f047c.da8ab170.js | 1 - admin/static/js/chunk-3114709e.a81d6b92.js | 16 + admin/static/js/chunk-33142cd7.ffdd537e.js | 1 - admin/static/js/chunk-58b45323.3e64ca28.js | 1 - admin/static/js/chunk-5c0b331e.0c8761ba.js | 1 - admin/static/js/chunk-5dea3fff.24cc212e.js | 1 + admin/static/js/chunk-7eb063e3.03a66c94.js | 1 - ...1d93c248.js => chunk-845823c8.e34adbf2.js} | 4 +- ...e42a3ce1.js => chunk-a2b927c8.56460807.js} | 20 +- admin/static/js/chunk-bafb7196.cdd707b0.js | 16 - admin/static/js/chunk-c0bf4e14.4a1bc31d.js | 1 + admin/static/js/chunk-c5dcbf9c.320d28b0.js | 1 + admin/static/js/chunk-dbfc13d6.bbc46ab1.js | 1 + admin/static/js/chunk-de8d68d6.272274ac.js | 1 + admin/static/js/chunk-elementUI.3403f66b.js | 1 - admin/static/js/chunk-elementUI.c9b35e1b.js | 1 + admin/static/js/chunk-libs.c0325add.js | 61 -- admin/static/js/chunk-libs.e6e5cd98.js | 69 ++ package.json | 6 +- src/api/admin/utils.js | 69 -- src/api/{cms => content}/category.js | 39 +- src/api/{cms => content}/content.js | 56 +- src/api/{cms => content}/setting.js | 2 +- src/api/content/tag.js | 91 +++ src/api/file/file.js | 23 +- src/api/file/group.js | 25 +- src/api/file/tag.js | 91 +++ src/api/member/api.js | 146 ++++ src/api/member/group.js | 113 +++ src/api/member/{member-log.js => log.js} | 24 +- src/api/member/member.js | 72 +- src/api/member/setting.js | 135 ++++ src/api/member/tag.js | 91 +++ .../{admin/user-log.js => setting/accord.js} | 60 +- src/api/setting/carousel.js | 80 ++ src/api/setting/feedback.js | 69 ++ .../{admin/database.js => setting/notice.js} | 45 +- src/api/setting/region.js | 15 +- src/api/setting/setting.js | 123 +-- src/api/{admin => system}/apidoc.js | 2 +- src/api/{setting/api.js => system/dept.js} | 66 +- src/api/{admin => system}/index.js | 6 +- src/api/{admin => system}/login.js | 2 +- src/api/{admin => system}/menu.js | 39 +- src/api/{admin => system}/notice.js | 14 +- src/api/{cms/comment.js => system/post.js} | 56 +- src/api/{admin => system}/role.js | 13 +- src/api/{admin => system}/setting.js | 4 +- src/api/{admin => system}/user-center.js | 2 +- src/api/system/user-log.js | 47 ++ src/api/{admin => system}/user.js | 50 +- .../AjCaptcha/Verify/VerifyPoints.vue | 1 + src/components/AjCaptcha/api/index.js | 2 +- src/components/AjCaptcha/index.vue | 2 +- src/components/AjCaptcha/utils/ase.js | 8 +- src/components/ExcelImport/index.vue | 2 +- src/components/FileManage/index.vue | 713 +++++++++++++----- src/components/Pagination/index.vue | 15 +- src/components/Screenfull/index.vue | 2 +- src/layout/components/AppMain.vue | 4 +- src/layout/components/Navbar.vue | 31 +- src/layout/components/Sidebar/SidebarItem.vue | 11 +- src/layout/components/Sidebar/index.vue | 11 +- src/layout/components/TagsView/index.vue | 12 +- src/layout/index.vue | 16 +- src/permission.js | 9 +- src/router/index.js | 10 +- src/settings.js | 14 +- src/store/getters.js | 7 +- src/store/modules/settings.js | 24 +- src/store/modules/user.js | 41 +- src/styles/yyladmin.scss | 16 +- src/utils/auth.js | 21 +- src/utils/clipboard.js | 14 +- src/utils/index.js | 53 +- src/utils/request.js | 12 +- src/utils/screen-height.js | 2 +- src/utils/settings.js | 73 +- src/views/admin/components/SettingCaptcha.vue | 106 --- src/views/admin/components/SettingEmail.vue | 160 ---- src/views/admin/components/SettingLog.vue | 87 --- src/views/admin/components/SettingSystem.vue | 200 ----- src/views/admin/components/SettingToken.vue | 96 --- src/views/admin/components/UtilsBytetran.vue | 108 --- src/views/admin/components/UtilsIpinfo.vue | 101 --- src/views/admin/components/UtilsQrcode.vue | 81 -- src/views/admin/components/UtilsServer.vue | 181 ----- src/views/admin/components/UtilsStrrand.vue | 101 --- src/views/admin/components/UtilsStrtran.vue | 99 --- src/views/admin/components/UtilsTimestamp.vue | 85 --- src/views/admin/database.vue | 550 -------------- src/views/admin/role.vue | 485 ------------ src/views/admin/user-log-stat.vue | 325 -------- src/views/admin/utils.vue | 92 --- src/views/cms/category.vue | 573 -------------- src/views/cms/setting.vue | 293 ------- src/views/content/category.vue | 706 +++++++++++++++++ src/views/{cms => content}/content.vue | 528 ++++++------- src/views/content/setting.vue | 179 +++++ src/views/content/tag.vue | 526 +++++++++++++ src/views/file/file.vue | 14 +- src/views/file/group.vue | 362 ++++++--- src/views/file/setting.vue | 79 +- src/views/file/tag.vue | 530 +++++++++++++ src/views/{setting => member}/api.vue | 442 +++++++---- .../components/SettingApi.vue | 30 +- .../components/SettingCaptcha.vue | 28 +- .../components/SettingDiy.vue | 12 +- .../components/SettingLog.vue | 31 +- .../components/SettingLogreg.vue | 56 +- .../components/SettingToken.vue | 38 +- src/views/member/group.vue | 661 ++++++++++++++++ src/views/member/{member-log.vue => log.vue} | 172 ++--- src/views/member/member-log-stat.vue | 325 -------- src/views/member/member.vue | 547 +++++++------- src/views/member/setting.vue | 48 ++ .../member/{member-stat.vue => statistic.vue} | 15 +- src/views/member/tag.vue | 507 +++++++++++++ src/views/setting/accord.vue | 347 +++++++++ src/views/setting/carousel.vue | 510 +++++++++++++ src/views/setting/components/WechatMini.vue | 30 +- src/views/setting/components/WechatOffi.vue | 44 +- .../{cms/comment.vue => setting/feedback.vue} | 360 +++++---- src/views/setting/notice.vue | 423 +++++++++++ src/views/setting/region.vue | 210 +++--- src/views/setting/setting.vue | 308 +++++++- src/views/{admin => system}/apidoc.vue | 15 +- .../components/IndexContent.vue} | 29 +- .../components/IndexCount.vue | 35 +- .../components/IndexFile.vue | 15 +- .../components/IndexMember.vue | 13 +- .../components/IndexNotice.vue | 32 +- .../components/SettingApi.vue | 62 +- .../components/SettingCache.vue | 42 +- .../system/components/SettingCaptcha.vue | 120 +++ src/views/system/components/SettingEmail.vue | 160 ++++ src/views/system/components/SettingLog.vue | 91 +++ src/views/system/components/SettingSystem.vue | 215 ++++++ src/views/system/components/SettingToken.vue | 102 +++ .../components/UserCenterEdit.vue | 50 +- .../components/UserCenterInfo.vue | 38 +- .../components/UserCenterLog.vue | 60 +- .../components/UserCenterPwd.vue | 7 +- .../components/UserCenterSetting.vue | 2 +- .../components/system401.vue} | 2 +- .../components/system404.vue} | 2 +- .../components/systemRedirect.vue} | 1 + src/views/system/dept.vue | 558 ++++++++++++++ src/views/{admin => system}/index.vue | 12 +- src/views/{admin => system}/login.vue | 27 +- src/views/{admin => system}/logout.vue | 2 +- src/views/{admin => system}/menu.vue | 547 ++++++-------- src/views/{admin => system}/notice.vue | 196 +++-- src/views/system/post.vue | 543 +++++++++++++ src/views/system/role.vue | 624 +++++++++++++++ src/views/{admin => system}/setting.vue | 20 +- src/views/{admin => system}/user-center.vue | 12 +- src/views/{admin => system}/user-log.vue | 187 ++--- src/views/{admin => system}/user.vue | 401 +++++----- 180 files changed, 11578 insertions(+), 7479 deletions(-) rename admin/static/css/{app.e9c4639c.css => app.e3ca7543.css} (90%) delete mode 100644 admin/static/css/chunk-04a70b6c.6c5fcb8a.css delete mode 100644 admin/static/css/chunk-33142cd7.1b0b602f.css delete mode 100644 admin/static/css/chunk-5c0b331e.01499ea5.css create mode 100644 admin/static/css/chunk-5dea3fff.40172b70.css delete mode 100644 admin/static/css/chunk-7eb063e3.39453a35.css rename admin/static/css/{chunk-2d1628cb.5b297177.css => chunk-a2b927c8.5b297177.css} (100%) rename admin/static/css/{chunk-58b45323.2dd6a4ea.css => chunk-c0bf4e14.b904112b.css} (98%) create mode 100644 admin/static/css/chunk-c5dcbf9c.4b640908.css create mode 100644 admin/static/css/chunk-dbfc13d6.dd6d7c68.css create mode 100644 admin/static/css/chunk-de8d68d6.a53acf0b.css create mode 100644 admin/static/js/app.2217fe3a.js delete mode 100644 admin/static/js/app.9b69cf85.js delete mode 100644 admin/static/js/chunk-04a70b6c.3b50e200.js create mode 100644 admin/static/js/chunk-2d0d7805.4df78913.js delete mode 100644 admin/static/js/chunk-2d0f047c.da8ab170.js create mode 100644 admin/static/js/chunk-3114709e.a81d6b92.js delete mode 100644 admin/static/js/chunk-33142cd7.ffdd537e.js delete mode 100644 admin/static/js/chunk-58b45323.3e64ca28.js delete mode 100644 admin/static/js/chunk-5c0b331e.0c8761ba.js create mode 100644 admin/static/js/chunk-5dea3fff.24cc212e.js delete mode 100644 admin/static/js/chunk-7eb063e3.03a66c94.js rename admin/static/js/{chunk-0f0b8ab3.1d93c248.js => chunk-845823c8.e34adbf2.js} (78%) rename admin/static/js/{chunk-2d1628cb.e42a3ce1.js => chunk-a2b927c8.56460807.js} (91%) delete mode 100644 admin/static/js/chunk-bafb7196.cdd707b0.js create mode 100644 admin/static/js/chunk-c0bf4e14.4a1bc31d.js create mode 100644 admin/static/js/chunk-c5dcbf9c.320d28b0.js create mode 100644 admin/static/js/chunk-dbfc13d6.bbc46ab1.js create mode 100644 admin/static/js/chunk-de8d68d6.272274ac.js delete mode 100644 admin/static/js/chunk-elementUI.3403f66b.js create mode 100644 admin/static/js/chunk-elementUI.c9b35e1b.js delete mode 100644 admin/static/js/chunk-libs.c0325add.js create mode 100644 admin/static/js/chunk-libs.e6e5cd98.js delete mode 100644 src/api/admin/utils.js rename src/api/{cms => content}/category.js (71%) rename src/api/{cms => content}/content.js (73%) rename src/api/{cms => content}/setting.js (91%) create mode 100644 src/api/content/tag.js create mode 100644 src/api/file/tag.js create mode 100644 src/api/member/api.js create mode 100644 src/api/member/group.js rename src/api/member/{member-log.js => log.js} (69%) create mode 100644 src/api/member/setting.js create mode 100644 src/api/member/tag.js rename src/api/{admin/user-log.js => setting/accord.js} (70%) create mode 100644 src/api/setting/carousel.js create mode 100644 src/api/setting/feedback.js rename src/api/{admin/database.js => setting/notice.js} (67%) rename src/api/{admin => system}/apidoc.js (86%) rename src/api/{setting/api.js => system/dept.js} (72%) rename src/api/{admin => system}/index.js (91%) rename src/api/{admin => system}/login.js (95%) rename src/api/{admin => system}/menu.js (87%) rename src/api/{admin => system}/notice.js (84%) rename src/api/{cms/comment.js => system/post.js} (70%) rename src/api/{admin => system}/role.js (87%) rename src/api/{admin => system}/setting.js (98%) rename src/api/{admin => system}/user-center.js (94%) create mode 100644 src/api/system/user-log.js rename src/api/{admin => system}/user.js (71%) delete mode 100644 src/views/admin/components/SettingCaptcha.vue delete mode 100644 src/views/admin/components/SettingEmail.vue delete mode 100644 src/views/admin/components/SettingLog.vue delete mode 100644 src/views/admin/components/SettingSystem.vue delete mode 100644 src/views/admin/components/SettingToken.vue delete mode 100644 src/views/admin/components/UtilsBytetran.vue delete mode 100644 src/views/admin/components/UtilsIpinfo.vue delete mode 100644 src/views/admin/components/UtilsQrcode.vue delete mode 100644 src/views/admin/components/UtilsServer.vue delete mode 100644 src/views/admin/components/UtilsStrrand.vue delete mode 100644 src/views/admin/components/UtilsStrtran.vue delete mode 100644 src/views/admin/components/UtilsTimestamp.vue delete mode 100644 src/views/admin/database.vue delete mode 100644 src/views/admin/role.vue delete mode 100644 src/views/admin/user-log-stat.vue delete mode 100644 src/views/admin/utils.vue delete mode 100644 src/views/cms/category.vue delete mode 100644 src/views/cms/setting.vue create mode 100644 src/views/content/category.vue rename src/views/{cms => content}/content.vue (56%) create mode 100644 src/views/content/setting.vue create mode 100644 src/views/content/tag.vue create mode 100644 src/views/file/tag.vue rename src/views/{setting => member}/api.vue (51%) rename src/views/{setting => member}/components/SettingApi.vue (72%) rename src/views/{setting => member}/components/SettingCaptcha.vue (68%) rename src/views/{setting => member}/components/SettingDiy.vue (91%) rename src/views/{setting => member}/components/SettingLog.vue (67%) rename src/views/{setting => member}/components/SettingLogreg.vue (57%) rename src/views/{setting => member}/components/SettingToken.vue (67%) create mode 100644 src/views/member/group.vue rename src/views/member/{member-log.vue => log.vue} (62%) delete mode 100644 src/views/member/member-log-stat.vue create mode 100644 src/views/member/setting.vue rename src/views/member/{member-stat.vue => statistic.vue} (97%) create mode 100644 src/views/member/tag.vue create mode 100644 src/views/setting/accord.vue create mode 100644 src/views/setting/carousel.vue rename src/views/{cms/comment.vue => setting/feedback.vue} (51%) create mode 100644 src/views/setting/notice.vue rename src/views/{admin => system}/apidoc.vue (85%) rename src/views/{admin/components/IndexCms.vue => system/components/IndexContent.vue} (81%) rename src/views/{admin => system}/components/IndexCount.vue (52%) rename src/views/{admin => system}/components/IndexFile.vue (92%) rename src/views/{admin => system}/components/IndexMember.vue (96%) rename src/views/{admin => system}/components/IndexNotice.vue (81%) rename src/views/{admin => system}/components/SettingApi.vue (50%) rename src/views/{admin => system}/components/SettingCache.vue (56%) create mode 100644 src/views/system/components/SettingCaptcha.vue create mode 100644 src/views/system/components/SettingEmail.vue create mode 100644 src/views/system/components/SettingLog.vue create mode 100644 src/views/system/components/SettingSystem.vue create mode 100644 src/views/system/components/SettingToken.vue rename src/views/{admin => system}/components/UserCenterEdit.vue (83%) rename src/views/{admin => system}/components/UserCenterInfo.vue (62%) rename src/views/{admin => system}/components/UserCenterLog.vue (54%) rename src/views/{admin => system}/components/UserCenterPwd.vue (94%) rename src/views/{admin => system}/components/UserCenterSetting.vue (98%) rename src/views/{admin/401.vue => system/components/system401.vue} (98%) rename src/views/{admin/404.vue => system/components/system404.vue} (98%) rename src/views/{admin/redirect.vue => system/components/systemRedirect.vue} (92%) create mode 100644 src/views/system/dept.vue rename src/views/{admin => system}/index.vue (73%) rename src/views/{admin => system}/login.vue (90%) rename src/views/{admin => system}/logout.vue (95%) rename src/views/{admin => system}/menu.vue (66%) rename src/views/{admin => system}/notice.vue (61%) create mode 100644 src/views/system/post.vue create mode 100644 src/views/system/role.vue rename src/views/{admin => system}/setting.vue (57%) rename src/views/{admin => system}/user-center.vue (63%) rename src/views/{admin => system}/user-log.vue (59%) rename src/views/{admin => system}/user.vue (59%) diff --git a/.env.development b/.env.development index 3458654..811aad1 100644 --- a/.env.development +++ b/.env.development @@ -3,9 +3,3 @@ ENV = 'development' # 接口baseURL VUE_APP_BASE_URL = 'http://localhost:9526/index.php' - -# token名称 -VUE_APP_TOKEN_NAME = 'AdminToken' - -# token方式:header请求头部,param请求参数 -VUE_APP_TOKEN_TYPE = 'header' diff --git a/.env.production b/.env.production index 3e8ea5f..b68be6a 100644 --- a/.env.production +++ b/.env.production @@ -3,9 +3,3 @@ ENV = 'production' # 接口baseURL VUE_APP_BASE_URL = 'http://localhost:9526/index.php' - -# token名称 -VUE_APP_TOKEN_NAME = 'AdminToken' - -# token方式:header请求头部,param请求参数 -VUE_APP_TOKEN_TYPE = 'header' diff --git a/.env.production.domain b/.env.production.domain index 14b1483..73b55be 100644 --- a/.env.production.domain +++ b/.env.production.domain @@ -13,9 +13,3 @@ VUE_APP_BASE_URL = '' VUE_APP_PUBLICPATH = '/admin/' # outputDir VUE_APP_OUTPUTDIR = 'admin' - -# token名称 -VUE_APP_TOKEN_NAME = 'AdminToken' - -# token方式:header请求头部,param请求参数 -VUE_APP_TOKEN_TYPE = 'header' diff --git a/.env.staging b/.env.staging index e9904f1..370857b 100644 --- a/.env.staging +++ b/.env.staging @@ -5,9 +5,3 @@ ENV = 'staging' # 接口baseURL VUE_APP_BASE_URL = 'http://localhost:9526/index.php' - -# token名称 -VUE_APP_TOKEN_NAME = 'AdminToken' - -# token方式:header请求头部,param请求参数 -VUE_APP_TOKEN_TYPE = 'header' diff --git a/.eslintrc.js b/.eslintrc.js index 7454912..9df7098 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,7 +15,7 @@ module.exports = { // 它是基于https://github.com/vuejs/eslint-config-vue rules: { 'vue/max-attributes-per-line': [2, { - 'singleline': 10, + 'singleline': 99, 'multiline': { 'max': 1, 'allowFirstLine': false diff --git a/admin/index.html b/admin/index.html index f42b021..d9a82e5 100644 --- a/admin/index.html +++ b/admin/index.html @@ -1 +1 @@ -
1&&i>0?s:a}};return o;function a(){return e 1&&(a*=f(_),s*=f(_));var x=(r===o?-1:1)*f((a*a*(s*s)-a*a*(y*y)-s*s*(d*d))/(a*a*(y*y)+s*s*(d*d)))||0,O=x*a*y/s,w=x*-s*d/a,S=(t+n)/2+g(h)*O-p(h)*w,j=(e+i)/2+p(h)*O+g(h)*w,M=b([1,0],[(d-O)/a,(y-w)/s]),k=[(d-O)/a,(y-w)/s],T=[(-1*d-O)/a,(-1*y-w)/s],C=b(k,T);if(m(k,T)<=-1&&(C=v),m(k,T)>=1&&(C=0),C<0){var I=Math.round(C/v*1e6)/1e6;C=2*v+I%2*v}c.addData(u,S,j,a,s,M,C,h,o)}var x=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,O=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function w(t){var e=new o["a"];if(!t)return e;var n,i=0,r=0,a=i,s=r,l=o["a"].CMD,u=t.match(x);if(!u)return e;for(var c=0;c 0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var B=y.getState("emphasis").style;B.lineWidth=+y.style.lineWidth+1}Object(f["a"])(y).seriesIndex=t.seriesIndex,Object(p["E"])(y,N,z,E);var F=et(t.get("smooth")),V=t.get("smoothMonotone");if(y.setShape({smooth:F,smoothMonotone:V,connectNulls:M}),m){var H=a.getCalculationInfo("stackedOnSeries"),G=0;m.useStyle(c["i"](l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),H&&(G=et(H.get("smooth"))),m.setShape({smooth:F,stackedOnSmooth:G,smoothMonotone:V,connectNulls:M}),Object(p["D"])(m,t,"areaStyle"),Object(f["a"])(m).seriesIndex=t.seriesIndex,Object(p["E"])(m,N,z,E)}var W=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=W)})),this._polyline.onHoverStateChange=W,this._data=a,this._coordSys=r,this._stackedOnPoints=S,this._points=u,this._step=D,this._valueOrigin=O,t.get("triggerLineEvent")&&(this.packEventData(t,y),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,e){Object(f["a"])(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=R["s"](r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;s=new _(r,o),s.x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Y["a"].prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=R["s"](r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Y["a"].prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Object(p["C"])(this._polyline,t),e&&Object(p["C"])(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new W({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new X({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");c["v"](l)&&(l=l(null));var u=s.get("animationDelay")||0,h=c["v"](u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var d=[t.x,t.y],f=void 0,p=void 0,g=void 0;if(n)if(r){var v=n,y=e.pointToCoord(d);i?(f=v.startAngle,p=v.endAngle,g=-y[1]/180*Math.PI):(f=v.r0,p=v.r,g=y[0])}else{var m=n;i?(f=m.x,p=m.x+m.width,g=t.x):(f=m.y+m.height,p=m.y,g=t.y)}var b=p===f?0:(g-f)/(p-f);a&&(b=1-b);var _=c["v"](u)?u(o):l*b+h,x=s.getSymbolPath(),O=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),O&&O.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(dt(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new L["a"]({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=ut(a);l>=0&&(Object(v["e"])(o,Object(v["c"])(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Object(g["a"])(r,n):Object(g["b"])(r,t)},enableTextSetter:!0},pt(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,m=e.shape,b=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?f:0)*(y?-1:1),x=(g?0:-f)*(y?-1:1),O=g?"x":"y",w=ht(u,b,O),S=w.range,j=S[1]-S[0],M=void 0;if(j>=1){if(j>1&&!h){var k=ct(u,S[0]);s.attr({x:k[0]+_,y:k[1]+x}),r&&(M=c.getRawValue(S[0]))}else{k=l.getPointOn(b,O);k&&s.attr({x:k[0]+_,y:k[1]+x});var T=c.getRawValue(S[0]),C=c.getRawValue(S[1]);r&&(M=R["i"](n,d,T,C,w.t))}i.lastFrameIndex=S[0]}else{var I=1===t||i.lastFrameIndex>0?S[0]:0;k=ct(u,I);r&&(M=c.getRawValue(I)),s.attr({x:k[0]+_,y:k[1]+x})}r&&Object(v["d"])(s).setLabelText(M)}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=A(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),d=c.current,f=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(r&&(d=it(c.current,n,r,a),f=it(c.stackedOnCurrent,n,r,a),p=it(c.next,n,r,a),g=it(c.stackedOnNext,n,r,a)),tt(d,p)>3e3||l&&tt(f,g)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:g})));s.shape.__points=c.current,s.shape.points=d;var v={shape:{points:p}};c.current!==d&&(v.shape.__points=c.next),s.stopAnimation(),h["f"](s,v,u),l&&(l.setShape({points:d,stackedOnPoints:f}),l.stopAnimation(),h["f"](l,{shape:{stackedOnPoints:g}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],m=c.status,b=0;b =2){if(i){var a=r(o,i,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var u=a[2*l],c=a[2*l+1],h=o[(l+1)%s];t.bezierCurveTo(u[0],u[1],c[0],c[1],h[0],h[1])}}else{t.moveTo(o[0][0],o[0][1]);l=1;for(var d=o.length;l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(ls&&(l=s);var u=a;a=r-l,l=r-u}a++;while(as&&(l=s);var u=a;a=r-l,l=r-u}else{s=i-r;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a=0;h--)t[v+h]=t[g+h];if(0===i){_=!0;break}}if(t[p--]=l[f--],1===--s){_=!0;break}if(b=s-u(t[d],l,0,s,s-1,e),0!==b){for(p-=b,f-=b,s-=b,v=p+1,g=f+1,h=0;h=r||b>=r);if(_)break;y<0&&(y=0),y+=2}if(o=y,o<1&&(o=1),1===s){for(p-=i,d-=i,v=p+1,g=d+1,h=i-1;h>=0;h--)t[v+h]=t[g+h];t[p]=l[f]}else{if(0===s)throw new Error;for(g=p-(s-1),h=0;h=0;h--)t[v+h]=t[g+h];t[p]=l[f]}else for(g=p-(s-1),h=0;hd&&(f=d),l(t,n,n+f,n+u,e),u=f}c.pushRun(n,u),c.mergeRuns(),s-=u,n+=u}while(0!==s);c.forceMergeRuns()}}},"1bea":function(t,e,n){"use strict";var i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();e["a"]=i},"1e5d":function(t,e,n){"use strict";var i=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a
",y=c.join(v);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,y,s,Math.random()+"",r[0],r[1],d,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Object(Q["a"])(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,c=r.dataType,h=s.getData(c),d=this._renderMode,p=t.positionDefault,g=it([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),v=g.get("trigger");if(null==v||"item"===v){var y=s.getDataParams(l,c),m=new _["a"];y.marker=m.makeTooltipMarker("item",Object(f["b"])(y.color),d);var b=Object($["b"])(s.formatTooltip(l,!1,c)),x=g.get("order"),O=g.get("valueFormatter"),w=b.frag,S=w?Object(_["b"])(O?Object(u["m"])({valueFormatter:O},w):w,m,d,x,i.get("useUTC"),g.get("textStyle")):b.text,j="item_"+s.name+"_"+l;this._showOrMove(g,(function(){this._showTooltipContent(g,S,y,j,t.offsetX,t.offsetY,t.position,t.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=Object(Q["a"])(e),r=i.tooltipConfig,o=r.option||{};if(Object(u["A"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var c=t.positionDefault,h=it(s,this._tooltipModel,c?{position:c}:null),d=h.get("content"),f=Math.random()+"",p=new _["a"];this._showOrMove(h,(function(){var n=Object(u["d"])(h.get("formatterParams")||{});this._showTooltipContent(h,d,n,f,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var d=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")),g=p.color;if(h)if(Object(u["A"])(h)){var v=t.ecModel.get("useUTC"),y=Object(u["s"])(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=h,m&&(d=Object(K["h"])(y.axisValue,d,v)),d=Object(f["c"])(d,n,!0)}else if(Object(u["v"])(h)){var b=Object(u["c"])((function(e,i){e===this._ticket&&(c.setContent(i,l,t,g,a),this._updatePosition(t,a,r,o,c,n,s))}),this);this._ticket=i,d=h(n,i,b)}else d=h;c.setContent(d,l,t,g,a),c.show(t,g),this._updatePosition(t,a,r,o,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(u["s"])(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(u["s"])(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var c=r.getSize(),h=t.get("align"),d=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(u["v"])(e)&&(e=e([n,i],o,r.el,f,{viewSize:[s,l],contentSize:c.slice()})),Object(u["s"])(e))n=Object(F["n"])(e[0],s),i=Object(F["n"])(e[1],l);else if(Object(u["z"])(e)){var g=e;g.width=c[0],g.height=c[1];var v=Object(G["d"])(g,{width:s,height:l});n=v.x,i=v.y,h=null,d=null}else if(Object(u["A"])(e)&&a){var y=st(e,f,c,t.get("borderWidth"));n=y[0],i=y[1]}else{y=ot(n,i,r,s,l,h?null:20,d?null:20);n=y[0],i=y[1]}if(h&&(n-=lt(h)?c[0]/2:"right"===h?c[0]:0),d&&(i-=lt(d)?c[1]/2:"bottom"===d?c[1]:0),p(t)){y=at(n,i,r,s,l);n=y[0],i=y[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Object(u["k"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&Object(u["k"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&Object(u["k"])(a,(function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(u["k"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!c["a"].node&&e.getDom()&&(Object(tt["a"])(this,"_updatePosition"),this._tooltipContent.dispose(),U["b"]("itemTooltip",e))},e.type="tooltip",e}(Z["a"]);function it(t,e,n){var i,r=e.ecModel;n?(i=new W["a"](n,r,r),i=new W["a"](e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof W["a"]&&(a=a.get("tooltip",!0)),Object(u["A"])(a)&&(a={formatter:a}),a&&(i=new W["a"](a,i,r)))}return i}function rt(t,e){return t.dispatchAction||Object(u["c"])(e.dispatchAction,e)}function ot(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function at(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function st(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function lt(t){return"center"===t||"middle"===t}function ut(t,e,n){var i=Object(q["r"])(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Object(q["t"])(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Object(Q["a"])(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}var ct=nt;function ht(t){Object(r["a"])(i["a"]),t.registerComponentModel(l),t.registerComponentView(ct),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},u["I"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},u["I"])}},"4c75":function(t,e,n){"use strict";var i=function(){function t(t){this.value=t}return t}(),r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},"4eb9":function(t,e,n){"use strict";var i=n("08c2"),r=n("767d"),o=n("7f04"),a=n("9a27"),s=n("04af"),l=n("0606"),u=n("7f72"),c=Object(l["m"])(),h=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=a["c"]("ec_cpt_model"),r}return Object(i["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=u["b"](this),i=n?u["c"](t):{},o=e.getTheme();r["G"](t,o.get(this.mainType)),r["G"](t,this.getDefaultOption()),n&&u["e"](t,i,n)},e.prototype.mergeOption=function(t,e){r["G"](this.option,t,!0);var n=u["b"](this);n&&u["e"](this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Object(s["d"])(t))return t.defaultOption;var e=c(this);if(!e.defaultOption){var n=[],i=t;while(i){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var a={},l=n.length-1;l>=0;l--)a=r["G"](a,n[l],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Object(l["t"])(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(o["a"]);function d(t){var e=[];return r["k"](h.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=r["F"](e,(function(t){return Object(s["f"])(t).main})),"dataset"!==t&&r["q"](e,"dataset")<=0&&e.unshift("dataset"),e}Object(s["e"])(h,o["a"]),Object(s["c"])(h),a["a"](h),a["b"](h,d),e["a"]=h},5265:function(t,e,n){var i=n("a63b"),r=n("7de0"),o=n("52c8"),a=/"/g,s=i("".replace);t.exports=function(t,e,n,i){var l=o(r(t)),u="<"+e;return""!==n&&(u+=" "+n+'="'+s(o(i),a,""")+'"'),u+">"+l+""+e+">"}},5539:function(t,e,n){"use strict";var i=n("08c2"),r=n("a5f7"),o=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),a=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(r["b"]);a.prototype.type="circle",e["a"]=a},"59da":function(t,e,n){"use strict";n.d(e,"a",(function(){return Q}));var i=n("2243"),r=n("08c2"),o=n("767d"),a=n("7f04"),s=n("0606"),l=n("4eb9"),u=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(r["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),o["s"](e)&&o["k"](e,(function(t,i){o["A"](t)&&(t={type:t}),e[i]=o["G"](t,u(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n=0&&l<0)&&(s=g,l=p,r=c,a.length=0),Object(o["k"])(h,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:r}}function G(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function W(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=c["e"](l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function U(t,e,n){var i=n.axesInfo=[];Object(o["k"])(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function X(t,e,n,i){if(!K(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function Y(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",a=B(i)[r]||{},s=B(i)[r]={};Object(o["k"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(o["k"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;s[e]=t}))}));var l=[],u=[];Object(o["k"])(a,(function(t,e){!s[e]&&u.push(t)})),Object(o["k"])(s,(function(t,e){!a[e]&&l.push(t)})),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function q(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function Z(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function K(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Q(t){i["a"].registerAxisPointerClass("CartesianAxisPointer",I),t.registerComponentModel(P),t.registerComponentView(z),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(o["s"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Object(c["a"])(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},F)}},"6b9b":function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=n("f4d8"),r=n("e3fb"),o=i["c"],a=5e-5;function s(t){return t>a||t<-a}var l=[],u=[],c=i["b"](),h=Math.abs,d=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||i["b"](),e?this.getLocalTransform(n):o(n),t&&(e?i["e"](n,t,n):i["a"](n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&o(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(l);var n=l[0]<0?-1:1,r=l[1]<0?-1:1,o=((l[0]-n)*e+n)/l[0]||0,a=((l[1]-r)*e+r)/l[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||i["b"](),i["d"](this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i["e"](u,t.invTransform,e),e=u);var n=this.originX,r=this.originY;(n||r)&&(c[4]=n,c[5]=r,i["e"](u,e,c),u[4]-=n,u[5]-=r,e=u),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r["b"](n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r["b"](n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&h(t[0]-1)>1e-10&&h(t[3]-1)>1e-10?Math.sqrt(h(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){p(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,h=t.y,d=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||l){var p=n+s,g=r+l;e[4]=-p*o-d*g*a,e[5]=-g*a-f*p*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=f*o,e[2]=d*a,u&&i["f"](e,e,u),e[4]+=n+c,e[5]+=r+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function p(t,e){for(var n=0;n=0&&x=0&&c<=1&&(r[u++]=c)}}else{var h=s*s-4*a*l;if(f(h)){c=-s/(2*a);c>=0&&c<=1&&(r[u++]=c)}else if(h>0){var d=o(h),g=(c=(-s+d)/(2*a),(-s-d)/(2*a));c>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u}function j(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function M(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function k(t,e,n,r,a,l,u,f,p){var g,v=.005,y=1/0;c[0]=u,c[1]=f;for(var m=0;m<1;m+=.05){h[0]=O(t,n,a,m),h[1]=O(e,r,l,m);var b=Object(i["f"])(c,h);b0&&this._innerSelect(t,e)}},e.registerClass=function(t){return s["a"].registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(s["a"]);function C(t){var e=t.name;a["l"](t)||(t.name=I(t)||e)}function I(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return r["k"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function D(t){return t.model.getRawData().count()}function A(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),P}function P(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function L(t,e){r["k"](r["e"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,r["h"](R,e))}))}function R(t,e){var n=N(t);return n&&n.setOutputEnd((e||this).count()),e}function N(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r["H"](T,u["a"]),r["H"](T,l["a"]),Object(d["e"])(T,s["a"]);e["a"]=T},"91c0":function(t,e,n){"use strict";var i=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();e["a"]=i},"91ca":function(t,e,n){"use strict";var i=n("767d"),r=n("00e5"),o=n("dc51"),a=n("ac6c"),s=n("0606"),l=n("c1ab"),u=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(i["f"])(),this.categoryAxisMap=Object(i["f"])(),this.coordSysName=t}return t}();function c(t){var e=t.get("coordinateSystem"),n=new u(e),i=h[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var h={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",s["b"]).models[0],o=t.getReferringComponents("yAxis",s["b"]).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),d(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),d(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",s["b"]).models[0];e.coordSysDims=["single"],n.set("single",r),d(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",s["b"]).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),d(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),d(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();Object(i["k"])(a.parallelAxisIndex,(function(t,i){var a=o.getComponent("parallelAxis",t),l=s[i];n.set(l,a),d(a)&&(r.set(l,a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=i))}))}};function d(t){return"category"===t.get("type")}var f=n("6448"),p=n("5d61a"),g=n("3781"),v=n("5c4c");function y(t,e){var n,r=t.get("coordinateSystem"),o=l["a"].get(r);return e&&e.coordSysDims&&(n=i["F"](e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=Object(a["a"])(r)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}function m(t,e,n){var r,o;return n&&i["k"](t,(function(t,i){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=i),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(o=!0)})),o||null==r||(t[r].otherDims.itemName=0),r}function b(t,e,n){n=n||{};var a,s=e.getSourceManager(),l=!1;t?(l=!0,a=Object(f["c"])(t)):(a=s.getSource(),l=a.sourceFormat===v["f"]);var u=c(e),h=y(e,u),d=n.useEncodeDefaulter,b=i["v"](d)?d:d?i["h"](g["c"],h,e):null,x={coordDimensions:h,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:b,canOmitUnusedDimensions:!l},O=Object(o["a"])(a,x),w=m(O.dimensions,n.createInvertedIndices,u),S=l?null:s.getSharedDataStore(O),j=Object(p["a"])(e,{schema:O,store:S}),M=new r["a"](O,e);M.setCalculationInfo(j);var k=null!=w&&_(a)?function(t,e,n,i){return i===w?n:this.defaultDimValueGetter(t,e,n,i)}:null;return M.hasItemOption=!1,M.initData(l?a:S,null,k),M}function _(t){if(t.sourceFormat===v["f"]){var e=x(t.data||[]);return!i["s"](Object(s["g"])(e))}}function x(t){var e=0;while(ey[1]&&(y[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=Object(r["F"])(a,(function(t){return t.property})),c=0;cb[1]&&(b[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&ec[1]&&(c[1]=m),h[d++]=b}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=j(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==y)){e.target=a;break}}}function k(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}r["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){S.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,s=k(this,r,o);if("mouseup"===t&&s||(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a["e"](this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var T=S,C=n("1993"),I=n("6018"),D=!1;function A(){D||(D=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function P(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var L=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=P}return t.prototype.traverse=function(t,e){for(var n=0;no)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Object(y["d"])(e,t,Object(_["a"])(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(T["a"]),F={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=N(e.x,t.x),s=z(e.x+e.width,r),l=N(e.y,t.y),u=z(e.y+e.height,o),c=sr?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=z(e.r,t.r),o=N(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},V={cartesian2d:function(t,e,n,r,o,a,s,l,u){var c=new m["a"]({shape:Object(i["m"])({},r),z2:1});if(c.__dataIndex=n,c.name="item",a){var h=c.shape,d=o?"height":"width";h[d]=0}return c},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?k:b["a"],c=new u({shape:i,z2:1});c.name="item";var h=K(r);if(c.calculateTextPosition=A(h,{isRoundCap:u===k}),o){var d=c.shape,f=r?"r":"endAngle",p={};d[f]=r?0:i.startAngle,p[f]=i[f],(s?y["f"]:y["a"])(c,{shape:p},o)}return c}};function H(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function G(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?y["f"]:y["a"])(n,{shape:l},e,r,null);var c=e?t.baseAxis.model:null;(a?y["f"]:y["a"])(n,{shape:u},c,r)}function W(t,e){for(var n=0;n
建议先备份当前数据后再进行恢复操作!!!
当前数据库将被清空覆盖,请谨慎操作!!!';this.$confirm(l,"还原提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0;var l={};l[t.idkey]=e[t.idkey],f(l).then((function(e){t.loading=!1,t.$message.success(e.msg)})).catch((function(){t.loading=!1}))})).catch((function(){}))},tableSelect:function(e){this.tableSelection=e,this.tableSelectIds=this.tableSelectGetIds(e).toString()},tableSelectGetIds:function(e){return Object(s["a"])(e,"Name")},tableSelectAlert:function(){this.$alert("请选择需要操作的表","提示",{type:"warning",callback:function(e){}})},tableSelectOpen:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t&&(this.$refs["tableSelectRef"].clearSelection(),this.$refs["tableSelectRef"].toggleRowSelection(t)),this.tableSelection.length?(this.tableSelectTitle="选中操作","optimize"===e?this.tableSelectTitle="优化表":"repair"===e&&(this.tableSelectTitle="修复表"),this.tableSelectDialog=!0,this.tableSelectType=e):this.tableSelectAlert()},tableSelectCancel:function(){this.tableSelectDialog=!1},tableSelectSubmit:function(){if(this.tableSelection.length){var e=this.tableSelectType;"optimize"===e?this.optimize(this.tableSelection):"repair"===e&&this.repair(this.tableSelection),this.tableSelectDialog=!1}else this.tableSelectAlert()},tableSele:function(e,t){this.information(t.Name)},tableClick:function(e,t,l,i){var a=t.property;"Name"===a&&this.information(e[a])},optimize:function(e){var t=this;e.length?(this.loading=!0,g({table:this.tableSelectGetIds(e)}).then((function(e){t.loading=!1,t.$refs["tableSelectRef"].clearSelection(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))):this.tableSelectAlert()},repair:function(e){var t=this;e.length?(this.loading=!0,_({table:this.tableSelectGetIds(e)}).then((function(e){t.loading=!1,t.$refs["tableSelectRef"].clearSelection(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))):this.tableSelectAlert()},information:function(e){var t=this;e&&(this.tableName=e,u({table_name:this.tableName}).then((function(e){t.tableInfo=e.data.info,t.tableDdl=e.data.ddl})))}}},y=v,k=l("0b56"),x=Object(k["a"])(y,i,a,!1,null,null,null);t["default"]=x.exports},bb8b:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-card",{staticClass:"dialog-body",style:{height:e.height+"px"}},[l("el-form",{ref:"ref",attrs:{model:e.model,rules:e.rules,"label-width":"120px"}},[l("el-form-item",{attrs:{label:"Token密钥",prop:"token_key"}},[l("el-col",{attrs:{span:8}},[l("el-input",{attrs:{type:"password",autocomplete:"off",clearable:"","show-password":""},model:{value:e.model.token_key,callback:function(t){e.$set(e.model,"token_key",t)},expression:"model.token_key"}})],1),l("el-col",{attrs:{span:13}},[e._v(" 修改后用户登录状态失效,需重新登录。 ")])],1),l("el-form-item",{attrs:{label:"Token有效时间",prop:"token_exp"}},[l("el-col",{attrs:{span:8}},[l("el-input",{attrs:{type:"number"},model:{value:e.model.token_exp,callback:function(t){e.$set(e.model,"token_exp",t)},expression:"model.token_exp"}},[l("template",{slot:"append"},[e._v("小时")])],2)],1),l("el-col",{attrs:{span:13}},[e._v(" 登录成功后超过有效时间,需重新登录。 ")])],1),l("el-form-item",{attrs:{label:"多端登录",prop:"is_multi_login"}},[l("el-col",{attrs:{span:8}},[l("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.model.is_multi_login,callback:function(t){e.$set(e.model,"is_multi_login",t)},expression:"model.is_multi_login"}})],1),l("el-col",{attrs:{span:16}},[e._v(" 开启后可以在多个设备(浏览器)同时登录。 ")])],1),l("el-form-item",[l("el-button",{attrs:{loading:e.loading},on:{click:function(t){return e.refresh()}}},[e._v("刷新")]),l("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")])],1)],1)],1)},a=[],o=l("98b1"),n=l("5a2e"),s={name:"AdminSettingToken",components:{},data:function(){return{name:"Token设置",height:680,loading:!1,model:{token_key:"",token_exp:12,is_multi_login:0},rules:{}}},created:function(){this.height=Object(o["a"])(180),this.info()},methods:{info:function(){var e=this;Object(n["o"])().then((function(t){e.model=t.data}))},refresh:function(){var e=this;this.loading=!0,Object(n["o"])().then((function(t){e.model=t.data,e.loading=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1}))},submit:function(){var e=this;this.$refs["ref"].validate((function(t){t&&(e.loading=!0,Object(n["n"])(e.model).then((function(t){e.loading=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))}}},r=s,c=l("0b56"),d=Object(c["a"])(r,i,a,!1,null,null,null);t["default"]=d.exports},bb8bf:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("el-card",[l("el-form",{ref:"ref",attrs:{model:e.model,rules:e.rules,"label-width":"150px"}},[l("el-tabs",[l("el-tab-pane",{staticClass:"dialog-body",style:{height:e.height+"px"},attrs:{label:"上传设置",lazy:""}},[l("el-form-item",{attrs:{label:"文件上传",prop:"is_open"}},[l("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.model.is_open,callback:function(t){e.$set(e.model,"is_open",t)},expression:"model.is_open"}}),l("span",[e._v(" 关闭后无法上传文件")])],1),l("el-form-item",{attrs:{label:"存储方式",prop:"storage"}},[l("el-select",{attrs:{placeholder:"请选择"},model:{value:e.model.storage,callback:function(t){e.$set(e.model,"storage",t)},expression:"model.storage"}},e._l(e.storages,(function(t,i){return l("el-option",{key:i,attrs:{label:t,value:i},on:{change:e.storageChange}})})),1)],1),"local"==e.model.storage?l("div",[l("el-form-item",{attrs:{label:""}},[l("el-card",[l("div",[e._v(" 文件将存储在本地服务器,默认保存在 public/storage 目录,文件以散列 hash 命名。 "),l("br"),e._v(" 文件存储的目录需要有读写权限(777),有足够的存储空间。 ")])])],1)],1):"qiniu"==e.model.storage?l("div",[l("el-form-item",{attrs:{label:""}},[l("el-card",[l("div",[e._v(" 文件将上传到七牛云 Kodo 存储,对象存储 > 空间管理 > 空间设置 > 访问控制, 设置为 公开空间。 "),l("br"),e._v(" 需要配置跨域访问 CORS 规则,设置:来源 Origin 为 *,允许 Methods 为 GET,POST,允许 Headers 为 *。 ")])])],1),l("el-form-item",{attrs:{label:"AccessKey",prop:"qiniu_access_key"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.qiniu_access_key,callback:function(t){e.$set(e.model,"qiniu_access_key",t)},expression:"model.qiniu_access_key"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.qiniu_access_key,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" AccessKey(AK)在 [ 七牛云 > 个人中心 > 密钥管理 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"SecretKey",prop:"qiniu_secret_key"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.qiniu_secret_key,callback:function(t){e.$set(e.model,"qiniu_secret_key",t)},expression:"model.qiniu_secret_key"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.qiniu_secret_key,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" SecretKey(SK)在 [ 七牛云 > 个人中心 > 密钥管理 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"空间名称",prop:"qiniu_bucket"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.qiniu_bucket,callback:function(t){e.$set(e.model,"qiniu_bucket",t)},expression:"model.qiniu_bucket"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.qiniu_bucket,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 空间名称 在 [ 七牛云 > 对象存储 > 空间管理 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"外链域名",prop:"qiniu_domain"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.qiniu_domain,callback:function(t){e.$set(e.model,"qiniu_domain",t)},expression:"model.qiniu_domain"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.qiniu_domain,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 外链域名 在 [ 七牛云 > 对象存储 > 空间管理 > 域名设置 ] 设置和获取 ")])],1)],1):"aliyun"==e.model.storage?l("div",[l("el-form-item",{attrs:{label:""}},[l("el-card",[l("div",[e._v(" 文件将上传到阿里云 OSS 存储,需要配置 OSS 公开访问及跨域策略。 "),l("br"),e._v(" 需要配置跨域访问 CORS 规则,设置:来源 Origin 为 *,允许 Methods 为 GET,POST,允许 Headers 为 *。 ")])])],1),l("el-form-item",{attrs:{label:"AccessKey ID",prop:"aliyun_access_key_id"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.aliyun_access_key_id,callback:function(t){e.$set(e.model,"aliyun_access_key_id",t)},expression:"model.aliyun_access_key_id"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.aliyun_access_key_id,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" AccessKey ID 在 [ 阿里云 > 个人中心 > AccessKey 管理 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"AccessKey Secret",prop:"aliyun_access_key_secret"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.aliyun_access_key_secret,callback:function(t){e.$set(e.model,"aliyun_access_key_secret",t)},expression:"model.aliyun_access_key_secret"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.aliyun_access_key_secret,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" AccessKey Secret 在 [ 阿里云 > 个人中心 > AccessKey 管理 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"Bucket名称",prop:"aliyun_bucket"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.aliyun_bucket,callback:function(t){e.$set(e.model,"aliyun_bucket",t)},expression:"model.aliyun_bucket"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.aliyun_bucket,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" Bucket 名称 在 [ 阿里云 > 对象存储 > Bucket 列表 ] 获取 ")])],1),l("el-form-item",{attrs:{label:"Bucket域名",prop:"aliyun_bucket_domain"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.aliyun_bucket_domain,callback:function(t){e.$set(e.model,"aliyun_bucket_domain",t)},expression:"model.aliyun_bucket_domain"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.aliyun_bucket_domain,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" Bucket 域名 在 [ 阿里云 > 对象存储 > Bucket 列表 > Bucket 概览 ] 获取 ")])],1),l("el-form-item",{attrs:{label:"Endpoint地域节点",prop:"aliyun_endpoint"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.aliyun_endpoint,callback:function(t){e.$set(e.model,"aliyun_endpoint",t)},expression:"model.aliyun_endpoint"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.aliyun_endpoint,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" Endpoint(地域节点) 在 [ 阿里云 > 对象存储 > Bucket 列表 > Bucket 概览 ] 获取 ")])],1)],1):"tencent"==e.model.storage?l("div",[l("el-form-item",{attrs:{label:""}},[l("el-card",[l("div",[e._v(" 文件将上传到腾讯云 COS 存储,需要配置 COS 公有读私有写访问权限及跨域策略。 "),l("br"),e._v(" 需要配置跨域访问 CORS 规则,设置:来源 Origin 为 *,允许 Methods 为 GET,POST,允许 Headers 为 *。 ")])])],1),l("el-form-item",{attrs:{label:"SecretId",prop:"tencent_secret_id"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.tencent_secret_id,callback:function(t){e.$set(e.model,"tencent_secret_id",t)},expression:"model.tencent_secret_id"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.tencent_secret_id,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" SecretId 在 [ 腾讯云 > 个人中心 > 访问管理 > 访问密钥 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"SecretKey",prop:"tencent_secret_key"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.tencent_secret_key,callback:function(t){e.$set(e.model,"tencent_secret_key",t)},expression:"model.tencent_secret_key"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.tencent_secret_key,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" SecretKey 在 [ 腾讯云 > 个人中心 > 访问管理 > 访问密钥 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"存储桶名称",prop:"tencent_bucket"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.tencent_bucket,callback:function(t){e.$set(e.model,"tencent_bucket",t)},expression:"model.tencent_bucket"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.tencent_bucket,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 存储桶名称 在 [ 腾讯云 > 对象存储 > 存储桶列表 ] 获取 ")])],1),l("el-form-item",{attrs:{label:"所属地域",prop:"tencent_region"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.tencent_region,callback:function(t){e.$set(e.model,"tencent_region",t)},expression:"model.tencent_region"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.tencent_region,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 所属地域 在 [ 腾讯云 > 对象存储 > 存储桶列表 ] 获取。如:ap-guangzhou ")])],1),l("el-form-item",{attrs:{label:"访问域名",prop:"tencent_domain"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.tencent_domain,callback:function(t){e.$set(e.model,"tencent_domain",t)},expression:"model.tencent_domain"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.tencent_domain,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 访问域名 在 [ 腾讯云 > 对象存储 > 存储桶列表 > 概览 ] 获取 ")])],1)],1):"baidu"==e.model.storage?l("div",[l("el-form-item",{attrs:{label:""}},[l("el-card",[l("div",[e._v(" 文件将上传到百度云 BOS 存储,对象存储 > Bucket列表 > 配置设置 > Bucket权限配置, 设置为 公共 *。 "),l("br"),e._v(" 需要配置跨域访问 CORS 规则,设置:来源 Origin 为 *,允许 Methods 为 GET,POST,允许 Headers 为 *。 ")])])],1),l("el-form-item",{attrs:{label:"Access Key",prop:"baidu_access_key"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.baidu_access_key,callback:function(t){e.$set(e.model,"baidu_access_key",t)},expression:"model.baidu_access_key"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.baidu_access_key,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" Access Key 在 [ 百度云 > 个人中心 > 安全认证 > Access Key ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"Secret Key",prop:"baidu_secret_key"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.baidu_secret_key,callback:function(t){e.$set(e.model,"baidu_secret_key",t)},expression:"model.baidu_secret_key"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.baidu_secret_key,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" Secret Key 在 [ 百度云 > 个人中心 > 安全认证 > Access Key ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"Bucket名称",prop:"baidu_bucket"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.baidu_bucket,callback:function(t){e.$set(e.model,"baidu_bucket",t)},expression:"model.baidu_bucket"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.baidu_bucket,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" Bucket 名称 在 [ 百度云 > 对象存储 > Bucket 列表 ] 获取。如:yyladmin ")])],1),l("el-form-item",{attrs:{label:"官方域名",prop:"baidu_domain"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.baidu_domain,callback:function(t){e.$set(e.model,"baidu_domain",t)},expression:"model.baidu_domain"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.baidu_domain,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 官方域名 在 [ 百度云 > 对象存储 > 发布管理 ] 获取。如:yyladmin.gz.bcebos.com ")])],1),l("el-form-item",{attrs:{label:"所属地域",prop:"baidu_endpoint"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.baidu_endpoint,callback:function(t){e.$set(e.model,"baidu_endpoint",t)},expression:"model.baidu_endpoint"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.baidu_endpoint,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 所属地域:官方域名去掉 Bucket 名称,如:gz.bcebos.com ")])],1)],1):"upyun"==e.model.storage?l("div",[l("el-form-item",{attrs:{label:""}},[l("el-card",[l("div",[e._v(" 文件将上传到又拍云 USS 存储,云存储 > 服务管理 > 配置 > CORS 跨域共享, 设置为 已开启。 "),l("br"),e._v(" 请根据业务域名和需求,配置 CORS 跨域共享 规则,CORS 配置。 ")])])],1),l("el-form-item",{attrs:{label:"服务名称",prop:"upyun_service_name"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.upyun_service_name,callback:function(t){e.$set(e.model,"upyun_service_name",t)},expression:"model.upyun_service_name"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.upyun_service_name,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 服务名称 在 [ 又拍云 > 云存储 > 服务管理 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"操作员",prop:"upyun_operator_name"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.upyun_operator_name,callback:function(t){e.$set(e.model,"upyun_operator_name",t)},expression:"model.upyun_operator_name"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.upyun_operator_name,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 操作员 在 [ 又拍云 > 云存储 > 服务管理 > 配置 > 存储管理-操作员授权 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"操作员密码",prop:"upyun_operator_pwd"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.upyun_operator_pwd,callback:function(t){e.$set(e.model,"upyun_operator_pwd",t)},expression:"model.upyun_operator_pwd"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.upyun_operator_pwd,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 操作员密码 在 [ 又拍云 > 云存储 > 服务管理 > 配置 > 存储管理-操作员授权 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"加速域名",prop:"upyun_domain"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.upyun_domain,callback:function(t){e.$set(e.model,"upyun_domain",t)},expression:"model.upyun_domain"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.upyun_domain,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 加速域名 在 [ 又拍云 > 云存储 > 服务管理 > 配置 > 域名管理-加速域名 ] 设置和获取 ")])],1)],1):"s3"==e.model.storage?l("div",[l("el-form-item",{attrs:{label:""}},[l("el-card",[l("div",[e._v(" 文件将上传到 AWS S3。 "),l("br"),e._v(" 请根据业务域名和需求,配置 AWS S3 访问控制。 ")])])],1),l("el-form-item",{attrs:{label:"Access Key ID",prop:"s3_access_key_id"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.s3_access_key_id,callback:function(t){e.$set(e.model,"s3_access_key_id",t)},expression:"model.s3_access_key_id"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.s3_access_key_id,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" Access Key ID 在 [ AWS > 我的账号 > 安全凭证 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"Secret Access KEY",prop:"s3_secret_access_key"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.s3_secret_access_key,callback:function(t){e.$set(e.model,"s3_secret_access_key",t)},expression:"model.s3_secret_access_key"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.s3_secret_access_key,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" Secret Access KEY 在 [ AWS > 我的账号 > 安全凭证 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"区域终端节点",prop:"s3_region"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.s3_region,callback:function(t){e.$set(e.model,"s3_region",t)},expression:"model.s3_region"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.s3_region,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 区域终端节点 在 [ AWS > S3 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"存储桶名称",prop:"s3_bucket"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.s3_bucket,callback:function(t){e.$set(e.model,"s3_bucket",t)},expression:"model.s3_bucket"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.s3_bucket,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 存储桶名称 在 [ AWS > S3 ] 设置和获取 ")])],1),l("el-form-item",{attrs:{label:"访问域名",prop:"s3_domain"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.s3_domain,callback:function(t){e.$set(e.model,"s3_domain",t)},expression:"model.s3_domain"}},[l("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy"},on:{click:function(t){return e.copy(e.model.s3_domain,t)}},slot:"append"})],1)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 访问域名 在 [ AWS > S3 ] 设置和获取 ")])],1)],1):e._e()],1),l("el-tab-pane",{staticClass:"dialog-body",style:{height:e.height+"px"},attrs:{label:"上传限制",lazy:""}},[l("el-form-item",{staticClass:"ya-margin-bottom",attrs:{label:"图片格式",prop:"image_ext"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.image_ext,callback:function(t){e.$set(e.model,"image_ext",t)},expression:"model.image_ext"}})],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 允许上传的图片后缀,逗号,隔开 ")])],1),l("el-form-item",{attrs:{label:"图片大小",prop:"image_size"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{type:"number",clearable:""},model:{value:e.model.image_size,callback:function(t){e.$set(e.model,"image_size",t)},expression:"model.image_size"}},[l("template",{slot:"append"},[e._v("MB")])],2)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 允许上传的图片大小,单位 MB ")])],1),l("el-form-item",{staticClass:"ya-margin-bottom",attrs:{label:"视频格式",prop:"video_ext"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.video_ext,callback:function(t){e.$set(e.model,"video_ext",t)},expression:"model.video_ext"}})],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 允许上传的视频后缀,逗号,隔开 ")])],1),l("el-form-item",{attrs:{label:"视频大小",prop:"video_size"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{type:"number",clearable:""},model:{value:e.model.video_size,callback:function(t){e.$set(e.model,"video_size",t)},expression:"model.video_size"}},[l("template",{slot:"append"},[e._v("MB")])],2)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 允许上传的视频大小,单位 MB ")])],1),l("el-form-item",{staticClass:"ya-margin-bottom",attrs:{label:"音频格式",prop:"audio_ext"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.audio_ext,callback:function(t){e.$set(e.model,"audio_ext",t)},expression:"model.audio_ext"}})],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 允许上传的音频后缀,逗号,隔开 ")])],1),l("el-form-item",{attrs:{label:"音频大小",prop:"audio_size"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{type:"number",clearable:""},model:{value:e.model.audio_size,callback:function(t){e.$set(e.model,"audio_size",t)},expression:"model.audio_size"}},[l("template",{slot:"append"},[e._v("MB")])],2)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 允许上传的音频大小,单位 MB ")])],1),l("el-form-item",{staticClass:"ya-margin-bottom",attrs:{label:"文档格式",prop:"word_ext"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.word_ext,callback:function(t){e.$set(e.model,"word_ext",t)},expression:"model.word_ext"}})],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 允许上传的文档后缀,逗号,隔开 ")])],1),l("el-form-item",{attrs:{label:"文档大小",prop:"word_size"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{type:"number",clearable:""},model:{value:e.model.word_size,callback:function(t){e.$set(e.model,"word_size",t)},expression:"model.word_size"}},[l("template",{slot:"append"},[e._v("MB")])],2)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 允许上传的文档大小,单位 MB ")])],1),l("el-form-item",{staticClass:"ya-margin-bottom",attrs:{label:"其它格式",prop:"other_ext"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{clearable:""},model:{value:e.model.other_ext,callback:function(t){e.$set(e.model,"other_ext",t)},expression:"model.other_ext"}})],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 允许上传的其它文件后缀,逗号,隔开 ")])],1),l("el-form-item",{attrs:{label:"其它大小",prop:"other_size"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{type:"number",clearable:""},model:{value:e.model.other_size,callback:function(t){e.$set(e.model,"other_size",t)},expression:"model.other_size"}},[l("template",{slot:"append"},[e._v("MB")])],2)],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 允许上传的其它文件大小,单位 MB ")])],1),l("el-form-item",{staticClass:"ya-margin-bottom",attrs:{label:"最大上传个数",prop:"limit_max"}},[l("el-col",{attrs:{span:11}},[l("el-input",{attrs:{type:"number",clearable:""},model:{value:e.model.limit_max,callback:function(t){e.$set(e.model,"limit_max",t)},expression:"model.limit_max"}})],1),l("el-col",{staticClass:"line",attrs:{span:13}},[e._v(" 允许上传最大文件个数(每次最多选择) ")])],1)],1)],1)],1),l("el-form",{attrs:{"label-width":"150px"}},[l("el-form-item",[l("el-button",{attrs:{loading:e.loading},on:{click:function(t){return e.refresh()}}},[e._v("刷新")]),l("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")])],1)],1)],1)],1)},a=[],o=l("98b1"),n=l("e350"),s=l("f71e"),r=l("b775"),c="/admin/file.Setting/";function d(e){return Object(r["a"])({url:c+"info",method:"get",params:e})}function u(e){return Object(r["a"])({url:c+"edit",method:"post",data:e})}var m={name:"FileSetting",components:{},data:function(){return{name:"文件设置",height:680,loading:!1,storages:[],model:{is_open:1,storage:"local",qiniu_access_key:"",qiniu_secret_key:"",qiniu_bucket:"",qiniu_domain:"",aliyun_access_key_id:"",aliyun_access_key_secret:"",aliyun_bucket:"",aliyun_bucket_domain:"",aliyun_endpoint:"",tencent_secret_id:"",tencent_secret_key:"",tencent_bucket:"",tencent_region:"",tencent_domain:"",baidu_access_key:"",baidu_secret_key:"",baidu_bucket:"",baidu_endpoint:"",baidu_domain:"",upyun_service_name:"",upyun_operator_name:"",upyun_operator_pwd:"",upyun_domain:"",s3_access_key_id:"",s3_secret_access_key:"",s3_bucket:"",s3_region:"",s3_domain:"",image_ext:"",image_size:0,video_ext:"",video_size:0,audio_ext:"",audio_size:0,word_ext:"",word_size:0,other_ext:"",other_size:0},rules:{storage:[{required:!0,message:"请选择存储方式",trigger:"blur"}],qiniu_access_key:[{required:!0,message:"请输入 AccessKey",trigger:"blur"}],qiniu_secret_key:[{required:!0,message:"请输入 SecretKey",trigger:"blur"}],qiniu_bucket:[{required:!0,message:"请输入空间名称",trigger:"blur"}],qiniu_domain:[{required:!0,message:"请输入外链域名",trigger:"blur"}],aliyun_access_key_id:[{required:!0,message:"请输入 AccessKey ID",trigger:"blur"}],aliyun_access_key_secret:[{required:!0,message:"请输入 AccessKey Secret",trigger:"blur"}],aliyun_bucket:[{required:!0,message:"请输入 Bucket 名称",trigger:"blur"}],aliyun_bucket_domain:[{required:!0,message:"请输入 Bucket 域名",trigger:"blur"}],aliyun_endpoint:[{required:!0,message:"请输入 Endpoint 地域节点",trigger:"blur"}],tencent_secret_id:[{required:!0,message:"请输入 SecretId",trigger:"blur"}],tencent_secret_key:[{required:!0,message:"请输入 SecretKey",trigger:"blur"}],tencent_bucket:[{required:!0,message:"请输入存储桶名称",trigger:"blur"}],tencent_region:[{required:!0,message:"请输入所属地域",trigger:"blur"}],tencent_domain:[{required:!0,message:"请输入访问域名",trigger:"blur"}],baidu_access_key:[{required:!0,message:"请输入 Access Key",trigger:"blur"}],baidu_secret_key:[{required:!0,message:"请输入 Secret Key",trigger:"blur"}],baidu_bucket:[{required:!0,message:"请输入 Bucket 名称",trigger:"blur"}],baidu_endpoint:[{required:!0,message:"请输入官方域名",trigger:"blur"}],baidu_domain:[{required:!0,message:"请输入所属地域",trigger:"blur"}],upyun_service_name:[{required:!0,message:"请输入服务名称",trigger:"blur"}],upyun_operator_name:[{required:!0,message:"请输入操作员",trigger:"blur"}],upyun_operator_pwd:[{required:!0,message:"请输入操作员密码",trigger:"blur"}],upyun_domain:[{required:!0,message:"请输入加速域名",trigger:"blur"}],s3_access_key_id:[{required:!0,message:"请输入 Access Key ID",trigger:"blur"}],s3_secret_access_key:[{required:!0,message:"请输入 Secret Access Key",trigger:"blur"}],s3_bucket:[{required:!0,message:"请输入存储桶名称",trigger:"blur"}],s3_region:[{required:!0,message:"请输入区域终端节点",trigger:"blur"}],s3_domain:[{required:!0,message:"请输入访问域名",trigger:"blur"}]}}},created:function(){this.height=Object(o["a"])(270),this.info()},methods:{checkPermission:n["a"],info:function(){var e=this;d().then((function(t){e.model=t.data.setting,e.storages=t.data.storage}))},refresh:function(){var e=this;this.loading=!0,d().then((function(t){e.model=t.data.setting,e.storages=t.data.storage,e.loading=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1}))},submit:function(){var e=this;this.$refs["ref"].validate((function(t){t&&(e.loading=!0,u(e.model).then((function(t){e.loading=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))},storageChange:function(){void 0!==this.$refs["ref"]&&this.$refs["ref"].clearValidate()},copy:function(e,t){Object(s["a"])(e,t)}}},p=m,h=(l("8d8c"),l("0b56")),f=Object(h["a"])(p,i,a,!1,null,"56f1529c",null);t["default"]=f.exports},bf0a:function(e,t,l){"use strict";l("8f93")},c36a:function(e,t,l){"use strict";l("648f")},c3a4:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("file-manage",{attrs:{"is-recycle":e.recycle}})},a=[],o=l("3659"),n={name:"FileFile",components:{FileManage:o["a"]},data:function(){return{name:"文件管理",recycle:0}},watch:{},created:function(){this.recycle=this.$route.meta.query.recycle},methods:{}},s=n,r=l("0b56"),c=Object(r["a"])(s,i,a,!1,null,"f0cb01e6",null);t["default"]=c.exports},c684:function(e,t,l){},c727:function(e,t,l){},ca2b:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("div",{staticClass:"filter-container"},[l("el-row",[l("el-col",[l("el-select",{staticClass:"filter-item ya-search-field",attrs:{placeholder:"搜索字段"},model:{value:e.query.search_field,callback:function(t){e.$set(e.query,"search_field",t)},expression:"query.search_field"}},[l("el-option",{attrs:{value:"group_name",label:"名称"}}),l("el-option",{attrs:{value:"group_desc",label:"描述"}}),l("el-option",{attrs:{value:"is_disable",label:"禁用"}}),l("el-option",{attrs:{value:e.idkey,label:"ID"}})],1),"is_disable"===e.query.search_field?l("el-select",{staticClass:"filter-item ya-search-value",attrs:{placeholder:"请选择"},model:{value:e.query.search_value,callback:function(t){e.$set(e.query,"search_value",t)},expression:"query.search_value"}},[l("el-option",{attrs:{value:1,label:"是"}}),l("el-option",{attrs:{value:0,label:"否"}})],1):l("el-input",{staticClass:"filter-item ya-search-value",attrs:{placeholder:"搜索内容",clearable:""},model:{value:e.query.search_value,callback:function(t){e.$set(e.query,"search_value",t)},expression:"query.search_value"}}),l("el-select",{staticClass:"filter-item ya-date-field",attrs:{placeholder:"时间类型"},model:{value:e.query.date_field,callback:function(t){e.$set(e.query,"date_field",t)},expression:"query.date_field"}},[l("el-option",{attrs:{value:"create_time",label:"添加时间"}}),l("el-option",{attrs:{value:"update_time",label:"修改时间"}}),e.recycle?l("el-option",{attrs:{value:"delete_time",label:"删除时间"}}):e._e()],1),l("el-date-picker",{staticClass:"filter-item ya-date-value",attrs:{type:"daterange","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.query.date_value,callback:function(t){e.$set(e.query,"date_value",t)},expression:"query.date_value"}}),l("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")]),l("el-button",{staticClass:"filter-item",on:{click:function(t){return e.refresh()}}},[e._v("刷新")])],1)],1),l("el-row",[l("el-col",[l("el-button",{attrs:{title:"是否禁用"},on:{click:function(t){return e.selectOpen("disable")}}},[e._v("禁用")]),l("el-button",{attrs:{title:"删除"},on:{click:function(t){return e.selectOpen("dele")}}},[e._v("删除")]),e.recycle?l("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.selectOpen("reco")}}},[e._v("恢复")]):l("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.add()}}},[e._v("添加")])],1)],1),l("el-dialog",{attrs:{title:e.selectTitle,visible:e.selectDialog,top:"20vh","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.selectDialog=t}}},[l("el-form",{ref:"selectRef",attrs:{"label-width":"120px"}},[l("el-form-item",{attrs:{label:e.name+"ID",prop:""}},[l("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:12},disabled:""},model:{value:e.selectIds,callback:function(t){e.selectIds=t},expression:"selectIds"}})],1),"disable"===e.selectType?l("el-form-item",{attrs:{label:"是否禁用",prop:""}},[l("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.is_disable,callback:function(t){e.is_disable=t},expression:"is_disable"}})],1):"dele"===e.selectType?l("el-form-item",{attrs:{label:"",prop:""}},[e.recycle?l("span",{staticStyle:{color:"red"}},[e._v("确定要彻底删除选中的"+e._s(e.name)+"吗?删除后不可恢复!")]):l("span",{staticStyle:{color:"red"}},[e._v("确定要删除选中的"+e._s(e.name)+"吗?")])]):"reco"===e.selectType?l("el-form-item",{attrs:{label:"",prop:""}},[l("span",{staticStyle:{color:"red"}},[e._v("确定要恢复选中的"+e._s(e.name)+"吗?")])]):e._e()],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:e.selectCancel}},[e._v("取消")]),l("el-button",{attrs:{type:"primary"},on:{click:e.selectSubmit}},[e._v("提交")])],1)],1)],1),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.data,height:e.height},on:{"sort-change":e.sort,"selection-change":e.select}},[l("el-table-column",{attrs:{type:"selection",width:"42",title:"全选/反选"}}),l("el-table-column",{attrs:{prop:e.idkey,label:"ID","min-width":"100",sortable:"custom"}}),l("el-table-column",{attrs:{prop:"group_name",label:"名称","min-width":"120"}}),l("el-table-column",{attrs:{prop:"group_desc",label:"描述","min-width":"150","show-overflow-tooltip":""}}),l("el-table-column",{attrs:{prop:"group_sort",label:"排序","min-width":"85",sortable:"custom"}}),l("el-table-column",{attrs:{prop:"is_disable",label:"禁用","min-width":"85",sortable:"custom",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(l){return e.disable([t.row])}},model:{value:t.row.is_disable,callback:function(l){e.$set(t.row,"is_disable",l)},expression:"scope.row.is_disable"}})]}}])}),l("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"160",sortable:"custom"}}),e.recycle?l("el-table-column",{attrs:{prop:"delete_time",label:"删除时间","min-width":"155",sortable:"custom"}}):l("el-table-column",{attrs:{prop:"update_time",label:"修改时间","min-width":"155",sortable:"custom"}}),l("el-table-column",{attrs:{label:"操作","min-width":e.recycle?120:85,align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.recycle?l("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.selectOpen("reco",i)}}},[e._v("恢复")]):e._e(),l("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.edit(i)}}},[e._v("修改")]),l("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.selectOpen("dele",i)}}},[e._v("删除")])]}}])})],1),l("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.list}}),l("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialog,top:"5vh","before-close":e.cancel,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.dialog=t}}},[l("el-form",{ref:"ref",staticClass:"dialog-body",attrs:{rules:e.rules,model:e.model,"label-width":"100px"}},[l("el-form-item",{attrs:{label:"名称",prop:"group_name"}},[l("el-input",{attrs:{placeholder:"请输入名称",clearable:""},model:{value:e.model.group_name,callback:function(t){e.$set(e.model,"group_name",t)},expression:"model.group_name"}})],1),l("el-form-item",{attrs:{label:"描述",prop:"group_desc"}},[l("el-input",{attrs:{placeholder:"请输入描述",clearable:""},model:{value:e.model.group_desc,callback:function(t){e.$set(e.model,"group_desc",t)},expression:"model.group_desc"}})],1),l("el-form-item",{attrs:{label:"排序",prop:"group_sort"}},[l("el-input",{attrs:{type:"number"},model:{value:e.model.group_sort,callback:function(t){e.$set(e.model,"group_sort",t)},expression:"model.group_sort"}})],1),e.model[e.idkey]?l("el-form-item",{attrs:{label:"添加时间",prop:"create_time"}},[l("el-input",{attrs:{disabled:""},model:{value:e.model.create_time,callback:function(t){e.$set(e.model,"create_time",t)},expression:"model.create_time"}})],1):e._e(),e.model[e.idkey]?l("el-form-item",{attrs:{label:"修改时间",prop:"update_time"}},[l("el-input",{attrs:{disabled:""},model:{value:e.model.update_time,callback:function(t){e.$set(e.model,"update_time",t)},expression:"model.update_time"}})],1):e._e(),e.model[e.idkey]?l("el-form-item",{attrs:{label:"删除时间",prop:"delete_time"}},[l("el-input",{attrs:{disabled:""},model:{value:e.model.delete_time,callback:function(t){e.$set(e.model,"delete_time",t)},expression:"model.delete_time"}})],1):e._e()],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{loading:e.loading},on:{click:e.cancel}},[e._v("取消")]),l("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},a=[],o=(l("388f"),l("697e"),l("e508"),l("98b1")),n=l("333d"),s=l("ed08"),r=l("0532"),c={name:"FileGroup",components:{Pagination:n["a"]},data:function(){return{name:"文件分组",recycle:0,height:680,loading:!1,idkey:"group_id",data:[],count:0,dialog:!1,dialogTitle:"",query:{page:1,limit:12,search_field:"group_name",date_field:"create_time"},model:{group_id:"",group_name:"",group_desc:"",group_sort:250},rules:{group_name:[{required:!0,message:"请输入名称",trigger:"blur"}]},selection:[],selectIds:"",selectTitle:"选中操作",selectDialog:!1,selectType:"",is_disable:0}},created:function(){this.recycle=this.$route.meta.query.recycle,this.height=Object(o["a"])(),this.list()},methods:{list:function(){var e=this;this.loading=!0,1===this.recycle?Object(r["g"])(this.query).then((function(t){e.listData(t.data)})).catch((function(){e.loading=!1})):Object(r["f"])(this.query).then((function(t){e.listData(t.data)})).catch((function(){e.loading=!1}))},listData:function(e){this.data=e.list,this.count=e.count,this.loading=!1},add:function(){this.dialog=!0,this.dialogTitle=this.name+"添加",this.reset()},edit:function(e){var t=this;this.dialog=!0,this.dialogTitle=this.name+"修改:"+e[this.idkey];var l={};l[this.idkey]=e[this.idkey],Object(r["e"])(l).then((function(e){t.reset(e.data)}))},cancel:function(){this.dialog=!1,this.reset()},submit:function(){var e=this;this.$refs["ref"].validate((function(t){t&&(e.loading=!0,e.model[e.idkey]?Object(r["d"])(e.model).then((function(t){e.list(),e.dialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})):Object(r["a"])(e.model).then((function(t){e.list(),e.dialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))},reset:function(e){this.model=e||this.$options.data().model,void 0!==this.$refs["ref"]&&(this.$refs["ref"].resetFields(),this.$refs["ref"].clearValidate())},search:function(){this.query.page=1,this.list()},refresh:function(){this.query=this.$options.data().query,this.list()},sort:function(e){this.query.sort_field=e.prop,this.query.sort_value="","ascending"===e.order&&(this.query.sort_value="asc",this.list()),"descending"===e.order&&(this.query.sort_value="desc",this.list())},select:function(e){this.selection=e,this.selectIds=this.selectGetIds(e).toString()},selectGetIds:function(e){return Object(s["a"])(e,this.idkey)},selectAlert:function(){this.$alert("请选择需要操作的"+this.name,"提示",{type:"warning",callback:function(e){}})},selectOpen:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t&&(this.$refs["table"].clearSelection(),this.$refs["table"].toggleRowSelection(t)),this.selection.length?(this.selectTitle="选中操作","disable"===e?this.selectTitle="是否禁用":"dele"===e?this.selectTitle="删除"+this.name:"reco"===e&&(this.selectTitle="恢复"+this.name),this.selectDialog=!0,this.selectType=e):this.selectAlert()},selectCancel:function(){this.selectDialog=!1},selectSubmit:function(){if(this.selection.length){var e=this.selectType;"disable"===e?this.disable(this.selection,!0):"dele"===e?this.dele(this.selection,!0):"reco"===e&&this.reco(this.selection),this.selectDialog=!1}else this.selectAlert()},disable:function(e){var t=this,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.length){this.loading=!0;var i=e[0].is_disable;l&&(i=this.is_disable),Object(r["c"])({ids:this.selectGetIds(e),is_disable:i}).then((function(e){t.list(),t.$message.success(e.msg)})).catch((function(){t.list()}))}else this.selectAlert()},dele:function(e){var t=this;e.length?(this.loading=!0,1===this.recycle?Object(r["h"])({ids:this.selectGetIds(e)}).then((function(e){t.list(),t.$message.success(e.msg)})).catch((function(){t.loading=!1})):Object(r["b"])({ids:this.selectGetIds(e)}).then((function(e){t.list(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))):this.selectAlert()},reco:function(e){var t=this;e.length?(this.loading=!0,Object(r["i"])({ids:this.selectGetIds(e)}).then((function(e){t.list(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))):this.selectAlert()}}},d=c,u=l("0b56"),m=Object(u["a"])(d,i,a,!1,null,"5756bedb",null);t["default"]=m.exports},cb85:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-card",[l("el-row",{staticClass:"dialog-body",style:{height:e.height+"px"}},[l("el-col",{attrs:{xs:24,sm:22,md:20,lg:16,xl:12}},[l("el-form",{ref:"ref",attrs:{model:e.model,rules:e.rules,"label-width":"120px"}},[l("el-form-item",{attrs:{label:"日志记录开关",prop:"log_switch"}},[l("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.model.log_switch,callback:function(t){e.$set(e.model,"log_switch",t)},expression:"model.log_switch"}}),l("span",{staticStyle:{"margin-left":"150px"}},[e._v(" 开启后,会记录会员日志。")])],1),l("el-form-item",{attrs:{label:"日志保留时间",prop:"log_save_time"}},[l("el-input",{staticStyle:{width:"350px"},attrs:{type:"number"},model:{value:e.model.log_save_time,callback:function(t){e.$set(e.model,"log_save_time",t)},expression:"model.log_save_time"}},[l("template",{slot:"append"},[e._v("天(0永久保留)")])],2)],1),l("el-form-item",[l("el-button",{attrs:{loading:e.loading},on:{click:function(t){return e.refresh()}}},[e._v("刷新")]),l("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")])],1)],1)],1)],1)],1)},a=[],o=l("98b1"),n=l("604d"),s={name:"SettingSettingLog",components:{},data:function(){return{name:"日志设置",height:680,loading:!1,model:{log_switch:0,log_save_time:0},rules:{}}},created:function(){this.height=Object(o["a"])(210),this.info()},methods:{info:function(){var e=this;Object(n["h"])().then((function(t){e.model=t.data}))},refresh:function(){var e=this;this.loading=!0,Object(n["h"])().then((function(t){e.model=t.data,e.loading=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1}))},submit:function(){var e=this;this.$refs["ref"].validate((function(t){t&&(e.loading=!0,Object(n["g"])(e.model).then((function(t){e.loading=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))}}},r=s,c=l("0b56"),d=Object(c["a"])(r,i,a,!1,null,null,null);t["default"]=d.exports},ce65:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("el-row",[l("el-col",{attrs:{span:12,offset:6}},[l("el-result",{attrs:{icon:"warning",title:"401","sub-title":"没有权限访问"}})],1)],1),l("el-row",[l("el-col",{staticClass:"yyl-center yyl-top",attrs:{span:6,offset:6}},[l("el-button",{attrs:{icon:"el-icon-arrow-left"},on:{click:e.back}},[e._v("返回")])],1),l("el-col",{staticClass:"yyl-center yyl-top",attrs:{span:6}},[l("el-button",{attrs:{icon:"el-icon-s-home"},on:{click:e.dashboard}},[e._v("控制台")])],1)],1),l("el-row",[l("el-col",{staticClass:"yyl-center yyl-top",attrs:{span:12,offset:6}},[l("a",{attrs:{href:"https://gitee.com/skyselang/yylAdmin",target:"_blank",title:""}},[l("img",{attrs:{src:"https://gitee.com/skyselang/yylAdmin/widgets/widget_card.svg?colors=4183c4,ffffff,ffffff,e3e9ed,666666,9b9b9b",alt:"",srcset:""}})])])],1)],1)},a=[],o={name:"Admin401",data:function(){return{name:"401页面"}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/dashboard"}):this.$router.go(-1)},dashboard:function(){this.$router.push({path:"/dashboard"})}}},n=o,s=(l("d554"),l("0b56")),r=Object(s["a"])(n,i,a,!1,null,"885c02e4",null);t["default"]=r.exports},cf49:function(e,t,l){e.exports=l.p+"static/img/default.6b914f9c.jpg"},d342:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("div",{staticClass:"filter-container"},[l("el-row",[l("el-col",[l("el-select",{staticClass:"filter-item ya-search-field",attrs:{placeholder:"搜索字段"},model:{value:e.query.search_field,callback:function(t){e.$set(e.query,"search_field",t)},expression:"query.search_field"}},[l("el-option",{attrs:{value:"call",label:"称呼"}}),l("el-option",{attrs:{value:"mobile",label:"手机"}}),l("el-option",{attrs:{value:"title",label:"标题"}}),l("el-option",{attrs:{value:"is_unread",label:"未读"}}),l("el-option",{attrs:{value:e.idkey,label:"ID"}})],1),"is_unread"===e.query.search_field?l("el-select",{staticClass:"filter-item ya-search-value",attrs:{placeholder:"请选择"},model:{value:e.query.search_value,callback:function(t){e.$set(e.query,"search_value",t)},expression:"query.search_value"}},[l("el-option",{attrs:{value:1,label:"是"}}),l("el-option",{attrs:{value:0,label:"否"}})],1):l("el-input",{staticClass:"filter-item ya-search-value",attrs:{placeholder:"搜索内容",clearable:""},model:{value:e.query.search_value,callback:function(t){e.$set(e.query,"search_value",t)},expression:"query.search_value"}}),l("el-select",{staticClass:"filter-item ya-date-field",attrs:{placeholder:"时间类型"},model:{value:e.query.date_field,callback:function(t){e.$set(e.query,"date_field",t)},expression:"query.date_field"}},[l("el-option",{attrs:{value:"create_time",label:"添加时间"}}),l("el-option",{attrs:{value:"update_time",label:"修改时间"}}),l("el-option",{attrs:{value:"read_time",label:"已读时间"}}),e.recycle?l("el-option",{attrs:{value:"delete_time",label:"删除时间"}}):e._e()],1),l("el-date-picker",{staticClass:"filter-item ya-date-value",attrs:{type:"daterange","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.query.date_value,callback:function(t){e.$set(e.query,"date_value",t)},expression:"query.date_value"}}),l("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")]),l("el-button",{staticClass:"filter-item",on:{click:function(t){return e.refresh()}}},[e._v("刷新")])],1)],1),l("el-row",[l("el-col",[l("el-button",{attrs:{title:"设为已读"},on:{click:function(t){return e.selectOpen("isread")}}},[e._v("已读")]),l("el-button",{attrs:{title:"删除"},on:{click:function(t){return e.selectOpen("dele")}}},[e._v("删除")]),e.recycle?l("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.selectOpen("reco")}}},[e._v("恢复")]):l("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.add()}}},[e._v("添加")])],1)],1),l("el-dialog",{attrs:{title:e.selectTitle,visible:e.selectDialog,top:"20vh","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.selectDialog=t}}},[l("el-form",{attrs:{"label-width":"120px"}},[l("el-form-item",{attrs:{label:e.name+"ID",prop:""}},[l("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:12},disabled:""},model:{value:e.selectIds,callback:function(t){e.selectIds=t},expression:"selectIds"}})],1),"isread"===e.selectType?l("el-form-item",{attrs:{label:"",prop:""}},[l("span",[e._v("确定要设置选中的"+e._s(e.name)+"为已读吗?")])]):"reco"===e.selectType?l("el-form-item",{attrs:{label:"",prop:""}},[l("span",[e._v("确定要恢复选中的"+e._s(e.name)+"吗?")])]):"dele"===e.selectType?l("el-form-item",{attrs:{label:"",prop:""}},[e.recycle?l("span",{staticStyle:{color:"red"}},[e._v("确定要彻底删除选中的"+e._s(e.name)+"吗?删除后不可恢复!")]):l("span",{staticStyle:{color:"red"}},[e._v("确定要删除选中的"+e._s(e.name)+"吗?")])]):e._e()],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{loading:e.loading},on:{click:e.selectCancel}},[e._v("取消")]),l("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:e.selectSubmit}},[e._v("提交")])],1)],1)],1),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.data,height:e.height},on:{"sort-change":e.sort,"selection-change":e.select}},[l("el-table-column",{attrs:{type:"selection",width:"42",title:"全选/反选"}}),l("el-table-column",{attrs:{prop:e.idkey,label:"ID","min-width":"100",sortable:"custom"}}),l("el-table-column",{attrs:{prop:"call",label:"称呼","min-width":"100","show-overflow-tooltip":""}}),l("el-table-column",{attrs:{prop:"mobile",label:"手机","min-width":"120",sortable:"custom"}}),l("el-table-column",{attrs:{prop:"title",label:"标题","min-width":"200","show-overflow-tooltip":""}}),l("el-table-column",{attrs:{prop:"remark",label:"备注","min-width":"100","show-overflow-tooltip":""}}),l("el-table-column",{attrs:{prop:"is_unread",label:"未读","min-width":"80",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.is_unread?l("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(l){return e.isread([t.row])}},model:{value:t.row.is_unread,callback:function(l){e.$set(t.row,"is_unread",l)},expression:"scope.row.is_unread"}}):l("el-switch",{attrs:{disabled:"","active-value":1,"inactive-value":0},on:{change:function(l){return e.isread([t.row])}},model:{value:t.row.is_unread,callback:function(l){e.$set(t.row,"is_unread",l)},expression:"scope.row.is_unread"}})]}}])}),l("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"155",sortable:"custom"}}),l("el-table-column",{attrs:{prop:"read_time",label:"已读时间","min-width":"155",sortable:"custom"}}),e.recycle?l("el-table-column",{attrs:{prop:"delete_time",label:"删除时间","min-width":"155",sortable:"custom"}}):l("el-table-column",{attrs:{prop:"update_time",label:"修改时间","min-width":"155",sortable:"custom"}}),l("el-table-column",{attrs:{label:"操作","min-width":e.recycle?120:85,align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.recycle?l("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.selectOpen("reco",i)}}},[e._v("恢复")]):e._e(),l("el-button",{attrs:{size:"mini",type:"text",title:"修改"},on:{click:function(t){return e.edit(i)}}},[e._v("查看")]),l("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.selectOpen("dele",i)}}},[e._v("删除")])]}}])})],1),l("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.list}}),l("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialog,top:"5vh","before-close":e.cancel,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.dialog=t}}},[l("el-form",{ref:"ref",staticClass:"dialog-body",style:{height:e.height+"px"},attrs:{rules:e.rules,model:e.model,"label-width":"100px"}},[l("el-form-item",{attrs:{label:"称呼",prop:"call"}},[l("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.model.call,callback:function(t){e.$set(e.model,"call",t)},expression:"model.call"}})],1),l("el-form-item",{attrs:{label:"手机",prop:"mobile"}},[l("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.model.mobile,callback:function(t){e.$set(e.model,"mobile",t)},expression:"model.mobile"}})],1),l("el-form-item",{attrs:{label:"电话",prop:"tel"}},[l("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.model.tel,callback:function(t){e.$set(e.model,"tel",t)},expression:"model.tel"}})],1),l("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[l("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.model.email,callback:function(t){e.$set(e.model,"email",t)},expression:"model.email"}})],1),l("el-form-item",{attrs:{label:"QQ",prop:"qq"}},[l("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.model.qq,callback:function(t){e.$set(e.model,"qq",t)},expression:"model.qq"}})],1),l("el-form-item",{attrs:{label:"微信",prop:"wechat"}},[l("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.model.wechat,callback:function(t){e.$set(e.model,"wechat",t)},expression:"model.wechat"}})],1),l("el-form-item",{attrs:{label:"标题",prop:"title"}},[l("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.model.title,callback:function(t){e.$set(e.model,"title",t)},expression:"model.title"}})],1),l("el-form-item",{attrs:{label:"内容",prop:"content"}},[l("el-input",{attrs:{type:"textarea",placeholder:"",clearable:"",autosize:{minRows:3,maxRows:20}},model:{value:e.model.content,callback:function(t){e.$set(e.model,"content",t)},expression:"model.content"}})],1),l("el-form-item",{attrs:{label:"备注",prop:"remark"}},[l("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.model.remark,callback:function(t){e.$set(e.model,"remark",t)},expression:"model.remark"}})],1),e.model[e.idkey]?l("el-form-item",{attrs:{label:"添加时间",prop:"create_time"}},[l("el-input",{attrs:{disabled:""},model:{value:e.model.create_time,callback:function(t){e.$set(e.model,"create_time",t)},expression:"model.create_time"}})],1):e._e(),e.model[e.idkey]?l("el-form-item",{attrs:{label:"修改时间",prop:"update_time"}},[l("el-input",{attrs:{disabled:""},model:{value:e.model.update_time,callback:function(t){e.$set(e.model,"update_time",t)},expression:"model.update_time"}})],1):e._e(),e.model[e.idkey]?l("el-form-item",{attrs:{label:"删除时间",prop:"delete_time"}},[l("el-input",{attrs:{disabled:""},model:{value:e.model.delete_time,callback:function(t){e.$set(e.model,"delete_time",t)},expression:"model.delete_time"}})],1):e._e(),e.model[e.idkey]?l("el-form-item",{attrs:{label:"已读时间",prop:"read_time"}},[l("el-input",{attrs:{disabled:""},model:{value:e.model.read_time,callback:function(t){e.$set(e.model,"read_time",t)},expression:"model.read_time"}})],1):e._e()],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{loading:e.loading},on:{click:e.cancel}},[e._v("取消")]),l("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},a=[],o=(l("388f"),l("697e"),l("e508"),l("98b1")),n=l("333d"),s=l("ed08"),r=l("b775"),c="/admin/cms.Comment/";function d(e){return Object(r["a"])({url:c+"list",method:"get",params:e})}function u(e){return Object(r["a"])({url:c+"info",method:"get",params:e})}function m(e){return Object(r["a"])({url:c+"add",method:"post",data:e})}function p(e){return Object(r["a"])({url:c+"edit",method:"post",data:e})}function h(e){return Object(r["a"])({url:c+"dele",method:"post",data:e})}function f(e){return Object(r["a"])({url:c+"isread",method:"post",data:e})}function b(e){return Object(r["a"])({url:c+"recover",method:"get",params:e})}function g(e){return Object(r["a"])({url:c+"recoverReco",method:"post",data:e})}function _(e){return Object(r["a"])({url:c+"recoverDele",method:"post",data:e})}var v={name:"CmsComment",components:{Pagination:n["a"]},directives:{},data:function(){return{name:"留言",recycle:0,height:680,loading:!1,idkey:"comment_id",query:{page:1,limit:15,search_field:"call",date_field:"create_time"},data:[],count:0,dialog:!1,dialogTitle:"",model:{comment_id:"",call:"",mobile:"",tel:"",email:"",qq:"",wechat:"",title:"",content:"",remark:""},rules:{call:[{required:!0,message:"请输入称呼",trigger:"blur"}],mobile:[{required:!0,message:"请输入手机",trigger:"blur"}],title:[{required:!0,message:"请输入标题",trigger:"blur"}],content:[{required:!0,message:"请输入内容",trigger:"blur"}]},selection:[],selectIds:"",selectTitle:"选中操作",selectDialog:!1,selectType:""}},created:function(){this.recycle=this.$route.meta.query.recycle,this.height=Object(o["a"])(),this.list()},methods:{list:function(){var e=this;this.loading=!0,this.recycle?b(this.query).then((function(t){e.listData(t.data)})).catch((function(){e.loading=!1})):d(this.query).then((function(t){e.listData(t.data)})).catch((function(){e.loading=!1}))},listData:function(e){this.data=e.list,this.count=e.count,this.loading=!1},add:function(){this.dialog=!0,this.dialogTitle=this.name+"添加",this.model=this.$options.data().model},edit:function(e){var t=this;this.dialog=!0,this.dialogTitle=this.name+"修改:"+e[this.idkey];var l={};l[this.idkey]=e[this.idkey],u(l).then((function(e){t.model=e.data}))},cancel:function(){this.dialog=!1,this.reset()},submit:function(){var e=this;this.$refs["ref"].validate((function(t){t&&(e.loading=!0,e.model[e.idkey]?p(e.model).then((function(t){e.list(),e.dialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})):m(e.model).then((function(t){e.list(),e.dialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))},reset:function(e){this.model=e||this.$options.data().model,void 0!==this.$refs["ref"]&&(this.$refs["ref"].resetFields(),this.$refs["ref"].clearValidate())},search:function(){this.query.page=1,this.list()},refresh:function(){this.query=this.$options.data().query,this.list()},sort:function(e){this.query.sort_field=e.prop,this.query.sort_value="","ascending"===e.order&&(this.query.sort_value="asc",this.list()),"descending"===e.order&&(this.query.sort_value="desc",this.list())},select:function(e){this.selection=e,this.selectIds=this.selectGetIds(e).toString()},selectGetIds:function(e){return Object(s["a"])(e,this.idkey)},selectAlert:function(){this.$alert("请选择需要操作的"+this.name,"提示",{type:"warning",callback:function(e){}})},selectOpen:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t&&(this.$refs["table"].clearSelection(),this.$refs["table"].toggleRowSelection(t)),this.selection.length?(this.selectTitle="选中操作","isread"===e?this.selectTitle="设置已读":"reco"===e?this.selectTitle="恢复"+this.name:"dele"===e&&(this.selectTitle="删除"+this.name),this.selectDialog=!0,this.selectType=e):this.selectAlert()},selectCancel:function(){this.selectDialog=!1},selectSubmit:function(){if(this.selection.length){var e=this.selectType;"isread"===e?this.isread(this.selection):"reco"===e?this.reco(this.selection):"dele"===e&&this.dele(this.selection),this.selectDialog=!1}else this.selectAlert()},isread:function(e){var t=this;e.length?(this.loading=!0,f({ids:this.selectGetIds(e)}).then((function(e){t.list(),t.$message.success(e.msg)})).catch((function(){t.list()}))):this.selectAlert()},dele:function(e){var t=this;e.length?(this.loading=!0,this.recycle?_({ids:this.selectGetIds(e)}).then((function(e){t.list(),t.$message.success(e.msg)})).catch((function(){t.loading=!1})):h({ids:this.selectGetIds(e)}).then((function(e){t.list(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))):this.selectAlert()},reco:function(e){var t=this;e.length?g({ids:this.selectGetIds(e)}).then((function(e){t.list(),t.$message.success(e.msg)})).catch((function(){t.loading=!1})):this.selectAlert()}}},y=v,k=l("0b56"),x=Object(k["a"])(y,i,a,!1,null,null,null);t["default"]=x.exports},d4f5:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[l("el-row",[l("el-col",[l("div",{staticStyle:{height:"500px",width:"100%"},attrs:{id:"echartIndexFile"}})])],1)],1)},a=[],o=l("7b1d"),n=l("4b4e"),s=l("777c"),r=l("0fd9"),c=l("206a"),d=l("63f7"),u=l("d7b2"),m=l("95c8");o["a"]([s["a"],r["a"],c["a"],d["a"],u["a"]]);var p={name:"AdminIndexFile",components:{},data:function(){return{name:"文件统计",loading:!1,date_pie:{count:0,date:[]}}},computed:{},created:function(){this.file()},mounted:function(){},methods:{file:function(){var e=this;this.loading=!0,Object(m["c"])().then((function(t){e.echartIndexFile(t.data),e.loading=!1})).catch((function(){e.loading=!1}))},echartIndexFile:function(e){var t=n["b"](document.getElementById("echartIndexFile")),l={title:{text:"文件",subtext:"文件:"+e.count,left:"center",textStyle:{fontSize:15}},legend:{left:"center",top:"bottom"},tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},series:[{name:"文件类型",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2,normal:{label:{show:!0,formatter:"{b} : {c} ({d}%)"}}},data:e.data}]};t.setOption(l)}}},h=p,f=l("0b56"),b=Object(f["a"])(h,i,a,!1,null,"2ea20ffb",null);t["default"]=b.exports},d554:function(e,t,l){"use strict";l("a3d1")},d5bb:function(e,t,l){},dbe5:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("el-tabs",[e.checkPermission(["admin/setting.Wechat/offiInfo"])?l("el-tab-pane",{attrs:{label:"公众号",lazy:""}},[l("wechat-offi")],1):e._e(),e.checkPermission(["admin/setting.Wechat/miniInfo"])?l("el-tab-pane",{attrs:{label:"小程序",lazy:""}},[l("wechat-mini")],1):e._e()],1)],1)},a=[],o=l("e350"),n=l("9401"),s=l("889d"),r={name:"SettingWechat",components:{WechatOffi:n["default"],WechatMini:s["default"]},data:function(){return{name:"微信设置"}},created:function(){},methods:{checkPermission:o["a"]}},c=r,d=l("0b56"),u=Object(d["a"])(c,i,a,!1,null,null,null);t["default"]=u.exports},e0df:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("el-tabs",[e.checkPermission(["admin/setting.Setting/captchaInfo"])?l("el-tab-pane",{attrs:{label:"验证码设置",lazy:""}},[l("setting-captcha")],1):e._e(),e.checkPermission(["admin/setting.Setting/tokenInfo"])?l("el-tab-pane",{attrs:{label:"Token设置",lazy:""}},[l("setting-token")],1):e._e(),e.checkPermission(["admin/setting.Setting/logInfo"])?l("el-tab-pane",{attrs:{label:"日志设置",lazy:""}},[l("setting-log")],1):e._e(),e.checkPermission(["admin/setting.Setting/apiInfo"])?l("el-tab-pane",{attrs:{label:"接口设置",lazy:""}},[l("setting-api")],1):e._e(),e.checkPermission(["admin/setting.Setting/logregInfo"])?l("el-tab-pane",{attrs:{label:"登录注册设置",lazy:""}},[l("setting-logreg")],1):e._e(),e.checkPermission(["admin/setting.Setting/diyInfo"])?l("el-tab-pane",{attrs:{label:"自定义设置",lazy:""}},[l("setting-diy")],1):e._e()],1)],1)},a=[],o=l("e350"),n=l("2cd6"),s=l("ad84"),r=l("cb85"),c=l("444b"),d=l("7f0d"),u=l("5b6a"),m={name:"SettingSetting",components:{SettingToken:n["default"],SettingCaptcha:s["default"],SettingLog:r["default"],SettingApi:c["default"],SettingDiy:u["default"],SettingLogreg:d["default"]},data:function(){return{name:"设置管理"}},created:function(){},methods:{checkPermission:o["a"]}},p=m,h=l("0b56"),f=Object(h["a"])(p,i,a,!1,null,null,null);t["default"]=f.exports},e0f3:function(e,t,l){"use strict";l("5bf1")},e1b2:function(e,t,l){"use strict";l.d(t,"f",(function(){return o})),l.d(t,"d",(function(){return n})),l.d(t,"a",(function(){return s})),l.d(t,"c",(function(){return r})),l.d(t,"b",(function(){return c})),l.d(t,"e",(function(){return d})),l.d(t,"g",(function(){return u}));var i=l("b775"),a="/admin/admin.Notice/";function o(e){return Object(i["a"])({url:a+"list",method:"get",params:e})}function n(e){return Object(i["a"])({url:a+"info",method:"get",params:e})}function s(e){return Object(i["a"])({url:a+"add",method:"post",data:e})}function r(e){return Object(i["a"])({url:a+"edit",method:"post",data:e})}function c(e){return Object(i["a"])({url:a+"dele",method:"post",data:e})}function d(e){return Object(i["a"])({url:a+"isopen",method:"post",data:e})}function u(e){return Object(i["a"])({url:a+"opentime",method:"post",data:e})}},e4ba:function(e,t,l){"use strict";l("27e4")},e793:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialog,top:"10vh",center:"","before-close":e.cancel,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.dialog=t}}},[l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.data,height:e.height-200,"show-header":!1}},[l("el-table-column",{attrs:{prop:"title","min-width":"300","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",{style:{color:t.row.color}},[e._v(e._s(t.row.title))])]}}])}),l("el-table-column",{attrs:{prop:"create_time",width:"155"}}),l("el-table-column",{attrs:{width:"50",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[l("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.info(i)}}},[e._v("查看")])]}}])})],1),l("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit,align:"center",background:!1,small:!0,layout:"prev, pager, next"},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.list}}),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return e.nohint(e.count)}}},[e._v("不再提示")]),l("el-button",{attrs:{type:"text",size:"mini"},on:{click:e.submit}},[e._v("关闭")])],1)],1),l("el-dialog",{attrs:{title:e.infoTitle,visible:e.infoDialog,top:"9vh",center:"","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.infoDialog=t}}},[l("el-form",{ref:"ref",staticClass:"dialog-body",style:{height:e.height+"px"},attrs:{model:e.model,"label-width":"0"}},[l("el-form-item",{attrs:{label:"",prop:"content"}},[l("div",{domProps:{innerHTML:e._s(e.model.content)}})]),l("el-form-item",{staticStyle:{"text-align":"right","margin-bottom":"0"},attrs:{label:"",prop:""}},[l("span",[e._v(e._s(e.model.username))])]),l("el-form-item",{staticStyle:{"text-align":"right","margin-bottom":"0"},attrs:{label:"",prop:""}},[l("span",[e._v(e._s(e.model.create_time))])])],1)],1)],1)},a=[],o=l("98b1"),n=l("333d"),s=l("d369"),r=l("95c8"),c=l("e1b2"),d={name:"AdminIndexNotice",components:{Pagination:n["a"]},data:function(){return{name:"公告",height:680,loading:!1,idkey:"admin_notice_id",query:{page:1,limit:10},data:[],count:0,dialog:!1,dialogTitle:"公告",model:{admin_notice_id:"",username:"",title:"",intro:"",content:"",create_time:""},infoTitle:"公告",infoDialog:!1}},created:function(){this.height=Object(o["a"])(),this.list()},methods:{list:function(){var e=this;Object(s["d"])()||(this.loading=!0,Object(r["e"])(this.query).then((function(t){if(e.data=t.data.list,e.count=t.data.count,e.loading=!1,e.count>0)if(1===e.count){var l=e.data[0];e.$confirm(l.intro,l.title,{dangerouslyUseHTMLString:!0,confirmButtonText:"查看",cancelButtonText:"不再提示",closeOnClickModal:!1,closeOnPressEscape:!1,showClose:!1,center:!0}).then((function(){e.info(l)})).catch((function(){e.nohint(e.count)}))}else e.dialog=!0})).catch((function(){e.loading=!1})))},info:function(e){var t=this;this.infoDialog=!0;var l={};l[this.idkey]=e[this.idkey],Object(c["d"])(l).then((function(e){t.model=e.data,t.infoTitle=e.data.title}))},cancel:function(){this.dialog=!1},submit:function(){this.dialog=!1},nohint:function(e){this.dialog=!1,Object(s["i"])(e)}}},u=d,m=l("0b56"),p=Object(m["a"])(u,i,a,!1,null,"2642d7f2",null);t["default"]=p.exports},ea32:function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("div",{staticClass:"filter-container"},[l("el-row",[l("el-col",[l("el-select",{staticClass:"filter-item ya-search-field",attrs:{placeholder:"搜索字段"},model:{value:e.query.search_field,callback:function(t){e.$set(e.query,"search_field",t)},expression:"query.search_field"}},[l("el-option",{attrs:{value:"admin_user_id",label:"用户ID"}}),l("el-option",{attrs:{value:"username",label:"用户账号"}}),l("el-option",{attrs:{value:"admin_menu_id",label:"菜单ID"}}),l("el-option",{attrs:{value:"menu_url",label:"菜单链接"}}),l("el-option",{attrs:{value:"menu_name",label:"菜单名称"}}),l("el-option",{attrs:{value:"request_ip",label:"请求IP"}}),l("el-option",{attrs:{value:"request_region",label:"请求地区"}}),l("el-option",{attrs:{value:"request_isp",label:"请求ISP"}}),l("el-option",{attrs:{value:"response_code",label:"返回码"}}),l("el-option",{attrs:{value:e.idkey,label:"ID"}})],1),l("el-input",{staticClass:"filter-item ya-search-value",attrs:{placeholder:"搜索内容",clearable:""},model:{value:e.query.search_value,callback:function(t){e.$set(e.query,"search_value",t)},expression:"query.search_value"}}),l("el-select",{staticClass:"filter-item ya-date-field",attrs:{placeholder:"时间字段"},model:{value:e.query.date_field,callback:function(t){e.$set(e.query,"date_field",t)},expression:"query.date_field"}},[l("el-option",{attrs:{value:"create_time",label:"请求时间"}})],1),l("el-date-picker",{staticClass:"filter-item ya-date-value",attrs:{type:"daterange","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.query.date_value,callback:function(t){e.$set(e.query,"date_value",t)},expression:"query.date_value"}}),l("el-select",{staticClass:"filter-item ya-date-field",attrs:{placeholder:"日志类型",clearable:""},model:{value:e.query.log_type,callback:function(t){e.$set(e.query,"log_type",t)},expression:"query.log_type"}},[l("el-option",{attrs:{value:1,label:"登录日志"}}),l("el-option",{attrs:{value:2,label:"操作日志"}})],1),l("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")]),l("el-button",{staticClass:"filter-item",on:{click:function(t){return e.refresh()}}},[e._v("刷新")])],1)],1),l("el-row",[l("el-col",[l("el-button",{on:{click:function(t){return e.selectOpen("dele")}}},[e._v("删除")]),l("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["admin/admin.UserLog/clear"],expression:"['admin/admin.UserLog/clear']"}],attrs:{title:"按条件删除"},on:{click:function(t){return e.clear()}}},[e._v("清除")]),l("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["admin/admin.UserLog/clean"],expression:"['admin/admin.UserLog/clean']"}],attrs:{title:"删除所有"},on:{click:function(t){return e.clean()}}},[e._v("清空")])],1)],1),l("el-dialog",{attrs:{title:e.selectTitle,visible:e.selectDialog,top:"20vh","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.selectDialog=t}}},[l("el-form",{ref:"selectRef",attrs:{"label-width":"120px"}},[l("el-form-item",{attrs:{label:e.name+"ID",prop:""}},[l("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:12},disabled:""},model:{value:e.selectIds,callback:function(t){e.selectIds=t},expression:"selectIds"}})],1),"dele"===e.selectType?l("el-form-item",{attrs:{label:"",prop:""}},[l("span",{staticStyle:{color:"red"}},[e._v("确定要删除选中的"+e._s(e.name)+"吗?")])]):e._e()],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{loading:e.loading},on:{click:e.selectCancel}},[e._v("取消")]),l("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:e.selectSubmit}},[e._v("提交")])],1)],1)],1),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.data,height:e.height},on:{"sort-change":e.sort,"selection-change":e.select}},[l("el-table-column",{attrs:{type:"selection",width:"42",title:"全选/反选"}}),l("el-table-column",{attrs:{prop:e.idkey,label:"ID","min-width":"100",sortable:"custom"}}),l("el-table-column",{attrs:{prop:"admin_user_id",label:"用户ID","min-width":"70"}}),l("el-table-column",{attrs:{prop:"username",label:"用户账号","min-width":"100","show-overflow-tooltip":""}}),l("el-table-column",{attrs:{prop:"admin_menu_id",label:"菜单ID","min-width":"70"}}),l("el-table-column",{attrs:{prop:"menu_url",label:"菜单链接","min-width":"230","show-overflow-tooltip":""}}),l("el-table-column",{attrs:{prop:"menu_name",label:"菜单名称","min-width":"130","show-overflow-tooltip":""}}),l("el-table-column",{attrs:{prop:"request_ip",label:"请求IP","min-width":"130"}}),l("el-table-column",{attrs:{prop:"request_region",label:"请求地区","min-width":"150","show-overflow-tooltip":""}}),l("el-table-column",{attrs:{prop:"request_isp",label:"请求ISP","min-width":"110","show-overflow-tooltip":""}}),l("el-table-column",{attrs:{prop:"create_time",label:"请求时间","min-width":"155",sortable:"custom"}}),l("el-table-column",{attrs:{prop:"response_code",label:"返回码","min-width":"90",sortable:"custom"}}),l("el-table-column",{attrs:{prop:"response_msg",label:"返回描述","min-width":"130","show-overflow-tooltip":""}}),l("el-table-column",{attrs:{label:"操作","min-width":"85",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[l("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.info(i)}}},[e._v("详情")]),l("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.selectOpen("dele",i)}}},[e._v("删除")])]}}])})],1),l("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.list}}),l("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialog,top:"5vh","before-close":e.cancel,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.dialog=t}}},[l("el-form",{ref:"ref",staticClass:"dialog-body",style:{height:e.height+"px"},attrs:{rules:e.rules,model:e.model,"label-width":"110px"}},[l("el-form-item",{attrs:{label:"用户ID",prop:"admin_user_id"}},[l("el-input",{model:{value:e.model.admin_user_id,callback:function(t){e.$set(e.model,"admin_user_id",t)},expression:"model.admin_user_id"}})],1),l("el-form-item",{attrs:{label:"用户账号",prop:"username"}},[l("el-input",{model:{value:e.model.username,callback:function(t){e.$set(e.model,"username",t)},expression:"model.username"}})],1),l("el-form-item",{attrs:{label:"菜单ID",prop:"admin_menu_id"}},[l("el-input",{model:{value:e.model.admin_menu_id,callback:function(t){e.$set(e.model,"admin_menu_id",t)},expression:"model.admin_menu_id"}})],1),l("el-form-item",{attrs:{label:"菜单名称",prop:"menu_name"}},[l("el-input",{model:{value:e.model.menu_name,callback:function(t){e.$set(e.model,"menu_name",t)},expression:"model.menu_name"}})],1),l("el-form-item",{attrs:{label:"菜单链接",prop:"menu_url"}},[l("el-input",{model:{value:e.model.menu_url,callback:function(t){e.$set(e.model,"menu_url",t)},expression:"model.menu_url"}})],1),l("el-form-item",{attrs:{label:"请求方式",prop:"request_method"}},[l("el-input",{model:{value:e.model.request_method,callback:function(t){e.$set(e.model,"request_method",t)},expression:"model.request_method"}})],1),l("el-form-item",{attrs:{label:"请求IP",prop:"request_ip"}},[l("el-input",{model:{value:e.model.request_ip,callback:function(t){e.$set(e.model,"request_ip",t)},expression:"model.request_ip"}})],1),l("el-form-item",{attrs:{label:"请求地区",prop:"request_region"}},[l("el-input",{model:{value:e.model.request_region,callback:function(t){e.$set(e.model,"request_region",t)},expression:"model.request_region"}})],1),l("el-form-item",{attrs:{label:"请求ISP",prop:"request_isp"}},[l("el-input",{model:{value:e.model.request_isp,callback:function(t){e.$set(e.model,"request_isp",t)},expression:"model.request_isp"}})],1),l("el-form-item",{attrs:{label:"请求时间",prop:"create_time"}},[l("el-input",{model:{value:e.model.create_time,callback:function(t){e.$set(e.model,"create_time",t)},expression:"model.create_time"}})],1),l("el-form-item",{attrs:{label:"请求参数",prop:"request_param"}},[l("pre",[e._v(e._s(e.model.request_param))])]),l("el-form-item",{attrs:{label:"返回码",prop:"response_code"}},[l("el-input",{model:{value:e.model.response_code,callback:function(t){e.$set(e.model,"response_code",t)},expression:"model.response_code"}})],1),l("el-form-item",{attrs:{label:"返回描述",prop:"response_msg"}},[l("el-input",{attrs:{type:"textarea"},model:{value:e.model.response_msg,callback:function(t){e.$set(e.model,"response_msg",t)},expression:"model.response_msg"}})],1),l("el-form-item",{attrs:{label:"USER_AGENT",prop:"user_agent"}},[l("el-input",{attrs:{type:"textarea"},model:{value:e.model.user_agent,callback:function(t){e.$set(e.model,"user_agent",t)},expression:"model.user_agent"}})],1)],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{loading:e.loading},on:{click:e.cancel}},[e._v("取消")]),l("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:e.submit}},[e._v("确定")])],1)],1),l("el-dialog",{attrs:{title:e.clearDialogTitle,visible:e.clearDialog,"before-close":e.clearCancel,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.clearDialog=t}}},[l("el-form",{ref:"clearRef",staticClass:"dialog-body",attrs:{rules:e.clearRules,model:e.clearModel,"label-width":"110px"}},[l("el-form-item",{attrs:{label:"用户ID",prop:"admin_user_id"}},[l("el-input",{attrs:{placeholder:"多个逗号,隔开",clearable:""},model:{value:e.clearModel.admin_user_id,callback:function(t){e.$set(e.clearModel,"admin_user_id",t)},expression:"clearModel.admin_user_id"}})],1),l("el-form-item",{attrs:{label:"用户账号",prop:"username"}},[l("el-input",{attrs:{placeholder:"多个逗号,隔开",clearable:""},model:{value:e.clearModel.username,callback:function(t){e.$set(e.clearModel,"username",t)},expression:"clearModel.username"}})],1),l("el-form-item",{attrs:{label:"菜单ID",prop:"admin_menu_id"}},[l("el-input",{attrs:{placeholder:"多个逗号,隔开",clearable:""},model:{value:e.clearModel.admin_menu_id,callback:function(t){e.$set(e.clearModel,"admin_menu_id",t)},expression:"clearModel.admin_menu_id"}})],1),l("el-form-item",{attrs:{label:"菜单链接",prop:"menu_url"}},[l("el-input",{attrs:{placeholder:"多个逗号,隔开",clearable:""},model:{value:e.clearModel.menu_url,callback:function(t){e.$set(e.clearModel,"menu_url",t)},expression:"clearModel.menu_url"}})],1),l("el-form-item",{attrs:{label:"日期范围",prop:"date_value"}},[l("el-date-picker",{staticClass:"filter-item",attrs:{type:"daterange","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.clearModel.date_value,callback:function(t){e.$set(e.clearModel,"date_value",t)},expression:"clearModel.date_value"}})],1)],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{loading:e.loading},on:{click:function(t){return e.clearCancel()}}},[e._v("取消")]),l("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:function(t){return e.clearSubmit()}}},[e._v("确定")])],1)],1)],1)},a=[],o=(l("388f"),l("697e"),l("e508"),l("98b1")),n=l("333d"),s=l("4381"),r=l("ed08"),c=l("7aae"),d={name:"AdminUserLog",components:{Pagination:n["a"]},directives:{permission:s["a"]},data:function(){return{name:"用户日志",height:680,loading:!1,idkey:"admin_user_log_id",data:[],count:0,query:{page:1,limit:15,search_field:"username",date_field:"create_time"},dialog:!1,dialogTitle:"",model:{},rules:{},selection:[],selectIds:"",selectTitle:"选中操作",selectDialog:!1,selectType:"",clearDialog:!1,clearDialogTitle:"",clearModel:{admin_user_id:"",username:"",admin_menu_id:"",menu_url:"",date_value:[]},clearRules:{}}},created:function(){this.height=Object(o["a"])(),this.list()},methods:{list:function(){var e=this;this.loading=!0,Object(c["e"])(this.query).then((function(t){e.data=t.data.list,e.count=t.data.count,e.loading=!1})).catch((function(){e.loading=!1}))},info:function(e){var t=this;this.dialog=!0,this.dialogTitle=this.name+"详情:"+e[this.idkey];var l={};l[this.idkey]=e[this.idkey],Object(c["d"])(l).then((function(e){t.reset(e.data)})).catch((function(){}))},cancel:function(){this.dialog=!1,this.reset()},submit:function(){this.dialog=!1,this.reset()},reset:function(e){this.model=e||this.$options.data().model},search:function(){this.query.page=1,this.list()},refresh:function(){this.query=this.$options.data().query,this.list()},sort:function(e){this.query.sort_field=e.prop,this.query.sort_value="","ascending"===e.order&&(this.query.sort_value="asc",this.list()),"descending"===e.order&&(this.query.sort_value="desc",this.list())},select:function(e){this.selection=e,this.selectIds=this.selectGetIds(e).toString()},selectGetIds:function(e){return Object(r["a"])(e,this.idkey)},selectAlert:function(){this.$alert("请选择需要操作的"+this.name,"提示",{type:"warning",callback:function(e){}})},selectOpen:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t&&(this.$refs["table"].clearSelection(),this.$refs["table"].toggleRowSelection(t)),this.selection.length?(this.selectTitle="选中操作","dele"===e&&(this.selectTitle="删除"+this.name),this.selectDialog=!0,this.selectType=e):this.selectAlert()},selectCancel:function(){this.selectDialog=!1},selectSubmit:function(){if(this.selection.length){var e=this.selectType;"dele"===e&&this.dele(this.selection),this.selectDialog=!1}else this.selectAlert()},dele:function(e){var t=this;e.length?(this.loading=!0,Object(c["c"])({ids:this.selectGetIds(e)}).then((function(e){t.list(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))):this.selectAlert()},clear:function(){this.clearDialog=!0,this.clearDialogTitle=this.name+"清除"},clearCancel:function(){this.clearDialog=!1},clearSubmit:function(){var e=this;Object(c["b"])(this.clearModel).then((function(t){e.list(),e.clearDialog=!1,e.clearModel=e.$options.data().clearModel,e.$message.success("已清除"+e.name+"记录 "+t.data.count+" 条")})).catch((function(){}))},clean:function(){var e=this;this.$confirm("确定要清空所有"+this.name+"吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["a"])().then((function(t){e.list(),e.$message.success("已清除"+e.name+"记录 "+t.data.count+" 条")})).catch((function(){}))})).catch((function(){}))}}},u=d,m=l("0b56"),p=Object(m["a"])(u,i,a,!1,null,null,null);t["default"]=p.exports},ed08:function(e,t,l){"use strict";l.d(t,"b",(function(){return i})),l.d(t,"a",(function(){return a}));l("f3b4"),l("e8b7"),l("4a00"),l("e3f6"),l("1b36"),l("e508"),l("9e67"),l("697e"),l("5136"),l("a479"),l("799a"),l("5354"),l("46fb");function i(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,t="",l="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",i=0;i
{b} : {c} ({d}%)"},series:[{name:"文件类型",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2,normal:{label:{show:!0,formatter:"{b} : {c} ({d}%)"}}},data:e.data}]};t.setOption(l)}}},h=p,f=l("0b56"),b=Object(f["a"])(h,i,a,!1,null,"e863ded4",null);t["default"]=b.exports},"16e5":function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[t("el-tabs",[e.checkPermission(["admin/member.Setting/captchaInfo"])?t("el-tab-pane",{attrs:{label:"验证码设置",lazy:""}},[t("setting-captcha")],1):e._e(),e.checkPermission(["admin/member.Setting/tokenInfo"])?t("el-tab-pane",{attrs:{label:"Token设置",lazy:""}},[t("setting-token")],1):e._e(),e.checkPermission(["admin/member.Setting/logInfo"])?t("el-tab-pane",{attrs:{label:"日志设置",lazy:""}},[t("setting-log")],1):e._e(),e.checkPermission(["admin/member.Setting/apiInfo"])?t("el-tab-pane",{attrs:{label:"接口设置",lazy:""}},[t("setting-api")],1):e._e(),e.checkPermission(["admin/member.Setting/logregInfo"])?t("el-tab-pane",{attrs:{label:"登录注册设置",lazy:""}},[t("setting-logreg")],1):e._e(),e.checkPermission(["admin/member.Setting/diyInfo"])?t("el-tab-pane",{attrs:{label:"自定义设置",lazy:""}},[t("setting-diy")],1):e._e()],1)],1)},a=[],s=l("e350"),o=l("dd85"),n=l("515d"),r=l("72c4"),c=l("1b95"),u=l("09ef"),d=l("ea60"),m={name:"MemberSetting",components:{SettingToken:o["default"],SettingCaptcha:n["default"],SettingLog:r["default"],SettingApi:c["default"],SettingLogreg:u["default"],SettingDiy:d["default"]},data:function(){return{name:"会员设置"}},created:function(){},methods:{checkPermission:s["a"]}},p=m,h=l("0b56"),f=Object(h["a"])(p,i,a,!1,null,null,null);t["default"]=f.exports},"1b95":function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e._self._c;return t("el-card",{staticClass:"dialog-body",style:{height:e.height+"px"}},[t("el-row",{attrs:{gutter:0}},[t("el-col",{attrs:{span:12}},[t("el-form",{ref:"ref",attrs:{model:e.model,rules:e.rules,"label-width":"120px"}},[t("el-form-item",{attrs:{label:"会员接口",prop:"is_member_api"}},[t("el-col",{attrs:{span:24}},[t("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.model.is_member_api,callback:function(t){e.$set(e.model,"is_member_api",t)},expression:"model.is_member_api"}})],1),t("el-col",{attrs:{span:24}},[e._v(" 关闭后,不再校验接口和权限,所有接口(免登除外)均需登录访问。 ")])],1),t("el-form-item",{attrs:{label:"接口速率"}},[t("el-col",{attrs:{span:8}},[t("el-input",{attrs:{type:"number",placeholder:"次数"},model:{value:e.model.api_rate_num,callback:function(t){e.$set(e.model,"api_rate_num",t)},expression:"model.api_rate_num"}},[t("template",{slot:"append"},[e._v("次")])],2)],1),t("el-col",{staticStyle:{"text-align":"center"},attrs:{span:1}},[e._v("/")]),t("el-col",{attrs:{span:8}},[t("el-input",{attrs:{type:"number",placeholder:"时间"},model:{value:e.model.api_rate_time,callback:function(t){e.$set(e.model,"api_rate_time",t)},expression:"model.api_rate_time"}},[t("template",{slot:"append"},[e._v("秒")])],2)],1),t("el-col",{attrs:{span:24}},[e._v(" 3/1:3次1秒;次数 0 不限率。")])],1),t("el-form-item",[t("el-button",{attrs:{loading:e.loading},on:{click:function(t){return e.refresh()}}},[e._v("刷新")]),t("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")])],1)],1)],1)],1)],1)},a=[],s=l("98b1"),o=l("4f49"),n={name:"MemberSettingApi",components:{},data:function(){return{name:"接口设置",height:680,loading:!1,model:{is_member_api:0,api_rate_num:3,api_rate_time:1},rules:{}}},created:function(){this.height=Object(s["a"])(170),this.info()},methods:{info:function(){var e=this;Object(o["b"])().then((function(t){e.model=t.data}))},refresh:function(){var e=this;this.loading=!0,Object(o["b"])().then((function(t){e.model=t.data,e.loading=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1}))},submit:function(){var e=this;this.$refs["ref"].validate((function(t){t&&(e.loading=!0,Object(o["a"])(e.model).then((function(t){e.loading=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))}}},r=n,c=l("0b56"),u=Object(c["a"])(r,i,a,!1,null,null,null);t["default"]=u.exports},"20d7":function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e._self._c;return t("el-card",{staticClass:"dialog-body",style:{height:e.height+"px"}},[t("el-row",[t("el-col",{attrs:{span:13}},[t("el-form",{ref:"ref",attrs:{model:e.model,rules:e.rules,"label-width":"120px"}},[t("el-form-item",{attrs:{label:"缓存类型",prop:"cache_type"}},[t("el-col",{attrs:{span:8}},[t("el-input",{model:{value:e.model.cache_type,callback:function(t){e.$set(e.model,"cache_type",t)},expression:"model.cache_type"}})],1)],1),t("el-form-item",{attrs:{label:"",prop:""}},[t("el-col",{attrs:{span:12}},[e._v(" 手动清除所有缓存,后台登录状态不会清除。 ")])],1),t("el-form-item",{attrs:{label:""}},[t("el-button",{attrs:{loading:e.loading},on:{click:function(t){return e.refresh()}}},[e._v("刷新")]),t("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:function(t){return e.clear()}}},[e._v("清除")])],1)],1)],1)],1)],1)},a=[],s=l("98b1"),o=l("074b"),n={name:"SystemSettingCache",components:{},data:function(){return{name:"缓存设置",height:680,loading:!1,model:{cache_type:""},rules:{}}},created:function(){this.height=Object(s["a"])(180),this.info()},methods:{info:function(){var e=this;Object(o["d"])().then((function(t){e.model=t.data}))},refresh:function(){var e=this;this.loading=!0,Object(o["d"])().then((function(t){e.model=t.data,e.loading=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1}))},clear:function(){var e=this;this.$refs["ref"].validate((function(t){t&&(e.loading=!0,Object(o["c"])().then((function(t){e.loading=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))}}},r=n,c=l("0b56"),u=Object(c["a"])(r,i,a,!1,null,null,null);t["default"]=u.exports},"259d":function(e,t,l){"use strict";l.r(t);l("388f"),l("f3b4"),l("83fe"),l("199b");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[t("div",{staticClass:"filter-container"},[t("el-row",[t("el-col",[t("el-select",{staticClass:"filter-item ya-search-field",attrs:{placeholder:"查询字段"},model:{value:e.query.search_field,callback:function(t){e.$set(e.query,"search_field",t)},expression:"query.search_field"}},[t("el-option",{attrs:{value:e.idkey,label:"ID"}}),t("el-option",{attrs:{value:"user_id",label:"用户"}}),t("el-option",{attrs:{value:"menu_id",label:"菜单"}}),t("el-option",{attrs:{value:"request_ip",label:"请求IP"}}),t("el-option",{attrs:{value:"request_region",label:"请求地区"}}),t("el-option",{attrs:{value:"request_isp",label:"请求ISP"}}),t("el-option",{attrs:{value:"response_code",label:"返回码"}}),t("el-option",{attrs:{value:"log_type",label:"日志类型"}})],1),t("el-select",{staticClass:"filter-item ya-search-exp",model:{value:e.query.search_exp,callback:function(t){e.$set(e.query,"search_exp",t)},expression:"query.search_exp"}},e._l(e.exps,(function(e){return t("el-option",{key:e.exp,attrs:{value:e.exp,label:e.name}})})),1),"user_id"===e.query.search_field?t("el-select",{staticClass:"filter-item ya-search-value",attrs:{placeholder:"用户",clearable:"",filterable:"","collapse-tags":"",multiple:"","allow-create":""},model:{value:e.query.search_value,callback:function(t){e.$set(e.query,"search_value",t)},expression:"query.search_value"}},e._l(e.userData,(function(l){return t("el-option",{key:l.user_id,attrs:{value:l.user_id,label:l.nickname}},[e._v(" "+e._s(l.nickname)+" ("+e._s(l.username)+") ")])})),1):"menu_id"===e.query.search_field?t("el-cascader",{staticClass:"filter-item ya-search-value",attrs:{placeholder:"菜单",options:e.menuData,props:e.menuProps,clearable:"",filterable:"","collapse-tags":""},model:{value:e.query.search_value,callback:function(t){e.$set(e.query,"search_value",t)},expression:"query.search_value"}}):"log_type"===e.query.search_field?t("el-select",{staticClass:"filter-item ya-search-value",attrs:{placeholder:"日志类型",clearable:"",filterable:""},model:{value:e.query.search_value,callback:function(t){e.$set(e.query,"search_value",t)},expression:"query.search_value"}},e._l(e.logTypes,(function(e,l){return t("el-option",{key:l,attrs:{value:l,label:e}})})),1):t("el-input",{staticClass:"filter-item ya-search-value",attrs:{placeholder:"查询内容",clearable:""},model:{value:e.query.search_value,callback:function(t){e.$set(e.query,"search_value",t)},expression:"query.search_value"}}),t("el-date-picker",{staticClass:"filter-item ya-date-value",attrs:{type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.query.date_value,callback:function(t){e.$set(e.query,"date_value",t)},expression:"query.date_value"}}),t("el-button",{staticClass:"filter-item",attrs:{type:"primary",title:"查询/刷新"},on:{click:function(t){return e.search()}}},[e._v("查询")]),t("el-button",{staticClass:"filter-item",attrs:{icon:"el-icon-refresh",title:"重置"},on:{click:function(t){return e.refresh()}}})],1)],1),t("el-row",[t("el-col",[t("el-button",{attrs:{title:"删除选择"},on:{click:function(t){return e.selectOpen("dele")}}},[e._v("删除")]),t("el-button",{attrs:{title:"删除查询结果"},on:{click:function(t){return e.clear()}}},[e._v("清空")])],1)],1),t("el-dialog",{attrs:{title:e.selectTitle,visible:e.selectDialog,top:"20vh","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.selectDialog=t}}},[t("el-form",{ref:"selectRef",attrs:{"label-width":"120px"}},[t("el-form-item",{attrs:{label:e.name+"ID",prop:""}},[t("el-input",{attrs:{type:"textarea",autosize:{minRows:5,maxRows:12},disabled:""},model:{value:e.selectIds,callback:function(t){e.selectIds=t},expression:"selectIds"}})],1),"dele"===e.selectType?t("el-form-item",{attrs:{label:"",prop:""}},[t("span",{staticStyle:{color:"red"}},[e._v("确定要删除选中的"+e._s(e.name)+"吗?")])]):e._e()],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{loading:e.loading},on:{click:e.selectCancel}},[e._v("取消")]),t("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:e.selectSubmit}},[e._v("提交")])],1)],1)],1),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.data,height:e.height},on:{"sort-change":e.sort,"selection-change":e.select}},[t("el-table-column",{attrs:{type:"selection",width:"42",title:"全选/反选"}}),t("el-table-column",{attrs:{prop:e.idkey,label:"ID",width:"80",sortable:"custom"}}),t("el-table-column",{attrs:{prop:"user_id",label:"用户ID","min-width":"70"}}),t("el-table-column",{attrs:{prop:"nickname",label:"用户昵称","min-width":"100","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"username",label:"用户账号","min-width":"100","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"menu_id",label:"菜单ID","min-width":"70"}}),t("el-table-column",{attrs:{prop:"menu_name",label:"菜单名称","min-width":"130","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"menu_url",label:"菜单链接","min-width":"200","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"request_ip",label:"请求IP","min-width":"125","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"request_region",label:"请求地区","min-width":"150","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"request_isp",label:"请求ISP","min-width":"110","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"response_code",label:"返回码","min-width":"80","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"response_msg",label:"返回描述","min-width":"115","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"create_time",label:"请求时间","min-width":"155",sortable:"custom"}}),t("el-table-column",{attrs:{label:"操作",width:"90"},scopedSlots:e._u([{key:"default",fn:function(l){return[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.info(l.row)}}},[e._v("详情")]),t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.selectOpen("dele",l.row)}}},[e._v("删除")])]}}])})],1),t("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count>0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.list}}),t("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialog,top:"5vh","before-close":e.cancel,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.dialog=t}}},[t("el-form",{ref:"ref",staticClass:"dialog-body",style:{height:e.height+"px"},attrs:{rules:e.rules,model:e.model,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"用户ID",prop:"user_id"}},[t("el-input",{model:{value:e.model.user_id,callback:function(t){e.$set(e.model,"user_id",t)},expression:"model.user_id"}})],1),t("el-form-item",{attrs:{label:"用户昵称",prop:"nickname"}},[t("el-input",{model:{value:e.model.nickname,callback:function(t){e.$set(e.model,"nickname",t)},expression:"model.nickname"}})],1),t("el-form-item",{attrs:{label:"用户账号",prop:"username"}},[t("el-input",{model:{value:e.model.username,callback:function(t){e.$set(e.model,"username",t)},expression:"model.username"}})],1),t("el-form-item",{attrs:{label:"菜单ID",prop:"menu_id"}},[t("el-input",{model:{value:e.model.menu_id,callback:function(t){e.$set(e.model,"menu_id",t)},expression:"model.menu_id"}})],1),t("el-form-item",{attrs:{label:"菜单名称",prop:"menu_name"}},[t("el-input",{model:{value:e.model.menu_name,callback:function(t){e.$set(e.model,"menu_name",t)},expression:"model.menu_name"}})],1),t("el-form-item",{attrs:{label:"菜单链接",prop:"menu_url"}},[t("el-input",{model:{value:e.model.menu_url,callback:function(t){e.$set(e.model,"menu_url",t)},expression:"model.menu_url"}})],1),t("el-form-item",{attrs:{label:"请求方式",prop:"request_method"}},[t("el-input",{model:{value:e.model.request_method,callback:function(t){e.$set(e.model,"request_method",t)},expression:"model.request_method"}})],1),t("el-form-item",{attrs:{label:"请求IP",prop:"request_ip"}},[t("el-input",{model:{value:e.model.request_ip,callback:function(t){e.$set(e.model,"request_ip",t)},expression:"model.request_ip"}})],1),t("el-form-item",{attrs:{label:"请求地区",prop:"request_region"}},[t("el-input",{model:{value:e.model.request_region,callback:function(t){e.$set(e.model,"request_region",t)},expression:"model.request_region"}})],1),t("el-form-item",{attrs:{label:"请求ISP",prop:"request_isp"}},[t("el-input",{model:{value:e.model.request_isp,callback:function(t){e.$set(e.model,"request_isp",t)},expression:"model.request_isp"}})],1),t("el-form-item",{attrs:{label:"请求时间",prop:"create_time"}},[t("el-input",{model:{value:e.model.create_time,callback:function(t){e.$set(e.model,"create_time",t)},expression:"model.create_time"}})],1),t("el-form-item",{attrs:{label:"请求参数",prop:"request_param"}},[t("pre",[e._v(e._s(e.model.request_param))])]),t("el-form-item",{attrs:{label:"返回码",prop:"response_code"}},[t("el-input",{model:{value:e.model.response_code,callback:function(t){e.$set(e.model,"response_code",t)},expression:"model.response_code"}})],1),t("el-form-item",{attrs:{label:"返回描述",prop:"response_msg"}},[t("el-input",{attrs:{type:"textarea"},model:{value:e.model.response_msg,callback:function(t){e.$set(e.model,"response_msg",t)},expression:"model.response_msg"}})],1),t("el-form-item",{attrs:{label:"用户代理",prop:"user_agent"}},[t("el-input",{attrs:{type:"textarea"},model:{value:e.model.user_agent,callback:function(t){e.$set(e.model,"user_agent",t)},expression:"model.user_agent"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{loading:e.loading},on:{click:e.cancel}},[e._v("取消")]),t("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:e.submit}},[e._v("确定")])],1)],1)],1)},a=[],s=(l("697e"),l("e508"),l("98b1")),o=l("333d"),n=l("ed08"),r=l("b775"),c="/admin/system.UserLog/";function u(e){return Object(r["a"])({url:c+"list",method:"get",params:e})}function d(e){return Object(r["a"])({url:c+"info",method:"get",params:e})}function m(e){return Object(r["a"])({url:c+"dele",method:"post",data:e})}function p(e){return Object(r["a"])({url:c+"clear",method:"post",data:e})}var h={name:"SystemUserLog",components:{Pagination:o["a"]},directives:{},data:function(){return{name:"用户日志",height:680,loading:!1,idkey:"log_id",exps:[],query:{page:1,limit:12,search_field:"user_id",search_exp:"like",date_field:"create_time"},data:[],count:0,dialog:!1,dialogTitle:"",model:{},rules:{},userData:[],menuData:[],menuProps:{checkStrictly:!0,value:"menu_id",label:"menu_name",multiple:!0,emitPath:!1},logTypes:[],selection:[],selectIds:"",selectTitle:"选中操作",selectDialog:!1,selectType:""}},created:function(){this.height=Object(s["a"])(),this.list()},methods:{list:function(){var e=this;this.loading=!0,u(this.query).then((function(t){e.data=t.data.list,e.count=t.data.count,e.userData=t.data.user,e.menuData=t.data.menu,e.logTypes=t.data.log_types,e.exps=t.data.exps,e.loading=!1})).catch((function(){e.loading=!1}))},info:function(e){var t=this;this.dialog=!0,this.dialogTitle=this.name+"详情:"+e[this.idkey];var l={};l[this.idkey]=e[this.idkey],d(l).then((function(e){t.reset(e.data)})).catch((function(){}))},cancel:function(){this.dialog=!1,this.reset()},submit:function(){this.dialog=!1,this.reset()},reset:function(e){this.model=e||this.$options.data().model},search:function(){this.query.page=1,this.list()},refresh:function(){this.query=this.$options.data().query,this.$refs["table"].clearSort(),this.list()},sort:function(e){this.query.sort_field=e.prop,this.query.sort_value="","ascending"===e.order&&(this.query.sort_value="asc",this.list()),"descending"===e.order&&(this.query.sort_value="desc",this.list())},select:function(e){this.selection=e,this.selectIds=this.selectGetIds(e).toString()},selectGetIds:function(e){return Object(n["a"])(e,this.idkey)},selectAlert:function(){this.$alert("请选择需要操作的"+this.name,"提示",{type:"warning",callback:function(e){}})},selectOpen:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t&&(this.$refs["table"].clearSelection(),this.$refs["table"].toggleRowSelection(t)),this.selection.length?(this.selectTitle="选中操作","dele"===e&&(this.selectTitle=this.name+"删除"),this.selectDialog=!0,this.selectType=e):this.selectAlert()},selectCancel:function(){this.selectDialog=!1},selectSubmit:function(){if(this.selection.length){var e=this.selectType;"dele"===e&&this.dele(this.selection),this.selectDialog=!1}else this.selectAlert()},dele:function(e){var t=this;e.length?(this.loading=!0,m({ids:this.selectGetIds(e)}).then((function(e){t.list(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))):this.selectAlert()},clear:function(){var e=this;this.$confirm("确定要清空"+this.name+"(查询结果或所有)吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p(e.query).then((function(t){e.list(),e.$message.success("清空"+e.name+"记录 "+t.data.count+" 条")})).catch((function(){}))})).catch((function(){}))}}},f=h,b=l("0b56"),g=Object(b["a"])(f,i,a,!1,null,null,null);t["default"]=g.exports},"26b0":function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"dialog-body",style:{height:e.height+"px"}},[t("el-row",[t("el-col",[e.checkPermission(["admin/system.Index/count"])?t("index-count"):e._e()],1)],1),t("div",{staticClass:"app-container"},[t("el-row",{staticStyle:{"margin-bottom":"15px"}},[t("el-col",[e.checkPermission(["admin/system.Index/member"])?t("index-member"):e._e()],1)],1),t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{xs:24,sm:14}},[e.checkPermission(["admin/system.Index/content"])?t("index-content"):e._e()],1),t("el-col",{attrs:{xs:24,sm:10}},[e.checkPermission(["admin/system.Index/file"])?t("index-file"):e._e()],1)],1)],1),t("index-notice")],1)},a=[],s=l("98b1"),o=l("e350"),n=l("8967"),r=l("88d4"),c=l("aa8c"),u=l("e521"),d=l("16e3"),m={name:"Dashboard",components:{IndexNotice:n["default"],IndexCount:r["default"],IndexMember:c["default"],IndexFile:d["default"],IndexContent:u["default"]},data:function(){return{name:"控制台",height:680}},created:function(){this.height=Object(s["a"])(100)},methods:{checkPermission:o["a"]}},p=m,h=l("0b56"),f=Object(h["a"])(p,i,a,!1,null,null,null);t["default"]=f.exports},"28cb":function(e,t,l){},"29be":function(e,t,l){"use strict";l.r(t);l("388f"),l("f3b4"),l("83fe"),l("199b");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[t("div",{staticClass:"filter-container"},[t("el-row",[t("el-col",[t("el-select",{staticClass:"filter-item ya-search-field",attrs:{placeholder:"查询字段"},model:{value:e.query.search_field,callback:function(t){e.$set(e.query,"search_field",t)},expression:"query.search_field"}},[t("el-option",{attrs:{value:e.idkey,label:"ID"}}),t("el-option",{attrs:{value:"unique",label:"标识"}}),t("el-option",{attrs:{value:"name",label:"名称"}}),t("el-option",{attrs:{value:"is_disable",label:"禁用"}})],1),t("el-select",{staticClass:"filter-item ya-search-exp",model:{value:e.query.search_exp,callback:function(t){e.$set(e.query,"search_exp",t)},expression:"query.search_exp"}},e._l(e.exps,(function(e){return t("el-option",{key:e.exp,attrs:{value:e.exp,label:e.name}})})),1),"is_disable"===e.query.search_field?t("el-select",{staticClass:"filter-item ya-search-value",model:{value:e.query.search_value,callback:function(t){e.$set(e.query,"search_value",t)},expression:"query.search_value"}},[t("el-option",{attrs:{value:1,label:"是"}}),t("el-option",{attrs:{value:0,label:"否"}})],1):t("el-input",{staticClass:"filter-item ya-search-value",attrs:{placeholder:"查询内容",clearable:""},model:{value:e.query.search_value,callback:function(t){e.$set(e.query,"search_value",t)},expression:"query.search_value"}}),t("el-select",{staticClass:"filter-item ya-date-field",attrs:{placeholder:"时间类型"},model:{value:e.query.date_field,callback:function(t){e.$set(e.query,"date_field",t)},expression:"query.date_field"}},[t("el-option",{attrs:{value:"create_time",label:"添加时间"}}),t("el-option",{attrs:{value:"update_time",label:"修改时间"}})],1),t("el-date-picker",{staticClass:"filter-item ya-date-value",attrs:{type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.query.date_value,callback:function(t){e.$set(e.query,"date_value",t)},expression:"query.date_value"}}),t("el-button",{staticClass:"filter-item",attrs:{type:"primary",title:"查询/刷新"},on:{click:function(t){return e.search()}}},[e._v("查询")]),t("el-button",{staticClass:"filter-item",attrs:{icon:"el-icon-refresh",title:"重置"},on:{click:function(t){return e.refresh()}}})],1)],1),t("el-row",[t("el-col",[t("el-button",{attrs:{title:"是否禁用"},on:{click:function(t){return e.selectOpen("disable")}}},[e._v("禁用")]),t("el-button",{attrs:{title:"删除"},on:{click:function(t){return e.selectOpen("dele")}}},[e._v("删除")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.add()}}},[e._v("添加")])],1)],1),t("el-dialog",{attrs:{title:e.selectTitle,visible:e.selectDialog,top:"20vh","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(t){e.selectDialog=t}}},[t("el-form",{ref:"selectRef",attrs:{"label-width":"120px"}},[t("el-form-item",{attrs:{label:e.name+"ID",prop:""}},[t("el-input",{attrs:{type:"textarea",autosize:{minRows:5,maxRows:12},disabled:""},model:{value:e.selectIds,callback:function(t){e.selectIds=t},expression:"selectIds"}})],1),"disable"===e.selectType?t("el-form-item",{attrs:{label:"是否禁用",prop:""}},[t("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.is_disable,callback:function(t){e.is_disable=t},expression:"is_disable"}})],1):"dele"===e.selectType?t("el-form-item",{attrs:{label:"",prop:""}},[t("span",{staticStyle:{color:"red"}},[e._v("确定要删除选中的"+e._s(e.name)+"吗?")])]):e._e()],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{loading:e.loading},on:{click:e.selectCancel}},[e._v("取消")]),t("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:e.selectSubmit}},[e._v("提交")])],1)],1)],1),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.data,height:e.height},on:{"sort-change":e.sort,"selection-change":e.select,"cell-dblclick":e.cellDbclick}},[t("el-table-column",{attrs:{type:"selection",width:"42",title:"全选/反选"}}),t("el-table-column",{attrs:{prop:e.idkey,label:"ID",width:"80",sortable:"custom"}}),t("el-table-column",{attrs:{prop:"unique",label:"标识","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"name",label:"名称","min-width":"220",sortable:"custom","show-overflow-tooltip":""}}),t("el-table-column",{attrs:{prop:"is_disable",label:"禁用","min-width":"75",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(l){return[t("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(t){return e.disable([l.row])}},model:{value:l.row.is_disable,callback:function(t){e.$set(l.row,"is_disable",t)},expression:"scope.row.is_disable"}})]}}])}),t("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"75",sortable:"custom"}}),t("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"155",sortable:"custom"}}),t("el-table-column",{attrs:{prop:"update_time",label:"修改时间","min-width":"155",sortable:"custom"}}),t("el-table-column",{attrs:{label:"操作",width:"90"},scopedSlots:e._u([{key:"default",fn:function(l){return[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.edit(l.row)}}},[e._v("修改")]),t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.selectOpen("dele",l.row)}}},[e._v("删除")])]}}])})],1),t("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count>0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.list}}),t("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialog,top:"5vh","before-close":e.cancel,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},on:{"update:visible":function(t){e.dialog=t}}},[t("el-form",{ref:"ref",staticClass:"dialog-body",style:{height:e.height+"px"},attrs:{rules:e.rules,model:e.model,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"标识",prop:"unique"}},[t("el-input",{attrs:{placeholder:"请输入标识",clearable:""},model:{value:e.model.unique,callback:function(t){e.$set(e.model,"unique",t)},expression:"model.unique"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy",title:"复制"},on:{click:function(t){return e.copy(e.model.unique,t)}},slot:"append"})],1)],1),t("el-form-item",{attrs:{label:"名称",prop:"name"}},[t("el-input",{attrs:{placeholder:"请输入名称",clearable:""},model:{value:e.model.name,callback:function(t){e.$set(e.model,"name",t)},expression:"model.name"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-document-copy",title:"复制"},on:{click:function(t){return e.copy(e.model.name,t)}},slot:"append"})],1)],1),t("el-form-item",{attrs:{label:"内容",prop:"content"}},[t("rich-editor",{model:{value:e.model.content,callback:function(t){e.$set(e.model,"content",t)},expression:"model.content"}})],1),t("el-form-item",{attrs:{label:"排序",prop:"sort"}},[t("el-input",{attrs:{type:"number"},model:{value:e.model.sort,callback:function(t){e.$set(e.model,"sort",t)},expression:"model.sort"}})],1),e.model[e.idkey]?t("el-form-item",{attrs:{label:"添加时间",prop:"create_time"}},[t("el-input",{attrs:{disabled:""},model:{value:e.model.create_time,callback:function(t){e.$set(e.model,"create_time",t)},expression:"model.create_time"}})],1):e._e(),e.model[e.idkey]?t("el-form-item",{attrs:{label:"修改时间",prop:"update_time"}},[t("el-input",{attrs:{disabled:""},model:{value:e.model.update_time,callback:function(t){e.$set(e.model,"update_time",t)},expression:"model.update_time"}})],1):e._e()],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{loading:e.loading},on:{click:e.cancel}},[e._v("取消")]),t("el-button",{attrs:{loading:e.loading,type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},a=[],s=(l("697e"),l("e508"),l("98b1")),o=l("333d"),n=l("6a13"),r=l("f71e"),c=l("ed08"),u=l("b775"),d="/admin/setting.Accord/";function m(e){return Object(u["a"])({url:d+"list",method:"get",params:e})}function p(e){return Object(u["a"])({url:d+"info",method:"get",params:e})}function h(e){return Object(u["a"])({url:d+"add",method:"post",data:e})}function f(e){return Object(u["a"])({url:d+"edit",method:"post",data:e})}function b(e){return Object(u["a"])({url:d+"dele",method:"post",data:e})}function g(e){return Object(u["a"])({url:d+"disable",method:"post",data:e})}var _={name:"SettingAccord",components:{Pagination:o["a"],RichEditor:n["a"]},directives:{},data:function(){return{name:"协议",height:680,loading:!1,idkey:"accord_id",exps:[],query:{page:1,limit:12,search_field:"name",search_exp:"like",date_field:"create_time"},data:[],count:0,dialog:!1,dialogTitle:"",model:{accord_id:"",unique:"",name:"",content:"",sort:250,is_disable:0},rules:{unique:[{required:!0,message:"请输入标识",trigger:"blur"}],name:[{required:!0,message:"请输入名称",trigger:"blur"}]},selection:[],selectIds:"",selectTitle:"选中操作",selectDialog:!1,selectType:"",is_disable:0}},created:function(){this.height=Object(s["a"])(),this.list()},methods:{list:function(){var e=this;this.loading=!0,m(this.query).then((function(t){e.data=t.data.list,e.count=t.data.count,e.exps=t.data.exps,e.loading=!1})).catch((function(){e.loading=!1}))},add:function(){this.dialog=!0,this.dialogTitle=this.name+"添加",this.reset()},edit:function(e){var t=this;this.dialog=!0,this.dialogTitle=this.name+"修改:"+e[this.idkey];var l={};l[this.idkey]=e[this.idkey],p(l).then((function(e){t.reset(e.data)})).catch((function(){}))},cancel:function(){this.dialog=!1,this.reset()},submit:function(){var e=this;this.$refs["ref"].validate((function(t){t&&(e.loading=!0,e.model[e.idkey]?f(e.model).then((function(t){e.list(),e.dialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})):h(e.model).then((function(t){e.list(),e.dialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))},reset:function(e){this.model=e||this.$options.data().model,void 0!==this.$refs["ref"]&&(this.$refs["ref"].resetFields(),this.$refs["ref"].clearValidate())},search:function(){this.query.page=1,this.list()},refresh:function(){this.query=this.$options.data().query,this.$refs["table"].clearSort(),this.list()},sort:function(e){this.query.sort_field=e.prop,this.query.sort_value="","ascending"===e.order&&(this.query.sort_value="asc",this.list()),"descending"===e.order&&(this.query.sort_value="desc",this.list())},select:function(e){this.selection=e,this.selectIds=this.selectGetIds(e).toString()},selectGetIds:function(e){return Object(c["a"])(e,this.idkey)},selectAlert:function(){this.$alert("请选择需要操作的"+this.name,"提示",{type:"warning",callback:function(e){}})},selectOpen:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t&&(this.$refs["table"].clearSelection(),this.$refs["table"].toggleRowSelection(t)),this.selection.length?(this.selectTitle="选中操作","disable"===e?this.selectTitle=this.name+"是否禁用":"dele"===e&&(this.selectTitle=this.name+"删除"),this.selectDialog=!0,this.selectType=e):this.selectAlert()},selectCancel:function(){this.selectDialog=!1},selectSubmit:function(){if(this.selection.length){var e=this.selectType;"disable"===e?this.disable(this.selection,!0):"dele"===e&&this.dele(this.selection),this.selectDialog=!1}else this.selectAlert()},disable:function(e){var t=this,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.length){this.loading=!0;var i=e[0].is_disable;l&&(i=this.is_disable),g({ids:this.selectGetIds(e),is_disable:i}).then((function(e){t.list(),t.$message.success(e.msg)})).catch((function(){t.list()}))}else this.selectAlert()},dele:function(e){var t=this;e.length?(this.loading=!0,b({ids:this.selectGetIds(e)}).then((function(e){t.list(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))):this.selectAlert()},copy:function(e,t){Object(r["a"])(e,t)},cellDbclick:function(e,t,l,i){this.copy(e[t.property],i)}}},v=_,y=l("0b56"),k=Object(y["a"])(v,i,a,!1,null,null,null);t["default"]=k.exports},"2d52":function(e,t,l){},"333d":function(e,t,l){"use strict";l("5e18");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pagination-container",class:{hidden:e.hidden},style:{"text-align":e.align}},[t("el-pagination",e._b({attrs:{small:e.small,background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[];l("1d23a");Math.easeInOutQuad=function(e,t,l,i){return e/=i/2,e<1?l/2*e*e+t:(e--,-l/2*(e*(e-2)-1)+t)};var s=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(e,t,l){var i=n(),a=e-i,r=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=r;var n=Math.easeInOutQuad(c,i,a,t);o(n),c