From acae916e3f4043baa6676e5093d936d2870f1ac8 Mon Sep 17 00:00:00 2001 From: jianghanbo Date: Fri, 9 Aug 2024 15:21:06 +0800 Subject: [PATCH] =?UTF-8?q?QA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/admin/index.vue | 4 +-- admin/src/views/onlines/online.vue | 4 +-- admin/vue.config.js | 2 +- .../app/admin/controller/OrderController.php | 12 ++++++--- service/app/admin/controller/QaController.php | 25 ++++++++++++++----- .../app/admin/controller/UploadController.php | 2 +- service/public/index.html | 2 +- .../static/css/chunk-356410ff.e98d9f41.css | 1 - .../static/css/chunk-67a00d32.38862a7b.css | 1 - .../static/css/chunk-6bb75a62.2c932a1f.css | 1 + .../static/css/chunk-7ebb7cb9.142210f6.css | 1 + .../static/css/chunk-cbb3f856.846e4131.css | 1 + .../static/css/chunk-d8b473a4.c5163548.css | 1 - .../js/{app.d6e9eb69.js => app.656c529f.js} | 2 +- ...1bf1fe2e.js => chunk-2681d490.d2ff8da3.js} | 2 +- .../static/js/chunk-356410ff.8551f95b.js | 1 - .../static/js/chunk-67a00d32.d45ca4c1.js | 1 - .../static/js/chunk-6bb75a62.9d492ac2.js | 1 + .../static/js/chunk-7ebb7cb9.563da4f2.js | 1 + .../static/js/chunk-cbb3f856.c4ae2d46.js | 1 + .../static/js/chunk-d8b473a4.4ab283a7.js | 1 - 21 files changed, 42 insertions(+), 25 deletions(-) delete mode 100644 service/public/static/css/chunk-356410ff.e98d9f41.css delete mode 100644 service/public/static/css/chunk-67a00d32.38862a7b.css create mode 100644 service/public/static/css/chunk-6bb75a62.2c932a1f.css create mode 100644 service/public/static/css/chunk-7ebb7cb9.142210f6.css create mode 100644 service/public/static/css/chunk-cbb3f856.846e4131.css delete mode 100644 service/public/static/css/chunk-d8b473a4.c5163548.css rename service/public/static/js/{app.d6e9eb69.js => app.656c529f.js} (99%) rename service/public/static/js/{chunk-2681d490.1bf1fe2e.js => chunk-2681d490.d2ff8da3.js} (98%) delete mode 100644 service/public/static/js/chunk-356410ff.8551f95b.js delete mode 100644 service/public/static/js/chunk-67a00d32.d45ca4c1.js create mode 100644 service/public/static/js/chunk-6bb75a62.9d492ac2.js create mode 100644 service/public/static/js/chunk-7ebb7cb9.563da4f2.js create mode 100644 service/public/static/js/chunk-cbb3f856.c4ae2d46.js delete mode 100644 service/public/static/js/chunk-d8b473a4.4ab283a7.js diff --git a/admin/src/views/admin/index.vue b/admin/src/views/admin/index.vue index c720e618..c1fb4fc5 100644 --- a/admin/src/views/admin/index.vue +++ b/admin/src/views/admin/index.vue @@ -34,8 +34,8 @@ diff --git a/admin/src/views/onlines/online.vue b/admin/src/views/onlines/online.vue index b8b53376..00352828 100644 --- a/admin/src/views/onlines/online.vue +++ b/admin/src/views/onlines/online.vue @@ -42,8 +42,8 @@ diff --git a/admin/vue.config.js b/admin/vue.config.js index 4ee47e34..c94c6836 100644 --- a/admin/vue.config.js +++ b/admin/vue.config.js @@ -39,7 +39,7 @@ module.exports = { proxy: { '/dev-api': { // 接口地址 以 api开头的都走下面的配置 // target: 'https://www.szjinao.cn', // 代理目标地址为后端服务器地址 127.0.0.1 192.168.1.2 - target: 'http://192.168.1.4:8787', // 代理目标地址为后端服务器地址 127.0.0.1 192.168.1.2 + target: 'http://0.0.0.0:8787', // 代理目标地址为后端服务器地址 127.0.0.1 192.168.1.2 ws: true, // 是否支持 websocket 请求 支持 changeOrigin: true, // 是否启用跨域 pathRewrite: { diff --git a/service/app/admin/controller/OrderController.php b/service/app/admin/controller/OrderController.php index de1112ea..791eb258 100644 --- a/service/app/admin/controller/OrderController.php +++ b/service/app/admin/controller/OrderController.php @@ -125,20 +125,24 @@ class OrderController extends base $list = $orders->visible(['admin' => ['username','name','avatar']])->hidden(['check_sn'])->append(['order_status_name','status_name','os_name']); + $localMobiles = []; foreach ($list as &$value) { $mobileInfo = $value['mobileInfo'] ?? ''; if (empty($value['mobileInfo'])) { try { - $mobileInfo = (new AliCloudApiService())->getMobileArea($value['mobile']); + if (isset($localMobiles[$value['mobile']])) { + // 防止重复查询第三方接口 + $mobileInfo = $localMobiles[$value['mobile']]; + } else { + $mobileInfo = (new AliCloudApiService())->getMobileArea($value['mobile']); + $localMobiles[$value['mobile']] = $mobileInfo; + } } catch (\Exception $exception) { $mobileInfo = []; Log::info('查询手机归属地失败:' . $exception->getMessage()); } } $value['mobileInfo'] = $mobileInfo; -// if (!empty($mobileInfo)) { -// $value['mobile'] = $value['mobile'] . sprintf('(%s-%s)', $mobileInfo['area'], $mobileInfo['originalIsp']); -// } } $_oss = []; diff --git a/service/app/admin/controller/QaController.php b/service/app/admin/controller/QaController.php index 881063a7..e0c2240a 100644 --- a/service/app/admin/controller/QaController.php +++ b/service/app/admin/controller/QaController.php @@ -38,6 +38,18 @@ class QaController extends base }]) ->paginate($limit); + $list = json_decode(json_encode($list), true); + if (isset($list['data']) && is_array($list['data'])) { + foreach ($list['data'] as &$item) { + if (isset($item['img_zip']) && !empty($item['img_zip'])) { + $item['img_zip'] = json_decode($item['img_zip'], true); + } + if (isset($item['trip_zip']) && !empty($item['trip_zip'])) { + $item['trip_zip'] = json_decode($item['trip_zip'], true); + } + } + } + return $this->success($list); } @@ -65,8 +77,8 @@ class QaController extends base $list = $list->paginate($request->get('limit',10))->toArray(); foreach ($list['data'] as &$item) { - $item['img_zip'] = $item['img_zip'] ? explode(',', $item['img_zip']) : []; - $item['trip_zip'] = $item['trip_zip'] ? explode(',', $item['trip_zip']) : []; + $item['img_zip'] = json_decode($item['img_zip'], true); + $item['trip_zip'] = json_decode($item['trip_zip'], true); } return $this->success($list); @@ -99,6 +111,7 @@ class QaController extends base $qaQuestion = $post['qaQuestions'] ?? null; unset($post['qaQuestions']); + $post['create_time'] = time(); try { Db::transaction(function () use ($post,$qaQuestion){ @@ -130,11 +143,11 @@ class QaController extends base unset($post['update_time']); unset($post['qaQuestions']); - if ($post['trip_zip']) { - $post['trip_zip'] = implode(',', $post['trip_zip']); + if (isset($post['trip_zip']) && $post['trip_zip']) { + $post['trip_zip'] = json_encode($post['trip_zip']); } - if ($post['img_zip']) { - $post['img_zip'] = implode(',', $post['img_zip']); + if (isset($post['img_zip']) && $post['img_zip']) { + $post['img_zip'] = json_encode($post['img_zip']); } try { diff --git a/service/app/admin/controller/UploadController.php b/service/app/admin/controller/UploadController.php index 7f30b653..0b54e2a1 100644 --- a/service/app/admin/controller/UploadController.php +++ b/service/app/admin/controller/UploadController.php @@ -19,7 +19,7 @@ class UploadController extends base public function index(Request $request) { $file = $request->file("file"); - + if (!$file->isValid()) { return $this->error(400, 'upload fail, code=' . $file->getUploadErrorCode()); } diff --git a/service/public/index.html b/service/public/index.html index e2fb3fd1..bbac5b39 100644 --- a/service/public/index.html +++ b/service/public/index.html @@ -1 +1 @@ -Vue Element Admin
\ No newline at end of file +Vue Element Admin
\ No newline at end of file diff --git a/service/public/static/css/chunk-356410ff.e98d9f41.css b/service/public/static/css/chunk-356410ff.e98d9f41.css deleted file mode 100644 index ddb2b779..00000000 --- a/service/public/static/css/chunk-356410ff.e98d9f41.css +++ /dev/null @@ -1 +0,0 @@ -.app-container[data-v-5a6cf2fa]{position:relative;padding-bottom:60px}.el-table[data-v-5a6cf2fa],.filter-container[data-v-5a6cf2fa]{padding-bottom:52px}.search[data-v-5a6cf2fa]{margin-left:10px} \ No newline at end of file diff --git a/service/public/static/css/chunk-67a00d32.38862a7b.css b/service/public/static/css/chunk-67a00d32.38862a7b.css deleted file mode 100644 index 417f7b67..00000000 --- a/service/public/static/css/chunk-67a00d32.38862a7b.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:PingFang;src:url(../../static/fonts/PingFang\ SC.212ada59.ttf);font-weight:400;font-style:normal}body[data-v-d572e954]{font-family:PingFang!important}.infinite-list[data-v-d572e954]{list-style-type:none;height:calc(100vh - 154px);padding:0;margin:0}.desc_container+.desc_container[data-v-d572e954]{margin-top:10px;padding-top:10px}.desc_container .desc_title[data-v-d572e954]{font-size:18px;font-weight:500;color:#333;line-height:25px;margin-bottom:10px}.desc_container .desc_content[data-v-d572e954]{font-size:14px;font-weight:300}.problem .problem_form[data-v-d572e954]{margin-top:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.problem .problem_container[data-v-d572e954],.problem .problem_form[data-v-d572e954]{display:-webkit-box;display:-ms-flexbox;display:flex}.problem .problem_container .problem_left[data-v-d572e954]{font-family:PingFang,sans-serif;font-weight:300;width:18%;background:#fff;padding:0 20px;border-right:2px solid #46a6ff;height:calc(100vh - 154px)}.problem .problem_container .problem_left .btn[data-v-d572e954]{color:#fff;padding:10px 20px;cursor:pointer;text-align:center;background:#46a6ff;border-radius:10px}.problem .problem_container .problem_left .btn+.btn[data-v-d572e954]{margin-top:10px}.problem .problem_container .problem_right[data-v-d572e954]{width:100%;background:#fff;padding:0 20px}.problem .problem_container .problem_right .problem_right_container+.problem_right_container[data-v-d572e954]{margin-top:20px}.problem .problem_container .problem_right .problem_right_container .title[data-v-d572e954]{font-size:20px;font-weight:600;margin-bottom:10px;color:#46a6ff}.problem .problem_container .problem_right .problem_right_container .title[data-v-d572e954]>:first-child{margin-right:40px}.problem .problem_container .problem_right .problem_right_container .desc[data-v-d572e954]{font-size:14px;color:#666;line-height:24px}.problem .problem_container .problem_right .problem_right_container .desc .copy-button[data-v-d572e954]{margin-left:300px}.image-list-horizontal[data-v-d572e954]{display:-webkit-box;display:-ms-flexbox;display:flex;overflow-x:auto;white-space:nowrap;padding:10px 0}.image-card[data-v-d572e954]{display:inline-block;width:150px;margin-right:10px}.image-preview[data-v-d572e954]{width:100%;height:100px;-o-object-fit:cover;object-fit:cover}.image-preview-full[data-v-d572e954]{width:100%;max-height:600px}.image-footer[data-v-d572e954]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.file-list-horizontal[data-v-d572e954]{display:-webkit-box;display:-ms-flexbox;display:flex;overflow-x:auto;white-space:nowrap;padding:10px 0}.file-card[data-v-d572e954]{display:inline-block;width:400px;margin-right:10px}.file-info[data-v-d572e954]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden}.file-icon[data-v-d572e954]{font-size:24px;margin-right:10px}.file-name[data-v-d572e954]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 40px)}.file-footer[data-v-d572e954]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end} \ No newline at end of file diff --git a/service/public/static/css/chunk-6bb75a62.2c932a1f.css b/service/public/static/css/chunk-6bb75a62.2c932a1f.css new file mode 100644 index 00000000..cb1af42d --- /dev/null +++ b/service/public/static/css/chunk-6bb75a62.2c932a1f.css @@ -0,0 +1 @@ +@font-face{font-family:PingFang;src:url(../../static/fonts/PingFang\ SC.212ada59.ttf);font-weight:400;font-style:normal}body[data-v-481eb5dc]{font-family:PingFang!important}.infinite-list[data-v-481eb5dc]{list-style-type:none;height:calc(100vh - 154px);padding:0;margin:0}.desc_container+.desc_container[data-v-481eb5dc]{margin-top:10px;padding-top:10px}.desc_container .desc_title[data-v-481eb5dc]{font-size:18px;font-weight:500;color:#333;line-height:25px;margin-bottom:10px}.desc_container .desc_content[data-v-481eb5dc]{font-size:14px;font-weight:300}.problem .problem_form[data-v-481eb5dc]{margin-top:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.problem .problem_container[data-v-481eb5dc],.problem .problem_form[data-v-481eb5dc]{display:-webkit-box;display:-ms-flexbox;display:flex}.problem .problem_container .problem_left[data-v-481eb5dc]{font-family:PingFang,sans-serif;font-weight:300;width:18%;background:#fff;padding:0 20px;border-right:2px solid #46a6ff;height:calc(100vh - 154px)}.problem .problem_container .problem_left .btn[data-v-481eb5dc]{color:#fff;padding:10px 20px;cursor:pointer;text-align:center;background:#46a6ff;border-radius:10px}.problem .problem_container .problem_left .btn+.btn[data-v-481eb5dc]{margin-top:10px}.problem .problem_container .problem_right[data-v-481eb5dc]{width:100%;background:#fff;padding:0 20px}.problem .problem_container .problem_right .problem_right_container+.problem_right_container[data-v-481eb5dc]{margin-top:20px}.problem .problem_container .problem_right .problem_right_container .title[data-v-481eb5dc]{font-size:20px;font-weight:600;margin-bottom:10px;color:#46a6ff}.problem .problem_container .problem_right .problem_right_container .title[data-v-481eb5dc]>:first-child{margin-right:40px}.problem .problem_container .problem_right .problem_right_container .desc[data-v-481eb5dc]{font-size:14px;color:#666;line-height:24px}.problem .problem_container .problem_right .problem_right_container .desc .copy-button[data-v-481eb5dc]{margin-left:300px}.image-list-horizontal[data-v-481eb5dc]{display:-webkit-box;display:-ms-flexbox;display:flex;overflow-x:auto;white-space:nowrap;padding:10px 0}.image-card[data-v-481eb5dc]{display:inline-block;width:150px;margin-right:10px}.image-preview[data-v-481eb5dc]{width:100%;height:100px;-o-object-fit:cover;object-fit:cover}.image-preview-full[data-v-481eb5dc]{width:100%;max-height:600px}.image-footer[data-v-481eb5dc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.file-list-horizontal[data-v-481eb5dc]{display:-webkit-box;display:-ms-flexbox;display:flex;overflow-x:auto;white-space:nowrap;padding:10px 0}.file-card[data-v-481eb5dc]{display:inline-block;width:400px;margin-right:10px}.file-info[data-v-481eb5dc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden}.file-icon[data-v-481eb5dc]{font-size:24px;margin-right:10px}.file-name[data-v-481eb5dc]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 40px)}.file-footer[data-v-481eb5dc]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end} \ No newline at end of file diff --git a/service/public/static/css/chunk-7ebb7cb9.142210f6.css b/service/public/static/css/chunk-7ebb7cb9.142210f6.css new file mode 100644 index 00000000..f9d685f7 --- /dev/null +++ b/service/public/static/css/chunk-7ebb7cb9.142210f6.css @@ -0,0 +1 @@ +.app-container[data-v-7c77c70f]{position:relative;padding-bottom:60px}.el-table[data-v-7c77c70f],.filter-container[data-v-7c77c70f]{padding-bottom:52px}.search[data-v-7c77c70f]{margin-left:10px} \ No newline at end of file diff --git a/service/public/static/css/chunk-cbb3f856.846e4131.css b/service/public/static/css/chunk-cbb3f856.846e4131.css new file mode 100644 index 00000000..5e3eeec0 --- /dev/null +++ b/service/public/static/css/chunk-cbb3f856.846e4131.css @@ -0,0 +1 @@ +.pagination-container[data-v-28fdfbeb]{padding:32px 16px;position:fixed;bottom:0;left:0;width:100%;background:#fff;padding:40px 280px;-webkit-box-shadow:0 -2px 10px rgba(0,0,0,.1);box-shadow:0 -2px 10px rgba(0,0,0,.1);z-index:100}.pagination-container.hidden[data-v-28fdfbeb]{display:none}.disable-layer[data-v-25113710]{width:100%;height:100%;background:#f5f7fa;position:absolute;top:0;left:0;z-index:99;opacity:.5}.scrollable-container[data-v-3b4f3a4e]{height:500px}[data-v-3b4f3a4e].el-scrollbar .el-scrollbar__wrap{overflow-x:hidden}.upload-list .wu-yu[data-v-3b4f3a4e],.upload-list[data-v-3b4f3a4e]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.upload-list .wu-yu[data-v-3b4f3a4e]{margin-bottom:10px;position:relative;width:110px;-ms-flex-line-pack:justify;align-content:space-between}.upload-list .wu-yu+.wu-yu[data-v-3b4f3a4e]{margin-left:5px}.upload-list .wu-yu[data-v-3b4f3a4e] .el-input{width:100px;margin:10px 0 10px 10px}.filter-items[data-v-3b4f3a4e]{position:fixed;left:70%;z-index:66}.img-box[data-v-3b4f3a4e]{position:relative;display:inline-block;width:100px;margin-bottom:10px;margin-left:10px}.img-box+.img-box[data-v-3b4f3a4e]{margin-left:10px}.img-box .desc[data-v-3b4f3a4e]{line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.avatar-uploader[data-v-3b4f3a4e] .el-upload{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.el-icon-plus[data-v-3b4f3a4e]{display:inline-block;margin-left:10px}.el-icon-folder[data-v-3b4f3a4e]{color:#409eff!important;font-size:100px}.close[data-v-3b4f3a4e]{position:absolute;top:-10px;right:-15px;font-size:18px;color:#409eff}.mistake-content[data-v-3b4f3a4e],.qa-desc[data-v-3b4f3a4e]{display:-webkit-box;display:-ms-flexbox;display:flex}.mistake-left[data-v-3b4f3a4e]{width:90%}.mistake-right[data-v-3b4f3a4e]{padding-left:20px;height:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-container[data-v-3b4f3a4e]{position:relative;padding-bottom:60px}.el-table[data-v-3b4f3a4e],.filter-container[data-v-3b4f3a4e]{padding-bottom:52px}.mistake-btn[data-v-3b4f3a4e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;margin-top:10px}.search[data-v-3b4f3a4e]{margin-left:10px}.avatar-uploader .el-upload[data-v-3b4f3a4e]{border:1px solid #131313;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-3b4f3a4e]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-3b4f3a4e]{border:1px solid #979797;border-radius:15px;font-size:28px;color:#8c939d;width:100px;height:100px;line-height:100px;text-align:center;position:relative} \ No newline at end of file diff --git a/service/public/static/css/chunk-d8b473a4.c5163548.css b/service/public/static/css/chunk-d8b473a4.c5163548.css deleted file mode 100644 index 596f1438..00000000 --- a/service/public/static/css/chunk-d8b473a4.c5163548.css +++ /dev/null @@ -1 +0,0 @@ -.pagination-container[data-v-28fdfbeb]{padding:32px 16px;position:fixed;bottom:0;left:0;width:100%;background:#fff;padding:40px 280px;-webkit-box-shadow:0 -2px 10px rgba(0,0,0,.1);box-shadow:0 -2px 10px rgba(0,0,0,.1);z-index:100}.pagination-container.hidden[data-v-28fdfbeb]{display:none}.disable-layer[data-v-25113710]{width:100%;height:100%;background:#f5f7fa;position:absolute;top:0;left:0;z-index:99;opacity:.5}.img-box[data-v-6b889b2e]{position:relative;display:inline-block;width:100px;margin-bottom:10px}.img-box+.img-box[data-v-6b889b2e]{margin-left:10px}.img-box .desc[data-v-6b889b2e]{line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.avatar-uploader[data-v-6b889b2e] .el-upload{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.el-icon-plus[data-v-6b889b2e]{display:inline-block;margin-left:10px}.el-icon-folder[data-v-6b889b2e]{color:#409eff!important;font-size:100px}.close[data-v-6b889b2e]{position:absolute;top:-10px;right:-8px;font-size:18px;color:#409eff}.mistake-content[data-v-6b889b2e],.qa-desc[data-v-6b889b2e]{display:-webkit-box;display:-ms-flexbox;display:flex}.mistake-left[data-v-6b889b2e]{width:90%}.mistake-right[data-v-6b889b2e]{padding-left:20px;height:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-container[data-v-6b889b2e]{position:relative;padding-bottom:60px}.el-table[data-v-6b889b2e],.filter-container[data-v-6b889b2e]{padding-bottom:52px}.mistake-btn[data-v-6b889b2e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;margin-top:10px}.search[data-v-6b889b2e]{margin-left:10px}.avatar-uploader .el-upload[data-v-6b889b2e]{border:1px solid #131313;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avatar-uploader .el-upload[data-v-6b889b2e]:hover{border-color:#409eff}.avatar-uploader-icon[data-v-6b889b2e]{border:1px solid #979797;border-radius:15px;font-size:28px;color:#8c939d;width:100px;height:100px;line-height:100px;text-align:center;position:relative} \ No newline at end of file diff --git a/service/public/static/js/app.d6e9eb69.js b/service/public/static/js/app.656c529f.js similarity index 99% rename from service/public/static/js/app.d6e9eb69.js rename to service/public/static/js/app.656c529f.js index 52e55df8..281d26cc 100644 --- a/service/public/static/js/app.d6e9eb69.js +++ b/service/public/static/js/app.656c529f.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0185":function(e,t,n){"use strict";n("a187")},"0781":function(e,t,n){"use strict";n.r(t);var a=n("24ab"),i=n.n(a),o=n("83d6"),c=n.n(o),s=c.a.showSettings,r=c.a.tagsView,l=c.a.fixedHeader,u=c.a.sidebarLogo,d={theme:i.a.theme,showSettings:s,tagsView:r,fixedHeader:l,sidebarLogo:u},h={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},m={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}};t["default"]={namespaced:!0,state:d,mutations:h,actions:m}},"096e":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"0b95":function(e,t,n){"use strict";n("75f1")},"0f9a":function(e,t,n){"use strict";n.r(t);var a=n("c7eb"),i=n("1da1"),o=(n("b0c0"),n("d3b7"),n("498a"),n("b775"));function c(e){return Object(o["a"])({url:"/admin/login",method:"post",data:e})}function s(e){return Object(o["a"])({url:"/admin/index/info",method:"get",params:{token:e}})}function r(){return Object(o["a"])({url:"/admin/login/logout",method:"post"})}var l=n("5f87"),u=n("a18c"),d={token:Object(l["a"])(),name:"",avatar:"",is_anchor:0,introduction:"",roles:[],oss:[]},h={SET_TOKEN:function(e,t){e.token=t},SET_INTRODUCTION:function(e,t){e.introduction=t},SET_NAME:function(e,t){e.name=t},SET_AVATAR:function(e,t){e.avatar=t},SET_ANCHOR:function(e,t){e.is_anchor=t},SET_ROLES:function(e,t){e.roles=t},SET_OSS:function(e,t){e.oss=t}},m={login:function(e,t){var n=e.commit,a=t.username,i=t.password;return new Promise((function(e,t){c({username:a.trim(),password:i}).then((function(t){var a=t.data;n("SET_TOKEN",a.token),Object(l["c"])(a.token),e()})).catch((function(e){t(e)}))}))},getInfo:function(e){var t=e.commit,n=e.state;return new Promise((function(e,a){s(n.token).then((function(n){var i=n.data;i||a("Verification failed, please Login again.");var o=i.roles,c=i.name,s=i.avatar,r=i.is_anchor,l=i.introduction,u=i.oss;(!o||o.length<=0)&&a("getInfo: roles must be a non-null array!"),t("SET_ROLES",o),t("SET_NAME",c),t("SET_AVATAR",s),t("SET_ANCHOR",r),t("SET_INTRODUCTION",l),t("SET_OSS",u),e(i)})).catch((function(e){a(e)}))}))},logout:function(e){var t=e.commit,n=e.state,a=e.dispatch;return new Promise((function(e,i){r(n.token).then((function(){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(l["b"])(),Object(u["d"])(),a("tagsView/delAllViews",null,{root:!0}),e()})).catch((function(e){i(e)}))}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(l["b"])(),e()}))},changeRoles:function(e,t){return Object(i["a"])(Object(a["a"])().mark((function n(){var i,o,c,s,r,d;return Object(a["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e.commit,o=e.dispatch,c=t+"-token",i("SET_TOKEN",c),Object(l["c"])(c),n.next=6,o("getInfo");case 6:return s=n.sent,r=s.roles,Object(u["d"])(),n.next=11,o("permission/generateRoutes",r,{root:!0});case 11:d=n.sent,u["c"].addRoutes(d),o("tagsView/delAllViews",null,{root:!0});case 14:case"end":return n.stop()}}),n)})))()}};t["default"]={namespaced:!0,state:d,mutations:h,actions:m}},"10f2":function(e,t,n){},"12a5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},1430:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},1779:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"17df":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"18f0":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"24ab":function(e,t,n){e.exports={theme:"#1890ff"}},2580:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"279e":function(e,t,n){},2926:function(e,t,n){"use strict";n("e298")},"2a2d":function(e,t,n){n("4de4"),n("b0c0"),n("d3b7");for(var a=n("96eb"),i=[],o=100,c=0;c'});c.a.add(s);t["default"]=s},"2abb":function(e,t,n){"use strict";n("b747")},"2b29":function(e,t,n){"use strict";n("f6c3")},"2f11":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},3046:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"30c3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"31c2":function(e,t,n){"use strict";n.r(t),n.d(t,"filterAsyncRoutes",(function(){return c}));var a=n("5530"),i=(n("99af"),n("caad"),n("d3b7"),n("2532"),n("159b"),n("a18c"));function o(e,t){return!t.meta||!t.meta.roles||e.some((function(e){return t.meta.roles.includes(e)}))}function c(e,t){var n=[];return e.forEach((function(e){var i=Object(a["a"])({},e);o(t,i)&&(i.children&&(i.children=c(i.children,t)),n.push(i))})),n}var s={routes:[],addRoutes:[]},r={SET_ROUTES:function(e,t){e.addRoutes=t,e.routes=i["b"].concat(t)}},l={generateRoutes:function(e,t){var n=e.commit;return new Promise((function(e){var a;a=t.includes("admin")?i["a"]||[]:c(i["a"],t),n("SET_ROUTES",a),e(a)}))}};t["default"]={namespaced:!0,state:s,mutations:r,actions:l}},3289:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"331a":function(e,t){var n={admin:{token:"admin-token"},editor:{token:"editor-token"}},a={"admin-token":{roles:["admin"],introduction:"I am a super administrator",avatar:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",name:"Super Admin"},"editor-token":{roles:["editor"],introduction:"I am an editor",avatar:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",name:"Normal Editor"}};e.exports=[{url:"/vue-element-admin/user/login",type:"post",response:function(e){var t=e.body.username,a=n[t];return a?{code:2e4,data:a}:{code:60204,message:"Account and password are incorrect."}}},{url:"/vue-element-admin/user/info.*",type:"get",response:function(e){var t=e.query.token,n=a[t];return n?{code:2e4,data:n}:{code:50008,message:"Login failed, unable to get user details."}}},{url:"/vue-element-admin/user/logout",type:"post",response:function(e){return{code:2e4,data:"success"}}}]},"3a82":function(e,t,n){"use strict";n("10f2")},"3dde":function(e,t,n){"use strict";n("d450")},4360:function(e,t,n){"use strict";n("13d5"),n("d3b7"),n("ac1f"),n("5319"),n("ddb0");var a=n("2b0e"),i=n("2f62"),o=(n("b0c0"),{sidebar:function(e){return e.app.sidebar},size:function(e){return e.app.size},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},username:function(e){return e.user.username},oss:function(e){return e.user.oss},is_anchor:function(e){return e.user.is_anchor},introduction:function(e){return e.user.introduction},roles:function(e){return e.user.roles},permission_routes:function(e){return e.permission.routes},errorLogs:function(e){return e.errorLog.logs}}),c=o;a["default"].use(i["a"]);var s=n("c653"),r=s.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),a=s(t);return e[n]=a.default,e}),{}),l=new i["a"].Store({modules:r,getters:c});t["a"]=l},"47f1":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"47ff":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"48da":function(e,t,n){"use strict";n("daba")},"4b0f":function(e,t,n){var a=n("6374").default,i=n("448a").default;n("99af"),n("b64b"),n("4d63"),n("ac1f"),n("2c3e"),n("25f0");var o=n("96eb"),c=n("8a60"),s=c.param2Obj,r=n("331a"),l=n("f3d6"),u=n("a109"),d=n("2a2d"),h=[].concat(i(r),i(l),i(u),i(d));function m(){function e(e){return function(t){var n=null;if(e instanceof Function){var a=t.body,i=t.type,c=t.url;n=e({method:i,body:JSON.parse(a),query:s(c)})}else n=e;return o.mock(n)}}o.XHR.prototype.proxy_send=o.XHR.prototype.send,o.XHR.prototype.send=function(){this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.proxy_send.apply(this,arguments)};var t,n=a(h);try{for(n.s();!(t=n.n()).done;){var i=t.value;o.mock(new RegExp(i.url),i.type||"get",e(i.response))}}catch(c){n.e(c)}finally{n.f()}}e.exports={mocks:h,mockXHR:m}},"4d27":function(e,t,n){"use strict";n("bae7")},"4d3e":function(e,t,n){"use strict";n("a22e")},"4d49":function(e,t,n){"use strict";n.r(t);n("a434");var a={logs:[]},i={ADD_ERROR_LOG:function(e,t){e.logs.push(t)},CLEAR_ERROR_LOG:function(e){e.logs.splice(0)}},o={addErrorLog:function(e,t){var n=e.commit;n("ADD_ERROR_LOG",t)},clearErrorLog:function(e){var t=e.commit;t("CLEAR_ERROR_LOG")}};t["default"]={namespaced:!0,state:a,mutations:i,actions:o}},"4df5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});c.a.add(s);t["default"]=s},"51ff":function(e,t,n){var a={"./404.svg":"a14a","./bug.svg":"1779","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./user.svg":"b3b5","./wechat.svg":"80da","./zip.svg":"8aa6"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=o,e.exports=i,i.id="51ff"},5415:function(e,t,n){},"56d6":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"56d7":function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"parseTime",(function(){return Q["d"]})),n.d(a,"formatTime",(function(){return Q["c"]})),n.d(a,"timeAgo",(function(){return J})),n.d(a,"numberFormatter",(function(){return K})),n.d(a,"toThousandFilter",(function(){return X})),n.d(a,"uppercaseFirst",(function(){return Z}));n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("4de4"),n("b64b"),n("d3b7"),n("159b");var i=n("2b0e"),o=n("a78e"),c=n.n(o),s=(n("f5df1"),n("5c96")),r=n.n(s),l=(n("24ab"),n("b20f"),n("caad"),n("2532"),n("4360"));function u(e,t){var n=t.value,a=l["a"].getters&&l["a"].getters.roles;if(!(n&&n instanceof Array))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");if(n.length>0){var i=n,o=a.some((function(e){return i.includes(e)}));o||e.parentNode&&e.parentNode.removeChild(e)}}var d={inserted:function(e,t){u(e,t)},update:function(e,t){u(e,t)}},h=function(e){e.directive("permission",d)};window.Vue&&(window["permission"]=d,Vue.use(h)),d.install=h;var m=d,f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},p=[],v=(n("b0c0"),n("99af"),function e(t){var n=t.container,a=void 0===n?document.body:n,i=t.width,o=void 0===i?"110px":i,c=t.height,s=void 0===c?"60px":c,r=t.textAlign,l=void 0===r?"center":r,u=t.textBaseline,d=void 0===u?"middle":u,h=t.font,m=void 0===h?"16px Microsoft Yahei":h,f=t.fillStyle,p=void 0===f?"rgba(184, 184, 184, 0.2)":f,v=t.content,g=void 0===v?"":v,w=t.rotate,b=void 0===w?-30:w,x=t.zIndex,y=void 0===x?1e4:x,k=document.createElement("canvas");k.setAttribute("width",o),k.setAttribute("height",s);var V=k.getContext("2d");V.textAlign=l,V.textBaseline=d,V.font=m,V.fillStyle=p,V.rotate(Math.PI/180*b),V.fillText(g,parseFloat(o)/2,parseFloat(s));var C=k.toDataURL("image/png"),_=document.querySelector(".__wm"),S=_||document.createElement("div"),z="\n position: fixed;\n top: 0;\n left: -20%;\n bottom: 0;\n right: 0;\n width: 260%;\n height: 100%;\n z-index: ".concat(y,";\n pointer-events: none;\n background: url('").concat(C,"') left top repeat;\n ");S.setAttribute("style",z),S.classList.add("__wm"),_||(a.style.position="relative",a.insertBefore(S,a.firstChild));var E=window,L=E.MutationObserver;if(L){var O=new L((function(){var t=document.querySelector(".__wm");(t&&t.getAttribute("style")!==z||!t)&&(O.disconnect(),O=new L((function(){})),e({container:document.getElementById("app"),width:"110px",height:"60px",textAlign:"center",textBaseline:"middle",font:"16px Microsoft Yahei",fillStyle:"rgba(184, 184, 184, 0.2 )",content:g,rotate:-30,zIndex:1e4}))}));O.observe(a,{attributes:!0,subtree:!0,childList:!0})}}),g=v,w={watch:{"$store.getters.name":"updateWatermark"},created:function(){this.addDefaultWatermark()},mounted:function(){this.updateWatermark()},methods:{addDefaultWatermark:function(){g({container:document.body,content:"金澳"})},updateWatermark:function(){var e=this.$store.getters.name;g({container:document.body,content:e?"".concat(e):"金澳"})}}},b=w,x=(n("2926"),n("2877")),y=Object(x["a"])(b,f,p,!1,null,"0e0841c6",null),k=y.exports,V=n("a18c"),C=n("b775"),_=(n("d81d"),n("ddb0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isExternal?n("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):n("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[n("use",{attrs:{"xlink:href":e.iconName}})])}),S=[],z=n("61f7"),E={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(z["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},L=E,O=(n("2b29"),Object(x["a"])(L,_,S,!1,null,"f9f7fefc",null)),T=O.exports;i["default"].component("svg-icon",T);var M=n("51ff"),H=function(e){return e.keys().map(e)};H(M);var $=n("c7eb"),B=n("5530"),D=n("1da1"),A=n("323e"),j=n.n(A),P=(n("a5d8"),n("5f87")),I=n("83d6"),R=n.n(I),W=R.a.title||"Vue Element Admin";function N(e){return e?"".concat(e," - ").concat(W):"".concat(W)}j.a.configure({showSpinner:!1});var q=["/login","/auth-redirect","/home","/line_on_sale"];V["c"].beforeEach(function(){var e=Object(D["a"])(Object($["a"])().mark((function e(t,n,a){var i,o,c,r,u;return Object($["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(j.a.start(),document.title=N(t.meta.title),i=Object(P["a"])(),!i){e.next=35;break}if("/login"!==t.path){e.next=9;break}a({path:"/"}),j.a.done(),e.next=33;break;case 9:if(o=l["a"].getters.roles&&l["a"].getters.roles.length>0,!o){e.next=14;break}a(),e.next=33;break;case 14:return e.prev=14,e.next=17,l["a"].dispatch("user/getInfo");case 17:return c=e.sent,r=c.roles,e.next=21,l["a"].dispatch("permission/generateRoutes",r);case 21:u=e.sent,V["c"].addRoutes(u),a(Object(B["a"])(Object(B["a"])({},t),{},{replace:!0})),e.next=33;break;case 26:return e.prev=26,e.t0=e["catch"](14),e.next=30,l["a"].dispatch("user/resetToken");case 30:s["Message"].error(e.t0||"Has Error"),a("/home?redirect=".concat(t.path)),j.a.done();case 33:e.next=36;break;case 35:-1!==q.indexOf(t.path)?a():(a("/home?redirect=".concat(t.path)),j.a.done());case 36:case"end":return e.stop()}}),e,null,[[14,26]])})));return function(t,n,a){return e.apply(this,arguments)}}()),V["c"].afterEach((function(){j.a.done()}));var U=R.a.errorLog;function F(){var e="production";return Object(z["c"])(U)?e===U:!!Object(z["a"])(U)&&U.includes(e)}F()&&(i["default"].config.errorHandler=function(e,t,n,a){i["default"].nextTick((function(){l["a"].dispatch("errorLog/addErrorLog",{err:e,vm:t,info:n,url:window.location.href}),console.error(e,n)}))});n("fb6a"),n("a9e3"),n("b680"),n("ac1f"),n("25f0"),n("5319");var Q=n("ed08");function G(e,t){return 1===e?e+t:e+t+"s"}function J(e){var t=Date.now()/1e3-Number(e);return t<3600?G(~~(t/60)," minute"):t<86400?G(~~(t/3600)," hour"):G(~~(t/86400)," day")}function K(e,t){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],a=0;a=n[a].value)return(e/n[a].value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[a].symbol;return e.toString()}function X(e){return(+e||0).toString().replace(/^-?\d+/g,(function(e){return e.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function Z(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Y=n("4b0f"),ee=Y.mockXHR;ee(),i["default"].use(r.a,{size:c.a.get("size")||"medium"}),i["default"].use(m),Object.keys(a).forEach((function(e){i["default"].filter(e,a[e])})),i["default"].config.productionTip=!1,i["default"].prototype.$axios=C["a"],i["default"].use(g);t["default"]=new i["default"]({el:"#app",router:V["c"],store:l["a"],render:function(e){return e(k)}})},"5a3d":function(e,t,n){},"5efb":function(e,t,n){},"5f87":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return r}));var a=n("a78e"),i=n.n(a),o="AdminToken";function c(){return i.a.get(o)}function s(e){return i.a.set(o,e)}function r(){return i.a.remove(o)}},"61f7":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return c}));n("d3b7"),n("ac1f"),n("00b4"),n("25f0");function a(e){return/^(https?:|mailto:|tel:)/.test(e)}function i(e){return e.length>=2}function o(e){return"string"===typeof e||e instanceof String}function c(e){return"undefined"===typeof Array.isArray?"[object Array]"===Object.prototype.toString.call(e):Array.isArray(e)}},6599:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},6683:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"6e46":function(e,t,n){"use strict";n("5a3d")},"6f1a":function(e,t,n){"use strict";n("5415")},"708a":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},7509:function(e,t,n){"use strict";n.r(t);var a=n("2909"),i=n("3835"),o=n("b85c"),c=(n("4de4"),n("caad"),n("fb6a"),n("a434"),n("b0c0"),n("d3b7"),n("2532"),n("ddb0"),{visitedViews:[],cachedViews:[]}),s={ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var n,a=Object(o["a"])(e.visitedViews.entries());try{for(a.s();!(n=a.n()).done;){var c=Object(i["a"])(n.value,2),s=c[0],r=c[1];if(r.path===t.path){e.visitedViews.splice(s,1);break}}}catch(l){a.e(l)}finally{a.f()}},DEL_CACHED_VIEW:function(e,t){var n=e.cachedViews.indexOf(t.name);n>-1&&e.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var n=e.cachedViews.indexOf(t.name);e.cachedViews=n>-1?e.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var n,a=Object(o["a"])(e.visitedViews);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i.path===t.path){i=Object.assign(i,t);break}}}catch(c){a.e(c)}finally{a.f()}}},r={addView:function(e,t){var n=e.dispatch;n("addVisitedView",t),n("addCachedView",t)},addVisitedView:function(e,t){var n=e.commit;n("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var n=e.commit;n("ADD_CACHED_VIEW",t)},delView:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delVisitedView",t),n("delCachedView",t),e({visitedViews:Object(a["a"])(i.visitedViews),cachedViews:Object(a["a"])(i.cachedViews)})}))},delVisitedView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_VISITED_VIEW",t),e(Object(a["a"])(i.visitedViews))}))},delCachedView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_CACHED_VIEW",t),e(Object(a["a"])(i.cachedViews))}))},delOthersViews:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delOthersVisitedViews",t),n("delOthersCachedViews",t),e({visitedViews:Object(a["a"])(i.visitedViews),cachedViews:Object(a["a"])(i.cachedViews)})}))},delOthersVisitedViews:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_OTHERS_VISITED_VIEWS",t),e(Object(a["a"])(i.visitedViews))}))},delOthersCachedViews:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_OTHERS_CACHED_VIEWS",t),e(Object(a["a"])(i.cachedViews))}))},delAllViews:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delAllVisitedViews",t),n("delAllCachedViews",t),e({visitedViews:Object(a["a"])(i.visitedViews),cachedViews:Object(a["a"])(i.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(a["a"])(n.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(a["a"])(n.cachedViews))}))},updateVisitedView:function(e,t){var n=e.commit;n("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:c,mutations:s,actions:r}},"75f1":function(e,t,n){},"80da":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});c.a.add(s);t["default"]=s},"83d6":function(e,t){e.exports={title:"Vue Element Admin",showSettings:!0,tagsView:!0,fixedHeader:!1,sidebarLogo:!1,errorLog:"production"}},"85a8":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n("b775");function i(e){return Object(a["a"])({url:"/admin/qa/getQaList",method:"get",params:e})}function o(e){return Object(a["a"])({url:"/admin/qa/getQaCityList",method:"get"})}},8644:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"8a60":function(e,t,n){var a=n("7037").default;function i(e){var t=decodeURIComponent(e.split("?")[1]).replace(/\+/g," ");if(!t)return{};var n={},a=t.split("&");return a.forEach((function(e){var t=e.indexOf("=");if(-1!==t){var a=e.substring(0,t),i=e.substring(t+1,e.length);n[a]=i}})),n}function o(e){if(!e&&"object"!==a(e))throw new Error("error arguments","deepClone");var t=e.constructor===Array?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"===a(e[n])?t[n]=o(e[n]):t[n]=e[n]})),t}n("b64b"),n("d3b7"),n("ac1f"),n("5319"),n("159b"),e.exports={param2Obj:i,deepClone:o}},"8aa6":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"8dd0":function(e,t,n){"use strict";n("c459")},"8e8d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"8fb7":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"90fb":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"93cd":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"97bb":function(e,t,n){},9921:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"9bbf":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},"9d91":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},a109:function(e,t,n){n("4de4"),n("4e82"),n("d3b7");for(var a=n("96eb"),i=[],o=100,c='

I am testing data, I am testing data.

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

I am testing data, I am testing data.

',s="https://wpimg.wallstcn.com/e4558086-631c-425c-9430-56ffb46e70b3",r=0;r=l*(s-1)}));return{code:2e4,data:{total:d.length,items:h}}}},{url:"/vue-element-admin/article/detail",type:"get",response:function(e){for(var t=e.query.id,n=0,a=i;n'});c.a.add(s);t["default"]=s},a187:function(e,t,n){},a18c:function(e,t,n){"use strict";n.d(t,"b",(function(){return jt})),n.d(t,"a",(function(){return Pt})),n.d(t,"d",(function(){return Wt}));n("d3b7"),n("3ca3"),n("ddb0");var a,i,o=n("2b0e"),c=n("8c4f"),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView}},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar"),e.needTagsView?n("tags-view"):e._e()],1),n("app-main")],1)],1)},r=[],l=n("5530"),u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"rightPanel",staticClass:"rightPanel-container",class:{show:e.show}},[n("div",{staticClass:"rightPanel-background"}),n("div",{staticClass:"rightPanel"},[n("div",{staticClass:"handle-button",style:{top:e.buttonTop+"px","background-color":e.theme},on:{click:function(t){e.show=!e.show}}},[n("i",{class:e.show?"el-icon-close":"el-icon-setting"})]),n("div",{staticClass:"rightPanel-items"},[e._t("default")],2)])])},d=[],h=(n("a9e3"),n("ed08")),m={name:"RightPanel",props:{clickNotClose:{default:!1,type:Boolean},buttonTop:{default:250,type:Number}},data:function(){return{show:!1}},computed:{theme:function(){return this.$store.state.settings.theme}},watch:{show:function(e){e&&!this.clickNotClose&&this.addEventClick(),e?Object(h["a"])(document.body,"showRightPanel"):Object(h["e"])(document.body,"showRightPanel")}},mounted:function(){this.insertToBody()},beforeDestroy:function(){var e=this.$refs.rightPanel;e.remove()},methods:{addEventClick:function(){window.addEventListener("click",this.closeSidebar)},closeSidebar:function(e){var t=e.target.closest(".rightPanel");t||(this.show=!1,window.removeEventListener("click",this.closeSidebar))},insertToBody:function(){var e=this.$refs.rightPanel,t=document.querySelector("body");t.insertBefore(e,t.firstChild)}}},f=m,p=(n("3a82"),n("e4d6"),n("2877")),v=Object(p["a"])(f,u,d,!1,null,"7ce91d5a",null),g=v.exports,w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("keep-alive",{attrs:{include:e.cachedViews}},[n("router-view",{key:e.key})],1)],1)],1)},b=[],x={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},y=x,k=(n("3dde"),n("bf48"),Object(p["a"])(y,w,b,!1,null,"92459f82",null)),V=k.exports,C=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),n("div",{staticClass:"right-menu"},["mobile"!==e.device?void 0:e._e(),e.$store.getters.is_anchor?n("div",{staticClass:"right-menu-item hover-effect"},[n("el-button",{on:{click:function(t){e.dialogWorks=!0}}},[e._v("排班"+e._s(e.$store.getters.name))])],1):e._e(),n("div",{staticClass:"right-menu-item hover-effect"},[n("el-button",{style:{backgroundColor:e.workstatus?"#fff":"#409EFF",color:e.workstatus?"#979797":"#fff"},on:{click:e.startWorks}},[e._v(e._s(e.workstatus?"上班":"上班中"))]),n("el-button",{style:{backgroundColor:e.workstatus?"#409EFF":"#fff",color:e.workstatus?"#fff":"#979797"},on:{click:e.endWorks}},[e._v(e._s(e.workstatus?"下班中":"下班"))])],1),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[n("div",{staticClass:"avatar-wrapper"},[n("img",{staticClass:"user-avatar",attrs:{src:e.avatar+"?imageView2/1/w/80/h/80",alt:""}}),n("i",{staticClass:"el-icon-camera",staticStyle:{position:"absolute"},on:{click:function(t){t.stopPropagation(),e.showAvatar=!0}}}),n("i",{staticClass:"el-icon-caret-bottom"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("router-link",{attrs:{to:"/"}},[n("el-dropdown-item",[e._v("系统面板")])],1),n("div",{on:{click:function(t){e.dialogPWD=!0}}},[n("el-dropdown-item",[e._v("修改密码")])],1),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout.apply(null,arguments)}}},[n("span",{staticStyle:{display:"block"}},[e._v("退出登录")])])],1)],1)],2),n("el-dialog",{attrs:{title:"提示",visible:e.showAvatar,width:"30%",center:""},on:{"update:visible":function(t){e.showAvatar=t}}},[n("el-upload",{staticClass:"avatar-uploader",attrs:{action:"/admin/index/avatar","show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.imageUrl?n("img",{staticClass:"avatar",attrs:{src:e.imageUrl,alt:""}}):n("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),n("el-dialog",{attrs:{title:"修改密码",visible:e.dialogPWD},on:{"update:visible":function(t){e.dialogPWD=t}}},[n("el-form",{attrs:{rules:e.rules,model:e.form}},[n("el-form-item",{attrs:{label:"旧密码",prop:"oldpwd"}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.oldpwd,callback:function(t){e.$set(e.form,"oldpwd",t)},expression:"form.oldpwd"}})],1),n("el-form-item",{attrs:{label:"新密码",prop:"pwd"}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.pwd,callback:function(t){e.$set(e.form,"pwd",t)},expression:"form.pwd"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogPWD=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.pwd}},[e._v("确 定")])],1)],1),n("el-dialog",{attrs:{title:"排班",width:"90%",visible:e.dialogWorks},on:{"update:visible":function(t){e.dialogWorks=t}}},[n("el-form",{attrs:{rules:e.rules}},[n("el-row",{staticStyle:{"margin-bottom":"10px"}},[n("el-col",{attrs:{span:24}},[n("el-date-picker",{attrs:{placeholder:"选择开始时间","default-time":"07:00:00",type:"datetime"},model:{value:e.times[0],callback:function(t){e.$set(e.times,0,t)},expression:"times[0]"}})],1)],1),n("el-row",{staticStyle:{"margin-bottom":"10px"}},[n("el-col",{attrs:{span:24}},[n("el-date-picker",{attrs:{placeholder:"选择结束时间","default-time":"07:59:59",type:"datetime"},model:{value:e.times[1],callback:function(t){e.$set(e.times,1,t)},expression:"times[1]"}})],1)],1),n("el-row",{staticStyle:{"margin-bottom":"10px"}},[n("el-col",{attrs:{span:24}},[n("el-checkbox-group",{model:{value:e.os,callback:function(t){e.os=t},expression:"os"}},e._l(e.$store.getters.oss,(function(t,a,i){return n("el-checkbox",{key:i,attrs:{label:a}},[e._v(e._s(t))])})),1)],1)],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogWorks=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveWork}},[e._v("确 定")])],1)],1),n("el-drawer",{attrs:{"with-header":!1,visible:e.drawer,size:"800px",direction:"rtl",modal:!1},on:{"update:visible":function(t){e.drawer=t}}},[n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"drawer"},[e.QaShow?n("el-button",{attrs:{type:"success"},on:{click:function(t){e.drawer=!1}}},[e._v("关 闭")]):e._e(),e.QaShow?e._e():n("el-button",{attrs:{type:"success"},on:{click:function(t){e.QaShow=!0}}},[e._v("返 回")]),e.QaShow?n("div",{staticClass:"mod"},e._l(e.getQaCityList,(function(t){return n("el-button",{key:t.city_id,staticStyle:{width:"150px"},attrs:{size:"medium",type:"primary"},on:{click:function(n){return e.clickQaList(t)}}},[e._v(" "+e._s(t.city_name)+" ")])})),1):e._e(),e.QaInfo&&!e.QaShow?n("div",{staticClass:"ver"},e._l(e.getQaLists,(function(t){return n("div",[n("div",{staticClass:"ver_title"},[e._v(e._s(t.title))]),n("div",{staticClass:"ver_content"},[e._v(e._s(t.content))])])})),0):e._e()],1)])],1)},_=[],S=n("c7eb"),z=n("1da1"),E=(n("e9c4"),n("2b3d"),n("bf19"),n("9861"),n("2f62")),L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,a){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||a==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},O=[],T=(n("99af"),n("4de4"),n("b0c0"),n("2ca0"),n("498a"),n("bd11")),M=n.n(T),H={data:function(){return{levelList:null}},watch:{$route:function(e){e.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"Dashboard"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=M.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},$=H,B=(n("6e46"),Object(p["a"])($,L,O,!1,null,"5e0508f8",null)),D=B.exports,A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},j=[],P={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},I=P,R=(n("8dd0"),Object(p["a"])(I,A,j,!1,null,"49e15297",null)),W=R.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("svg-icon",{attrs:{"icon-class":e.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:e.click}})],1)},q=[],U=n("93bf"),F=n.n(U),Q={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!F.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;F.a.toggle()},change:function(){this.isFullscreen=F.a.isFullscreen},init:function(){F.a.enabled&&F.a.on("change",this.change)},destroy:function(){F.a.enabled&&F.a.off("change",this.change)}}},G=Q,J=(n("2abb"),Object(p["a"])(G,N,q,!1,null,"1d75d652",null)),K=J.exports,X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleSetSize}},[n("div",[n("svg-icon",{attrs:{"class-name":"size-icon","icon-class":"size"}})],1),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.sizeOptions,(function(t){return n("el-dropdown-item",{key:t.value,attrs:{disabled:e.size===t.value,command:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1)],1)},Z=[],Y=(n("ac1f"),n("5319"),{data:function(){return{sizeOptions:[{label:"Default",value:"default"},{label:"Medium",value:"medium"},{label:"Small",value:"small"},{label:"Mini",value:"mini"}]}},computed:{size:function(){return this.$store.getters.size}},methods:{handleSetSize:function(e){this.$ELEMENT.size=e,this.$store.dispatch("app/setSize",e),this.refreshView(),this.$message({message:"Switch Size Success",type:"success"})},refreshView:function(){var e=this;this.$store.dispatch("tagsView/delAllCachedViews",this.$route);var t=this.$route.fullPath;this.$nextTick((function(){e.$router.replace({path:"/redirect"+t})}))}}}),ee=Y,te=Object(p["a"])(ee,X,Z,!1,null,null,null),ne=te.exports,ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header-search",class:{show:e.show}},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(t){return t.stopPropagation(),e.click.apply(null,arguments)}}}),n("el-select",{ref:"headerSearchSelect",staticClass:"header-search-select",attrs:{"remote-method":e.querySearch,filterable:"","default-first-option":"",remote:"",placeholder:"Search"},on:{change:e.change},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}},e._l(e.options,(function(e){return n("el-option",{key:e.path,attrs:{value:e,label:e.title.join(" > ")}})})),1)],1)},ie=[],oe=n("2909"),ce=n("b85c"),se=(n("841c"),n("ffe7")),re=n.n(se),le=n("df7c"),ue=n.n(le),de={name:"HeaderSearch",data:function(){return{search:"",options:[],searchPool:[],show:!1,fuse:void 0}},computed:{routes:function(){return this.$store.getters.permission_routes}},watch:{routes:function(){this.searchPool=this.generateRoutes(this.routes)},searchPool:function(e){this.initFuse(e)},show:function(e){e?document.body.addEventListener("click",this.close):document.body.removeEventListener("click",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.routes)},methods:{click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(e){var t=this;this.$router.push(e.path),this.search="",this.options=[],this.$nextTick((function(){t.show=!1}))},initFuse:function(e){this.fuse=new re.a(e,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"title",weight:.7},{name:"path",weight:.3}]})},generateRoutes:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=[],o=Object(ce["a"])(e);try{for(o.s();!(t=o.n()).done;){var c=t.value;if(!c.hidden){var s={path:ue.a.resolve(n,c.path),title:Object(oe["a"])(a)};if(c.meta&&c.meta.title&&(s.title=[].concat(Object(oe["a"])(s.title),[c.meta.title]),"noRedirect"!==c.redirect&&i.push(s)),c.children){var r=this.generateRoutes(c.children,s.path,s.title);r.length>=1&&(i=[].concat(Object(oe["a"])(i),Object(oe["a"])(r)))}}}}catch(l){o.e(l)}finally{o.f()}return i},querySearch:function(e){this.options=""!==e?this.fuse.search(e):[]}}},he=de,me=(n("0185"),Object(p["a"])(he,ae,ie,!1,null,"7633dc5e",null)),fe=me.exports,pe=n("b719"),ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.permission_routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},ge=[],we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},be=[],xe={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"Vue Element Admin",logo:"https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png"}}},ye=xe,ke=(n("f060"),Object(p["a"])(ye,we,be,!1,null,"c28012ce",null)),Ve=ke.exports,Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},_e=[],Se=n("61f7"),ze=(n("caad"),n("2532"),{name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,a=n.icon,i=n.title,o=[];return a&&(a.includes("el-icon")?o.push(e("i",{class:[a,"sub-el-icon"]})):o.push(e("svg-icon",{attrs:{"icon-class":a}}))),i&&o.push(e("span",{slot:"title"},[i])),o}}),Ee=ze,Le=(n("f87e"),Object(p["a"])(Ee,a,i,!1,null,"18eeea00",null)),Oe=Le.exports,Te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},Me=[],He={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(Se["b"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},$e=He,Be=Object(p["a"])($e,Te,Me,!1,null,null,null),De=Be.exports,Ae={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},je={name:"SidebarItem",components:{Item:Oe,AppLink:De},mixins:[Ae],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(l["a"])(Object(l["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(Se["b"])(e)?e:Object(Se["b"])(this.basePath)?this.basePath:ue.a.resolve(this.basePath,e)}}},Pe=je,Ie=Object(p["a"])(Pe,Ce,_e,!1,null,null,null),Re=Ie.exports,We=n("cf1e"),Ne=n.n(We),qe={components:{SidebarItem:Re,Logo:Ve},computed:Object(l["a"])(Object(l["a"])({},Object(E["b"])(["permission_routes","sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Ne.a},isCollapse:function(){return!this.sidebar.opened}})},Ue=qe,Fe=Object(p["a"])(Ue,ve,ge,!1,null,null,null),Qe=Fe.exports,Ge=n("5b23"),Je=n("85a8"),Ke=n("9169"),Xe={directives:{clickoutside:Ke["a"]},components:{Breadcrumb:D,Hamburger:W,Screenfull:K,SizeSelect:ne,Search:fe},computed:Object(l["a"])({avatar:function(){return Ge["a"]},sidebar:function(){return Qe}},Object(E["b"])(["sidebar","avatar","device"])),data:function(){return{workstatus:!1,drawer:!1,showAvatar:!1,dialogPWD:!1,dialogWorks:!1,centerDialogVisible:!1,imageUrl:!1,QaShow:!0,os:[],getQaCityList:[],getQaLists:[],times:[],form:{oldpwd:"",pwd:""},QaInfo:{title:"",content:""},rules:{oldpwd:[{required:!0,message:"请输入旧密码",trigger:"blur"},{min:6,max:20,message:"长度在 6 到 20 个字符",trigger:"blur"}],pwd:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,max:20,message:"长度在 6 到 20 个字符",trigger:"blur"}]}}},created:function(){var e=this;this.getworkstatus(),Object(Je["a"])().then((function(t){e.getQaCityList=t.data}))},methods:{color:pe["color"],toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},handleClose:function(){this.drawer=!1,this.QaShow=!0},clickQaList:function(e){var t=this;if(Object(Je["b"])(e.city_id).then((function(e){t.getQaLists=e.data})),console.log(JSON.stringify(this.getQaLists)),!this.getQaLists)return this.$message({message:"暂无QA问题",type:"warning",duration:1500});this.QaShow=!1},logout:function(){var e=this;return Object(z["a"])(Object(S["a"])().mark((function t(){return Object(S["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("user/logout");case 2:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 3:case"end":return t.stop()}}),t)})))()},handleAvatarSuccess:function(e,t){this.imageUrl=URL.createObjectURL(t.raw)},pwd:function(){var e=this;this.$axios.post("/admin/admin/pwd",this.form).then((function(t){e.dialogPWD=!1,e.form={}})).catch((function(e){console.log(e)}))},saveWork:function(){var e=this;this.$axios.post("/admin/work/save2",{times:this.times,os:this.os}).then((function(t){console.log(t),e.$message({showClose:!0,message:"添加成功"}),e.dialogWorks=!1})).catch((function(e){console.log(e)}))},startWorks:function(){var e=this;this.$axios.post("/admin/admin/editInfo",{is_order:1}).then((function(t){console.log(t),e.$message({showClose:!0,message:"上班成功"}),e.getworkstatus()})).catch((function(e){console.log(e)}))},endWorks:function(){var e=this;this.$axios.post("/admin/admin/editInfo",{is_order:0}).then((function(t){console.log(t),e.$message({showClose:!0,message:"下班成功"}),e.getworkstatus()})).catch((function(e){console.log(e)}))},getworkstatus:function(){var e=this;this.$axios.post("/admin/work/getworkstatus",{id:this.id}).then((function(t){console.log(t),e.workstatus=t.data})).catch((function(e){console.log(e)}))},beforeAvatarUpload:function(e){}}},Ze=Xe,Ye=(n("0b95"),Object(p["a"])(Ze,C,_,!1,null,"2c5d2088",null)),et=Ye.exports,tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"drawer-container"},[n("div",[n("h3",{staticClass:"drawer-title"},[e._v("Page style setting")]),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Theme Color")]),n("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:e.themeChange}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Open Tags-View")]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.tagsView,callback:function(t){e.tagsView=t},expression:"tagsView"}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Fixed Header")]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.fixedHeader,callback:function(t){e.fixedHeader=t},expression:"fixedHeader"}})],1),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Sidebar Logo")]),n("el-switch",{staticClass:"drawer-switch",model:{value:e.sidebarLogo,callback:function(t){e.sidebarLogo=t},expression:"sidebarLogo"}})],1)])])},nt=[],at=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})},it=[],ot=(n("a15b"),n("fb6a"),n("b680"),n("4d63"),n("2c3e"),n("00b4"),n("25f0"),n("159b"),n("f6f8").version),ct="#409EFF",st={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(e,t){this.theme=e},immediate:!0},theme:function(e){var t=this;return Object(z["a"])(Object(S["a"])().mark((function n(){var a,i,o,c,s,r,l,u;return Object(S["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=t.chalk?t.theme:ct,"string"===typeof e){n.next=3;break}return n.abrupt("return");case 3:if(i=t.getThemeCluster(e.replace("#","")),o=t.getThemeCluster(a.replace("#","")),console.log(i,o),c=t.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),s=function(e,n){return function(){var a=t.getThemeCluster(ct.replace("#","")),o=t.updateStyle(t[e],a,i),c=document.getElementById(n);c||(c=document.createElement("style"),c.setAttribute("id",n),document.head.appendChild(c)),c.innerText=o}},t.chalk){n.next=12;break}return r="https://unpkg.com/element-ui@".concat(ot,"/lib/theme-chalk/index.css"),n.next=12,t.getCSSString(r,"chalk");case 12:l=s("chalk","chalk-style"),l(),u=[].slice.call(document.querySelectorAll("style")).filter((function(e){var t=e.innerText;return new RegExp(a,"i").test(t)&&!/Chalk Variables/.test(t)})),u.forEach((function(e){var n=e.innerText;"string"===typeof n&&(e.innerText=t.updateStyle(n,o,i))})),t.$emit("change",e),c.close();case 18:case"end":return n.stop()}}),n)})))()}},methods:{updateStyle:function(e,t,n){var a=e;return t.forEach((function(e,t){a=a.replace(new RegExp(e,"ig"),n[t])})),a},getCSSString:function(e,t){var n=this;return new Promise((function(a){var i=new XMLHttpRequest;i.onreadystatechange=function(){4===i.readyState&&200===i.status&&(n[t]=i.responseText.replace(/@font-face{[^}]+}/,""),a())},i.open("GET",e),i.send()}))},getThemeCluster:function(e){for(var t=function(e,t){var n=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16);return 0===t?[n,a,i].join(","):(n+=Math.round(t*(255-n)),a+=Math.round(t*(255-a)),i+=Math.round(t*(255-i)),n=n.toString(16),a=a.toString(16),i=i.toString(16),"#".concat(n).concat(a).concat(i))},n=function(e,t){var n=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16);return n=Math.round((1-t)*n),a=Math.round((1-t)*a),i=Math.round((1-t)*i),n=n.toString(16),a=a.toString(16),i=i.toString(16),"#".concat(n).concat(a).concat(i)},a=[e],i=0;i<=9;i++)a.push(t(e,Number((i/10).toFixed(2))));return a.push(n(e,.1)),a}}},rt=st,lt=(n("f26d"),Object(p["a"])(rt,at,it,!1,null,null,null)),ut=lt.exports,dt={components:{ThemePicker:ut},data:function(){return{}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:e})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:e})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:e})}}},methods:{themeChange:function(e){this.$store.dispatch("settings/changeSetting",{key:"theme",value:e})}}},ht=dt,mt=(n("4d27"),Object(p["a"])(ht,tt,nt,!1,null,"5d274279",null)),ft=mt.exports,pt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[n("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper",on:{scroll:e.handleScroll}},e._l(e.visitedViews,(function(t){return n("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:e.isActive(t)?"active":"",attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath},tag:"span"},nativeOn:{mouseup:function(n){if("button"in n&&1!==n.button)return null;!e.isAffix(t)&&e.closeSelectedTag(t)},contextmenu:function(n){return n.preventDefault(),e.openMenu(t,n)}}},[e._v(" "+e._s(t.title)+" "),e.isAffix(t)?e._e():n("span",{staticClass:"el-icon-close",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.closeSelectedTag(t)}}})])})),1),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[n("li",{on:{click:function(t){return e.refreshSelectedTag(e.selectedTag)}}},[e._v("刷新")]),e.isAffix(e.selectedTag)?e._e():n("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[e._v("关闭")]),n("li",{on:{click:e.closeOthersTags}},[e._v("关闭其他")]),n("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[e._v("关闭所有")])])],1)},vt=[],gt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll.apply(null,arguments)}}},[e._t("default")],2)},wt=[],bt=(n("c740"),4),xt={name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},mounted:function(){this.scrollWrapper.addEventListener("scroll",this.emitScroll,!0)},beforeDestroy:function(){this.scrollWrapper.removeEventListener("scroll",this.emitScroll)},methods:{handleScroll:function(e){var t=e.wheelDelta||40*-e.deltaY,n=this.scrollWrapper;n.scrollLeft=n.scrollLeft+t/4},emitScroll:function(){this.$emit("scroll")},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el,n=t.offsetWidth,a=this.scrollWrapper,i=this.$parent.$refs.tag,o=null,c=null;if(i.length>0&&(o=i[0],c=i[i.length-1]),o===e)a.scrollLeft=0;else if(c===e)a.scrollLeft=a.scrollWidth-n;else{var s=i.findIndex((function(t){return t===e})),r=i[s-1],l=i[s+1],u=l.$el.offsetLeft+l.$el.offsetWidth+bt,d=r.$el.offsetLeft-bt;u>a.scrollLeft+n?a.scrollLeft=u-n:d1&&void 0!==arguments[1]?arguments[1]:"/",a=[];return e.forEach((function(e){if(e.meta&&e.meta.affix){var i=ue.a.resolve(n,e.path);a.push({fullPath:i,path:i,name:e.name,meta:Object(l["a"])({},e.meta)})}if(e.children){var o=t.filterAffixTags(e.children,e.path);o.length>=1&&(a=[].concat(Object(oe["a"])(a),Object(oe["a"])(o)))}})),a},initTags:function(){var e,t=this.affixTags=this.filterAffixTags(this.routes),n=Object(ce["a"])(t);try{for(n.s();!(e=n.n()).done;){var a=e.value;a.name&&this.$store.dispatch("tagsView/addVisitedView",a)}}catch(i){n.e(i)}finally{n.f()}},addTags:function(){var e=this.$route.name;return e&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick((function(){var n,a=Object(ce["a"])(t);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(i),i.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(o){a.e(o)}finally{a.f()}}))},refreshSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delCachedView",e).then((function(){var n=e.fullPath;t.$nextTick((function(){t.$router.replace({path:"/redirect"+n})}))}))},closeSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delView",e).then((function(n){var a=n.visitedViews;t.isActive(e)&&t.toLastView(a,e)}))},closeOthersTags:function(){var e=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){e.moveToCurrentTag()}))},closeAllTags:function(e){var t=this;this.$store.dispatch("tagsView/delAllViews").then((function(n){var a=n.visitedViews;t.affixTags.some((function(t){return t.path===e.path}))||t.toLastView(a,e)}))},toLastView:function(e,t){var n=e.slice(-1)[0];n?this.$router.push(n.fullPath):"Dashboard"===t.name?this.$router.replace({path:"/redirect"+t.fullPath}):this.$router.push("/")},openMenu:function(e,t){var n=105,a=this.$el.getBoundingClientRect().left,i=this.$el.offsetWidth,o=i-n,c=t.clientX-a+15;this.left=c>o?o:c,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1},handleScroll:function(){this.closeMenu()}}},_t=Ct,St=(n("48da"),n("6f1a"),Object(p["a"])(_t,pt,vt,!1,null,"079ac08e",null)),zt=St.exports,Et=n("4360"),Lt=document,Ot=Lt.body,Tt=992,Mt={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&Et["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(Et["a"].dispatch("app/toggleDevice","mobile"),Et["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=Ot.getBoundingClientRect();return e.width-10&&e.$notify({title:"新的订单提醒",duration:0,dangerouslyUseHTMLString:!0,message:"你有("+t.data.new+")个新的订单,需要处理"}),t&&t.data.follow>0&&e.$notify({title:"新的跟进提醒",duration:1e4,dangerouslyUseHTMLString:!0,message:"你有("+t.data.follow+")个跟进订单,需要处理"}),t&&t.data.back>0&&e.$notify({title:"转单申请",duration:1e4,dangerouslyUseHTMLString:!0,message:"你有("+t.data.back+")个转单订单,需要处理"})})).catch((function(e){console.log(e)}))}),3e4)},methods:{handleClickOutside:function(){this.$store.dispatch("app/closeSideBar",{withoutAnimation:!1})}}},Bt=$t,Dt=(n("e340"),Object(p["a"])(Bt,s,r,!1,null,"f03d213a",null)),At=Dt.exports;o["default"].use(c["a"]);var jt=[{path:"/redirect",component:At,hidden:!0,children:[{path:"/redirect/:path(.*)",component:function(){return n.e("chunk-2d230fe7").then(n.bind(null,"ef3c"))}}]},{path:"/login",component:function(){return n.e("chunk-5b015b61").then(n.bind(null,"9ed6"))},hidden:!0},{path:"/home",component:function(){return n.e("chunk-120ad319").then(n.bind(null,"7abe"))},hidden:!0},{path:"/line_on_sale",component:function(){return n.e("chunk-5d3a368d").then(n.bind(null,"dae2"))},hidden:!0},{path:"/auth-redirect",component:function(){return n.e("chunk-2d2105d3").then(n.bind(null,"b829"))},hidden:!0},{path:"/404",component:function(){return n.e("chunk-169fa71c").then(n.bind(null,"1db4"))},hidden:!0},{path:"/401",component:function(){return n.e("chunk-023b2e94").then(n.bind(null,"24e2"))},hidden:!0},{path:"/",component:At,redirect:"/dashboard",children:[{path:"dashboard",component:function(){return Promise.all([n.e("chunk-91a3134e"),n.e("chunk-0bfa76a9")]).then(n.bind(null,"9406"))},name:"Dashboard",meta:{title:"系统面板",icon:"dashboard",affix:!0}}]}],Pt=[{path:"/system",component:At,redirect:"/system",alwaysShow:!0,name:"System",meta:{title:"系统管理",icon:"el-icon-s-home",roles:["admin"]},children:[{path:"admin",component:function(){return n.e("chunk-2681d490").then(n.bind(null,"2953"))},name:"Admin",meta:{title:"管理员",roles:["admin"]}},{path:"works",component:function(){return n.e("chunk-f00febf4").then(n.bind(null,"da0f"))},name:"Works",meta:{title:"排班表",roles:["admin"]}},{path:"onlines",component:function(){return n.e("chunk-7ebb7cb9").then(n.bind(null,"5c7c"))},name:"onlines",meta:{title:"在线客服",roles:["admin"]}}]},{path:"/order",component:At,redirect:"/order/index",alwaysShow:!0,name:"Orders",meta:{title:"订单管理",icon:"money",roles:["order_index","editor"]},children:[{path:"index",component:function(){return n.e("chunk-76403408").then(n.bind(null,"634a"))},name:"OrderList",meta:{title:"订单列表",roles:["order_pub","editor"]}},{path:"back",component:function(){return n.e("chunk-03e0c360").then(n.bind(null,"d0fc"))},name:"OrderBack",meta:{title:"流转订单",roles:["order_back","editor"]}},{path:"abandoned",component:function(){return n.e("chunk-64a57f7a").then(n.bind(null,"b1c4"))},name:"OrderBack",meta:{title:"已放弃订单",roles:["order_back","editor"]}},{path:"used",component:function(){return n.e("chunk-ec537a7e").then(n.bind(null,"3413"))},name:"OrderBack",meta:{title:"已使用订单",roles:["order_back","editor"]}}]},{path:"/qa",component:At,redirect:"/qa/qa",alwaysShow:!0,name:"Qa",meta:{title:"QA管理",icon:"el-icon-question",roles:["order_index","editor","franchisee"]},children:[{path:"problem",component:function(){return n.e("chunk-6bb75a62").then(n.bind(null,"e132"))},name:"problem",meta:{title:"QA常见问题",roles:["order_pub","editor","franchisee"]}},{path:"qa",component:function(){return Promise.all([n.e("chunk-6fb398b6"),n.e("chunk-cbb3f856")]).then(n.bind(null,"4c7f"))},name:"qa",meta:{title:"QA管理列表",roles:["admin"]}},{path:"city",component:function(){return n.e("chunk-630c52ac").then(n.bind(null,"948d"))},name:"city",meta:{title:"城市管理列表",roles:["admin"]}}]},{path:"/data",component:At,redirect:"/data/index",alwaysShow:!0,name:"Data",meta:{title:"数据统计",icon:"chart",roles:["data_index"]},children:[{path:"product",component:function(){return n.e("chunk-65bcd46e").then(n.bind(null,"a25c"))},name:"productNameList",meta:{title:"产品统计",roles:["order_pub","editor"]}},{path:"index",component:function(){return n.e("chunk-2d0de3a1").then(n.bind(null,"856d"))},name:"Index",meta:{title:"跟进统计",roles:["data_index"]}},{path:"sale",component:function(){return n.e("chunk-2d21a050").then(n.bind(null,"ba72"))},name:"Sale",meta:{title:"销售统计",roles:["data_sale"]}}]},{path:"/log",component:At,redirect:"/log/index",alwaysShow:!0,name:"Log",meta:{title:"日志记录",icon:"nested",roles:["follow_index","log_index","editor","franchisee"]},children:[{path:"follow",component:function(){return n.e("chunk-46a84215").then(n.bind(null,"16eb"))},name:"Follow",meta:{title:"跟进记录",roles:["follow_index","editor","franchisee"]}},{path:"index",component:function(){return n.e("chunk-6e1eea3c").then(n.bind(null,"5905"))},name:"LogIndex",meta:{title:"日志记录",roles:["log_index"]}}]},{path:"/announcements",component:At,redirect:"/announcements/index",alwaysShow:!0,name:"announcements",meta:{title:"公告管理",icon:"el-icon-s-promotion",roles:["admin"]},children:[{path:"list",component:function(){return n.e("chunk-2b905db8").then(n.bind(null,"5c84"))},name:"list",meta:{title:"公告列表",roles:["admin"]}}]},{path:"/icon",component:At,children:[{path:"index",component:function(){return n.e("chunk-bc86863a").then(n.bind(null,"105d"))},name:"Icons",meta:{title:"Icons",icon:"icon",noCache:!0}}]},{path:"*",redirect:"/404",hidden:!0}],It=function(){return new c["a"]({scrollBehavior:function(){return{y:0}},routes:jt})},Rt=It();function Wt(){var e=It();Rt.matcher=e.matcher}t["c"]=Rt},a22e:function(e,t,n){},aa46:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-edit",use:"icon-edit-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},ab00:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},ad1c:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});c.a.add(s);t["default"]=s},b747:function(e,t,n){},b775:function(e,t,n){"use strict";n("d3b7");var a=n("bc3a"),i=n.n(a),o=n("5c96"),c=n("4360"),s=n("5f87"),r=i.a.create({baseURL:"/",timeout:1e4});r.interceptors.request.use((function(e){return c["a"].getters.token&&(e.headers["X-Token"]=Object(s["a"])()),e}),(function(e){return Promise.reject(e)})),r.interceptors.response.use((function(e){var t=e.data;return 0!==t.error?(Object(o["Message"])({message:t.msg||"Error",type:"error",duration:5e3}),50008!==t.code&&50012!==t.code&&50014!==t.code||o["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then((function(){c["a"].dispatch("user/resetToken").then((function(){location.reload()}))})),Promise.reject(new Error(t.message||"Error"))):t}),(function(e){return console.log("err"+e),Object(o["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)})),t["a"]=r},bae7:function(e,t,n){},bc35:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},bf48:function(e,t,n){"use strict";n("97bb")},c459:function(e,t,n){},c469:function(e,t,n){},c653:function(e,t,n){var a={"./app.js":"d9cd","./errorLog.js":"4d49","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=o,e.exports=i,i.id="c653"},c829:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},cbb7:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});c.a.add(s);t["default"]=s},ccbe:function(e,t,n){},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d056:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},d450:function(e,t,n){},d7ec:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(s);t["default"]=s},d9cd:function(e,t,n){"use strict";n.r(t);var a=n("a78e"),i=n.n(a),o={sidebar:{opened:!i.a.get("sidebarStatus")||!!+i.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",size:i.a.get("size")||"medium"},c={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?i.a.set("sidebarStatus",1):i.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){i.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_SIZE:function(e,t){e.size=t,i.a.set("size",t)}},s={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)},setSize:function(e,t){var n=e.commit;n("SET_SIZE",t)}};t["default"]={namespaced:!0,state:o,mutations:c,actions:s}},daba:function(e,t,n){},dbc7:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},dcf8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},e298:function(e,t,n){},e340:function(e,t,n){"use strict";n("ccbe")},e4d6:function(e,t,n){"use strict";n("5efb")},e534:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},e7c8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},eb1b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});c.a.add(s);t["default"]=s},ed08:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return l}));var a=n("53ca");n("a630"),n("a15b"),n("d81d"),n("fb6a"),n("b64b"),n("d3b7"),n("4d63"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("6062"),n("3ca3"),n("466d"),n("4d90"),n("5319"),n("159b"),n("ddb0");function i(e,t){if(0===arguments.length||!e)return null;var n,i=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(a["a"])(e)?n=e:("string"===typeof e&&(e=/^[0-9]+$/.test(e)?parseInt(e):e.replace(new RegExp(/-/gm),"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),n=new Date(e));var o={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},c=i.replace(/{([ymdhisa])+}/g,(function(e,t){var n=o[t];return"a"===t?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return c}function o(e,t){e=10===(""+e).length?1e3*parseInt(e):+e;var n=new Date(e),a=Date.now(),o=(a-n)/1e3;return o<30?"刚刚":o<3600?Math.ceil(o/60)+"分钟前":o<86400?Math.ceil(o/3600)+"小时前":o<172800?"1天前":t?i(e,t):n.getMonth()+1+"月"+n.getDate()+"日"+n.getHours()+"时"+n.getMinutes()+"分"}function c(e,t,n){var a,i,o,c,s,r=function r(){var l=+new Date-c;l0?a=setTimeout(r,t-l):(a=null,n||(s=e.apply(o,i),a||(o=i=null)))};return function(){for(var i=arguments.length,l=new Array(i),u=0;u'});c.a.add(s);t["default"]=s},f819:function(e,t,n){},f87e:function(e,t,n){"use strict";n("279e")},f96b:function(e,t){var n=[{path:"/redirect",component:"layout/Layout",hidden:!0,children:[{path:"/redirect/:path*",component:"views/redirect/index"}]},{path:"/login",component:"views/login/index",hidden:!0},{path:"/auth-redirect",component:"views/login/auth-redirect",hidden:!0},{path:"/404",component:"views/error-page/404",hidden:!0},{path:"/401",component:"views/error-page/401",hidden:!0},{path:"",component:"layout/Layout",redirect:"dashboard",children:[{path:"dashboard",component:"views/dashboard/index",name:"Dashboard",meta:{title:"Dashboard",icon:"dashboard",affix:!0}}]},{path:"/documentation",component:"layout/Layout",children:[{path:"index",component:"views/documentation/index",name:"Documentation",meta:{title:"Documentation",icon:"documentation",affix:!0}}]},{path:"/guide",component:"layout/Layout",redirect:"/guide/index",children:[{path:"index",component:"views/guide/index",name:"Guide",meta:{title:"Guide",icon:"guide",noCache:!0}}]}],a=[{path:"/permission",component:"layout/Layout",redirect:"/permission/index",alwaysShow:!0,meta:{title:"Permission",icon:"lock",roles:["admin","editor"]},children:[{path:"page",component:"views/permission/page",name:"PagePermission",meta:{title:"Page Permission",roles:["admin"]}},{path:"directive",component:"views/permission/directive",name:"DirectivePermission",meta:{title:"Directive Permission"}},{path:"role",component:"views/permission/role",name:"RolePermission",meta:{title:"Role Permission",roles:["admin"]}}]},{path:"/icon",component:"layout/Layout",children:[{path:"index",component:"views/icons/index",name:"Icons",meta:{title:"Icons",icon:"icon",noCache:!0}}]},{path:"/Wangeditor",component:"layout/Layout",redirect:"noRedirect",name:"ComponentDemo",meta:{title:"Components",icon:"component"},children:[{path:"tinymce",component:"views/Wangeditor-demo/tinymce",name:"TinymceDemo",meta:{title:"Tinymce"}},{path:"markdown",component:"views/Wangeditor-demo/markdown",name:"MarkdownDemo",meta:{title:"Markdown"}},{path:"json-editor",component:"views/Wangeditor-demo/json-editor",name:"JsonEditorDemo",meta:{title:"Json Editor"}},{path:"split-pane",component:"views/Wangeditor-demo/split-pane",name:"SplitpaneDemo",meta:{title:"SplitPane"}},{path:"avatar-upload",component:"views/Wangeditor-demo/avatar-upload",name:"AvatarUploadDemo",meta:{title:"Avatar Upload"}},{path:"dropzone",component:"views/Wangeditor-demo/dropzone",name:"DropzoneDemo",meta:{title:"Dropzone"}},{path:"sticky",component:"views/Wangeditor-demo/sticky",name:"StickyDemo",meta:{title:"Sticky"}},{path:"count-to",component:"views/Wangeditor-demo/count-to",name:"CountToDemo",meta:{title:"Count To"}},{path:"mixin",component:"views/Wangeditor-demo/mixin",name:"ComponentMixinDemo",meta:{title:"componentMixin"}},{path:"back-to-top",component:"views/Wangeditor-demo/back-to-top",name:"BackToTopDemo",meta:{title:"Back To Top"}},{path:"drag-dialog",component:"views/Wangeditor-demo/drag-dialog",name:"DragDialogDemo",meta:{title:"Drag Dialog"}},{path:"drag-select",component:"views/Wangeditor-demo/drag-select",name:"DragSelectDemo",meta:{title:"Drag Select"}},{path:"dnd-list",component:"views/Wangeditor-demo/dnd-list",name:"DndListDemo",meta:{title:"Dnd List"}},{path:"drag-kanban",component:"views/Wangeditor-demo/drag-kanban",name:"DragKanbanDemo",meta:{title:"Drag Kanban"}}]},{path:"/charts",component:"layout/Layout",redirect:"noRedirect",name:"Charts",meta:{title:"Charts",icon:"chart"},children:[{path:"keyboard",component:"views/charts/keyboard",name:"KeyboardChart",meta:{title:"Keyboard Chart",noCache:!0}},{path:"line",component:"views/charts/line",name:"LineChart",meta:{title:"Line Chart",noCache:!0}},{path:"mixchart",component:"views/charts/mixChart",name:"MixChart",meta:{title:"Mix Chart",noCache:!0}}]},{path:"/nested",component:"layout/Layout",redirect:"/nested/menu1/menu1-1",name:"Nested",meta:{title:"Nested",icon:"nested"},children:[{path:"menu1",component:"views/nested/menu1/index",name:"Menu1",meta:{title:"Menu1"},redirect:"/nested/menu1/menu1-1",children:[{path:"menu1-1",component:"views/nested/menu1/menu1-1",name:"Menu1-1",meta:{title:"Menu1-1"}},{path:"menu1-2",component:"views/nested/menu1/menu1-2",name:"Menu1-2",redirect:"/nested/menu1/menu1-2/menu1-2-1",meta:{title:"Menu1-2"},children:[{path:"menu1-2-1",component:"views/nested/menu1/menu1-2/menu1-2-1",name:"Menu1-2-1",meta:{title:"Menu1-2-1"}},{path:"menu1-2-2",component:"views/nested/menu1/menu1-2/menu1-2-2",name:"Menu1-2-2",meta:{title:"Menu1-2-2"}}]},{path:"menu1-3",component:"views/nested/menu1/menu1-3",name:"Menu1-3",meta:{title:"Menu1-3"}}]},{path:"menu2",name:"Menu2",component:"views/nested/menu2/index",meta:{title:"Menu2"}}]},{path:"/example",component:"layout/Layout",redirect:"/example/list",name:"Example",meta:{title:"Example",icon:"example"},children:[{path:"create",component:"views/example/create",name:"CreateArticle",meta:{title:"Create Article",icon:"edit"}},{path:"edit/:id(\\d+)",component:"views/example/edit",name:"EditArticle",meta:{title:"Edit Article",noCache:!0},hidden:!0},{path:"list",component:"views/example/list",name:"ArticleList",meta:{title:"Article List",icon:"list"}}]},{path:"/tab",component:"layout/Layout",children:[{path:"index",component:"views/tab/index",name:"Tab",meta:{title:"Tab",icon:"tab"}}]},{path:"/error",component:"layout/Layout",redirect:"noRedirect",name:"ErrorPages",meta:{title:"Error Pages",icon:"404"},children:[{path:"401",component:"views/error-page/401",name:"Page401",meta:{title:"Page 401",noCache:!0}},{path:"404",component:"views/error-page/404",name:"Page404",meta:{title:"Page 404",noCache:!0}}]},{path:"/error-log",component:"layout/Layout",redirect:"noRedirect",children:[{path:"log",component:"views/error-log/index",name:"ErrorLog",meta:{title:"Error Log",icon:"bug"}}]},{path:"/excel",component:"layout/Layout",redirect:"/excel/export-excel",name:"Excel",meta:{title:"Excel",icon:"excel"},children:[{path:"export-excel",component:"views/excel/export-excel",name:"ExportExcel",meta:{title:"Export Excel"}},{path:"export-selected-excel",component:"views/excel/select-excel",name:"SelectExcel",meta:{title:"Select Excel"}},{path:"export-merge-header",component:"views/excel/merge-header",name:"MergeHeader",meta:{title:"Merge Header"}},{path:"upload-excel",component:"views/excel/upload-excel",name:"UploadExcel",meta:{title:"Upload Excel"}}]},{path:"/zip",component:"layout/Layout",redirect:"/zip/download",alwaysShow:!0,meta:{title:"Zip",icon:"zip"},children:[{path:"download",component:"views/zip/index",name:"ExportZip",meta:{title:"Export Zip"}}]},{path:"/pdf",component:"layout/Layout",redirect:"/pdf/index",children:[{path:"index",component:"views/pdf/index",name:"PDF",meta:{title:"PDF",icon:"pdf"}}]},{path:"/pdf/download",component:"views/pdf/download",hidden:!0},{path:"/theme",component:"layout/Layout",redirect:"noRedirect",children:[{path:"index",component:"views/theme/index",name:"Theme",meta:{title:"Theme",icon:"theme"}}]},{path:"/clipboard",component:"layout/Layout",redirect:"noRedirect",children:[{path:"index",component:"views/clipboard/index",name:"ClipboardDemo",meta:{title:"Clipboard Demo",icon:"clipboard"}}]},{path:"/i18n",component:"layout/Layout",children:[{path:"index",component:"views/i18n-demo/index",name:"I18n",meta:{title:"I18n",icon:"international"}}]},{path:"external-link",component:"layout/Layout",children:[{path:"https://github.com/PanJiaChen/vue-element-admin",meta:{title:"External Link",icon:"link"}}]},{path:"*",redirect:"/404",hidden:!0}];e.exports={constantRoutes:n,asyncRoutes:a}},f9a1:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=new i.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(s);t["default"]=s}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/service/public/static/js/chunk-2681d490.1bf1fe2e.js b/service/public/static/js/chunk-2681d490.d2ff8da3.js similarity index 98% rename from service/public/static/js/chunk-2681d490.1bf1fe2e.js rename to service/public/static/js/chunk-2681d490.d2ff8da3.js index 880db256..09e1f080 100644 --- a/service/public/static/js/chunk-2681d490.1bf1fe2e.js +++ b/service/public/static/js/chunk-2681d490.d2ff8da3.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2681d490"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return l})),Math.easeInOutQuad=function(t,e,a,i){return t/=i/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function n(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,a){var l=o(),r=t-l,s=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=s;var o=Math.easeInOutQuad(c,l,r,e);n(o),c0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"修改管理员",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{attrs:{"label-width":"120px",model:t.item}},[a("el-form-item",{attrs:{label:"用户名"}},[a("el-input",{attrs:{name:"username",placeholder:"管理员的用户名"},model:{value:t.item.username,callback:function(e){t.$set(t.item,"username",e)},expression:"item.username"}})],1),a("el-form-item",{attrs:{label:"姓名"}},[a("el-input",{attrs:{name:"name",placeholder:"管理员的姓名"},model:{value:t.item.name,callback:function(e){t.$set(t.item,"name",e)},expression:"item.name"}})],1),a("el-form-item",{attrs:{label:"手机"}},[a("el-input",{attrs:{name:"name",placeholder:"发送短时的时候会用到这个手机"},model:{value:t.item.mobile,callback:function(e){t.$set(t.item,"mobile",e)},expression:"item.mobile"}})],1),a("el-form-item",{attrs:{label:"密码"}},[a("el-input",{attrs:{type:"password",name:"password",placeholder:"管理员的新密码"},model:{value:t.item.password,callback:function(e){t.$set(t.item,"password",e)},expression:"item.password"}})],1),a("el-form-item",{attrs:{label:"是否分配"}},[a("el-switch",{attrs:{"active-text":"分配","active-value":1,"inactive-text":"不分配","inactive-value":0},model:{value:t.item.is_order,callback:function(e){t.$set(t.item,"is_order",e)},expression:"item.is_order"}})],1),a("el-form-item",{attrs:{label:"是否主播"}},[a("el-switch",{attrs:{"active-text":"主播","active-value":1,"inactive-text":"","inactive-value":0},model:{value:t.item.is_anchor,callback:function(e){t.$set(t.item,"is_anchor",e)},expression:"item.is_anchor"}})],1),a("el-form-item",{attrs:{label:"是否加盟商"}},[a("el-switch",{attrs:{"active-text":"加盟商","active-value":1,"inactive-text":"","inactive-value":0},model:{value:t.item.is_franchisee,callback:function(e){t.$set(t.item,"is_franchisee",e)},expression:"item.is_franchisee"}})],1),a("el-form-item",{attrs:{label:"产品ID"}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.item.product_ids,callback:function(e){t.$set(t.item,"product_ids",e)},expression:"item.product_ids"}}),a("span",{staticStyle:{color:"red","font-size":"11px"}},[t._v("多个用英文逗号隔开,例如: 384731,2328")])],1),a("el-form-item",{attrs:{label:"路线"}},[a("el-radio-group",{model:{value:t.item.route_type,callback:function(e){t.$set(t.item,"route_type",e)},expression:"item.route_type"}},[a("el-radio",{attrs:{label:10}},[t._v("境内跟团")]),a("el-radio",{attrs:{label:20}},[t._v("境外跟团")])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSave(t.item)}}},[t._v("保 存")])],1)],1),a("el-dialog",{attrs:{title:"添加排班",visible:t.dialogWork},on:{"update:visible":function(e){t.dialogWork=e}}},[a("el-form",{attrs:{"label-width":"120px",model:t.from}},[a("el-form-item",{attrs:{label:"上班日期"}},[a("el-date-picker",{staticStyle:{"margin-right":"10px"},attrs:{type:"dates",placeholder:"选择一个或多个日期"},model:{value:t.from.dates,callback:function(e){t.$set(t.from,"dates",e)},expression:"from.dates"}})],1),a("el-form-item",{attrs:{label:"上班时间段"}},[a("el-time-picker",{attrs:{"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围"},model:{value:t.from.time,callback:function(e){t.$set(t.from,"time",e)},expression:"from.time"}})],1),a("el-form-item",{attrs:{label:"渠道"}},[a("el-checkbox-group",{model:{value:t.from.oss,callback:function(e){t.$set(t.from,"oss",e)},expression:"from.oss"}},t._l(t.oss,(function(e,i,n){return a("el-checkbox",{key:n,attrs:{label:i}},[t._v(t._s(e))])})),1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onWork()}}},[t._v("保 存")])],1)],1)],1)},n=[],o=a("333d"),l={name:"Adminlist",components:{Pagination:o["a"]},data:function(){return{list:[],oss:[],from:{oss:[]},total:0,listLoading:!0,listQuery:{page:1,limit:20},dialogVisible:!1,dialogWork:!1,item:{btn:[]},route_type:""}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.$axios.get("/admin/admin/index",{params:this.listQuery}).then((function(e){t.list=e.data.data,t.total=e.data.total,t.oss=e.ext.oss,console.log(t.oss),t.listLoading=!1})).catch((function(t){}))},setStatus:function(t){var e=this;console.log(t),this.$axios.post("/admin/admin/disabled",t).then((function(t){e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})).catch((function(t){e.$notify({title:"成功",message:"修改失败",type:"error",duration:2e3})}))},handleCreate:function(t){this.dialogVisible=!0,this.item=t},onSave:function(t){var e=this;this.$axios.post("/admin/admin/save",t).then((function(t){e.item={},e.dialogVisible=!1,e.getList()})).catch((function(t){}))},onWork:function(t){var e=this;if(t)return this.item=t,this.from={oss:[]},void(this.dialogWork=!0);this.from.admin_id=this.item.id,this.$axios.post("/admin/work/saves",this.from).then((function(t){e.item={},e.dialogWork=!1})).catch((function(t){}))},setTime:function(t){console.log(t)}}},r=l,s=a("2877"),c=Object(s["a"])(r,i,n,!1,null,null,null);e["default"]=c.exports},"2cbf":function(t,e,a){"use strict";a("73e0")},"333d":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[a("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},n=[],o=(a("a9e3"),a("09f4")),l={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(o["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(o["a"])(0,800)}}},r=l,s=(a("2cbf"),a("2877")),c=Object(s["a"])(r,i,n,!1,null,"6af373ef",null);e["a"]=c.exports},"73e0":function(t,e,a){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2681d490"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return l})),Math.easeInOutQuad=function(t,e,a,i){return t/=i/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function n(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,a){var l=o(),r=t-l,s=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=s;var o=Math.easeInOutQuad(c,l,r,e);n(o),c0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"修改管理员",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{attrs:{"label-width":"120px",model:t.item}},[a("el-form-item",{attrs:{label:"用户名"}},[a("el-input",{attrs:{name:"username",placeholder:"管理员的用户名"},model:{value:t.item.username,callback:function(e){t.$set(t.item,"username",e)},expression:"item.username"}})],1),a("el-form-item",{attrs:{label:"姓名"}},[a("el-input",{attrs:{name:"name",placeholder:"管理员的姓名"},model:{value:t.item.name,callback:function(e){t.$set(t.item,"name",e)},expression:"item.name"}})],1),a("el-form-item",{attrs:{label:"手机"}},[a("el-input",{attrs:{name:"name",placeholder:"发送短时的时候会用到这个手机"},model:{value:t.item.mobile,callback:function(e){t.$set(t.item,"mobile",e)},expression:"item.mobile"}})],1),a("el-form-item",{attrs:{label:"密码"}},[a("el-input",{attrs:{type:"password",name:"password",placeholder:"管理员的新密码"},model:{value:t.item.password,callback:function(e){t.$set(t.item,"password",e)},expression:"item.password"}})],1),a("el-form-item",{attrs:{label:"是否分配"}},[a("el-switch",{attrs:{"active-text":"分配","active-value":1,"inactive-text":"不分配","inactive-value":0},model:{value:t.item.is_order,callback:function(e){t.$set(t.item,"is_order",e)},expression:"item.is_order"}})],1),a("el-form-item",{attrs:{label:"是否主播"}},[a("el-switch",{attrs:{"active-text":"主播","active-value":1,"inactive-text":"","inactive-value":0},model:{value:t.item.is_anchor,callback:function(e){t.$set(t.item,"is_anchor",e)},expression:"item.is_anchor"}})],1),a("el-form-item",{attrs:{label:"是否加盟商"}},[a("el-switch",{attrs:{"active-text":"加盟商","active-value":1,"inactive-text":"","inactive-value":0},model:{value:t.item.is_franchisee,callback:function(e){t.$set(t.item,"is_franchisee",e)},expression:"item.is_franchisee"}})],1),a("el-form-item",{attrs:{label:"产品ID"}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.item.product_ids,callback:function(e){t.$set(t.item,"product_ids",e)},expression:"item.product_ids"}}),a("span",{staticStyle:{color:"red","font-size":"11px"}},[t._v("多个用英文逗号隔开,例如: 384731,2328")])],1),a("el-form-item",{attrs:{label:"路线"}},[a("el-radio-group",{model:{value:t.item.route_type,callback:function(e){t.$set(t.item,"route_type",e)},expression:"item.route_type"}},[a("el-radio",{attrs:{label:10}},[t._v("境内跟团")]),a("el-radio",{attrs:{label:20}},[t._v("境外跟团")])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSave(t.item)}}},[t._v("保 存")])],1)],1),a("el-dialog",{attrs:{title:"添加排班",visible:t.dialogWork},on:{"update:visible":function(e){t.dialogWork=e}}},[a("el-form",{attrs:{"label-width":"120px",model:t.from}},[a("el-form-item",{attrs:{label:"上班日期"}},[a("el-date-picker",{staticStyle:{"margin-right":"10px"},attrs:{type:"dates",placeholder:"选择一个或多个日期"},model:{value:t.from.dates,callback:function(e){t.$set(t.from,"dates",e)},expression:"from.dates"}})],1),a("el-form-item",{attrs:{label:"上班时间段"}},[a("el-time-picker",{attrs:{"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围"},model:{value:t.from.time,callback:function(e){t.$set(t.from,"time",e)},expression:"from.time"}})],1),a("el-form-item",{attrs:{label:"渠道"}},[a("el-checkbox-group",{model:{value:t.from.oss,callback:function(e){t.$set(t.from,"oss",e)},expression:"from.oss"}},t._l(t.oss,(function(e,i,n){return a("el-checkbox",{key:n,attrs:{label:i}},[t._v(t._s(e))])})),1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onWork()}}},[t._v("保 存")])],1)],1)],1)},n=[],o=a("333d"),l={name:"Adminlist",components:{Pagination:o["a"]},data:function(){return{list:[],oss:[],from:{oss:[]},total:0,listLoading:!0,listQuery:{page:1,limit:20},dialogVisible:!1,dialogWork:!1,item:{btn:[]},route_type:""}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.$axios.get("/admin/admin/index",{params:this.listQuery}).then((function(e){t.list=e.data.data,t.total=e.data.total,t.oss=e.ext.oss,console.log(t.oss),t.listLoading=!1})).catch((function(t){}))},setStatus:function(t){var e=this;console.log(t),this.$axios.post("/admin/admin/disabled",t).then((function(t){e.$notify({title:"成功",message:"修改成功",type:"success",duration:2e3})})).catch((function(t){e.$notify({title:"成功",message:"修改失败",type:"error",duration:2e3})}))},handleCreate:function(t){this.dialogVisible=!0,this.item=t},onSave:function(t){var e=this;this.$axios.post("/admin/admin/save",t).then((function(t){e.item={},e.dialogVisible=!1,e.getList()})).catch((function(t){}))},onWork:function(t){var e=this;if(t)return this.item=t,this.from={oss:[]},void(this.dialogWork=!0);this.from.admin_id=this.item.id,this.$axios.post("/admin/work/saves",this.from).then((function(t){e.item={},e.dialogWork=!1})).catch((function(t){}))},setTime:function(t){console.log(t)}}},r=l,s=a("2877"),c=Object(s["a"])(r,i,n,!1,null,null,null);e["default"]=c.exports},"2cbf":function(t,e,a){"use strict";a("73e0")},"333d":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[a("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},n=[],o=(a("a9e3"),a("09f4")),l={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(o["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(o["a"])(0,800)}}},r=l,s=(a("2cbf"),a("2877")),c=Object(s["a"])(r,i,n,!1,null,"6af373ef",null);e["a"]=c.exports},"73e0":function(t,e,a){}}]); \ No newline at end of file diff --git a/service/public/static/js/chunk-356410ff.8551f95b.js b/service/public/static/js/chunk-356410ff.8551f95b.js deleted file mode 100644 index a973c67a..00000000 --- a/service/public/static/js/chunk-356410ff.8551f95b.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-356410ff"],{"34c9":function(t,e,n){"use strict";n("ac90")},"5c7c":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"center",label:"ID",width:"60",prop:"id"}}),n("el-table-column",{attrs:{align:"center",label:"姓名",width:"80",prop:"username"}}),n("el-table-column",{attrs:{align:"center",label:"状态",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.isOnline?n("el-tag",{attrs:{type:"border-card"}},[t._v("下线")]):t._e(),1===e.row.isOnline?n("el-tag",{attrs:{type:"success"}},[t._v("在线")]):t._e(),2===e.row.isOnline?n("el-tag",{attrs:{type:"info"}},[t._v("没上线")]):t._e()]}}])}),n("el-table-column",{attrs:{align:"center",label:"是否分单",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(n){return t.updateStatus(e.row)}},model:{value:e.row.isEndWork,callback:function(n){t.$set(e.row,"isEndWork",n)},expression:"scope.row.isEndWork"}})]}}])}),n("el-table-column",{attrs:{align:"center",label:"在线时长",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(Math.floor((e.row.data?e.row.data.onlineTime:e.row.onlineTime)/60)||"--")+" 分钟 ")]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"上线时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.start_work_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"停止分单时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.end_work_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"下线时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.last_work_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"路线"},scopedSlots:t._u([{key:"default",fn:function(e){return[10===e.row.route_type?n("el-tag",{attrs:{type:"border-card"}},[t._v("国内路线")]):t._e(),20===e.row.route_type?n("el-tag",{attrs:{type:"success"}},[t._v("国外路线")]):t._e()]}}])})],1)],1)},a=[],l={name:"GetOnlineList",components:{},data:function(){return{statusArr:{0:"禁用",1:"启用"},list:[],total:0,loading:!1,listLoading:!0,listQuery:{page:1,limit:10,status:null,content:""},dialogCreate:!1,dialogEdit:!1,item:{},anchors:{}}},created:function(){this.listQuery.status=this.$route.query.status||null,this.listQuery.content=this.$route.query.content||null,this.getOnlineList()},methods:{getOnlineList:function(){var t=this;this.listLoading=!0,this.$axios.get("/admin/admin/getOnlineList",{params:this.listQuery}).then((function(e){t.list=e.data,t.listLoading=!1})).catch((function(){t.listLoading=!1}))},updateStatus:function(t){var e=this;this.$axios.post("/admin/admin/editInfo",{id:t.id,order_num:t.order_num,is_order:t.isEndWork}).then((function(){e.getOnlineList()})).catch((function(){}))}}},s=l,r=(n("34c9"),n("2877")),o=Object(r["a"])(s,i,a,!1,null,"5a6cf2fa",null);e["default"]=o.exports},ac90:function(t,e,n){}}]); \ No newline at end of file diff --git a/service/public/static/js/chunk-67a00d32.d45ca4c1.js b/service/public/static/js/chunk-67a00d32.d45ca4c1.js deleted file mode 100644 index 54cd03d1..00000000 --- a/service/public/static/js/chunk-67a00d32.d45ca4c1.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67a00d32"],{"0104":function(t,e,i){"use strict";i("aa54")},aa54:function(t,e,i){},e132:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"problem"},[i("el-row",[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"problem_form"},[i("el-form",{ref:"form",attrs:{inline:!0,model:t.dataForm,"label-width":"60px"}},[i("el-form-item",{attrs:{label:"关键字:"}},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"400px"},attrs:{placeholder:"请输入搜索关键字"},model:{value:t.dataForm.keyword,callback:function(e){t.$set(t.dataForm,"keyword",e)},expression:"dataForm.keyword"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"success"},on:{click:t.onSubmit}},[t._v("查询")])],1)],1)],1)])],1),i("div",{staticClass:"problem_container"},[i("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],staticClass:"problem_left",staticStyle:{overflow:"auto",padding:"10px"},attrs:{"infinite-scroll-immediate":!1}},t._l(t.getQaCityList,(function(e){return i("div",{staticClass:"btn",on:{click:function(i){return t.handleQacityl(e.city_id)}}},[t._v(t._s(e.city_name))])})),0),i("div",{staticClass:"problem_right"},[i("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],staticClass:"infinite-list",staticStyle:{overflow:"auto"},attrs:{"infinite-scroll-immediate":!1}},t._l(t.getQaLists,(function(e){return i("li",{staticClass:"problem_right_container"},[i("div",{staticClass:"title"},[i("span",{domProps:{innerHTML:t._s(t.handleprant(e.title))}}),i("el-button",{attrs:{type:"primary"},on:{click:function(i){return t.showImgDialog(e.img_zip)}}},[t._v("下载图片")]),i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(i){return t.showFileList(e.trip_zip)}}},[t._v("下载行程")])],1),t._l(e.qaQuestions,(function(e){return i("div",{staticClass:"desc_container"},[i("span",{staticClass:"desc",staticStyle:{"font-weight":"700",color:"#46a6ff"},domProps:{innerHTML:t._s(t.handleprant(e.title))}}),i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"mini"},on:{click:function(i){return t.copyToClipboard(e.content)}}},[t._v("复制")]),i("div",{staticClass:"desc",domProps:{innerHTML:t._s(t.handleprantHtml(e.content))}})],1)}))],2)})),0)])]),i("el-dialog",{attrs:{title:"图片列表",visible:t.dialogImage,width:"80%"},on:{"update:visible":function(e){t.dialogImage=e}}},[i("div",{staticClass:"image-list"},t._l(t.imageList,(function(e,a){return i("el-card",{key:a,staticClass:"image-card",attrs:{"body-style":{padding:"10px"}}},[i("img",{staticClass:"image-preview",attrs:{src:e.url}}),i("div",{staticClass:"image-footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(i){return t.handlePreview(e.url)}}},[t._v("查看")]),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return t.handleDownload(e.url)}}},[t._v("下载")])],1)])})),1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogImage=!1}}},[t._v("关闭")])],1)]),i("el-dialog",{attrs:{title:"文件列表",visible:t.dialogFile,width:"80%"},on:{"update:visible":function(e){t.dialogFile=e}}},[i("div",{staticClass:"file-list-horizontal"},t._l(t.fileList,(function(e,a){return i("el-card",{key:a,staticClass:"file-card",attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"file-info"},[i("el-icon",{staticClass:"file-icon"},[i("i",{class:t.getFileIcon(e.url)})]),i("span",{staticClass:"file-name"},[t._v(t._s(e.name))])],1),i("div",{staticClass:"file-footer"},[i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return t.handleDownload(e.url)}}},[t._v("下载")])],1)])})),1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogFile=!1}}},[t._v("关闭")])],1)]),i("el-dialog",{attrs:{visible:t.previewVisible,title:t.previewTitle,width:"60%"},on:{"update:visible":function(e){t.previewVisible=e}}},[i("img",{staticClass:"image-preview-full",attrs:{src:t.previewImageUrl}}),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.previewVisible=!1}}},[t._v("关闭")])],1)])],1)},n=[],o=(i("d81d"),i("a434"),i("d3b7"),i("4d63"),i("ac1f"),i("2c3e"),i("25f0"),i("3ca3"),i("5319"),i("ddb0"),i("2b3d"),i("bf19"),i("9861"),i("85a8")),s={data:function(){return{getQaCityList:[],getQaLists:[],dataForm:{keyword:"",city_id:""},dialogImage:!1,previewVisible:!1,previewImageUrl:"",previewTitle:"",imageList:[],fileList:[],dialogFile:!1}},created:function(){var t=this;Object(o["a"])().then((function(e){t.getQaCityList=e.data}))},watch:{"dataForm.keyword":function(t){t&&this.onSubmit()}},methods:{showFileList:function(t){this.fileList=[],t&&(this.fileList=t.split(",").map((function(t){return{url:t,name:t.split("/").pop()}}))),this.dialogFile=!0},getFileIcon:function(t){var e=t.split(".").pop().toLowerCase();switch(e){case"pdf":return"el-icon-file-pdf";case"docx":return"el-icon-file-word";case"pptx":return"el-icon-file-ppt";case"xlsx":return"el-icon-file-excel";default:return"el-icon-file"}},handleQacityl:function(t){var e=this;Object(o["b"])({city_id:t}).then((function(t){e.getQaLists=t.data.data}))},handleZip:function(t){var e=this;t?fetch(t).then((function(t){return t.blob()})).then((function(e){var i=document.createElement("a"),a=URL.createObjectURL(e);i.href=a,i.download=t.split("/").pop(),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)})).catch((function(t){e.$message({showClose:!0,message:"下载失败",type:"error"}),console.error("Download error:",t)})):this.$message({showClose:!0,message:"暂无下载链接",type:"warning"})},load:function(){console.log("load")},handleprant:function(t){if(!t)return"";var e=new RegExp(this.dataForm.keyword,"ig"),i=''.concat(this.dataForm.keyword,"");return t.replace(e,i)},handleprantHtml:function(t){if(!t)return"";var e=this.dataForm.keyword,i=new RegExp(e,"g"),a=t.replace(/(?<=>)[^>]+(?=<[/]?\w+.*>)/g,(function(t){return t.replace(i,"".concat(e,""))}));return a===t?this.handleprant(t):a},onSubmit:function(){var t=this;Object(o["b"])(this.dataForm).then((function(e){t.getQaLists=e.data.data}))},copyToClipboard:function(t){var e=this.stripHtml(t),i=document.createElement("textarea");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.$message({showClose:!0,message:"内容已复制"})},stripHtml:function(t){var e=document.createElement("div");return e.innerHTML=t,e.textContent||e.innerText||""},showImgDialog:function(t){this.imageList=[],t&&(this.imageList=t.split(",").map((function(t){return{url:t}}))),this.dialogImage=!0},handlePreview:function(t){this.previewImageUrl=t,this.previewTitle="图片预览",this.previewVisible=!0},handleRemove:function(t){this.imageList.splice(t,1)},handleDownload:function(t){var e=this;t?fetch(t).then((function(t){return t.blob()})).then((function(e){var i=document.createElement("a"),a=URL.createObjectURL(e);i.href=a,i.download=t.split("/").pop(),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)})).catch((function(t){e.$message({showClose:!0,message:"下载失败",type:"error"}),console.error("Download error:",t)})):this.$message({showClose:!0,message:"暂无下载链接",type:"warning"})}}},l=s,r=(i("0104"),i("2877")),c=Object(r["a"])(l,a,n,!1,null,"d572e954",null);e["default"]=c.exports}}]); \ No newline at end of file diff --git a/service/public/static/js/chunk-6bb75a62.9d492ac2.js b/service/public/static/js/chunk-6bb75a62.9d492ac2.js new file mode 100644 index 00000000..4bd8d177 --- /dev/null +++ b/service/public/static/js/chunk-6bb75a62.9d492ac2.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6bb75a62"],{"272f":function(t,e,i){"use strict";i("7b22")},"7b22":function(t,e,i){},e132:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"problem"},[i("el-row",[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"problem_form"},[i("el-form",{ref:"form",attrs:{inline:!0,model:t.dataForm,"label-width":"60px"}},[i("el-form-item",{attrs:{label:"关键字:"}},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"400px"},attrs:{placeholder:"请输入搜索关键字"},model:{value:t.dataForm.keyword,callback:function(e){t.$set(t.dataForm,"keyword",e)},expression:"dataForm.keyword"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"success"},on:{click:t.onSubmit}},[t._v("查询")])],1)],1)],1)])],1),i("div",{staticClass:"problem_container"},[i("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],staticClass:"problem_left",staticStyle:{overflow:"auto",padding:"10px"},attrs:{"infinite-scroll-immediate":!1}},t._l(t.getQaCityList,(function(e){return i("div",{staticClass:"btn",on:{click:function(i){return t.handleQacityl(e.city_id)}}},[t._v(" "+t._s(e.city_name)+" ")])})),0),i("div",{staticClass:"problem_right"},[i("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],staticClass:"infinite-list",staticStyle:{overflow:"auto"},attrs:{"infinite-scroll-immediate":!1}},t._l(t.getQaLists,(function(e){return i("li",{staticClass:"problem_right_container"},[i("div",{staticClass:"title"},[i("span",{domProps:{innerHTML:t._s(t.handleprant(e.title))}}),i("el-button",{attrs:{type:"primary"},on:{click:function(i){return t.showImgDialog(e.img_zip)}}},[t._v("下载图片")]),i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(i){return t.showFileList(e.trip_zip)}}},[t._v("下载行程")])],1),t._l(e.qaQuestions,(function(e){return i("div",{staticClass:"desc_container"},[i("span",{staticClass:"desc",staticStyle:{"font-weight":"700",color:"#46a6ff"},domProps:{innerHTML:t._s(t.handleprant(e.title))}}),i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"mini"},on:{click:function(i){return t.copyToClipboard(e.content)}}},[t._v("复制")]),i("div",{staticClass:"desc",domProps:{innerHTML:t._s(t.handleprantHtml(e.content))}})],1)}))],2)})),0)])]),i("el-dialog",{attrs:{title:"图片列表",visible:t.dialogImage,width:"80%"},on:{"update:visible":function(e){t.dialogImage=e}}},[i("div",{staticClass:"image-list"},t._l(t.imageList,(function(e,a){return i("el-card",{key:a,staticClass:"image-card",attrs:{"body-style":{padding:"10px"}}},[i("div",{staticStyle:{"text-align":"center"}},[t._v(t._s(e.desc))]),i("img",{staticClass:"image-preview",attrs:{src:e.file}}),i("div",{staticClass:"image-footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(i){return t.handlePreview(e.file)}}},[t._v("查看")]),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return t.handleDownload(e.file)}}},[t._v("下载")])],1)])})),1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogImage=!1}}},[t._v("关闭")])],1)]),i("el-dialog",{attrs:{title:"文件列表",visible:t.dialogFile,width:"80%"},on:{"update:visible":function(e){t.dialogFile=e}}},[i("div",{staticClass:"file-list-horizontal"},t._l(t.fileList,(function(e,a){return i("el-card",{key:a,staticClass:"file-card",attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"file-info"},[i("el-icon",{staticClass:"file-icon"},[i("i",{class:t.getFileIcon(e.file)})]),i("span",{staticClass:"file-name"},[t._v(t._s(e.desc))])],1),i("div",{staticClass:"file-footer"},[i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return t.handleDownload(e.file)}}},[t._v("下载")])],1)])})),1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogFile=!1}}},[t._v("关闭")])],1)]),i("el-dialog",{attrs:{visible:t.previewVisible,title:t.previewTitle,width:"60%"},on:{"update:visible":function(e){t.previewVisible=e}}},[i("img",{staticClass:"image-preview-full",attrs:{src:t.previewImageUrl}}),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.previewVisible=!1}}},[t._v("关闭")])],1)])],1)},n=[],o=(i("a434"),i("d3b7"),i("4d63"),i("ac1f"),i("2c3e"),i("25f0"),i("3ca3"),i("5319"),i("ddb0"),i("2b3d"),i("bf19"),i("9861"),i("85a8")),s={data:function(){return{getQaCityList:[],getQaLists:[],dataForm:{keyword:"",city_id:""},dialogImage:!1,previewVisible:!1,previewImageUrl:"",previewTitle:"",imageList:[],fileList:[],dialogFile:!1}},created:function(){var t=this;Object(o["a"])().then((function(e){t.getQaCityList=e.data}))},watch:{"dataForm.keyword":function(t){t&&this.onSubmit()}},methods:{showFileList:function(t){t.length&&(this.fileList=t),this.dialogFile=!0},getFileIcon:function(t){var e=t.split(".").pop().toLowerCase();switch(console.log(e),e){case"pdf":return"el-icon-file-pdf";case"docx":return"el-icon-file-word";case"pptx":return"el-icon-file-ppt";case"xlsx":return"el-icon-file-excel";default:return"el-icon-file"}},handleQacityl:function(t){var e=this;Object(o["b"])({city_id:t}).then((function(t){e.getQaLists=t.data.data}))},handleZip:function(t){var e=this;t?fetch(t).then((function(t){return t.blob()})).then((function(e){var i=document.createElement("a"),a=URL.createObjectURL(e);i.href=a,i.download=t.split("/").pop(),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)})).catch((function(t){e.$message({showClose:!0,message:"下载失败",type:"error"}),console.error("Download error:",t)})):this.$message({showClose:!0,message:"暂无下载链接",type:"warning"})},load:function(){console.log("load")},handleprant:function(t){if(!t)return"";var e=new RegExp(this.dataForm.keyword,"ig"),i=''.concat(this.dataForm.keyword,"");return t.replace(e,i)},handleprantHtml:function(t){if(!t)return"";var e=this.dataForm.keyword,i=new RegExp(e,"g"),a=t.replace(/(?<=>)[^>]+(?=<[/]?\w+.*>)/g,(function(t){return t.replace(i,"".concat(e,""))}));return a===t?this.handleprant(t):a},onSubmit:function(){var t=this;Object(o["b"])(this.dataForm).then((function(e){t.getQaLists=e.data.data}))},copyToClipboard:function(t){var e=this.stripHtml(t),i=document.createElement("textarea");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.$message({showClose:!0,message:"内容已复制"})},stripHtml:function(t){var e=document.createElement("div");return e.innerHTML=t,e.textContent||e.innerText||""},showImgDialog:function(t){t.length&&(this.imageList=t),this.dialogImage=!0},handlePreview:function(t){this.previewImageUrl=t,this.previewTitle="图片预览",this.previewVisible=!0},handleRemove:function(t){this.imageList.splice(t,1)},handleDownload:function(t){var e=this;t?fetch(t).then((function(t){return t.blob()})).then((function(e){var i=document.createElement("a"),a=URL.createObjectURL(e);i.href=a,i.download=t.split("/").pop(),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)})).catch((function(t){e.$message({showClose:!0,message:"下载失败",type:"error"}),console.error("Download error:",t)})):this.$message({showClose:!0,message:"暂无下载链接",type:"warning"})}}},l=s,r=(i("272f"),i("2877")),c=Object(r["a"])(l,a,n,!1,null,"481eb5dc",null);e["default"]=c.exports}}]); \ No newline at end of file diff --git a/service/public/static/js/chunk-7ebb7cb9.563da4f2.js b/service/public/static/js/chunk-7ebb7cb9.563da4f2.js new file mode 100644 index 00000000..1139d813 --- /dev/null +++ b/service/public/static/js/chunk-7ebb7cb9.563da4f2.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ebb7cb9"],{"5c7c":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"center",label:"ID",width:"60",prop:"id"}}),n("el-table-column",{attrs:{align:"center",label:"姓名",width:"80",prop:"username"}}),n("el-table-column",{attrs:{align:"center",label:"状态",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.isOnline?n("el-tag",{attrs:{type:"border-card"}},[t._v("下线")]):t._e(),1===e.row.isOnline?n("el-tag",{attrs:{type:"success"}},[t._v("在线")]):t._e(),2===e.row.isOnline?n("el-tag",{attrs:{type:"info"}},[t._v("没上线")]):t._e()]}}])}),n("el-table-column",{attrs:{align:"center",label:"是否分单",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(n){return t.updateStatus(e.row)}},model:{value:e.row.isEndWork,callback:function(n){t.$set(e.row,"isEndWork",n)},expression:"scope.row.isEndWork"}})]}}])}),n("el-table-column",{attrs:{align:"center",label:"在线时长",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(Math.floor((e.row.data?e.row.data.onlineTime:e.row.onlineTime)/60)||"--")+" 分钟 ")]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"上线时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.start_work_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"停止分单时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.end_work_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"下线时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.last_work_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),n("el-table-column",{attrs:{width:"138px",align:"center",label:"路线"},scopedSlots:t._u([{key:"default",fn:function(e){return[10===e.row.route_type?n("el-tag",{attrs:{type:"border-card"}},[t._v("境内路线")]):t._e(),20===e.row.route_type?n("el-tag",{attrs:{type:"success"}},[t._v("境外路线")]):t._e()]}}])})],1)],1)},a=[],l={name:"GetOnlineList",components:{},data:function(){return{statusArr:{0:"禁用",1:"启用"},list:[],total:0,loading:!1,listLoading:!0,listQuery:{page:1,limit:10,status:null,content:""},dialogCreate:!1,dialogEdit:!1,item:{},anchors:{}}},created:function(){this.listQuery.status=this.$route.query.status||null,this.listQuery.content=this.$route.query.content||null,this.getOnlineList()},methods:{getOnlineList:function(){var t=this;this.listLoading=!0,this.$axios.get("/admin/admin/getOnlineList",{params:this.listQuery}).then((function(e){t.list=e.data,t.listLoading=!1})).catch((function(){t.listLoading=!1}))},updateStatus:function(t){var e=this;this.$axios.post("/admin/admin/editInfo",{id:t.id,order_num:t.order_num,is_order:t.isEndWork}).then((function(){e.getOnlineList()})).catch((function(){}))}}},s=l,r=(n("c028"),n("2877")),o=Object(r["a"])(s,i,a,!1,null,"7c77c70f",null);e["default"]=o.exports},c028:function(t,e,n){"use strict";n("c7c8")},c7c8:function(t,e,n){}}]); \ No newline at end of file diff --git a/service/public/static/js/chunk-cbb3f856.c4ae2d46.js b/service/public/static/js/chunk-cbb3f856.c4ae2d46.js new file mode 100644 index 00000000..9f3de360 --- /dev/null +++ b/service/public/static/js/chunk-cbb3f856.c4ae2d46.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cbb3f856"],{"058d":function(t,e,i){"use strict";i("34d8")},"09f4":function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),Math.easeInOutQuad=function(t,e,i,a){return t/=a/2,t<1?i/2*t*t+e:(t--,-i/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function n(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,i){var o=s(),l=t-o,r=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=r;var s=Math.easeInOutQuad(c,o,l,e);n(s),c0,expression:"total > 0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),t.dialogCreate?i("el-dialog",{ref:"dialog",attrs:{title:t.title,visible:t.dialogCreate},on:{"update:visible":function(e){t.dialogCreate=e}}},[i("div",{staticStyle:{display:"flex","justify-content":"flex-end","margin-bottom":"10px"}},[i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{type:"primary"},on:{click:t.onSave}},[t._v("保 存")])],1),i("el-scrollbar",{ref:"scrollbar",staticClass:"scrollable-container"},[i("el-form",{ref:"addForm",attrs:{"label-width":"120px",model:t.anchors}},[i("el-form-item",{attrs:{label:"城市",prop:"city_id"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:t.anchors.city_id,callback:function(e){t.$set(t.anchors,"city_id",e)},expression:"anchors.city_id"}},[i("el-form-item",{staticStyle:{display:"inline-flex","text-align":"left",width:"770px"}},t._l(t.getQaCitys,(function(t){return i("el-option",{key:t.city_id,staticStyle:{display:"inline-flex","word-break":"break-all"},attrs:{label:t.city_name,value:t.city_id}})})),1)],1)],1),i("el-form-item",{attrs:{label:"旅游路线",prop:"title"}},[i("el-input",{attrs:{type:"text",placeholder:"请输入旅游路线"},model:{value:t.anchors.title,callback:function(e){t.$set(t.anchors,"title",e)},expression:"anchors.title"}})],1),i("el-form-item",{attrs:{label:"QA内容"}},[t._l(t.anchors.qaQuestions,(function(e,a){return i("div",{staticClass:"mistake-content"},[i("div",{staticClass:"mistake-left"},[i("div",[t._v("副标题")]),i("div",{staticClass:"qa-desc"},[i("el-input",{staticStyle:{width:"100px","margin-right":"10px"},attrs:{type:"text",placeholder:"序号"},model:{value:e.sort,callback:function(i){t.$set(e,"sort",i)},expression:"item.sort"}}),i("el-input",{attrs:{type:"text",placeholder:"请输入副标题"},model:{value:e.title,callback:function(i){t.$set(e,"title",i)},expression:"item.title"}})],1),i("div",[t._v("内容")]),i("div",{staticStyle:{border:"1px solid #ccc"}},[i("myEditor",{model:{value:e.content,callback:function(i){t.$set(e,"content",i)},expression:"item.content"}})],1)]),i("div",{staticClass:"mistake-right"},[i("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.handleDel(a)}}},[t._v("删除")])],1)])})),i("div",{staticClass:"mistake-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:t.handleAdd}},[t._v("添加")])],1)],2),i("el-form-item",{attrs:{label:"状态"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:t.anchors.status,callback:function(e){t.$set(t.anchors,"status",e)},expression:"anchors.status"}})],1),i("div",{staticStyle:{display:"flex","justify-content":"flex-end","margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onAddImg()}}},[t._v("添加图片")])],1),i("el-form-item",{attrs:{label:"上传图片"}},[i("div",{staticClass:"upload-list"},t._l(t.anchors.img_zip,(function(e,a){return i("div",{staticClass:"wu-yu"},[i("i",{staticClass:"close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.handleClose("img_zip",a)}}}),i("el-upload",{staticClass:"avatar-uploader",attrs:{action:"","show-file-list":!1,"http-request":t.handlesAvatarSuccess,"on-success":function(e,i,n){return t.handleAvatarSuccess(e,i,n,a)}}},[e.file?i("div",{staticClass:"img-box"},[t.checkIfUrlContainsImage(e.file)?i("img",{staticClass:"avatar",staticStyle:{width:"100px",height:"100px"},attrs:{src:e.file,alt:""}}):i("i",{staticClass:"el-icon-folder"}),i("div",{staticClass:"desc"},[t._v(t._s(t.handleRegex(e.file)))])]):i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),i("el-input",{attrs:{placeholder:"图片说明"},model:{value:e.desc,callback:function(i){t.$set(e,"desc",i)},expression:"item.desc"}})],1)})),0),i("div",{staticStyle:{color:"red"}},[t._v("(请上传.jpg, png的图片)")])]),i("div",{staticStyle:{display:"flex","justify-content":"flex-end","margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onAddtrip()}}},[t._v("添加行程")])],1),i("el-form-item",{attrs:{label:"上传行程"}},[i("div",{staticClass:"upload-list"},t._l(t.anchors.trip_zip,(function(e,a){return i("div",{staticClass:"wu-yu"},[i("i",{staticClass:"close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.handleClose("trip_zip",a)}}}),i("el-upload",{staticClass:"avatar-uploader",attrs:{action:"","http-request":t.handlesAvatarSuccess,"show-file-list":!1,"on-success":function(e,i,n){return t.handleSuccess(e,i,n,a)}}},[e.file?i("div",{staticClass:"img-box"},[t.checkIfUrlContainsImage(e.file)?i("img",{staticClass:"avatar",staticStyle:{width:"100px",height:"100px"},attrs:{src:e.file,alt:""}}):i("i",{staticClass:"el-icon-folder"}),i("div",{staticClass:"desc"},[t._v(t._s(t.handleRegex(e.file)))])]):i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),i("el-input",{attrs:{placeholder:"行程说明"},model:{value:e.desc,callback:function(i){t.$set(e,"desc",i)},expression:"item.desc"}})],1)})),0),i("span",{staticStyle:{color:"red"}},[t._v("(本行程请上传,ppt,word,pdf格式的文件)")])])],1)],1)],1):t._e()],1)},n=[],s=i("5530"),o=i("c7eb"),l=i("1da1"),r=(i("99af"),i("4de4"),i("4e82"),i("a434"),i("d3b7"),i("ac1f"),i("8a79"),i("466d"),i("67f2")),c=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"relative",staticStyle:{border:"1px solid #ccc"}},[t.disabled?i("div",{staticClass:"disable-layer"}):t._e(),i("Toolbar",{ref:"toolbar",staticStyle:{"border-bottom":"1px solid #ccc"},attrs:{editor:t.editor,"default-config":t.toolbarConfig,mode:t.mode}}),i("Editor",{staticStyle:{height:"300px","overflow-y":"hidden"},attrs:{value:t.value,"default-config":t.editorConfig,mode:t.mode},on:{input:t.handleInput,onCreated:t.onCreated}})],1)},u=[],d=(i("af93"),i("4e15")),p=(i("560e"),{name:"WangEditor",components:{Editor:d["a"],Toolbar:d["b"]},props:{value:String,disabled:Boolean,cusHeight:{type:String,default:"250px"}},data:function(){return{editor:null,html:"",toolbarConfig:{toolbarKeys:["headerSelect","blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink","insertTable"]},editorConfig:{placeholder:"请输入内容..."},mode:"default"}},mounted:function(){},created:function(){},beforeDestroy:function(){var t=this.editor;null!=t&&t.destroy()},methods:{onCreated:function(t){this.editor=Object.seal(t)},handleInput:function(t){this.$emit("input",t)}}}),h=p,f=(i("058d"),i("2877")),m=Object(f["a"])(h,c,u,!1,null,"25113710",null),g=m.exports,v=i("5f87"),y={name:"getQa",components:{Pagination:r["a"],myEditor:g},data:function(){return{statusArr:{0:"禁用",1:"启用"},title:"",list:[],total:0,loading:!1,listLoading:!0,listQuery:{page:1,limit:10,status:null,city_name:"",title:"",content:"",img_zip:[],trip_zip:[]},dialogCreate:!1,dialogEdit:!1,item:{},anchors:{qaQuestions:[],img_zip:[{desc:"",file:""}],trip_zip:[{desc:"",file:""}]},getQaCitys:{}}},created:function(){this.listQuery.status=this.$route.query.status||null,this.listQuery.content=this.$route.query.content||null,this.getList(),this.getQaCity()},methods:{checkIfUrlContainsImage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=[".jpg",".jpeg",".png",".gif",".bmp",".svg",".webp"];return e.some((function(e){return t.toLowerCase().endsWith(e)}))},handlesAvatarSuccess:function(t){var e=this;return Object(l["a"])(Object(o["a"])().mark((function i(){var a,n;return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,a=new FormData,a.append("file",t.file),e.upLoading=!0,e,i.next=7,e.$axios.post("/admin/upload/index",a,{headers:{"Content-type":"multipart/form-data","X-Token":Object(v["a"])()}});case 7:n=i.sent,t.onSuccess(n),i.next=14;break;case 11:i.prev=11,i.t0=i["catch"](0),console.error(i.t0);case 14:case"end":return i.stop()}}),i,null,[[0,11]])})))()},handleClose:function(t,e){1!=this.anchors[t].length?(console.log("i===",e),this.anchors[t].splice(e,1)):this.$message({message:"至少保留一条",type:"warning"})},handleAdd:function(){this.anchors.qaQuestions.push({sort:this.anchors.qaQuestions[this.anchors.qaQuestions.length-1].sort+1,title:"",content:""})},handleDel:function(t){1!=this.anchors.qaQuestions.length?this.anchors.qaQuestions=this.anchors.qaQuestions.filter((function(e,i){return i!==t})):this.$message({message:"至少保留一条",type:"warning"})},getList:function(){var t=this;this.listLoading=!0,this.$axios.get("/admin/qa/getQa",{params:this.listQuery}).then((function(e){t.list=e.data.data,t.total=e.data.total,t.listLoading=!1})).catch((function(){t.listLoading=!1}))},onAddImg:function(){this.anchors.img_zip.push({desc:"",file:""})},onAddtrip:function(){this.anchors.trip_zip.push({desc:"",file:""})},handleAvatarSuccess:function(t,e,i,a){t.data&&(this.anchors.img_zip[a].file="".concat(window.location.protocol,"//").concat(window.location.host).concat(t.data))},handleSuccess:function(t,e,i,a){t.data&&(this.anchors.trip_zip[a].file="".concat(window.location.protocol,"//").concat(window.location.host).concat(t.data))},handleRegex:function(t){var e=/\/([^\/]+)$/,i=t.match(e);return i?i[1]:t},handleFilter:function(){this.listQuery.page=1,this.getList()},onAdd:function(t){this.dialogCreate=!0,t.id?(this.title="编辑QA",t.qaQuestions.length?this.anchors=Object(s["a"])({},t):this.anchors=Object(s["a"])(Object(s["a"])({},t),{},{qaQuestions:[{sort:1,title:"",content:""}]}),this.anchors.img_zip=t.img_zip?t.img_zip:[{desc:"",file:""}],this.anchors.trip_zip=t.trip_zip?t.trip_zip:[{desc:"",file:""}]):(this.title="添加QA",this.anchors.qaQuestions=[{sort:1,title:"",content:""}],this.anchors.img_zip=[{desc:"",file:""}],this.anchors.trip_zip=[{desc:"",file:""}])},onSave:function(){var t=this;if(!this.loading){this.loading=!0;var e="添加QA"==this.title?"/admin/qa/addQa":"/admin/qa/editQa";this.$axios.post(e,this.anchors).then((function(){t.dialogCreate=!1,t.loading=!1,t.getList()})).catch((function(){t.loading=!1}))}},onDel:function(t){var e=this;this.$axios.post("/admin/qa/delQa",{id:t.id}).then((function(){e.getList()})).catch((function(){}))},getQaCity:function(){var t=this;this.$axios.post("/admin/qacity/getQaCity").then((function(e){t.getQaCitys=e.data,t.getList()})).catch((function(){}))},updateSort:function(t){var e=this;this.$axios.post("/admin/qa/editQa",{id:t.id,sort:t.sort}).then((function(){e.getList()})).catch((function(){}))},updateStatus:function(t){var e=this;this.$axios.post("/admin/qa/editQa",{id:t.id,status:t.status}).then((function(){e.getList()})).catch((function(){}))}},mounted:function(){var t=this;setTimeout((function(){t.html="

模拟 Ajax 异步设置内容 HTML

"}),1500)},beforeDestroy:function(){var t=this.editor;null!=t&&t.destroy()}},b=y,C=(i("89fb"),i("593b"),Object(f["a"])(b,a,n,!1,null,"3b4f3a4e",null));e["default"]=C.exports},"67f2":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[i("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},n=[],s=(i("a9e3"),i("09f4")),o={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(s["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(s["a"])(0,800)}}},l=o,r=(i("7d30"),i("2877")),c=Object(r["a"])(l,a,n,!1,null,"28fdfbeb",null);e["a"]=c.exports},"7a17":function(t,e,i){},"7d30":function(t,e,i){"use strict";i("7a17")},"89fb":function(t,e,i){"use strict";i("ac3b")},ac3b:function(t,e,i){}}]); \ No newline at end of file diff --git a/service/public/static/js/chunk-d8b473a4.4ab283a7.js b/service/public/static/js/chunk-d8b473a4.4ab283a7.js deleted file mode 100644 index 5af23971..00000000 --- a/service/public/static/js/chunk-d8b473a4.4ab283a7.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d8b473a4"],{"058d":function(t,e,i){"use strict";i("34d8")},"09f4":function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),Math.easeInOutQuad=function(t,e,i,a){return t/=a/2,t<1?i/2*t*t+e:(t--,-i/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function n(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,i){var o=s(),l=t-o,c=20,r=0;e="undefined"===typeof e?500:e;var d=function t(){r+=c;var s=Math.easeInOutQuad(r,o,l,e);n(s),r0,expression:"total > 0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),i("el-dialog",{attrs:{title:"添加QA",visible:t.dialogCreate},on:{"update:visible":function(e){t.dialogCreate=e}}},[i("el-form",{attrs:{"label-width":"120px",model:t.anchors}},[i("el-form-item",{attrs:{label:"城市"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:t.anchors.city_id,callback:function(e){t.$set(t.anchors,"city_id",e)},expression:"anchors.city_id"}},[i("el-form-item",{staticStyle:{display:"inline-flex","text-align":"left",width:"770px"}},t._l(t.getQaCitys,(function(t){return i("el-option",{key:t.city_id,staticStyle:{display:"inline-flex","word-break":"break-all"},attrs:{label:t.city_name,value:t.city_id}})})),1)],1)],1),i("el-form-item",{attrs:{label:"旅游路线"}},[i("el-input",{attrs:{type:"text",placeholder:"请输入旅游路线"},model:{value:t.anchors.title,callback:function(e){t.$set(t.anchors,"title",e)},expression:"anchors.title"}})],1),i("el-form-item",{attrs:{label:"QA内容"}},[t._l(t.anchors.qaQuestions,(function(e,a){return i("div",{staticClass:"mistake-content"},[i("div",{staticClass:"mistake-left"},[i("div",[t._v("副标题")]),i("div",{staticClass:"qa-desc"},[i("el-input",{staticStyle:{width:"100px","margin-right":"10px"},attrs:{type:"text",placeholder:"序号"},model:{value:e.sort,callback:function(i){t.$set(e,"sort",i)},expression:"item.sort"}}),i("el-input",{attrs:{type:"text",placeholder:"请输入副标题"},model:{value:e.title,callback:function(i){t.$set(e,"title",i)},expression:"item.title"}})],1),i("div",[t._v("内容")]),i("div",{staticStyle:{border:"1px solid #ccc"}},[i("myEditor",{model:{value:e.content,callback:function(i){t.$set(e,"content",i)},expression:"item.content"}})],1)]),i("div",{staticClass:"mistake-right"},[i("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.handleDel(a)}}},[t._v("删除")])],1)])})),i("div",{staticClass:"mistake-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:t.handleAdd}},[t._v("添加")])],1)],2),i("el-form-item",{attrs:{label:"状态"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:t.anchors.status,callback:function(e){t.$set(t.anchors,"status",e)},expression:"anchors.status"}})],1),i("el-form-item",{attrs:{label:"上传图片"}},[i("el-upload",{staticClass:"avatar-uploader",attrs:{action:"admin/upload/index","show-file-list":!1,"on-success":t.handleAvatarSuccess}},[t._l(t.anchors.img_zip,(function(e,a){return i("div",{staticClass:"img-box"},[i("i",{staticClass:"close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.handleClose("img_zip",a)}}}),t.checkIfUrlContainsImage(e)?i("img",{staticClass:"avatar",staticStyle:{width:"100px",height:"100px"},attrs:{src:e,alt:""}}):i("i",{staticClass:"el-icon-folder"}),i("div",{staticClass:"desc"},[t._v(t._s(t.handleRegex(e)))])])})),i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})],2),i("div",{staticStyle:{color:"red"}},[t._v("(请上传.jpg, png的图片)")])],1),i("el-form-item",{attrs:{label:"上传行程"}},[i("el-upload",{staticClass:"avatar-uploader",attrs:{action:"admin/upload/index","show-file-list":!1,"on-success":t.handleSuccess}},[t._l(t.anchors.trip_zip,(function(e,a){return i("div",{staticClass:"img-box"},[i("i",{staticClass:"close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.handleClose("trip_zip",a)}}}),t.checkIfUrlContainsImage(e)?i("img",{staticClass:"avatar",staticStyle:{width:"100px",height:"100px"},attrs:{src:e,alt:""}}):i("i",{staticClass:"el-icon-folder"}),i("div",{staticClass:"desc"},[t._v(t._s(t.handleRegex(e)))])])})),i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})],2),i("span",{staticStyle:{color:"red"}},[t._v("(本行程请上传,ppt,word,pdf格式的文件)")])],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{type:"primary"},on:{click:t.onSave}},[t._v("保 存")])],1)],1),i("el-dialog",{attrs:{title:"编辑内容",visible:t.dialogEdit},on:{"update:visible":function(e){t.dialogEdit=e}}},[i("el-form",{attrs:{"label-width":"120px",model:t.anchors}},[i("el-form-item",{attrs:{label:"城市"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:t.anchors.city_id,callback:function(e){t.$set(t.anchors,"city_id",e)},expression:"anchors.city_id"}},[i("el-form-item",{staticStyle:{display:"inline-flex","text-align":"left",width:"770px"}},t._l(t.getQaCitys,(function(t){return i("el-option",{key:t.city_id,staticStyle:{width:"250px",display:"inline-flex","word-break":"break-all"},attrs:{label:t.city_name,value:t.city_id}})})),1)],1)],1),i("el-form-item",{attrs:{label:"旅游路线"}},[i("el-input",{attrs:{type:"text",placeholder:"请输入旅游路线"},model:{value:t.anchors.title,callback:function(e){t.$set(t.anchors,"title",e)},expression:"anchors.title"}})],1),i("el-form-item",{attrs:{label:"QA内容"}},[t._l(t.anchors.qaQuestions,(function(e,a){return i("div",{staticClass:"mistake-content"},[i("div",{staticClass:"mistake-left"},[i("div",[t._v("副标题")]),i("div",{staticClass:"qa-desc"},[i("el-input",{staticStyle:{width:"100px","margin-right":"10px"},attrs:{type:"text",placeholder:"序号"},model:{value:e.sort,callback:function(i){t.$set(e,"sort",i)},expression:"item.sort"}}),i("el-input",{attrs:{type:"text",placeholder:"请输入副标题"},model:{value:e.title,callback:function(i){t.$set(e,"title",i)},expression:"item.title"}})],1),i("div",[t._v("内容")]),i("div",{staticStyle:{border:"1px solid #ccc"}},[i("myEditor",{model:{value:e.content,callback:function(i){t.$set(e,"content",i)},expression:"item.content"}})],1)]),i("div",{staticClass:"mistake-right"},[i("el-button",{attrs:{type:"danger"},on:{click:function(e){return t.handleDel(a)}}},[t._v("删除")])],1)])})),i("div",{staticClass:"mistake-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:t.handleAdd}},[t._v("添加")])],1)],2),i("el-form-item",{attrs:{label:"状态"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:t.anchors.status,callback:function(e){t.$set(t.anchors,"status",e)},expression:"anchors.status"}})],1),i("el-form-item",{attrs:{label:"上传图片"}},[i("el-upload",{staticClass:"avatar-uploader",attrs:{action:"admin/upload/index","show-file-list":!1,"on-success":t.handleAvatarSuccess}},[t._l(t.anchors.img_zip,(function(e,a){return i("div",{staticClass:"img-box"},[i("i",{staticClass:"close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.handleClose("img_zip",a)}}}),t.checkIfUrlContainsImage(e)?i("img",{staticClass:"avatar",staticStyle:{width:"100px",height:"100px"},attrs:{src:e,alt:""}}):i("i",{staticClass:"el-icon-folder"}),i("div",{staticClass:"desc"},[t._v(t._s(t.handleRegex(e)))])])})),i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})],2),i("div",{staticStyle:{color:"red"}},[t._v("(请上传.jpg, png的图片)")])],1),i("el-form-item",{attrs:{label:"上传行程"}},[i("el-upload",{staticClass:"avatar-uploader",attrs:{action:"admin/upload/index","show-file-list":!1,"on-success":t.handleSuccess}},[t._l(t.anchors.trip_zip,(function(e,a){return i("div",{staticClass:"img-box"},[i("i",{staticClass:"close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.handleClose("trip_zip",a)}}}),t.checkIfUrlContainsImage(e)?i("img",{staticClass:"avatar",staticStyle:{width:"100px",height:"100px"},attrs:{src:e,alt:""}}):i("i",{staticClass:"el-icon-folder"}),i("div",{staticClass:"desc"},[t._v(t._s(t.handleRegex(e)))])])})),i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})],2),i("span",{staticStyle:{color:"red"}},[t._v("(本行程请上传,ppt,word,pdf格式的文件)")])],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{type:"primary"},on:{click:t.onSave}},[t._v("保 存")])],1)],1)],1)},n=[],s=i("5530"),o=(i("99af"),i("4de4"),i("4e82"),i("a434"),i("d3b7"),i("ac1f"),i("8a79"),i("466d"),i("67f2")),l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"relative",staticStyle:{border:"1px solid #ccc"}},[t.disabled?i("div",{staticClass:"disable-layer"}):t._e(),i("Toolbar",{ref:"toolbar",staticStyle:{"border-bottom":"1px solid #ccc"},attrs:{editor:t.editor,"default-config":t.toolbarConfig,mode:t.mode}}),i("Editor",{staticStyle:{height:"300px","overflow-y":"hidden"},attrs:{value:t.value,"default-config":t.editorConfig,mode:t.mode},on:{input:t.handleInput,onCreated:t.onCreated}})],1)},c=[],r=(i("af93"),i("4e15")),d=(i("560e"),{name:"WangEditor",components:{Editor:r["a"],Toolbar:r["b"]},props:{value:String,disabled:Boolean,cusHeight:{type:String,default:"250px"}},data:function(){return{editor:null,html:"",toolbarConfig:{toolbarKeys:["headerSelect","blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink","insertTable"]},editorConfig:{placeholder:"请输入内容..."},mode:"default"}},mounted:function(){},created:function(){},beforeDestroy:function(){var t=this.editor;null!=t&&t.destroy()},methods:{onCreated:function(t){this.editor=Object.seal(t)},handleInput:function(t){this.$emit("input",t)}}}),u=d,p=(i("058d"),i("2877")),h=Object(p["a"])(u,l,c,!1,null,"25113710",null),f=h.exports,g={name:"getQa",components:{Pagination:o["a"],myEditor:f},data:function(){return{statusArr:{0:"禁用",1:"启用"},list:[],total:0,loading:!1,listLoading:!0,listQuery:{page:1,limit:10,status:null,city_name:"",title:"",content:"",img_zip:[],trip_zip:[]},dialogCreate:!1,dialogEdit:!1,item:{},anchors:{qaQuestions:[],img_zip:[],trip_zip:[]},getQaCitys:{}}},created:function(){this.listQuery.status=this.$route.query.status||null,this.listQuery.content=this.$route.query.content||null,this.getList(),this.getQaCity()},methods:{checkIfUrlContainsImage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=[".jpg",".jpeg",".png",".gif",".bmp",".svg",".webp"];return console.log(t),console.log("========fffff===="+e.some((function(e){return t.toLowerCase().endsWith(e)}))),console.log(t),e.some((function(e){return t.toLowerCase().endsWith(e)}))},handleClose:function(t,e){console.log("i===",e),this.anchors[t].splice(e,1)},handleAdd:function(){this.anchors.qaQuestions.push({sort:this.anchors.qaQuestions[this.anchors.qaQuestions.length-1].sort+1,title:"",content:""})},handleDel:function(t){1!=this.anchors.qaQuestions.length?this.anchors.qaQuestions=this.anchors.qaQuestions.filter((function(e,i){return i!==t})):this.$message({message:"至少保留一条",type:"warning"})},getList:function(){var t=this;this.listLoading=!0,this.$axios.get("/admin/qa/getQa",{params:this.listQuery}).then((function(e){t.list=e.data.data,t.total=e.data.total,t.listLoading=!1})).catch((function(){t.listLoading=!1}))},handleAvatarSuccess:function(t,e){console.log("====1111==="+t),this.anchors.img_zip.push("".concat(window.location.protocol,"//").concat(window.location.host).concat(t.data)),console.log("====111122222==="+this.anchors.img_zip)},handleSuccess:function(t,e){console.log("====222222==="+t),this.anchors.trip_zip.push("".concat(window.location.protocol,"//").concat(window.location.host).concat(t.data)),console.log("====111122222==="+this.anchors.trip_zip)},handleRegex:function(t){var e=/\/([^\/]+)$/,i=t.match(e);return i?i[1]:t},handleFilter:function(){this.listQuery.page=1,this.getList()},onAdd:function(){this.anchors.qaQuestions=[{sort:1,title:"",content:""}],this.anchors.img_zip=[],this.anchors.trip_zip=[],this.dialogCreate=!0},onEdit:function(t){t.qaQuestions.length?this.anchors=Object(s["a"])({},t):this.anchors=Object(s["a"])(Object(s["a"])({},t),{},{qaQuestions:[{sort:1,title:"",content:""}]}),this.anchors.img_zip=t.img_zip,this.anchors.trip_zip=t.trip_zip,this.dialogEdit=!0},onSave:function(){var t=this;if(!this.loading){this.loading=!0;var e=this.dialogCreate?"/admin/qa/addQa":"/admin/qa/editQa";this.$axios.post(e,this.anchors).then((function(){t.dialogCreate=!1,t.dialogEdit=!1,t.loading=!1,t.getList()})).catch((function(){t.loading=!1}))}},onDel:function(t){var e=this;this.$axios.post("/admin/qa/delQa",{id:t.id}).then((function(){e.getList()})).catch((function(){}))},getQaCity:function(){var t=this;this.$axios.post("/admin/qacity/getQaCity").then((function(e){t.getQaCitys=e.data,t.getList()})).catch((function(){}))},updateSort:function(t){var e=this;this.$axios.post("/admin/qa/editQa",{id:t.id,sort:t.sort}).then((function(){e.getList()})).catch((function(){}))},updateStatus:function(t){var e=this;this.$axios.post("/admin/qa/editQa",{id:t.id,status:t.status}).then((function(){e.getList()})).catch((function(){}))}},mounted:function(){var t=this;setTimeout((function(){t.html="

模拟 Ajax 异步设置内容 HTML

"}),1500)},beforeDestroy:function(){var t=this.editor;null!=t&&t.destroy()}},m=g,v=(i("cd2d"),i("593b"),Object(p["a"])(m,a,n,!1,null,"6b889b2e",null));e["default"]=v.exports},"67f2":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[i("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},n=[],s=(i("a9e3"),i("09f4")),o={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(s["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(s["a"])(0,800)}}},l=o,c=(i("7d30"),i("2877")),r=Object(c["a"])(l,a,n,!1,null,"28fdfbeb",null);e["a"]=r.exports},"7a17":function(t,e,i){},"7d30":function(t,e,i){"use strict";i("7a17")},b6b4:function(t,e,i){},cd2d:function(t,e,i){"use strict";i("b6b4")}}]); \ No newline at end of file