From 25288f0c7121b46f8b485aad655aa52c31843e59 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Thu, 25 Apr 2019 15:09:26 +0800 Subject: [PATCH 01/33] fix(event): LoginEvent --- laravel/app/Listeners/LoginListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/app/Listeners/LoginListener.php b/laravel/app/Listeners/LoginListener.php index b5abac6..ff0dd8d 100644 --- a/laravel/app/Listeners/LoginListener.php +++ b/laravel/app/Listeners/LoginListener.php @@ -28,7 +28,7 @@ class LoginListener implements ShouldQueue * * @param LoginEvent $event */ - public function handle(Event $event) + public function handle(LoginEvent $event) { //获取事件中保存的信息 $user = $event->getUser(); -- Gitee From e95fccb63f82ba8ccb04d67e035cd70105e1cc5c Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Thu, 25 Apr 2019 15:16:45 +0800 Subject: [PATCH 02/33] =?UTF-8?q?fix(repo):=20=E5=8F=98=E9=87=8F=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laravel/app/Http/Repository/ExcelRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/app/Http/Repository/ExcelRepository.php b/laravel/app/Http/Repository/ExcelRepository.php index e972e54..92e45d2 100644 --- a/laravel/app/Http/Repository/ExcelRepository.php +++ b/laravel/app/Http/Repository/ExcelRepository.php @@ -183,7 +183,7 @@ class ExcelRepository $i = 'A'; foreach ($keys as $num => $key) { - $setActive->setCellValue($i.$number, "\t".$value['param'][$key]); + $setActive->setCellValue($i.$number, "\t".($value['param'][$key] ?? '')); $i++; } -- Gitee From d9d24fd5de51893c0e1a11a460bf733d463abc37 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Thu, 25 Apr 2019 15:36:57 +0800 Subject: [PATCH 03/33] =?UTF-8?q?fix(repo):=20=E5=8F=98=E9=87=8F=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laravel/app/Http/Repository/MultithreadingRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/app/Http/Repository/MultithreadingRepository.php b/laravel/app/Http/Repository/MultithreadingRepository.php index e43aede..1d0cc63 100644 --- a/laravel/app/Http/Repository/MultithreadingRepository.php +++ b/laravel/app/Http/Repository/MultithreadingRepository.php @@ -517,7 +517,7 @@ class MultithreadingRepository $i = 'A'; foreach ($keys as $num => $key) { - $setActive->setCellValue($i.$number, "\t".$value['param'][$key]); + $setActive->setCellValue($i.$number, "\t".($value['param'][$key] ?? '')); $i++; } -- Gitee From 52ab8d86be407674715e4b454f15345c2b1daa93 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Fri, 26 Apr 2019 17:34:11 +0800 Subject: [PATCH 04/33] add: wj --- laravel/guzzle.php | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 laravel/guzzle.php diff --git a/laravel/guzzle.php b/laravel/guzzle.php new file mode 100644 index 0000000..9caa8b8 --- /dev/null +++ b/laravel/guzzle.php @@ -0,0 +1,39 @@ + 1, + 'fulfilled' => function($response, $index) { + // this is delivered each successful response + echo $index.PHP_EOL; + var_dump($response->getBody()->getContents()); + }, + 'rejected' => function($reason, $index) { + // this is delivered each failed request + var_dump($reason); + }, +]); + +// Initiate the transfers and create a promise +$promise = $pool->promise(); + +// Force the pool of requests to complete. +$promise->wait(); + +echo 'finish'; -- Gitee From b111e1bccee25442a2254ee937907a981f6a4459 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Fri, 26 Apr 2019 17:48:00 +0800 Subject: [PATCH 05/33] delete: test --- laravel/guzzle.php | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 laravel/guzzle.php diff --git a/laravel/guzzle.php b/laravel/guzzle.php deleted file mode 100644 index 9caa8b8..0000000 --- a/laravel/guzzle.php +++ /dev/null @@ -1,39 +0,0 @@ - 1, - 'fulfilled' => function($response, $index) { - // this is delivered each successful response - echo $index.PHP_EOL; - var_dump($response->getBody()->getContents()); - }, - 'rejected' => function($reason, $index) { - // this is delivered each failed request - var_dump($reason); - }, -]); - -// Initiate the transfers and create a promise -$promise = $pool->promise(); - -// Force the pool of requests to complete. -$promise->wait(); - -echo 'finish'; -- Gitee From 03e14abec2fb1bc70548c69b9979223fdf58a14e Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Sat, 27 Apr 2019 23:17:29 +0800 Subject: [PATCH 06/33] =?UTF-8?q?add:=20=E7=AE=97=E6=B3=95.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...8. 2019-04-27 \347\256\227\346\263\225.md" | 221 ++++++++++++++++++ 1 file changed, 221 insertions(+) create mode 100644 "laravel/readme/18. 2019-04-27 \347\256\227\346\263\225.md" diff --git "a/laravel/readme/18. 2019-04-27 \347\256\227\346\263\225.md" "b/laravel/readme/18. 2019-04-27 \347\256\227\346\263\225.md" new file mode 100644 index 0000000..a90bf87 --- /dev/null +++ "b/laravel/readme/18. 2019-04-27 \347\256\227\346\263\225.md" @@ -0,0 +1,221 @@ +## 算法 + +> 算法(Algorithm)是指解题方案的准确而完整的描述,是一系列解决问题的清晰指令,算法代表着用系统的方法描述解决问题的策略机制。也就是说,能够对一定规范的输入,在有限时间内获得所要求的输出。如果一个算法有缺陷,或不适合于某个问题,执行这个算法将不会解决这个问题。不同的算法可能用不同的时间、空间或效率来完成同样的任务。一个算法的优劣可以用空间复杂度与时间复杂度来衡量。 + +### 算法的特征 + +- 有穷性: 算法的有穷性是指算法必须能在执行有限个步骤之后终止; + +- 确定性: 算法的每一步骤必须有确切的定义; + +- 输入: 一个算法有0个或多个输入 + +- 输出: 一个算法有一个或多个输出,以反映对输入数据加工后的结果 + +- 可行性: 算法中执行的任何计算步骤都是可以被分解为基本的可执行的操作步 + +### 时间复杂度 + +时间复杂度是执行算法所需要的工作量,一般来说,计算机算法是问题规模n 的函数f(n),算法的时间复杂度也因此记做。 + +`T(n)=Ο(f(n))` + +因此,问题的规模n 越大,算法执行的时间的增长率与f(n) 的增长率正相关 + +### 空间复杂度 + +算法的空间复杂度是指算法需要消耗的内存空间。其计算和表示方法与时间 复杂度类似。 + +![时间复杂度](http://hi.csdn.net/attachment/201105/24/0_1306225542srVx.gif) + +### 常见算法 + +#### 排序算法 + +- [冒泡排序](https://github.com/xianyunyh/arithmetic-php/blob/master/package/Sort/BubbleSort.php) + +```php +function BubbleSort(array $container) +{ + $count = count($container); + for ($j = 1; $j < $count; $j++) { + for ($i = 0; $i < $count - $j; $i++) { + if ($container[$i] > $container[$i + 1]) { + $temp = $container[$i]; + $container[$i] = $container[$i + 1]; + $container[$i + 1] = $temp; + } + } + } + return $container; +} +``` +- [插入排序](https://github.com/xianyunyh/arithmetic-php/blob/master/package/Sort/InsertSort.php) + +```php +function InsertSort(array $container) +{ + $count = count($container); + for ($i = 1; $i < $count; $i++){ + $temp = $container[$i]; + $j = $i - 1; + // Init + while($j >= 0 && $container[$j] > $temp){ + $container[$j+1] = $container[$j]; + $j--; + } + if($i != $j+1) + $container[$j+1] = $temp; + } + return $container; +} +``` + +- [希尔排序](https://github.com/xianyunyh/arithmetic-php/blob/master/package/Sort/ShellSort.php) + +```php +function ShellSort(array $container) +{ + $count = count($container); + for ($increment = intval($count / 2); $increment > 0; $increment = intval($increment / 2)) { + for ($i = $increment; $i < $count; $i++) { + $temp = $container[$i]; + for ($j = $i; $j >= $increment; $j -= $increment) { + if ($temp < $container[$j - $increment]) { + $container[$j] = $container[$j - $increment]; + } else { + break; + } + } + $container[$j] = $temp; + } + } + return $container; +} +``` + + + +- [选择排序](https://github.com/xianyunyh/arithmetic-php/blob/master/package/Sort/SelectSort.php) + +```php +function SelectSort(array $container) +{ + $count = count($container); + for ($i = 0; $i < $count; $i++){ + $k = $i; + for ($j = $i + 1; $j < $count; $j++){ + if($container[$j] < $container[$k]){ + $k = $j; + } + } + if($k != $i){ + $temp = $container[$i]; + $container[$i] = $container[$k]; + $container[$k] = $temp; + } + } + return $container; +} +``` + +- [快速排序](https://github.com/xianyunyh/arithmetic-php/blob/master/package/Sort/QuickSort.php) + +```php +function QuickSort(array $container) +{ + $count = count($container); + if ($count <= 1) { // 基线条件为空或者只包含一个元素,只需要原样返回数组 + return $container; + } + $pivot = $container[0]; // 基准值 pivot + $left = $right = []; + for ($i = 1; $i < $count; $i++) { + if ($container[$i] < $pivot) { + $left[] = $container[$i]; + } else { + $right[] = $container[$i]; + } + } + $left = QuickSort($left); + $right = QuickSort($right); + return array_merge($left, [$container[0]], $right); +} +``` + +- 归并排序 +- 堆排序 + +#### 查找算法 + +- 顺序查找 + +```php +function find($array ,$target) { + foreach ($array as $key=>$value) { + if($value === $target) { + return key; + } + } + return false; +} +``` + +- 有序查找(二分查找) + +```php +function BinaryQueryRecursive(array $container, $search, $low = 0, $top = 'default') +{ + $top == 'default' && $top = count($container); + if ($low <= $top) { + $mid = intval(floor($low + $top) / 2); + if (!isset($container[$mid])) { + return false; + } + if ($container[$mid] == $search) { + return $mid; + } + if ($container[$mid] < $search) { + return BinaryQueryRecursive($container, $search, $mid + 1, $top); + } else { + return BinaryQueryRecursive($container, $search, $low, $mid - 1); + } + } +} +``` + +- 动态查找(BST) +- 哈希表 O(1) + +### 算法的思想 + +- 迭代 +- 递归 +- 动态规划 +- 回溯 +- 分治 +- 贪心 + +### 算法相关的面试题 + +- 字符串 + + - 查找字符串中的字符 + - 翻转字符串 + +- 排序 + + - 冒泡排序 + - 快速排序 + - 归并排序 + +- 链表 + + - 翻转链表 + - 链表有没有环 + +- 二叉搜索树 + + - 二叉树的深度 + - 二叉树的遍历 + - 重建二叉树 -- Gitee From e261854da4e211d8a3dc5e328f63d97af7beae4a Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Sun, 28 Apr 2019 10:07:50 +0800 Subject: [PATCH 07/33] update: md --- ...8. 2019-04-27 \347\256\227\346\263\225.md" | 64 ++++++++++++------- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git "a/laravel/readme/18. 2019-04-27 \347\256\227\346\263\225.md" "b/laravel/readme/18. 2019-04-27 \347\256\227\346\263\225.md" index a90bf87..065a052 100644 --- "a/laravel/readme/18. 2019-04-27 \347\256\227\346\263\225.md" +++ "b/laravel/readme/18. 2019-04-27 \347\256\227\346\263\225.md" @@ -26,13 +26,25 @@ 算法的空间复杂度是指算法需要消耗的内存空间。其计算和表示方法与时间 复杂度类似。 -![时间复杂度](http://hi.csdn.net/attachment/201105/24/0_1306225542srVx.gif) +时间复杂度:平均情况|最好情况|最坏情况 + +排序方式 |平均情况|最坏情况|最好情况 | 空间复杂度 | 稳定性 | 复杂性 +---|---|---|---|---|---|--- +直接插入排序 | O(n^2)|O(n^2)|O(n)|O(1)|稳定|简单 +希尔排序 | O(nlog2n) |O(nlogn2n)| |O(1)|不稳定|较复杂 +冒泡排序 | O(n^2)|O(n^2)|O(n)|O(1)|稳定|简单 +快速排序 | O(nlog2n) |O(n^2)|O(nlog2n)|O(nlog2n) |不稳定|较复杂 +直接选择排序| O(n^2)|O(n^2)|O(n^2)|O(1)|不稳定|简单 +堆排序|O(nlog2n) |O(nlogn2n)| O(nlog2n) |O(1)|不稳定|较复杂 +归并排序|O(nlog2n) |O(nlogn2n)| O(nlog2n) |O(n)|稳定|较复杂 +基数排序|O(d(n+r))|O(d(n+r))|O(d(n+r))|O(n+r)|稳定|较复杂 + ### 常见算法 #### 排序算法 -- [冒泡排序](https://github.com/xianyunyh/arithmetic-php/blob/master/package/Sort/BubbleSort.php) +- 冒泡排序 ```php function BubbleSort(array $container) @@ -50,28 +62,29 @@ function BubbleSort(array $container) return $container; } ``` -- [插入排序](https://github.com/xianyunyh/arithmetic-php/blob/master/package/Sort/InsertSort.php) +- 插入排序 ```php function InsertSort(array $container) { $count = count($container); - for ($i = 1; $i < $count; $i++){ + for ($i = 1; $i < $count; $i++) { $temp = $container[$i]; - $j = $i - 1; + $j = $i - 1; // Init - while($j >= 0 && $container[$j] > $temp){ - $container[$j+1] = $container[$j]; + while ($j >= 0 && $container[$j] > $temp) { + $container[$j + 1] = $container[$j]; $j--; } - if($i != $j+1) - $container[$j+1] = $temp; + if ($i != $j + 1) + $container[$j + 1] = $temp; } return $container; } + ``` -- [希尔排序](https://github.com/xianyunyh/arithmetic-php/blob/master/package/Sort/ShellSort.php) +- 希尔排序 ```php function ShellSort(array $container) @@ -96,21 +109,21 @@ function ShellSort(array $container) -- [选择排序](https://github.com/xianyunyh/arithmetic-php/blob/master/package/Sort/SelectSort.php) +- 选择排序 ```php function SelectSort(array $container) { $count = count($container); - for ($i = 0; $i < $count; $i++){ + for ($i = 0; $i < $count; $i++) { $k = $i; - for ($j = $i + 1; $j < $count; $j++){ - if($container[$j] < $container[$k]){ + for ($j = $i + 1; $j < $count; $j++) { + if ($container[$j] < $container[$k]) { $k = $j; } } - if($k != $i){ - $temp = $container[$i]; + if ($k != $i) { + $temp = $container[$i]; $container[$i] = $container[$k]; $container[$k] = $temp; } @@ -119,7 +132,7 @@ function SelectSort(array $container) } ``` -- [快速排序](https://github.com/xianyunyh/arithmetic-php/blob/master/package/Sort/QuickSort.php) +- 快速排序 ```php function QuickSort(array $container) @@ -129,7 +142,7 @@ function QuickSort(array $container) return $container; } $pivot = $container[0]; // 基准值 pivot - $left = $right = []; + $left = $right = []; for ($i = 1; $i < $count; $i++) { if ($container[$i] < $pivot) { $left[] = $container[$i]; @@ -137,13 +150,14 @@ function QuickSort(array $container) $right[] = $container[$i]; } } - $left = QuickSort($left); + $left = QuickSort($left); $right = QuickSort($right); return array_merge($left, [$container[0]], $right); } ``` - 归并排序 + - 堆排序 #### 查找算法 @@ -151,10 +165,11 @@ function QuickSort(array $container) - 顺序查找 ```php -function find($array ,$target) { - foreach ($array as $key=>$value) { - if($value === $target) { - return key; +function find($array, $target) +{ + foreach ($array as $key => $value) { + if ($value === $target) { + return $key; } } return false; @@ -184,8 +199,9 @@ function BinaryQueryRecursive(array $container, $search, $low = 0, $top = 'defau } ``` + - 动态查找(BST) -- 哈希表 O(1) +- 哈希表 O(1) ### 算法的思想 -- Gitee From c037d9748584e8833c3b331a9ab64ea110b6c931 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Sun, 28 Apr 2019 14:18:07 +0800 Subject: [PATCH 08/33] =?UTF-8?q?fix(repo):=20=E4=BF=AE=E6=94=B9=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E8=A1=A8=E7=9A=84=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laravel/app/Http/Repository/ExcelRepository.php | 2 +- laravel/app/Http/Repository/MultithreadingRepository.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/app/Http/Repository/ExcelRepository.php b/laravel/app/Http/Repository/ExcelRepository.php index 92e45d2..3b2b2df 100644 --- a/laravel/app/Http/Repository/ExcelRepository.php +++ b/laravel/app/Http/Repository/ExcelRepository.php @@ -240,7 +240,7 @@ class ExcelRepository $objActSheet = $objPHPExcel->getActiveSheet(); // 位置bbb *为下文代码位置提供锚 // 给当前活动的表设置名称 - $objActSheet->setTitle('Simple'); + $objActSheet->setTitle('Sheet1'); // 代码还没有结束,可以复制下面的代码来决定我们将要做什么 // 1,直接生成一个文件 diff --git a/laravel/app/Http/Repository/MultithreadingRepository.php b/laravel/app/Http/Repository/MultithreadingRepository.php index 1d0cc63..e7ba361 100644 --- a/laravel/app/Http/Repository/MultithreadingRepository.php +++ b/laravel/app/Http/Repository/MultithreadingRepository.php @@ -574,7 +574,7 @@ class MultithreadingRepository $objActSheet = $objPHPExcel->getActiveSheet(); // 位置bbb *为下文代码位置提供锚 // 给当前活动的表设置名称 - $objActSheet->setTitle('Simple'); + $objActSheet->setTitle('Sheet1'); // 代码还没有结束,可以复制下面的代码来决定我们将要做什么 // 1,直接生成一个文件 -- Gitee From 04a8247ac09abac22e0f544340f5f50366cec757 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Mon, 29 Apr 2019 14:01:40 +0800 Subject: [PATCH 09/33] =?UTF-8?q?fix(control):=20`website`=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=8F=AF=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laravel/app/Http/Controllers/Api/ApiParamController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/laravel/app/Http/Controllers/Api/ApiParamController.php b/laravel/app/Http/Controllers/Api/ApiParamController.php index f824119..fffbfcf 100644 --- a/laravel/app/Http/Controllers/Api/ApiParamController.php +++ b/laravel/app/Http/Controllers/Api/ApiParamController.php @@ -68,6 +68,7 @@ class ApiParamController extends Controller // 会出现 Unknown column 'guid' in 'field list' 不存在的字段入库报错问题 // $rs = ApiParam::insert($request->all()); $input = $request->all(); + $input['website'] = $input['website'] ?? ''; $model = new ApiParam($input); if ($model->save()) { return $this->out(200, ['data' => ['id' => $model->id]]); -- Gitee From 2b46d807d38dc53a8bdcf5ef9969f736891cd7b1 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Tue, 30 Apr 2019 15:22:07 +0800 Subject: [PATCH 10/33] update: readme --- ...\204\345\205\245\345\272\223\350\256\260\345\275\225.md" | 2 +- ...346\216\247\345\210\266 ACL \344\275\277\347\224\250.md" | 6 +++--- ...\264\345\267\264\347\237\242\351\207\217\345\233\276.md" | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git "a/laravel/readme/11. 2019-01-13-\345\210\251\347\224\250 Laravel \344\272\213\344\273\266\347\263\273\347\273\237\345\256\236\347\216\260\347\231\273\345\275\225\346\227\245\345\277\227\347\232\204\345\205\245\345\272\223\350\256\260\345\275\225.md" "b/laravel/readme/11. 2019-01-13-\345\210\251\347\224\250 Laravel \344\272\213\344\273\266\347\263\273\347\273\237\345\256\236\347\216\260\347\231\273\345\275\225\346\227\245\345\277\227\347\232\204\345\205\245\345\272\223\350\256\260\345\275\225.md" index 68d479c..b6cef44 100644 --- "a/laravel/readme/11. 2019-01-13-\345\210\251\347\224\250 Laravel \344\272\213\344\273\266\347\263\273\347\273\237\345\256\236\347\216\260\347\231\273\345\275\225\346\227\245\345\277\227\347\232\204\345\205\245\345\272\223\350\256\260\345\275\225.md" +++ "b/laravel/readme/11. 2019-01-13-\345\210\251\347\224\250 Laravel \344\272\213\344\273\266\347\263\273\347\273\237\345\256\236\347\216\260\347\231\273\345\275\225\346\227\245\345\277\227\347\232\204\345\205\245\345\272\223\350\256\260\345\275\225.md" @@ -138,7 +138,7 @@ class LoginEvent ``` -在事件中记录所需要的信息,并实现这些信息的get方法。 +在事件中记录所需要的信息,并实现这些信息的 get 方法。 #### 登录监听器(Listener) diff --git "a/laravel/readme/15. 2019-03-09-Laravel5.5 \346\235\203\351\231\220\346\216\247\345\210\266 ACL \344\275\277\347\224\250.md" "b/laravel/readme/15. 2019-03-09-Laravel5.5 \346\235\203\351\231\220\346\216\247\345\210\266 ACL \344\275\277\347\224\250.md" index 0678209..1c4d20a 100644 --- "a/laravel/readme/15. 2019-03-09-Laravel5.5 \346\235\203\351\231\220\346\216\247\345\210\266 ACL \344\275\277\347\224\250.md" +++ "b/laravel/readme/15. 2019-03-09-Laravel5.5 \346\235\203\351\231\220\346\216\247\345\210\266 ACL \344\275\277\347\224\250.md" @@ -85,7 +85,7 @@ public function down() php artisan make:model Permission php artisan make:model Role ``` -然后分别打开Permission.php、Role.php 以及 User.php ,加入下面的代码: +然后分别打开 Permission.php、Role.php 以及 User.php ,加入下面的代码: ``` // Permissions.php @@ -100,7 +100,7 @@ public function permissions() { return $this->belongsToMany(Permission::class); } -//给角色添加权限 +// 给角色添加权限 public function givePermissionTo($permission) { return $this->permissions()->save($permission); @@ -136,7 +136,7 @@ public function assignRole($role) 上面的代码实现了给角色分配权限及给用户分配角色,然后还提供了判断用户是否具有某角色及某权限的方法。 -之后就给使用Laravel提供的Authorization来定义权限控制了,打开 /app/Providers/AuthServiceProvider.php 文件,在 boot() 中添加代码: +之后就给使用 Laravel 提供的 Authorization 来定义权限控制了,打开 /app/Providers/AuthServiceProvider.php 文件,在 boot() 中添加代码: ``` public function boot() diff --git "a/laravel/readme/9. 2019-01-05-Vue \344\270\255\345\274\225\347\224\250 Iconfont \351\230\277\351\207\214\345\267\264\345\267\264\347\237\242\351\207\217\345\233\276.md" "b/laravel/readme/9. 2019-01-05-Vue \344\270\255\345\274\225\347\224\250 Iconfont \351\230\277\351\207\214\345\267\264\345\267\264\347\237\242\351\207\217\345\233\276.md" index bb2432d..32772d7 100644 --- "a/laravel/readme/9. 2019-01-05-Vue \344\270\255\345\274\225\347\224\250 Iconfont \351\230\277\351\207\214\345\267\264\345\267\264\347\237\242\351\207\217\345\233\276.md" +++ "b/laravel/readme/9. 2019-01-05-Vue \344\270\255\345\274\225\347\224\250 Iconfont \351\230\277\351\207\214\345\267\264\345\267\264\347\237\242\351\207\217\345\233\276.md" @@ -56,5 +56,4 @@ Vue 中在 `src/App.vue` 中添加: 参考地址: 1. [Vue Element使用icon图标(第三方)](https://www.jianshu.com/p/59dd28f0b9c9) 2. [Vue Element-UI使用icon图标(第三方)--在线版](https://www.jianshu.com/p/8379597e3f97) -3. -点击直达 [阿里巴巴矢量图 iconfont.cn](http://www.iconfont.cn/) +3. 点击直达 [阿里巴巴矢量图 iconfont.cn](http://www.iconfont.cn/) -- Gitee From 0220f017a1d1dfacc2b05e3466fb804c4b088a7a Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Wed, 1 May 2019 15:53:27 +0800 Subject: [PATCH 11/33] update: readme --- ...\345\222\214\350\256\276\350\256\24101.md" | 122 ++++++++++++++++++ ...\256\24102-API\350\256\276\350\256\241.md" | 87 +++++++++++++ 2 files changed, 209 insertions(+) create mode 100644 "laravel/readme/19. 2019-05-01-\346\236\266\346\236\204\345\222\214\350\256\276\350\256\24101.md" create mode 100644 "laravel/readme/19. 2019-05-01-\346\236\266\346\236\204\345\222\214\350\256\276\350\256\24102-API\350\256\276\350\256\241.md" diff --git "a/laravel/readme/19. 2019-05-01-\346\236\266\346\236\204\345\222\214\350\256\276\350\256\24101.md" "b/laravel/readme/19. 2019-05-01-\346\236\266\346\236\204\345\222\214\350\256\276\350\256\24101.md" new file mode 100644 index 0000000..89f9ffc --- /dev/null +++ "b/laravel/readme/19. 2019-05-01-\346\236\266\346\236\204\345\222\214\350\256\276\350\256\24101.md" @@ -0,0 +1,122 @@ +## 架构和设计 + +架构和设计是面试中经常用到的,一是考察你的知识面,而是考察你接触的系统的复杂程序。本文可能介绍一些相关的问题。 + +### 1. 数据库结构设计 + +- 主从复制 +- 分库分表 +- 双主互备 +- 数据库中间件 + + + +为了解决单表数据过多,一般会采取分片【分库分表】水平切分,分片会产生路由,上层应用要知道数据在哪一个库中。 + +路由规则常用的有三种方法 + +- range 范围 + +- 哈希 +- 路由服务 + +#### 可用性 + +为了解决单点的故障,一般引入**主从复制**,也就是垂直分割。 + +采取**双主互备**【keplived】,冗余写库,双主当主从用 + +解决同步冲突,有两种常见解决方案 + +- 两个写库设置不同的初始化,相同步长增加id +- 业务层自己生成唯一的id,保证数据不冲突 + +#### 一致性 + +主从数据库的一致性,通常有两种解决方案: + +- 中间件 + +中间件屏蔽了集群了,对外伪装成一个server。 + +- 强制读主 + +### SESSION架构设计 + +服务器为每个用户创建一个会话,存储用户的相关信息,以便多次请求能够定位到同一个上下文。 只要用户不重启浏览器,会话就一直存在。 + +- session 同步法:多台 web-server 相互同步数据 +- 客户端存储法:一个用户只存储自己的数据 +- 反向代理hash一致性:四层hash和七层hash都可以做,保证一个用户的请求落在一台web-server上 +- 后端统一存储:web-server重启和扩容,session也不会丢失 + +## 缓存架构设计 + +淘汰缓存机制 + +(1)淘汰缓存是一种通用的缓存处理方式 + +(2)先**淘汰缓存,再写数据库**的时序是毋庸置疑的 + +(3)服务化是向业务方屏蔽底层数据库与缓存复杂性的一种通用方式 + + + +设计一个缓存系统,不得不要考虑的问题就是:缓存穿透、缓存击穿与失效时的雪崩效应 + +### 缓存穿透 + +缓存穿透是指查询一个一定不存在的数据,由于缓存是不命中时被动写的,并且出于容错考虑,如果从存储层查不到数据则不写入缓存,这将导致这个不存在的数据每次请求都要到存储层去查询,失去了缓存的意义。在流量大时,可能DB就挂掉了,要是有人利用不存在的key频繁攻击我们的应用,这就是漏洞。 + +### 缓存穿透解决方案 + +有很多种方法可以有效地解决缓存穿透问题,最常见的则是采用布隆过滤器,将所有可能存在的数据哈希到一个足够大的bitmap中,一个一定不存在的数据会被 这个bitmap拦截掉,从而避免了对底层存储系统的查询压力。另外也有一个更为简单粗暴的方法(我们采用的就是这种),如果一个查询返回的数据为空(不管是数 据不存在,还是系统故障),我们仍然把这个空结果进行缓存,但它的过期时间会很短,最长不超过五分钟。 + +### 缓存雪崩 + +缓存雪崩是指在我们设置缓存时采用了相同的过期时间,导致缓存在某一时刻同时失效,请求全部转发到DB,DB瞬时压力过重雪崩。 + +### 缓存雪崩解决方案 + +缓存失效时的雪崩效应对底层系统的冲击非常可怕。大多数系统设计者考虑用加锁或者队列的方式保证缓存的单线 程(进程)写,从而避免失效时大量的并发请求落到底层存储系统上。这里分享一个简单方案就时讲缓存失效时间分散开,比如我们可以在原有的失效时间基础上增加一个随机值,比如1-5分钟随机,这样每一个缓存的过期时间的重复率就会降低,就很难引发集体失效的事件。 + +### 缓存击穿 + +对于一些设置了过期时间的key,如果这些key可能会在某些时间点被超高并发地访问,是一种非常“热点”的数据。这个时候,需要考虑一个问题:缓存被“击穿”的问题,这个和缓存雪崩的区别在于这里针对某一key缓存,前者则是很多key。 + +缓存在某个时间点过期的时候,恰好在这个时间点对这个Key有大量的并发请求过来,这些请求发现缓存过期一般都会从后端DB加载数据并回设到缓存,这个时候大并发的请求可能会瞬间把后端DB压垮。 + +### 缓存击穿 解决方案 + +#### 1.使用互斥锁(mutex key) + +业界比较常用的做法,是使用mutex。简单地来说,就是在缓存失效的时候(判断拿出来的值为空),不是立即去load db,而是先使用缓存工具的某些带成功操作返回值的操作(比如Redis的SETNX或者Memcache的ADD)去set一个mutex key,当操作返回成功时,再进行load db的操作并回设缓存;否则,就重试整个get缓存的方法。 + +SETNX,是「SET if Not eXists」的缩写,也就是只有不存在的时候才设置,可以利用它来实现锁的效果。在redis2.6.1之前版本未实现setnx的过期时间 + +#### 2. "提前"使用互斥锁(mutex key): + +在value内部设置1个超时值(timeout1), timeout1比实际的memcache timeout(timeout2)小。当从cache读取到timeout1发现它已经过期时候,马上延长timeout1并重新设置到cache。然后再从数据库加载数据并设置到cache中 + +#### 3. "永远不过期": + +这里的“永远不过期”包含两层意思: + +> (1) 从redis上看,确实没有设置过期时间,这就保证了,不会出现热点key过期问题,也就是“物理”不过期。 +> +> (2) 从功能上看,如果不过期,那不就成静态的了吗?所以我们把过期时间存在key对应的value里,如果发现要过期了,通过一个后台的异步线程进行缓存的构建,也就是“逻辑”过期 + +​ 从实战看,这种方法对于性能非常友好,唯一不足的就是构建缓存时候,其余线程(非构建缓存的线程)可能访问的是老数据,但是对于一般的互联网功能来说这个还是可以忍受。 + +#### 4. 资源保护: + +采用netflix的hystrix,可以做资源的隔离保护主线程池,如果把这个应用到缓存的构建也未尝不可。 + +四种解决方案:没有最佳只有最合适 + +| 解决方案 | 优点 | 缺点 | +| ----------------------------- | -------------------------------------------------------- | ------------------------------------------------------------ | +| 简单分布式互斥锁(mutex key) | 1. 思路简单 2. 保证一致性 | 1. 代码复杂度增大 2. 存在死锁的风险 3. 存在线程池阻塞的风险 | +| “提前”使用互斥锁 | 1. 保证一致性 | 同上 | +| 不过期(本文) | 1. 异步构建缓存,不会阻塞线程池 | 1. 不保证一致性。 2. 代码复杂度增大(每个value都要维护一个timekey)。 3. 占用一定的内存空间(每个value都要维护一个timekey)。 | +| 资源隔离组件hystrix(本文) | 1. hystrix技术成熟,有效保证后端。 2. hystrix监控强大。 | 1. 部分访问存在降级策略。 | diff --git "a/laravel/readme/19. 2019-05-01-\346\236\266\346\236\204\345\222\214\350\256\276\350\256\24102-API\350\256\276\350\256\241.md" "b/laravel/readme/19. 2019-05-01-\346\236\266\346\236\204\345\222\214\350\256\276\350\256\24102-API\350\256\276\350\256\241.md" new file mode 100644 index 0000000..79a6337 --- /dev/null +++ "b/laravel/readme/19. 2019-05-01-\346\236\266\346\236\204\345\222\214\350\256\276\350\256\24102-API\350\256\276\350\256\241.md" @@ -0,0 +1,87 @@ +## REST API + +REST(Representational State Transfer)表述性状态转换,**REST指的是一组架构约束条件和原则** 。 + +使用URL定位资源,用HTTP动词(GET,POST,PUT,DELETE)描述操作。 + +### 基本概念 + +- 资源 + + > 资源就是网络上的一个实体,一段文本,一张图片或者一首歌曲。资源总是要通过一种载体来反应它的内容。文本可以用TXT,也可以用HTML或者XML、图片可以用JPG格式或者PNG格式,JSON是现在最常用的资源表现形式。 + +- 统一资源接口 + + > 统一接口。RESTful风格的数据元操CRUD(create,read,update,delete)分别对应HTTP方法:GET用来获取资源,POST用来新建资源(也可以用于更新资源),PUT用来更新资源,DELETE用来删除资源,这样就统一了数据操作的接口。 + + - GET 获取资源 + - PUT更新资源 + - POST 新增资源 + - DELETE 删除 + +- URI + + > URI。可以用一个URI(统一资源定位符)指向资源,即每个URI都对应一个特定的资源。要获取这个资源访问它的URI就可以,因此URI就成了每一个资源的地址或识别符。一般的,每个资源至少有一个URI与之对应,最典型的URI就是URL。 + +- 无状态 + + > 所谓无状态即所有的资源都可以URI定位,而且这个定位与其他资源无关,也不会因为其他资源的变化而变化。有状态和无状态的区别,举个例子说明一下,例如要查询员工工资的步骤为第一步:登录系统。第二步:进入查询工资的页面。第三步:搜索该员工。第四步:点击姓名查看工资。这样的操作流程就是有状态的,查询工资的每一个步骤都依赖于前一个步骤,只要前置操作不成功,后续操作就无法执行。如果输入一个URL就可以得到指定员工的工资,则这种情况就是无状态的,因为获取工资不依赖于其他资源或状态,且这种情况下,员工工资是一个资源,由一个URL与之对应可以通过HTTP中的GET方法得到资源,这就是典型的RESTful风格。 + + + +### 设计风格 + +- 协议 + + API接口通讯,一般是通过HTTP[s]协议。 + +- 域名 + + 域名应单独部署到对应的域名。 + + ```php + api.github.com + ``` + +- 版本控制 + + ``` + api.github.com/v1/ + ``` + +- 路径规则 + + 路径中,不要出现动词。比如getUsers。复数表示获取集合数组 + + ``` + /v1/user/10 获取id为10的用户 + /v1/users 获取所有用户 + ``` + +- HTTP请求方式表示动作 + + - GET 表示获取资源 + - PUT 更新资源 + - POST新增资源 + - DELETE 删除资源 + + ``` + GET /users + PUT /user/10 + POST /user/10 + DELETE /user/10 + ``` + +- 过滤信息 + + 如果记录过多,可以使用分页过滤信息 + + - ?limit=10 指定返回记录的数量 + - ?offset=10:指定返回记录的开始位置。 + - ?page=2&per_page=100:指定第几页,以及每页的记录数。 + - ?sortby=name&order=asc:指定返回结果按照哪个属性排序,以及排序顺序 + - ?producy_type=1:指定筛选条件 + +- 异常响应 + + 当 RESTful API 接口出现非 2xx 的 HTTP 错误码响应时,采用全局的异常结构响应信息。 -- Gitee From 7e8f92bc5cfbdff4331461534593479ba9b47e04 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Thu, 2 May 2019 00:20:23 +0800 Subject: [PATCH 12/33] =?UTF-8?q?fix(websocket):=20=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laravel/app/Services/WebSocketService.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/laravel/app/Services/WebSocketService.php b/laravel/app/Services/WebSocketService.php index 760ca2d..3f170c8 100644 --- a/laravel/app/Services/WebSocketService.php +++ b/laravel/app/Services/WebSocketService.php @@ -28,6 +28,11 @@ class WebSocketService implements WebSocketHandlerInterface public function onOpen($server, $request) { + $userInfo = auth('api')->user(); + if (empty($userInfo)) { + $data = $this->outJson(1200, [], '用户未登录或登录超时'); + return $server->push($request->fd, $data); + } // 在触发 onOpen 事件之前 Laravel 的生命周期已经完结,所以 Laravel 的 Request 是可读的,Session 是可读写的 // \Log::info('New WebSocket connection', [$request->fd, request()->all(), session()->getId(), session('xxx'), session(['yyy' => time()])]); // 1. 根据 api_excel 的 id 查询总数, -- Gitee From b0c8e5c05b2537cf879d0f14fdd5106097824286 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Fri, 3 May 2019 14:05:39 +0800 Subject: [PATCH 13/33] =?UTF-8?q?fix(event):=20=E8=AF=B7=E6=B1=82=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=9A=84=E6=95=B0=E6=8D=AE=E5=85=A5=E9=98=9F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laravel/app/Events/SaveApiExcelLogEvent.php | 50 +++++++++++++++ .../Repository/MultithreadingRepository.php | 7 ++- .../app/Listeners/SaveApiExcelLogListener.php | 63 +++++++++++++++++++ .../app/Providers/EventServiceProvider.php | 3 + 4 files changed, 121 insertions(+), 2 deletions(-) create mode 100644 laravel/app/Events/SaveApiExcelLogEvent.php create mode 100644 laravel/app/Listeners/SaveApiExcelLogListener.php diff --git a/laravel/app/Events/SaveApiExcelLogEvent.php b/laravel/app/Events/SaveApiExcelLogEvent.php new file mode 100644 index 0000000..0ae487e --- /dev/null +++ b/laravel/app/Events/SaveApiExcelLogEvent.php @@ -0,0 +1,50 @@ +data = $data; + } + + /** + * 获取 $data + * + * @return array + */ + public function getData() + { + return $this->data; + } + + /** + * Get the channels the event should broadcast on. + * + * @return Channel|array + */ + public function broadcastOn() + { + return new PrivateChannel('channel-default'); + } +} diff --git a/laravel/app/Http/Repository/MultithreadingRepository.php b/laravel/app/Http/Repository/MultithreadingRepository.php index e7ba361..5f0591c 100644 --- a/laravel/app/Http/Repository/MultithreadingRepository.php +++ b/laravel/app/Http/Repository/MultithreadingRepository.php @@ -9,6 +9,7 @@ namespace App\Http\Repository; +use App\Events\SaveApiExcelLogEvent; use App\Models\ApiExcel; use App\Models\ApiExcelLogs; use App\Models\Article; @@ -393,7 +394,8 @@ class MultithreadingRepository 'result' => $result, 'created_at' => date('Y-m-d H:i:s'), ]; - ApiExcelLogs::insert($logs); + // ApiExcelLogs::insert($logs); + event(new SaveApiExcelLogEvent($logs)); // var_dump($result); // var_dump($index); $this->data[$index] = $result; @@ -407,7 +409,8 @@ class MultithreadingRepository 'result' => '', 'created_at' => date('Y-m-d H:i:s'), ]; - ApiExcelLogs::insert($logs); + // ApiExcelLogs::insert($logs); + event(new SaveApiExcelLogEvent($logs)); // this is delivered each failed request if (is_object($reason) && is_callable([$reason, 'getMessage'])) { $reason = 'Line:'.$reason->getLine().' in '.$reason->getFile().'; Message: '.$reason->getMessage(); diff --git a/laravel/app/Listeners/SaveApiExcelLogListener.php b/laravel/app/Listeners/SaveApiExcelLogListener.php new file mode 100644 index 0000000..d79179a --- /dev/null +++ b/laravel/app/Listeners/SaveApiExcelLogListener.php @@ -0,0 +1,63 @@ + 1, 'sort_index' => 0, 'param' => 'name|mobile', 'result' => '{}', 'created_at' => date('Y-m-d H:i:s'),]; + $logs = $event->getData(); + // 保存数据 + ApiExcelLogs::insert($logs); + + } + + /** + * 处理任务失败 + * + * @param \App\Events\SaveApiExcelLogEvent $event + * @param \Exception $exception + * @return void + */ + public function failed(SaveApiExcelLogEvent $event, $exception) + { + // + } +} diff --git a/laravel/app/Providers/EventServiceProvider.php b/laravel/app/Providers/EventServiceProvider.php index 9c13c47..ceb421b 100644 --- a/laravel/app/Providers/EventServiceProvider.php +++ b/laravel/app/Providers/EventServiceProvider.php @@ -22,6 +22,9 @@ class EventServiceProvider extends ServiceProvider 'App\Events\ApiExcelEvent' => [ 'App\Listeners\ApiExcelListener', ], + 'App\Events\SaveApiExcelLogEvent' => [ + 'App\Listeners\SaveApiExcelLogListener', + ], ]; /** -- Gitee From 09007fe1439ff5d95a33dd49f2374b8363ff20d1 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Fri, 3 May 2019 14:06:41 +0800 Subject: [PATCH 14/33] =?UTF-8?q?fix(repo):=20=E6=9A=82=E4=B8=8D=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=98=9F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laravel/app/Http/Repository/MultithreadingRepository.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/laravel/app/Http/Repository/MultithreadingRepository.php b/laravel/app/Http/Repository/MultithreadingRepository.php index 5f0591c..2a37e51 100644 --- a/laravel/app/Http/Repository/MultithreadingRepository.php +++ b/laravel/app/Http/Repository/MultithreadingRepository.php @@ -394,8 +394,8 @@ class MultithreadingRepository 'result' => $result, 'created_at' => date('Y-m-d H:i:s'), ]; - // ApiExcelLogs::insert($logs); - event(new SaveApiExcelLogEvent($logs)); + ApiExcelLogs::insert($logs); + // event(new SaveApiExcelLogEvent($logs)); // var_dump($result); // var_dump($index); $this->data[$index] = $result; @@ -409,8 +409,8 @@ class MultithreadingRepository 'result' => '', 'created_at' => date('Y-m-d H:i:s'), ]; - // ApiExcelLogs::insert($logs); - event(new SaveApiExcelLogEvent($logs)); + ApiExcelLogs::insert($logs); + // event(new SaveApiExcelLogEvent($logs)); // this is delivered each failed request if (is_object($reason) && is_callable([$reason, 'getMessage'])) { $reason = 'Line:'.$reason->getLine().' in '.$reason->getFile().'; Message: '.$reason->getMessage(); -- Gitee From bc5ea54c1d8e0602a6472d329a3b909672a57869 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Fri, 3 May 2019 17:34:48 +0800 Subject: [PATCH 15/33] =?UTF-8?q?fix(view):=20=E5=A2=9E=E5=8A=A0=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/api_excel/index.vue | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/admin/src/views/api_excel/index.vue b/admin/src/views/api_excel/index.vue index 1ea35bf..9f4f27d 100644 --- a/admin/src/views/api_excel/index.vue +++ b/admin/src/views/api_excel/index.vue @@ -4,6 +4,7 @@ 上传测试 + {{ reload_name }} { this.list = response.data.data this.listLoading = false this.total = response.data.total this.url = response.data.appUrl - console.log('type', Object.prototype.toString.call(this.list)) - + // console.log('type', Object.prototype.toString.call(this.list)) + setTimeout(() => { + this.reload = false + this.reload_name = '刷新' + }, 800) this.initWebSocket(8) }) }, @@ -354,4 +361,8 @@ export default { .pagination { margin: 20px auto; } + .reload { + margin-right: 300px; + float: right; + } -- Gitee From 5ab5422799eb4d1731b61c60bab4c669725e85ca Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Fri, 3 May 2019 17:36:08 +0800 Subject: [PATCH 16/33] =?UTF-8?q?chore(view):=20=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laravel/public/index.html | 2 +- laravel/public/static/css/chunk-1553.4abb61ec.css | 1 - .../css/{chunk-4c2d.ac67ea15.css => chunk-4c2d.ec693d81.css} | 0 laravel/public/static/css/chunk-62f7.154e764a.css | 1 + laravel/public/static/css/chunk-68e9.3747958b.css | 1 + laravel/public/static/css/chunk-6dc4.b2010b43.css | 1 - laravel/public/static/css/chunk-8c07.7ad0908c.css | 1 - laravel/public/static/css/chunk-9346.248fb62f.css | 1 + .../css/{chunk-c5f5.5a6d631d.css => chunk-c5f5.15d4ea7c.css} | 0 .../css/{chunk-c8fe.9fd5cbc1.css => chunk-c8fe.237552f2.css} | 0 .../css/{chunk-cfc1.44beec2c.css => chunk-cfc1.1329c27c.css} | 0 laravel/public/static/js/{app.f9d9e091.js => app.8313caaf.js} | 2 +- .../js/{chunk-4c2d.9297d816.js => chunk-4c2d.3e34f9bb.js} | 0 .../js/{chunk-6dc4.46f25fe6.js => chunk-62f7.0846ebc0.js} | 2 +- .../js/{chunk-1553.fc67014d.js => chunk-68e9.ea63a884.js} | 2 +- laravel/public/static/js/chunk-8c07.c41d0261.js | 1 - laravel/public/static/js/chunk-9346.60cdd349.js | 1 + .../js/{chunk-c5f5.bd122b9b.js => chunk-c5f5.e2b99040.js} | 0 .../js/{chunk-c8fe.be008631.js => chunk-c8fe.6fa0d60c.js} | 0 .../js/{chunk-cfc1.9e6719ba.js => chunk-cfc1.508a5c81.js} | 0 .../js/{chunk-libs.a869e769.js => chunk-libs.3dab29d7.js} | 4 ++-- 21 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 laravel/public/static/css/chunk-1553.4abb61ec.css rename laravel/public/static/css/{chunk-4c2d.ac67ea15.css => chunk-4c2d.ec693d81.css} (100%) create mode 100644 laravel/public/static/css/chunk-62f7.154e764a.css create mode 100644 laravel/public/static/css/chunk-68e9.3747958b.css delete mode 100644 laravel/public/static/css/chunk-6dc4.b2010b43.css delete mode 100644 laravel/public/static/css/chunk-8c07.7ad0908c.css create mode 100644 laravel/public/static/css/chunk-9346.248fb62f.css rename laravel/public/static/css/{chunk-c5f5.5a6d631d.css => chunk-c5f5.15d4ea7c.css} (100%) rename laravel/public/static/css/{chunk-c8fe.9fd5cbc1.css => chunk-c8fe.237552f2.css} (100%) rename laravel/public/static/css/{chunk-cfc1.44beec2c.css => chunk-cfc1.1329c27c.css} (100%) rename laravel/public/static/js/{app.f9d9e091.js => app.8313caaf.js} (99%) rename laravel/public/static/js/{chunk-4c2d.9297d816.js => chunk-4c2d.3e34f9bb.js} (100%) rename laravel/public/static/js/{chunk-6dc4.46f25fe6.js => chunk-62f7.0846ebc0.js} (84%) rename laravel/public/static/js/{chunk-1553.fc67014d.js => chunk-68e9.ea63a884.js} (85%) delete mode 100644 laravel/public/static/js/chunk-8c07.c41d0261.js create mode 100644 laravel/public/static/js/chunk-9346.60cdd349.js rename laravel/public/static/js/{chunk-c5f5.bd122b9b.js => chunk-c5f5.e2b99040.js} (100%) rename laravel/public/static/js/{chunk-c8fe.be008631.js => chunk-c8fe.6fa0d60c.js} (100%) rename laravel/public/static/js/{chunk-cfc1.9e6719ba.js => chunk-cfc1.508a5c81.js} (100%) rename laravel/public/static/js/{chunk-libs.a869e769.js => chunk-libs.3dab29d7.js} (99%) diff --git a/laravel/public/index.html b/laravel/public/index.html index 5c4d8cc..28b009f 100644 --- a/laravel/public/index.html +++ b/laravel/public/index.html @@ -1 +1 @@ -Laravel-vue-admin 后台管理系统
\ No newline at end of file +Laravel-vue-admin 后台管理系统
\ No newline at end of file diff --git a/laravel/public/static/css/chunk-1553.4abb61ec.css b/laravel/public/static/css/chunk-1553.4abb61ec.css deleted file mode 100644 index af05325..0000000 --- a/laravel/public/static/css/chunk-1553.4abb61ec.css +++ /dev/null @@ -1 +0,0 @@ -.el-input[data-v-b740b914]{width:97%;margin-bottom:3%}.input-with-select .el-input-group__prepend[data-v-b740b914]{background-color:#fff} \ No newline at end of file diff --git a/laravel/public/static/css/chunk-4c2d.ac67ea15.css b/laravel/public/static/css/chunk-4c2d.ec693d81.css similarity index 100% rename from laravel/public/static/css/chunk-4c2d.ac67ea15.css rename to laravel/public/static/css/chunk-4c2d.ec693d81.css diff --git a/laravel/public/static/css/chunk-62f7.154e764a.css b/laravel/public/static/css/chunk-62f7.154e764a.css new file mode 100644 index 0000000..fd54237 --- /dev/null +++ b/laravel/public/static/css/chunk-62f7.154e764a.css @@ -0,0 +1 @@ +.el-footer[data-v-1a8781ab],.el-header[data-v-1a8781ab]{background-color:#b3c0d1;color:#333;text-align:center;line-height:60px}.el-aside[data-v-1a8781ab]{background-color:#d3dce6;color:#333;text-align:center;line-height:200px}.el-main[data-v-1a8781ab]{background-color:#e9eef3;color:#333;text-align:center;line-height:160px}body>.el-container[data-v-1a8781ab]{margin-bottom:40px}.el-container:nth-child(5) .el-aside[data-v-1a8781ab],.el-container:nth-child(6) .el-aside[data-v-1a8781ab]{line-height:260px}.el-container:nth-child(7) .el-aside[data-v-1a8781ab]{line-height:320px} \ No newline at end of file diff --git a/laravel/public/static/css/chunk-68e9.3747958b.css b/laravel/public/static/css/chunk-68e9.3747958b.css new file mode 100644 index 0000000..0bb8969 --- /dev/null +++ b/laravel/public/static/css/chunk-68e9.3747958b.css @@ -0,0 +1 @@ +.el-input[data-v-f8064936]{width:97%;margin-bottom:3%}.input-with-select .el-input-group__prepend[data-v-f8064936]{background-color:#fff} \ No newline at end of file diff --git a/laravel/public/static/css/chunk-6dc4.b2010b43.css b/laravel/public/static/css/chunk-6dc4.b2010b43.css deleted file mode 100644 index 08c76f2..0000000 --- a/laravel/public/static/css/chunk-6dc4.b2010b43.css +++ /dev/null @@ -1 +0,0 @@ -.el-footer[data-v-708c40ba],.el-header[data-v-708c40ba]{background-color:#b3c0d1;color:#333;text-align:center;line-height:60px}.el-aside[data-v-708c40ba]{background-color:#d3dce6;color:#333;text-align:center;line-height:200px}.el-main[data-v-708c40ba]{background-color:#e9eef3;color:#333;text-align:center;line-height:160px}body>.el-container[data-v-708c40ba]{margin-bottom:40px}.el-container:nth-child(5) .el-aside[data-v-708c40ba],.el-container:nth-child(6) .el-aside[data-v-708c40ba]{line-height:260px}.el-container:nth-child(7) .el-aside[data-v-708c40ba]{line-height:320px} \ No newline at end of file diff --git a/laravel/public/static/css/chunk-8c07.7ad0908c.css b/laravel/public/static/css/chunk-8c07.7ad0908c.css deleted file mode 100644 index 0f0a47d..0000000 --- a/laravel/public/static/css/chunk-8c07.7ad0908c.css +++ /dev/null @@ -1 +0,0 @@ -.el-row[data-v-92e9af46]{margin-bottom:20px}.pagination[data-v-92e9af46]{margin:20px auto} \ No newline at end of file diff --git a/laravel/public/static/css/chunk-9346.248fb62f.css b/laravel/public/static/css/chunk-9346.248fb62f.css new file mode 100644 index 0000000..b80d7fe --- /dev/null +++ b/laravel/public/static/css/chunk-9346.248fb62f.css @@ -0,0 +1 @@ +.el-row[data-v-4dea90c2]{margin-bottom:20px}.pagination[data-v-4dea90c2]{margin:20px auto}.reload[data-v-4dea90c2]{margin-right:300px;float:right} \ No newline at end of file diff --git a/laravel/public/static/css/chunk-c5f5.5a6d631d.css b/laravel/public/static/css/chunk-c5f5.15d4ea7c.css similarity index 100% rename from laravel/public/static/css/chunk-c5f5.5a6d631d.css rename to laravel/public/static/css/chunk-c5f5.15d4ea7c.css diff --git a/laravel/public/static/css/chunk-c8fe.9fd5cbc1.css b/laravel/public/static/css/chunk-c8fe.237552f2.css similarity index 100% rename from laravel/public/static/css/chunk-c8fe.9fd5cbc1.css rename to laravel/public/static/css/chunk-c8fe.237552f2.css diff --git a/laravel/public/static/css/chunk-cfc1.44beec2c.css b/laravel/public/static/css/chunk-cfc1.1329c27c.css similarity index 100% rename from laravel/public/static/css/chunk-cfc1.44beec2c.css rename to laravel/public/static/css/chunk-cfc1.1329c27c.css diff --git a/laravel/public/static/js/app.f9d9e091.js b/laravel/public/static/js/app.8313caaf.js similarity index 99% rename from laravel/public/static/js/app.f9d9e091.js rename to laravel/public/static/js/app.8313caaf.js index 72ea47f..8fcf50f 100644 --- a/laravel/public/static/js/app.f9d9e091.js +++ b/laravel/public/static/js/app.8313caaf.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{"/OCX":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-table",use:"icon-ico-table-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"0faV":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-article",use:"icon-article-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"3PhE":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},"6xvN":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},"8fzN":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-tag",use:"icon-tag-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"96Go":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-aliyun",use:"icon-ico-aliyun-usage",viewBox:"0 0 1844 1024",content:''});o.a.add(s);n.default=s},"9ChT":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-category",use:"icon-category-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"A0++":function(e,n,t){"use strict";var i=t("xUNX");t.n(i).a},Ahhv:function(e,n,t){},BKkR:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-article",use:"icon-ico-article-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},GPBF:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},Hoqj:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-category",use:"icon-ico-category-usage",viewBox:"0 0 1260 1024",content:''});o.a.add(s);n.default=s},Kj24:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},LyEU:function(e,n,t){"use strict";var i=t("m821");t.n(i).a},MMMJ:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},OXmT:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-permission",use:"icon-permission-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},Q2AE:function(e,n,t){"use strict";var i=t("Kw5r"),a=t("L2JU"),c=t("p46w"),o=t.n(c),s={state:{sidebar:{opened:!+o.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},mutations:{TOGGLE_SIDEBAR:function(e){e.sidebar.opened?o.a.set("sidebarStatus",1):o.a.set("sidebarStatus",0),e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1},CLOSE_SIDEBAR:function(e,n){o.a.set("sidebarStatus",1),e.sidebar.opened=!1,e.sidebar.withoutAnimation=n},TOGGLE_DEVICE:function(e,n){e.device=n}},actions:{ToggleSideBar:function(e){(0,e.commit)("TOGGLE_SIDEBAR")},CloseSideBar:function(e,n){(0,e.commit)("CLOSE_SIDEBAR",n.withoutAnimation)},ToggleDevice:function(e,n){(0,e.commit)("TOGGLE_DEVICE",n)}}},l=t("gDS+"),r=t.n(l),d=t("4d7F"),u=t.n(d),h=t("t3Un");var m=t("X4fA"),p={state:{token:Object(m.a)(),name:"",avatar:"",roles:[],addRouters:[]},mutations:{SET_TOKEN:function(e,n){e.token=n},SET_NAME:function(e,n){e.name=n},SET_AVATAR:function(e,n){e.avatar=n},SET_ROLES:function(e,n){e.roles=n},SET_ROUTERS:function(e,n){e.addRouters=n}},actions:{Login:function(e,n){var t=e.commit;return new u.a(function(e,i){(function(e){return h.a.post("/api/user/login",e)})(n).then(function(n){var i=n.data;Object(m.c)(i.access_token),t("SET_TOKEN",i.access_token),e()}).catch(function(e){i(e)})})},GetInfo:function(e){var n=e.commit,t=e.state;return new u.a(function(e,i){(function(e){return Object(h.a)({url:"/api/user/info",method:"get",params:{token:e}})})(t.token).then(function(t){var a=t.data;a.roles&&a.roles.length>0?n("SET_ROLES",a.roles):i("getInfo: roles must be a non-null array !"),n("SET_NAME",a.name),n("SET_AVATAR",a.avatar),e(t)}).catch(function(e){i(e)})})},LogOut:function(e){var n=e.commit,t=e.state;return new u.a(function(e,i){(t.token,Object(h.a)({url:"/api/user/logout",method:"post"})).then(function(){n("SET_TOKEN",""),n("SET_ROLES",[]),Object(m.b)(),sessionStorage.setItem("roles",""),e()}).catch(function(e){i(e)})})},FedLogOut:function(e){var n=e.commit;return new u.a(function(e){n("SET_TOKEN",""),Object(m.b)(),e()})},GenerateRoutes:function(e,n){var t=e.commit;return new u.a(function(e){t("SET_ROUTERS",n.routers),sessionStorage.setItem("roles",r()(n.roles)),e()})}}},v={sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},roles:function(e){return e.user.roles},addRouters:function(e){return e.user.addRouters}};i.default.use(a.a);var f=new a.a.Store({modules:{app:s,user:p},getters:v});n.a=f},"R/Hx":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},TfVu:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(s);n.default=s},TnCw:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-auth",use:"icon-auth-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"Uf/o":function(e,n,t){var i={"./add.svg":"wqOL","./api.svg":"dHYy","./article.svg":"0faV","./auth.svg":"TnCw","./bus.svg":"jxcm","./category.svg":"9ChT","./example.svg":"MMMJ","./excel.svg":"ZZmv","./eye.svg":"TfVu","./form.svg":"6xvN","./ico-aliyun.svg":"96Go","./ico-article.svg":"BKkR","./ico-category.svg":"Hoqj","./ico-table.svg":"/OCX","./link.svg":"GPBF","./nav.svg":"dbke","./nested.svg":"3PhE","./password.svg":"Kj24","./permission.svg":"OXmT","./role.svg":"Ugzh","./table.svg":"R/Hx","./tag.svg":"8fzN","./task.svg":"dxv6","./tree.svg":"k80C","./user.svg":"s7Vf"};function a(e){var n=c(e);return t(n)}function c(e){var n=i[e];if(!(n+1)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n}a.keys=function(){return Object.keys(i)},a.resolve=c,e.exports=a,a.id="Uf/o"},Ugzh:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-role",use:"icon-role-usage",viewBox:"0 0 1333 1024",content:''});o.a.add(s);n.default=s},Vtdi:function(e,n,t){"use strict";t.r(n);var i=t("Kw5r"),a=(t("9d8Q"),t("XJYT")),c=t.n(a),o=(t("D66Q"),t("cIdk"),t("sg+I"),t("stgD")),s=t.n(o),l=(t("ZOF2"),{name:"App"}),r=(t("A0++"),t("KHd+")),d=Object(r.a)(l,function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},[],!1,null,null,null);d.options.__file="App.vue";var u=d.exports,h=t("jE9Z");i.default.use(h.a);var m=function(){return t.e("chunk-4c2d").then(t.bind(null,"2c6e"))},p=[].concat([{path:"/",name:"index",component:function(){return t.e("chunk-64b5").then(t.bind(null,"er4n"))},hidden:!0},{path:"/line",name:"line",component:function(){return t.e("chunk-687a").then(t.bind(null,"G5rc"))},hidden:!0},{path:"/home",component:function(){return t.e("chunk-1412").then(t.bind(null,"d7gD"))},hidden:!0},{path:"/md",name:"md",component:function(){return t.e("gW6U").then(t.bind(null,"gW6U"))},hidden:!0},{path:"/out",name:"out",component:function(){return t.e("chunk-132e").then(t.bind(null,"LnUv"))},hidden:!0},{path:"/excel",name:"excel",component:function(){return Promise.all([t.e("chunk-7a80"),t.e("chunk-1553")]).then(t.bind(null,"5EWB"))},hidden:!0},{path:"/upload",name:"upload",component:function(){return t.e("chunk-6dc4").then(t.bind(null,"4p+I"))},hidden:!0},{path:"/websocket",name:"websocket",component:function(){return t.e("chunk-f5ec").then(t.bind(null,"6jsT"))},hidden:!0},{path:"/echarts",name:"echarts",component:function(){return Promise.all([t.e("chunk-7025"),t.e("chunk-6148")]).then(t.bind(null,"HnWs"))},hidden:!0},{path:"/login",component:function(){return t.e("chunk-c8fe").then(t.bind(null,"ntYl"))},hidden:!0},{path:"/404",component:function(){return t.e("chunk-c5f5").then(t.bind(null,"jNvO"))},hidden:!0},{path:"/admin",component:m,redirect:"/admin/dashboard",name:"Dashboard",hidden:!0,children:[{path:"dashboard",component:function(){return Promise.all([t.e("chunk-7025"),t.e("chunk-cfc1")]).then(t.bind(null,"lAbF"))}}]}],[{path:"/form",component:m,children:[{path:"index",name:"Form",component:function(){return t.e("chunk-d818").then(t.bind(null,"Nx2/"))},meta:{title:"Form",icon:"form"}}],hidden:!0},{path:"/nested",component:m,redirect:"/nested/menu1",name:"Nested",meta:{title:"Nested",icon:"nested"},children:[{path:"menu1",component:function(){return t.e("6bwb").then(t.bind(null,"6bwb"))},name:"Menu1",meta:{title:"Menu1"},children:[{path:"menu1-1",component:function(){return t.e("kbPl").then(t.bind(null,"kbPl"))},name:"Menu1-1",meta:{title:"Menu1-1"}},{path:"menu1-2",component:function(){return t.e("Vc2m").then(t.bind(null,"Vc2m"))},name:"Menu1-2",meta:{title:"Menu1-2"},children:[{path:"menu1-2-1",component:function(){return t.e("ZYJW").then(t.bind(null,"ZYJW"))},name:"Menu1-2-1",meta:{title:"Menu1-2-1"}},{path:"menu1-2-2",component:function(){return t.e("tvtM").then(t.bind(null,"tvtM"))},name:"Menu1-2-2",meta:{title:"Menu1-2-2"}}]},{path:"menu1-3",component:function(){return t.e("jYsI").then(t.bind(null,"jYsI"))},name:"Menu1-3",meta:{title:"Menu1-3"}}]},{path:"menu2",component:function(){return t.e("27OO").then(t.bind(null,"27OO"))},meta:{title:"menu2"}}]},{path:"*",redirect:"/404",hidden:!0}]),v=new h.a({scrollBehavior:function(){return{y:0}},routes:p}),f=t("Q2AE"),w={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{iconName:function(){return"#icon-"+this.iconClass},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"}}},g=(t("LyEU"),Object(r.a)(w,function(){var e=this.$createElement,n=this._self._c||e;return n("svg",{class:this.svgClass,attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":this.iconName}})])},[],!1,null,"2f0f1ae2",null));g.options.__file="index.vue";var x=g.exports,b={name:"NavBar",data:function(){return{activeIndex:""}}},y=(t("mNmU"),Object(r.a)(b,function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"nav"},[t("el-menu",{staticClass:"el-menu-demo",attrs:{"default-active":e.activeIndex,mode:"horizontal"}},[t("el-row",{attrs:{gutter:1}},[t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"1"}},[t("router-link",{attrs:{to:{name:"index"}}},[e._v("公交-首页")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"3"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"out"}}},[e._v("中文排版")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"4"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"excel"}}},[e._v("在线表格 Excel")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"4"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"upload"}}},[e._v("图片转文字")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-submenu",{attrs:{index:"2"}},[t("template",{slot:"title"},[e._v("其它工具")]),e._v(" "),t("el-menu-item",{attrs:{index:"2-2"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"md"}}},[e._v("Markdown")])],1),e._v(" "),t("el-menu-item",{attrs:{index:"2-2"}},[t("router-link",{attrs:{to:{name:"echarts"}}},[e._v("图表")])],1)],2)],1)])],1)],1)],1)},[],!1,null,"6308ec4e",null));y.options.__file="navBar.vue";var k=y.exports;i.default.component("svg-icon",x),i.default.component("nav-bar",k);!function(e){e.keys().map(e)}(t("Uf/o"));var M=t("m1cH"),z=t.n(M),B=t("QbLZ"),C=t.n(B),L=function(){return t.e("chunk-4c2d").then(t.bind(null,"2c6e"))},E="Super Administrator",H=[{path:"/api_excel",component:L,redirect:"/api_excel/index",name:"Excel-List",meta:{title:"批量测试管理",icon:"ico-table",roles:[E,"Admin"]},children:[{path:"/api_excel/edit/:id",name:"EditExcel",component:function(){return t.e("chunk-d226").then(t.bind(null,"F/uS"))},hidden:!0},{path:"/api_excel/add",name:"AddExcel",component:function(){return t.e("chunk-2f6b").then(t.bind(null,"wf12"))},meta:{title:"上传测试",icon:"excel",roles:[E,"Admin"]}},{path:"/api_excel/index",name:"Excel",component:function(){return t.e("chunk-8c07").then(t.bind(null,"yWqU"))},meta:{title:"测试管理",icon:"ico-aliyun",roles:[E,"Admin"]}},{path:"/api_param/add",name:"AddApiParam",component:function(){return t.e("chunk-34e9").then(t.bind(null,"eR/3"))},hidden:!0},{path:"/api_param/edit/:id",name:"EditApiParam",component:function(){return t.e("chunk-2227").then(t.bind(null,"/+Eh"))},hidden:!0},{path:"/api_param/index",name:"ApiParam",component:function(){return t.e("chunk-e667").then(t.bind(null,"dH62"))},meta:{title:"接口列表",icon:"api",roles:[E,"Admin"]}}]}],V=[{path:"/category",component:L,redirect:"/category/index",name:"Category-Nav",meta:{title:"栏目菜单",icon:"category",roles:[E]},children:[{path:"/category/add",name:"AddCategory",component:function(){return t.e("chunk-6908").then(t.bind(null,"GMaQ"))},meta:{title:"添加栏目"},hidden:!0},{path:"/category/edit/:id",name:"EditCategory",component:function(){return t.e("chunk-7105").then(t.bind(null,"1ylW"))},hidden:!0},{path:"/category/index",name:"Category",component:function(){return t.e("chunk-4055").then(t.bind(null,"oZKA"))},meta:{title:"栏目管理",icon:"ico-category",roles:[E]}},{path:"/nav/add",name:"AddNav",component:function(){return t.e("chunk-4f15").then(t.bind(null,"JPfX"))},hidden:!0},{path:"/nav/edit/:id",name:"EditNav",component:function(){return t.e("chunk-4332").then(t.bind(null,"LnHU"))},hidden:!0},{path:"/nav",name:"Nav",component:function(){return t.e("chunk-99dd").then(t.bind(null,"mxRw"))},meta:{title:"导航管理",icon:"nav",roles:[E]}},{path:"/tag/add",name:"AddTag",component:function(){return t.e("chunk-82a7").then(t.bind(null,"+1ta"))},meta:{title:"添加标签"},hidden:!0},{path:"/tag/edit/:id",name:"EditTag",component:function(){return t.e("chunk-1dc3").then(t.bind(null,"S2fK"))},hidden:!0},{path:"/tag",name:"Tag",component:function(){return t.e("chunk-ac41").then(t.bind(null,"ZhNY"))},meta:{title:"标签列表",icon:"tag",roles:[E]}}]},{path:"/article",component:L,name:"Article-List",meta:{title:"文章管理",icon:"article",roles:[E]},children:[{path:"/article/edit/:id",name:"EditArticle",component:function(){return t.e("chunk-766b").then(t.bind(null,"++5l"))},hidden:!0},{path:"/article/index",name:"Article",component:function(){return t.e("chunk-9f60").then(t.bind(null,"Iwy+"))},meta:{title:"文章管理",icon:"ico-article",roles:[E]}},{path:"/article/add",name:"AddArticle",component:function(){return t.e("chunk-59d3").then(t.bind(null,"/cac"))},meta:{title:"添加文章",icon:"add",roles:[E]}}]},{path:"/list",component:L,redirect:"/task",name:"公交",meta:{title:"公交管理",icon:"bus",roles:[E]},children:[{path:"/task/search",name:"search",component:function(){return t.e("chunk-ee37").then(t.bind(null,"Keas"))},hidden:!0},{path:"/task/newBus",name:"NewBus",component:function(){return t.e("chunk-3994").then(t.bind(null,"GRON"))},hidden:!0},{path:"/task/edit/:id",name:"taskEdit",component:function(){return t.e("chunk-fc68").then(t.bind(null,"J1Jp"))},hidden:!0},{path:"/task",name:"定时任务",component:function(){return t.e("chunk-775c").then(t.bind(null,"xDC0"))},meta:{title:"定时任务",icon:"task",roles:[E]}},{path:"lines/add",name:"linesAdd",component:function(){return t.e("chunk-00f7").then(t.bind(null,"V9Fe"))},hidden:!0},{path:"lines/edit/:id",name:"linesEdit",component:function(){return t.e("chunk-e830").then(t.bind(null,"bAuQ"))},hidden:!0},{path:"lines",name:"公交列表",component:function(){return t.e("chunk-47b6").then(t.bind(null,"HBaq"))},meta:{title:"公交列表",icon:"table",roles:[E]}},{path:"config",name:"配置管理",component:function(){return t.e("chunk-47b6").then(t.bind(null,"HBaq"))},meta:{title:"配置列表",icon:"table",roles:[E]}},{path:"tree",name:"Tree",component:function(){return t.e("ad09").then(t.bind(null,"ad09"))},meta:{title:"Tree",icon:"tree",roles:[E]},hidden:!0}]},{path:"user",component:L,redirect:"/user",name:"权限",meta:{title:"权限管理",icon:"auth",roles:[E]},children:[{path:"index",name:"userIndex",component:function(){return t.e("chunk-2164").then(t.bind(null,"44Km"))},hidden:!0},{path:"password",name:"userPassword",component:function(){return t.e("chunk-b5cc").then(t.bind(null,"HwY3"))},hidden:!0},{path:"/user/add",name:"AddUser",component:function(){return t.e("chunk-7951").then(t.bind(null,"fqc2"))},hidden:!0},{path:"/user/edit/:id",name:"EditUser",component:function(){return t.e("chunk-f78c").then(t.bind(null,"00Qp"))},hidden:!0},{path:"/user",name:"用户管理",component:function(){return t.e("chunk-2164").then(t.bind(null,"44Km"))},meta:{title:"用户列表",icon:"user",roles:[E]}},{path:"/permission/add",name:"AddPermission",component:function(){return t.e("chunk-0def").then(t.bind(null,"oKS6"))},hidden:!0},{path:"/permission/edit/:id",name:"EditPermission",component:function(){return t.e("chunk-98bc").then(t.bind(null,"t2jL"))},hidden:!0},{path:"/permission",name:"权限列表",component:function(){return t.e("chunk-1496").then(t.bind(null,"wjrd"))},meta:{title:"权限列表",icon:"permission",roles:[E]}},{path:"/role/add",name:"Addroles",component:function(){return t.e("chunk-4707").then(t.bind(null,"rwG5"))},hidden:!0},{path:"/role/edit/:id",name:"Editroles",component:function(){return t.e("chunk-d993").then(t.bind(null,"XqkG"))},hidden:!0},{path:"/role",name:"角色管理",component:function(){return t.e("chunk-5ba7").then(t.bind(null,"bDWH"))},meta:{title:"角色管理",icon:"role",roles:[E]}}]}],A=[],O=t("Mj6V"),_=t.n(O),S=(t("pdi6"),t("X4fA"));if(0===f.a.getters.roles.length&&sessionStorage.getItem("roles")){var I=JSON.parse(sessionStorage.getItem("roles")),T=N(I);f.a.dispatch("GenerateRoutes",{routers:T,roles:I}),v.addRoutes(T)}var F=["/login","/index","/line","/home","/404","/","","/echarts","/md","/out","/excel","/upload"];function Y(e,n){return e.indexOf("Super Administrator")>=0||(!n||e.some(function(e){return n.indexOf(e)>=0}))}function N(e){return e.indexOf("Super Administrator")>=0?[].concat(z()(H),z()(V),z()(A)):e.indexOf("Admin")>=0?H:A}v.beforeEach(function(e,n,t){_.a.start(),Object(S.a)()?"/login"===e.path?(t({path:"/admin"}),_.a.done()):0===f.a.getters.roles.length?f.a.dispatch("GetInfo").then(function(n){var i=N(n.data.roles);sessionStorage.getItem("roles")||v.addRoutes(i),f.a.dispatch("GenerateRoutes",{routers:i,roles:n.data.roles}),!e.meta.role||-1!==F.indexOf(e.path)||Y(n.data.roles,e.meta.roles)?t(C()({},e,{replace:!0})):(t({path:"/404"}),_.a.done())}).catch(function(e){f.a.dispatch("FedLogOut").then(function(){a.Message.error(e||"Verification failed, please login again"),t({path:"/admin"})})}):!e.meta.role||-1!==F.indexOf(e.path)||Y(f.a.getters.roles,e.meta.roles)?t():(t({path:"/404"}),_.a.done()):-1!==F.indexOf(e.path)?t():(t("/login?redirect="+e.path),_.a.done())}),v.afterEach(function(){_.a.done()}),i.default.use(s.a),i.default.use(c.a),i.default.config.productionTip=!1,new i.default({el:"#app",router:v,store:f.a,render:function(e){return e(u)}})},X4fA:function(e,n,t){"use strict";t.d(n,"a",function(){return o}),t.d(n,"c",function(){return s}),t.d(n,"b",function(){return l});var i=t("p46w"),a=t.n(i),c="Admin-Token";function o(){return a.a.get(c)}function s(e){return a.a.set(c,e)}function l(){return a.a.remove(c)}},ZZmv:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dHYy:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-api",use:"icon-api-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dbke:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-nav",use:"icon-nav-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dxv6:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-task",use:"icon-task-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},jxcm:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-bus",use:"icon-bus-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},k80C:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},m821:function(e,n,t){},mNmU:function(e,n,t){"use strict";var i=t("Ahhv");t.n(i).a},s7Vf:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(s);n.default=s},"sg+I":function(e,n,t){},t3Un:function(e,n,t){"use strict";var i=t("4d7F"),a=t.n(i),c=t("vDqi"),o=t.n(c),s=t("XJYT"),l=t("Q2AE"),r=t("X4fA"),d=o.a.create({baseURL:"https://www.guke1.com",timeout:5e3});d.interceptors.request.use(function(e){return l.a.getters.token&&(e.headers.Authorization="Bearer "+Object(r.a)()),e},function(e){console.log(e),a.a.reject(e)}),d.interceptors.response.use(function(e){var n=e.data;if(200!==n.code){Object(s.Message)({message:n.reason,type:"error",duration:5e3}),50008!==n.code&&50012!==n.code&&50014!==n.code&&1200!==n.code||s.MessageBox.confirm("你已被登出,可以取消继续留在该页面,或者重新登录","确定登出",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then(function(){l.a.dispatch("FedLogOut").then(function(){location.reload()})});var t=n.reason?n.reason:"error";return a.a.reject(t)}return e.data},function(e){return console.log("err"+e),Object(s.Message)({message:e.message,type:"error",duration:5e3}),a.a.reject(e)}),n.a=d},wqOL:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-add",use:"icon-add-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},xUNX:function(e,n,t){}},[["Vtdi","runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{"/OCX":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-table",use:"icon-ico-table-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"0faV":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-article",use:"icon-article-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"3PhE":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},"6xvN":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},"8fzN":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-tag",use:"icon-tag-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"96Go":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-aliyun",use:"icon-ico-aliyun-usage",viewBox:"0 0 1844 1024",content:''});o.a.add(s);n.default=s},"9ChT":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-category",use:"icon-category-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"A0++":function(e,n,t){"use strict";var i=t("xUNX");t.n(i).a},Ahhv:function(e,n,t){},BKkR:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-article",use:"icon-ico-article-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},GPBF:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},Hoqj:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-category",use:"icon-ico-category-usage",viewBox:"0 0 1260 1024",content:''});o.a.add(s);n.default=s},Kj24:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},LyEU:function(e,n,t){"use strict";var i=t("m821");t.n(i).a},MMMJ:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},OXmT:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-permission",use:"icon-permission-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},Q2AE:function(e,n,t){"use strict";var i=t("Kw5r"),a=t("L2JU"),c=t("p46w"),o=t.n(c),s={state:{sidebar:{opened:!+o.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},mutations:{TOGGLE_SIDEBAR:function(e){e.sidebar.opened?o.a.set("sidebarStatus",1):o.a.set("sidebarStatus",0),e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1},CLOSE_SIDEBAR:function(e,n){o.a.set("sidebarStatus",1),e.sidebar.opened=!1,e.sidebar.withoutAnimation=n},TOGGLE_DEVICE:function(e,n){e.device=n}},actions:{ToggleSideBar:function(e){(0,e.commit)("TOGGLE_SIDEBAR")},CloseSideBar:function(e,n){(0,e.commit)("CLOSE_SIDEBAR",n.withoutAnimation)},ToggleDevice:function(e,n){(0,e.commit)("TOGGLE_DEVICE",n)}}},l=t("gDS+"),r=t.n(l),d=t("4d7F"),u=t.n(d),h=t("t3Un");var m=t("X4fA"),p={state:{token:Object(m.a)(),name:"",avatar:"",roles:[],addRouters:[]},mutations:{SET_TOKEN:function(e,n){e.token=n},SET_NAME:function(e,n){e.name=n},SET_AVATAR:function(e,n){e.avatar=n},SET_ROLES:function(e,n){e.roles=n},SET_ROUTERS:function(e,n){e.addRouters=n}},actions:{Login:function(e,n){var t=e.commit;return new u.a(function(e,i){(function(e){return h.a.post("/api/user/login",e)})(n).then(function(n){var i=n.data;Object(m.c)(i.access_token),t("SET_TOKEN",i.access_token),e()}).catch(function(e){i(e)})})},GetInfo:function(e){var n=e.commit,t=e.state;return new u.a(function(e,i){(function(e){return Object(h.a)({url:"/api/user/info",method:"get",params:{token:e}})})(t.token).then(function(t){var a=t.data;a.roles&&a.roles.length>0?n("SET_ROLES",a.roles):i("getInfo: roles must be a non-null array !"),n("SET_NAME",a.name),n("SET_AVATAR",a.avatar),e(t)}).catch(function(e){i(e)})})},LogOut:function(e){var n=e.commit,t=e.state;return new u.a(function(e,i){(t.token,Object(h.a)({url:"/api/user/logout",method:"post"})).then(function(){n("SET_TOKEN",""),n("SET_ROLES",[]),Object(m.b)(),sessionStorage.setItem("roles",""),e()}).catch(function(e){i(e)})})},FedLogOut:function(e){var n=e.commit;return new u.a(function(e){n("SET_TOKEN",""),Object(m.b)(),e()})},GenerateRoutes:function(e,n){var t=e.commit;return new u.a(function(e){t("SET_ROUTERS",n.routers),sessionStorage.setItem("roles",r()(n.roles)),e()})}}},v={sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},roles:function(e){return e.user.roles},addRouters:function(e){return e.user.addRouters}};i.default.use(a.a);var f=new a.a.Store({modules:{app:s,user:p},getters:v});n.a=f},"R/Hx":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},TfVu:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(s);n.default=s},TnCw:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-auth",use:"icon-auth-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"Uf/o":function(e,n,t){var i={"./add.svg":"wqOL","./api.svg":"dHYy","./article.svg":"0faV","./auth.svg":"TnCw","./bus.svg":"jxcm","./category.svg":"9ChT","./example.svg":"MMMJ","./excel.svg":"ZZmv","./eye.svg":"TfVu","./form.svg":"6xvN","./ico-aliyun.svg":"96Go","./ico-article.svg":"BKkR","./ico-category.svg":"Hoqj","./ico-table.svg":"/OCX","./link.svg":"GPBF","./nav.svg":"dbke","./nested.svg":"3PhE","./password.svg":"Kj24","./permission.svg":"OXmT","./role.svg":"Ugzh","./table.svg":"R/Hx","./tag.svg":"8fzN","./task.svg":"dxv6","./tree.svg":"k80C","./user.svg":"s7Vf"};function a(e){var n=c(e);return t(n)}function c(e){var n=i[e];if(!(n+1)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n}a.keys=function(){return Object.keys(i)},a.resolve=c,e.exports=a,a.id="Uf/o"},Ugzh:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-role",use:"icon-role-usage",viewBox:"0 0 1333 1024",content:''});o.a.add(s);n.default=s},Vtdi:function(e,n,t){"use strict";t.r(n);var i=t("Kw5r"),a=(t("9d8Q"),t("XJYT")),c=t.n(a),o=(t("D66Q"),t("cIdk"),t("sg+I"),t("stgD")),s=t.n(o),l=(t("ZOF2"),{name:"App"}),r=(t("A0++"),t("KHd+")),d=Object(r.a)(l,function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},[],!1,null,null,null);d.options.__file="App.vue";var u=d.exports,h=t("jE9Z");i.default.use(h.a);var m=function(){return t.e("chunk-4c2d").then(t.bind(null,"2c6e"))},p=[].concat([{path:"/",name:"index",component:function(){return t.e("chunk-64b5").then(t.bind(null,"er4n"))},hidden:!0},{path:"/line",name:"line",component:function(){return t.e("chunk-687a").then(t.bind(null,"G5rc"))},hidden:!0},{path:"/home",component:function(){return t.e("chunk-1412").then(t.bind(null,"d7gD"))},hidden:!0},{path:"/md",name:"md",component:function(){return t.e("gW6U").then(t.bind(null,"gW6U"))},hidden:!0},{path:"/out",name:"out",component:function(){return t.e("chunk-132e").then(t.bind(null,"LnUv"))},hidden:!0},{path:"/excel",name:"excel",component:function(){return Promise.all([t.e("chunk-7a80"),t.e("chunk-68e9")]).then(t.bind(null,"5EWB"))},hidden:!0},{path:"/upload",name:"upload",component:function(){return t.e("chunk-62f7").then(t.bind(null,"4p+I"))},hidden:!0},{path:"/websocket",name:"websocket",component:function(){return t.e("chunk-f5ec").then(t.bind(null,"6jsT"))},hidden:!0},{path:"/echarts",name:"echarts",component:function(){return Promise.all([t.e("chunk-7025"),t.e("chunk-6148")]).then(t.bind(null,"HnWs"))},hidden:!0},{path:"/login",component:function(){return t.e("chunk-c8fe").then(t.bind(null,"ntYl"))},hidden:!0},{path:"/404",component:function(){return t.e("chunk-c5f5").then(t.bind(null,"jNvO"))},hidden:!0},{path:"/admin",component:m,redirect:"/admin/dashboard",name:"Dashboard",hidden:!0,children:[{path:"dashboard",component:function(){return Promise.all([t.e("chunk-7025"),t.e("chunk-cfc1")]).then(t.bind(null,"lAbF"))}}]}],[{path:"/form",component:m,children:[{path:"index",name:"Form",component:function(){return t.e("chunk-d818").then(t.bind(null,"Nx2/"))},meta:{title:"Form",icon:"form"}}],hidden:!0},{path:"/nested",component:m,redirect:"/nested/menu1",name:"Nested",meta:{title:"Nested",icon:"nested"},children:[{path:"menu1",component:function(){return t.e("6bwb").then(t.bind(null,"6bwb"))},name:"Menu1",meta:{title:"Menu1"},children:[{path:"menu1-1",component:function(){return t.e("kbPl").then(t.bind(null,"kbPl"))},name:"Menu1-1",meta:{title:"Menu1-1"}},{path:"menu1-2",component:function(){return t.e("Vc2m").then(t.bind(null,"Vc2m"))},name:"Menu1-2",meta:{title:"Menu1-2"},children:[{path:"menu1-2-1",component:function(){return t.e("ZYJW").then(t.bind(null,"ZYJW"))},name:"Menu1-2-1",meta:{title:"Menu1-2-1"}},{path:"menu1-2-2",component:function(){return t.e("tvtM").then(t.bind(null,"tvtM"))},name:"Menu1-2-2",meta:{title:"Menu1-2-2"}}]},{path:"menu1-3",component:function(){return t.e("jYsI").then(t.bind(null,"jYsI"))},name:"Menu1-3",meta:{title:"Menu1-3"}}]},{path:"menu2",component:function(){return t.e("27OO").then(t.bind(null,"27OO"))},meta:{title:"menu2"}}]},{path:"*",redirect:"/404",hidden:!0}]),v=new h.a({scrollBehavior:function(){return{y:0}},routes:p}),f=t("Q2AE"),w={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{iconName:function(){return"#icon-"+this.iconClass},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"}}},g=(t("LyEU"),Object(r.a)(w,function(){var e=this.$createElement,n=this._self._c||e;return n("svg",{class:this.svgClass,attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":this.iconName}})])},[],!1,null,"2f0f1ae2",null));g.options.__file="index.vue";var x=g.exports,b={name:"NavBar",data:function(){return{activeIndex:""}}},y=(t("mNmU"),Object(r.a)(b,function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"nav"},[t("el-menu",{staticClass:"el-menu-demo",attrs:{"default-active":e.activeIndex,mode:"horizontal"}},[t("el-row",{attrs:{gutter:1}},[t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"1"}},[t("router-link",{attrs:{to:{name:"index"}}},[e._v("公交-首页")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"3"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"out"}}},[e._v("中文排版")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"4"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"excel"}}},[e._v("在线表格 Excel")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"4"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"upload"}}},[e._v("图片转文字")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-submenu",{attrs:{index:"2"}},[t("template",{slot:"title"},[e._v("其它工具")]),e._v(" "),t("el-menu-item",{attrs:{index:"2-2"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"md"}}},[e._v("Markdown")])],1),e._v(" "),t("el-menu-item",{attrs:{index:"2-2"}},[t("router-link",{attrs:{to:{name:"echarts"}}},[e._v("图表")])],1)],2)],1)])],1)],1)],1)},[],!1,null,"6308ec4e",null));y.options.__file="navBar.vue";var k=y.exports;i.default.component("svg-icon",x),i.default.component("nav-bar",k);!function(e){e.keys().map(e)}(t("Uf/o"));var M=t("m1cH"),z=t.n(M),B=t("QbLZ"),C=t.n(B),L=function(){return t.e("chunk-4c2d").then(t.bind(null,"2c6e"))},E="Super Administrator",H=[{path:"/api_excel",component:L,redirect:"/api_excel/index",name:"Excel-List",meta:{title:"批量测试管理",icon:"ico-table",roles:[E,"Admin"]},children:[{path:"/api_excel/edit/:id",name:"EditExcel",component:function(){return t.e("chunk-d226").then(t.bind(null,"F/uS"))},hidden:!0},{path:"/api_excel/add",name:"AddExcel",component:function(){return t.e("chunk-2f6b").then(t.bind(null,"wf12"))},meta:{title:"上传测试",icon:"excel",roles:[E,"Admin"]}},{path:"/api_excel/index",name:"Excel",component:function(){return t.e("chunk-9346").then(t.bind(null,"yWqU"))},meta:{title:"测试管理",icon:"ico-aliyun",roles:[E,"Admin"]}},{path:"/api_param/add",name:"AddApiParam",component:function(){return t.e("chunk-34e9").then(t.bind(null,"eR/3"))},hidden:!0},{path:"/api_param/edit/:id",name:"EditApiParam",component:function(){return t.e("chunk-2227").then(t.bind(null,"/+Eh"))},hidden:!0},{path:"/api_param/index",name:"ApiParam",component:function(){return t.e("chunk-e667").then(t.bind(null,"dH62"))},meta:{title:"接口列表",icon:"api",roles:[E,"Admin"]}}]}],V=[{path:"/category",component:L,redirect:"/category/index",name:"Category-Nav",meta:{title:"栏目菜单",icon:"category",roles:[E]},children:[{path:"/category/add",name:"AddCategory",component:function(){return t.e("chunk-6908").then(t.bind(null,"GMaQ"))},meta:{title:"添加栏目"},hidden:!0},{path:"/category/edit/:id",name:"EditCategory",component:function(){return t.e("chunk-7105").then(t.bind(null,"1ylW"))},hidden:!0},{path:"/category/index",name:"Category",component:function(){return t.e("chunk-4055").then(t.bind(null,"oZKA"))},meta:{title:"栏目管理",icon:"ico-category",roles:[E]}},{path:"/nav/add",name:"AddNav",component:function(){return t.e("chunk-4f15").then(t.bind(null,"JPfX"))},hidden:!0},{path:"/nav/edit/:id",name:"EditNav",component:function(){return t.e("chunk-4332").then(t.bind(null,"LnHU"))},hidden:!0},{path:"/nav",name:"Nav",component:function(){return t.e("chunk-99dd").then(t.bind(null,"mxRw"))},meta:{title:"导航管理",icon:"nav",roles:[E]}},{path:"/tag/add",name:"AddTag",component:function(){return t.e("chunk-82a7").then(t.bind(null,"+1ta"))},meta:{title:"添加标签"},hidden:!0},{path:"/tag/edit/:id",name:"EditTag",component:function(){return t.e("chunk-1dc3").then(t.bind(null,"S2fK"))},hidden:!0},{path:"/tag",name:"Tag",component:function(){return t.e("chunk-ac41").then(t.bind(null,"ZhNY"))},meta:{title:"标签列表",icon:"tag",roles:[E]}}]},{path:"/article",component:L,name:"Article-List",meta:{title:"文章管理",icon:"article",roles:[E]},children:[{path:"/article/edit/:id",name:"EditArticle",component:function(){return t.e("chunk-766b").then(t.bind(null,"++5l"))},hidden:!0},{path:"/article/index",name:"Article",component:function(){return t.e("chunk-9f60").then(t.bind(null,"Iwy+"))},meta:{title:"文章管理",icon:"ico-article",roles:[E]}},{path:"/article/add",name:"AddArticle",component:function(){return t.e("chunk-59d3").then(t.bind(null,"/cac"))},meta:{title:"添加文章",icon:"add",roles:[E]}}]},{path:"/list",component:L,redirect:"/task",name:"公交",meta:{title:"公交管理",icon:"bus",roles:[E]},children:[{path:"/task/search",name:"search",component:function(){return t.e("chunk-ee37").then(t.bind(null,"Keas"))},hidden:!0},{path:"/task/newBus",name:"NewBus",component:function(){return t.e("chunk-3994").then(t.bind(null,"GRON"))},hidden:!0},{path:"/task/edit/:id",name:"taskEdit",component:function(){return t.e("chunk-fc68").then(t.bind(null,"J1Jp"))},hidden:!0},{path:"/task",name:"定时任务",component:function(){return t.e("chunk-775c").then(t.bind(null,"xDC0"))},meta:{title:"定时任务",icon:"task",roles:[E]}},{path:"lines/add",name:"linesAdd",component:function(){return t.e("chunk-00f7").then(t.bind(null,"V9Fe"))},hidden:!0},{path:"lines/edit/:id",name:"linesEdit",component:function(){return t.e("chunk-e830").then(t.bind(null,"bAuQ"))},hidden:!0},{path:"lines",name:"公交列表",component:function(){return t.e("chunk-47b6").then(t.bind(null,"HBaq"))},meta:{title:"公交列表",icon:"table",roles:[E]}},{path:"config",name:"配置管理",component:function(){return t.e("chunk-47b6").then(t.bind(null,"HBaq"))},meta:{title:"配置列表",icon:"table",roles:[E]}},{path:"tree",name:"Tree",component:function(){return t.e("ad09").then(t.bind(null,"ad09"))},meta:{title:"Tree",icon:"tree",roles:[E]},hidden:!0}]},{path:"user",component:L,redirect:"/user",name:"权限",meta:{title:"权限管理",icon:"auth",roles:[E]},children:[{path:"index",name:"userIndex",component:function(){return t.e("chunk-2164").then(t.bind(null,"44Km"))},hidden:!0},{path:"password",name:"userPassword",component:function(){return t.e("chunk-b5cc").then(t.bind(null,"HwY3"))},hidden:!0},{path:"/user/add",name:"AddUser",component:function(){return t.e("chunk-7951").then(t.bind(null,"fqc2"))},hidden:!0},{path:"/user/edit/:id",name:"EditUser",component:function(){return t.e("chunk-f78c").then(t.bind(null,"00Qp"))},hidden:!0},{path:"/user",name:"用户管理",component:function(){return t.e("chunk-2164").then(t.bind(null,"44Km"))},meta:{title:"用户列表",icon:"user",roles:[E]}},{path:"/permission/add",name:"AddPermission",component:function(){return t.e("chunk-0def").then(t.bind(null,"oKS6"))},hidden:!0},{path:"/permission/edit/:id",name:"EditPermission",component:function(){return t.e("chunk-98bc").then(t.bind(null,"t2jL"))},hidden:!0},{path:"/permission",name:"权限列表",component:function(){return t.e("chunk-1496").then(t.bind(null,"wjrd"))},meta:{title:"权限列表",icon:"permission",roles:[E]}},{path:"/role/add",name:"Addroles",component:function(){return t.e("chunk-4707").then(t.bind(null,"rwG5"))},hidden:!0},{path:"/role/edit/:id",name:"Editroles",component:function(){return t.e("chunk-d993").then(t.bind(null,"XqkG"))},hidden:!0},{path:"/role",name:"角色管理",component:function(){return t.e("chunk-5ba7").then(t.bind(null,"bDWH"))},meta:{title:"角色管理",icon:"role",roles:[E]}}]}],A=[],O=t("Mj6V"),_=t.n(O),S=(t("pdi6"),t("X4fA"));if(0===f.a.getters.roles.length&&sessionStorage.getItem("roles")){var I=JSON.parse(sessionStorage.getItem("roles")),T=N(I);f.a.dispatch("GenerateRoutes",{routers:T,roles:I}),v.addRoutes(T)}var F=["/login","/index","/line","/home","/404","/","","/echarts","/md","/out","/excel","/upload"];function Y(e,n){return e.indexOf("Super Administrator")>=0||(!n||e.some(function(e){return n.indexOf(e)>=0}))}function N(e){return e.indexOf("Super Administrator")>=0?[].concat(z()(H),z()(V),z()(A)):e.indexOf("Admin")>=0?H:A}v.beforeEach(function(e,n,t){_.a.start(),Object(S.a)()?"/login"===e.path?(t({path:"/admin"}),_.a.done()):0===f.a.getters.roles.length?f.a.dispatch("GetInfo").then(function(n){var i=N(n.data.roles);sessionStorage.getItem("roles")||v.addRoutes(i),f.a.dispatch("GenerateRoutes",{routers:i,roles:n.data.roles}),!e.meta.role||-1!==F.indexOf(e.path)||Y(n.data.roles,e.meta.roles)?t(C()({},e,{replace:!0})):(t({path:"/404"}),_.a.done())}).catch(function(e){f.a.dispatch("FedLogOut").then(function(){a.Message.error(e||"Verification failed, please login again"),t({path:"/admin"})})}):!e.meta.role||-1!==F.indexOf(e.path)||Y(f.a.getters.roles,e.meta.roles)?t():(t({path:"/404"}),_.a.done()):-1!==F.indexOf(e.path)?t():(t("/login?redirect="+e.path),_.a.done())}),v.afterEach(function(){_.a.done()}),i.default.use(s.a),i.default.use(c.a),i.default.config.productionTip=!1,new i.default({el:"#app",router:v,store:f.a,render:function(e){return e(u)}})},X4fA:function(e,n,t){"use strict";t.d(n,"a",function(){return o}),t.d(n,"c",function(){return s}),t.d(n,"b",function(){return l});var i=t("p46w"),a=t.n(i),c="Admin-Token";function o(){return a.a.get(c)}function s(e){return a.a.set(c,e)}function l(){return a.a.remove(c)}},ZZmv:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dHYy:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-api",use:"icon-api-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dbke:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-nav",use:"icon-nav-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dxv6:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-task",use:"icon-task-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},jxcm:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-bus",use:"icon-bus-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},k80C:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},m821:function(e,n,t){},mNmU:function(e,n,t){"use strict";var i=t("Ahhv");t.n(i).a},s7Vf:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(s);n.default=s},"sg+I":function(e,n,t){},t3Un:function(e,n,t){"use strict";var i=t("4d7F"),a=t.n(i),c=t("vDqi"),o=t.n(c),s=t("XJYT"),l=t("Q2AE"),r=t("X4fA"),d=o.a.create({baseURL:"https://www.guke1.com",timeout:5e3});d.interceptors.request.use(function(e){return l.a.getters.token&&(e.headers.Authorization="Bearer "+Object(r.a)()),e},function(e){console.log(e),a.a.reject(e)}),d.interceptors.response.use(function(e){var n=e.data;if(200!==n.code){Object(s.Message)({message:n.reason,type:"error",duration:5e3}),50008!==n.code&&50012!==n.code&&50014!==n.code&&1200!==n.code||s.MessageBox.confirm("你已被登出,可以取消继续留在该页面,或者重新登录","确定登出",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then(function(){l.a.dispatch("FedLogOut").then(function(){location.reload()})});var t=n.reason?n.reason:"error";return a.a.reject(t)}return e.data},function(e){return console.log("err"+e),Object(s.Message)({message:e.message,type:"error",duration:5e3}),a.a.reject(e)}),n.a=d},wqOL:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-add",use:"icon-add-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},xUNX:function(e,n,t){}},[["Vtdi","runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/laravel/public/static/js/chunk-4c2d.9297d816.js b/laravel/public/static/js/chunk-4c2d.3e34f9bb.js similarity index 100% rename from laravel/public/static/js/chunk-4c2d.9297d816.js rename to laravel/public/static/js/chunk-4c2d.3e34f9bb.js diff --git a/laravel/public/static/js/chunk-6dc4.46f25fe6.js b/laravel/public/static/js/chunk-62f7.0846ebc0.js similarity index 84% rename from laravel/public/static/js/chunk-6dc4.46f25fe6.js rename to laravel/public/static/js/chunk-62f7.0846ebc0.js index 8cb5bf9..23ecf47 100644 --- a/laravel/public/static/js/chunk-6dc4.46f25fe6.js +++ b/laravel/public/static/js/chunk-62f7.0846ebc0.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6dc4"],{"/SEU":function(e,a,t){"use strict";var o=t("nHja");t.n(o).a},"4p+I":function(e,a,t){"use strict";t.r(a);var o=t("t3Un"),n={name:"Upload",data:function(){return{uploadUrl:"https://up.qiniup.com",dialogImageUrl:"",dialogVisible:!1,desc:"",dataObj:{}}},created:function(){var e=this;o.a.get("/api/getToken").then(function(a){e.dataObj={token:a.data.token},console.log(e.dataObj)})},methods:{handleRemove:function(e,a){console.log(e,a)},handlePictureCardPreview:function(e){console.log(e),this.dialogImageUrl=e.url,this.dialogVisible=!0},handleBeforeUpload:function(e){var a=e.name,t=a.substring(a.lastIndexOf("."),a.length).toLowerCase(),o=new Date,n=o.getFullYear()+""+(o.getMonth()+1)+o.getDate()+o.getHours()+o.getMinutes();this.dataObj.key=n+"_"+Math.floor(1e4*Math.random())+t,console.log(this.dataObj)},handleSuccess:function(e,a){console.log(a),console.log(e),this.desc=e.data.words},handleUpload:function(e){console.log(e)}}},l=(t("/SEU"),t("KHd+")),i=Object(l.a)(n,function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",[t("nav-bar"),e._v(" "),t("el-container",[t("el-header",[e._v("图片识别模块")]),e._v(" "),t("el-container",[t("el-aside",{attrs:{width:"500px"}},[t("div",[e._v("点击下面的加号 上传图片")]),e._v(" "),t("el-upload",{attrs:{data:e.dataObj,action:e.uploadUrl,limit:100,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"on-success":e.handleSuccess,"on-remove":e.handleRemove,"list-type":"picture-card"}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(a){e.dialogVisible=a}}},[t("img",{attrs:{src:e.dialogImageUrl,width:"100%",alt:""}})])],1),e._v(" "),t("el-main",[t("el-input",{attrs:{type:"textarea",rows:"50"},model:{value:e.desc,callback:function(a){e.desc=a},expression:"desc"}})],1)],1)],1)],1)},[],!1,null,"708c40ba",null);i.options.__file="upload.vue";a.default=i.exports},nHja:function(e,a,t){}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-62f7"],{"+E9z":function(e,a,t){"use strict";var o=t("joBk");t.n(o).a},"4p+I":function(e,a,t){"use strict";t.r(a);var o=t("t3Un"),n={name:"Upload",data:function(){return{uploadUrl:"https://up.qiniup.com",dialogImageUrl:"",dialogVisible:!1,desc:"",dataObj:{}}},created:function(){var e=this;o.a.get("/api/getToken").then(function(a){e.dataObj={token:a.data.token},console.log(e.dataObj)})},methods:{handleRemove:function(e,a){console.log(e,a)},handlePictureCardPreview:function(e){console.log(e),this.dialogImageUrl=e.url,this.dialogVisible=!0},handleBeforeUpload:function(e){var a=e.name,t=a.substring(a.lastIndexOf("."),a.length).toLowerCase(),o=new Date,n=o.getFullYear()+""+(o.getMonth()+1)+o.getDate()+o.getHours()+o.getMinutes();this.dataObj.key=n+"_"+Math.floor(1e4*Math.random())+t,console.log(this.dataObj)},handleSuccess:function(e,a){console.log(a),console.log(e),this.desc=e.data.words},handleUpload:function(e){console.log(e)}}},l=(t("+E9z"),t("KHd+")),i=Object(l.a)(n,function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",[t("nav-bar"),e._v(" "),t("el-container",[t("el-header",[e._v("图片识别模块")]),e._v(" "),t("el-container",[t("el-aside",{attrs:{width:"500px"}},[t("div",[e._v("点击下面的加号 上传图片")]),e._v(" "),t("el-upload",{attrs:{data:e.dataObj,action:e.uploadUrl,limit:100,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"on-success":e.handleSuccess,"on-remove":e.handleRemove,"list-type":"picture-card"}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(a){e.dialogVisible=a}}},[t("img",{attrs:{src:e.dialogImageUrl,width:"100%",alt:""}})])],1),e._v(" "),t("el-main",[t("el-input",{attrs:{type:"textarea",rows:"50"},model:{value:e.desc,callback:function(a){e.desc=a},expression:"desc"}})],1)],1)],1)],1)},[],!1,null,"1a8781ab",null);i.options.__file="upload.vue";a.default=i.exports},joBk:function(e,a,t){}}]); \ No newline at end of file diff --git a/laravel/public/static/js/chunk-1553.fc67014d.js b/laravel/public/static/js/chunk-68e9.ea63a884.js similarity index 85% rename from laravel/public/static/js/chunk-1553.fc67014d.js rename to laravel/public/static/js/chunk-68e9.ea63a884.js index eca322b..0dbb9ab 100644 --- a/laravel/public/static/js/chunk-1553.fc67014d.js +++ b/laravel/public/static/js/chunk-68e9.ea63a884.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1553"],{19:function(e,t){},20:function(e,t){},"5EWB":function(e,t,a){"use strict";a.r(t);var o=a("4d7F"),l=a.n(o),r=a("EUZL"),n=a.n(r),s=a("t3Un"),i={data:function(){return{fileList:[],upLoadNumber:1e5,tableTitle:"",tableData:[],tableHeader:"",uploadUrl:"https://up.qiniup.com",dialogImageUrl:"",dialogVisible:!1,desc:"",dataObj:{}}},created:function(){var e=this;s.a.get("/api/getToken").then(function(t){e.dataObj={token:t.data.token},console.log(e.dataObj)})},methods:{submitUpload:function(){this.$refs.upload.submit()},handleRemove:function(e,t){console.log(e,t)},handlePreview:function(e){console.log(e)},beforeUpload:function(e){var t=this;return new l.a(function(a,o){t.readExcel(e).then(function(e){e&&a(e)})})},readExcel:function(e){console.log(e);var t=this;return new l.a(function(a,o){var l=new FileReader;l.onload=function(e){try{var l=e.target.result,r=n.a.read(l,{type:"binary"}),s=[];for(var i in console.log(r.SheetNames),r.SheetNames){console.log(i);var c=r.SheetNames[i],u=r.Sheets[c];for(var d in u)"!ref"!==d&&s.push(u[d])}var f=n.a.utils.sheet_to_json(r.Sheets[r.SheetNames[0]]);console.log(f);var h=r.SheetNames[0];console.log(h);var p=r.Sheets[r.SheetNames[0]],g=t.get_header_row(p);console.log(g);var v=n.a.utils.sheet_to_json(p);console.log(v),t.generateDate({tableTitle:h,header:g,results:v}),s.length>t.upLoadNumber?(console.log("不能超过"),a(!1)):a(!0)}catch(e){o(e.message)}},l.readAsBinaryString(e)})},generateDate:function(e){var t=e.tableTitle,a=e.header,o=e.results;console.log(t),console.log(a),console.log(o),this.tableTitle=t,this.tableData=o,this.tableHeader=a},handleDrop:function(e){e.stopPropagation(),e.preventDefault();var t=e.dataTransfer.files;if(1===t.length){var a=t[0];this.readerData(a),e.stopPropagation(),e.preventDefault()}else this.$message.error("Only support uploading one file!")},handleDragover:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},readerData:function(e){var t=this;if("xls"!==e.name.split(".")[1]&&"xlsx"!==e.name.split(".")[1])this.$message({message:"上传文件格式错误,请上传xls、xlsx文件!",type:"warning"});else{var a=new FileReader;a.onload=function(e){var a=e.target.result,o=t.fixdata(a),l=n.a.read(btoa(o),{type:"base64"}),r=l.SheetNames[0];console.log(r);var s=l.Sheets[r],i=s["!ref"].split(":")[1];s["!ref"]="A2:"+i;var c=r,u=t.get_header_row(s);console.log(u);var d=n.a.utils.sheet_to_json(s);console.log(d),t.generateDate({tableTitle:c,header:u,results:d})},a.readAsArrayBuffer(e)}},fixdata:function(e){var t="",a=0,o=10240;for(a=0;at.upLoadNumber?(console.log("不能超过"),a(!1)):a(!0)}catch(e){o(e.message)}},l.readAsBinaryString(e)})},generateDate:function(e){var t=e.tableTitle,a=e.header,o=e.results;console.log(t),console.log(a),console.log(o),this.tableTitle=t,this.tableData=o,this.tableHeader=a},handleDrop:function(e){e.stopPropagation(),e.preventDefault();var t=e.dataTransfer.files;if(1===t.length){var a=t[0];this.readerData(a),e.stopPropagation(),e.preventDefault()}else this.$message.error("Only support uploading one file!")},handleDragover:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},readerData:function(e){var t=this;if("xls"!==e.name.split(".")[1]&&"xlsx"!==e.name.split(".")[1])this.$message({message:"上传文件格式错误,请上传xls、xlsx文件!",type:"warning"});else{var a=new FileReader;a.onload=function(e){var a=e.target.result,o=t.fixdata(a),l=n.a.read(btoa(o),{type:"base64"}),r=l.SheetNames[0];console.log(r);var s=l.Sheets[r],i=s["!ref"].split(":")[1];s["!ref"]="A2:"+i;var c=r,u=t.get_header_row(s);console.log(u);var d=n.a.utils.sheet_to_json(s);console.log(d),t.generateDate({tableTitle:c,header:u,results:d})},a.readAsArrayBuffer(e)}},fixdata:function(e){var t="",a=0,o=10240;for(a=0;a"+e+""};return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n}(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(e)})}).call(this,n("yLpj"))},"4d7F":function(e,t,n){e.exports={default:n("aW7e"),__esModule:!0}},"5K7Z":function(e,t,n){var r=n("93I4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"5T2Y":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"5oMp":function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"5vMV":function(e,t,n){var r=n("B+OT"),o=n("NsO/"),i=n("W070")(!1),a=n("VVlx")("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},"6/1s":function(e,t,n){var r=n("YqAc")("meta"),o=n("93I4"),i=n("B+OT"),a=n("2faE").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("KUxP")(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&p.NEED&&l(e)&&!i(e,r)&&u(e),e}}},"8gHz":function(e,t,n){var r=n("5K7Z"),o=n("eaoh"),i=n("UWiX")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},"8oxB":function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,p=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++p1)for(var n=1;no;)K(e,n=r[o++],t[n]);return e},Z=function(e){var t=P.call(this,e=w(e,!0));return!(this===N&&o(R,e)&&!o(I,e))&&(!(t||!o(this,e)||!o(R,e)||o(this,q)&&this[q][e])||t)},J=function(e,t){if(e=y(e),t=w(t,!0),e!==N||!o(R,t)||o(I,t)){var n=O(e,t);return!n||!o(R,t)||o(e,q)&&e[q][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=D(y(e)),r=[],i=0;n.length>i;)o(R,t=n[i++])||t==q||t==l||r.push(t);return r},Y=function(e){for(var t,n=e===N,r=D(n?I:y(e)),i=[],a=0;r.length>a;)!o(R,t=r[a++])||n&&!o(N,t)||i.push(R[t]);return i};z||(s((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===N&&t.call(I,n),o(this,q)&&o(this[q],e)&&(this[q][e]=!1),H(this,e,k(1,n))};return i&&U&&H(N,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),E.f=J,A.f=K,n("ar/p").f=C.f=X,n("NV0k").f=Z,n("mqlF").f=Y,i&&!n("uOPS")&&s(N,"propertyIsEnumerable",Z,!0),h.f=function(e){return W(d(e))}),a(a.G+a.W+a.F*!z,{Symbol:j});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)d(Q[ee++]);for(var te=S(d.store),ne=0;te.length>ne;)_(te[ne++]);a(a.S+a.F*!z,"Symbol",{for:function(e){return o(F,e+="")?F[e]:F[e]=j(e)},keyFor:function(e){if(!V(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!z,"Object",{create:function(e,t){return void 0===t?x(e):G(x(e),t)},defineProperty:K,defineProperties:G,getOwnPropertyDescriptor:J,getOwnPropertyNames:X,getOwnPropertySymbols:Y}),M&&a(a.S+a.F*(!z||c(function(){var e=j();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!V(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!V(t))return t}),r[1]=t,L.apply(M,r)}}),j.prototype[$]||n("NegM")(j.prototype,$,j.prototype.valueOf),p(j,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},"B+OT":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},BEtg:function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)} +(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-libs"],{"+JPL":function(e,t,n){e.exports={default:n("+SFK"),__esModule:!0}},"+SFK":function(e,t,n){n("AUvm"),n("wgeU"),n("adOz"),n("dl0q"),e.exports=n("WEpk").Symbol},"0tVQ":function(e,t,n){n("FlQf"),n("VJsP"),e.exports=n("WEpk").Array.from},"1K8p":function(e,t,n){"use strict";var r=n("jrfk"),o=n("ez49"),i=10,a=40,s=800;function l(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*i,o=n*i,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=a,o*=a):(r*=s,o*=s)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=l},"29s/":function(e,t,n){var r=n("WEpk"),o=n("5T2Y"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("uOPS")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"2GTP":function(e,t,n){var r=n("eaoh");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"2Nb0":function(e,t,n){n("FlQf"),n("bBy9"),e.exports=n("zLkG").f("iterator")},"2SVd":function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},"2faE":function(e,t,n){var r=n("5K7Z"),o=n("eUtF"),i=n("G8Mo"),a=Object.defineProperty;t.f=n("jmDH")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"4BeY":function(e,t,n){(function(t){!function(t,n){e.exports=n()}(0,function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r=n(function(e,t){e.exports=function(){function e(e){var t=e&&"object"==typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(t,n){var o=n&&!0===n.clone;return o&&e(t)?r(function(e){return Array.isArray(e)?[]:{}}(t),t,n):t}function n(n,o,i){var a=n.slice();return o.forEach(function(o,s){void 0===a[s]?a[s]=t(o,i):e(o)?a[s]=r(n[s],o,i):-1===n.indexOf(o)&&a.push(t(o,i))}),a}function r(o,i,a){var s=Array.isArray(i),l=a||{arrayMerge:n},c=l.arrayMerge||n;return s?Array.isArray(o)?c(o,i,a):t(i,a):function(n,o,i){var a={};return e(n)&&Object.keys(n).forEach(function(e){a[e]=t(n[e],i)}),Object.keys(o).forEach(function(s){e(o[s])&&n[s]?a[s]=r(n[s],o[s],i):a[s]=t(o[s],i)}),a}(o,i,a)}return r.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return r(e,n,t)})},r}()}),o=n(function(e,t){t.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},e.exports=t.default}),i=o.svg,a=o.xlink,s={};s[i.name]=i.uri,s[a.name]=a.uri;var l=function(e,t){return void 0===e&&(e=""),""+e+""};return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n}(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(e)})}).call(this,n("yLpj"))},"4d7F":function(e,t,n){e.exports={default:n("aW7e"),__esModule:!0}},"5K7Z":function(e,t,n){var r=n("93I4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"5T2Y":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"5oMp":function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"5vMV":function(e,t,n){var r=n("B+OT"),o=n("NsO/"),i=n("W070")(!1),a=n("VVlx")("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},"6/1s":function(e,t,n){var r=n("YqAc")("meta"),o=n("93I4"),i=n("B+OT"),a=n("2faE").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("KUxP")(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&p.NEED&&l(e)&&!i(e,r)&&u(e),e}}},"8gHz":function(e,t,n){var r=n("5K7Z"),o=n("eaoh"),i=n("UWiX")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},"8oxB":function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,p=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++p1)for(var n=1;no;)K(e,n=r[o++],t[n]);return e},Z=function(e){var t=P.call(this,e=w(e,!0));return!(this===N&&o(R,e)&&!o(I,e))&&(!(t||!o(this,e)||!o(R,e)||o(this,q)&&this[q][e])||t)},J=function(e,t){if(e=y(e),t=w(t,!0),e!==N||!o(R,t)||o(I,t)){var n=O(e,t);return!n||!o(R,t)||o(e,q)&&e[q][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=D(y(e)),r=[],i=0;n.length>i;)o(R,t=n[i++])||t==q||t==l||r.push(t);return r},Y=function(e){for(var t,n=e===N,r=D(n?I:y(e)),i=[],a=0;r.length>a;)!o(R,t=r[a++])||n&&!o(N,t)||i.push(R[t]);return i};z||(s((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===N&&t.call(I,n),o(this,q)&&o(this[q],e)&&(this[q][e]=!1),H(this,e,k(1,n))};return i&&U&&H(N,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),E.f=J,A.f=K,n("ar/p").f=C.f=X,n("NV0k").f=Z,n("mqlF").f=Y,i&&!n("uOPS")&&s(N,"propertyIsEnumerable",Z,!0),h.f=function(e){return W(d(e))}),a(a.G+a.W+a.F*!z,{Symbol:j});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)d(Q[ee++]);for(var te=S(d.store),ne=0;te.length>ne;)_(te[ne++]);a(a.S+a.F*!z,"Symbol",{for:function(e){return o(F,e+="")?F[e]:F[e]=j(e)},keyFor:function(e){if(!V(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!z,"Object",{create:function(e,t){return void 0===t?x(e):G(x(e),t)},defineProperty:K,defineProperties:G,getOwnPropertyDescriptor:J,getOwnPropertyNames:X,getOwnPropertySymbols:Y}),M&&a(a.S+a.F*(!z||c(function(){var e=j();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!V(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!V(t))return t}),r[1]=t,L.apply(M,r)}}),j.prototype[$]||n("NegM")(j.prototype,$,j.prototype.valueOf),p(j,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},"B+OT":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},BEtg:function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)} /*! * Determine if an object is a Buffer * @@ -23,7 +23,7 @@ var n=Object.freeze({});function r(e){return void 0===e||null===e}function o(e){ */ var r=function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}},o="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}var a=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(e,t){this._children[e]=t},a.prototype.removeChild=function(e){delete this._children[e]},a.prototype.getChild=function(e){return this._children[e]},a.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},a.prototype.forEachChild=function(e){i(this._children,e)},a.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},a.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},a.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(a.prototype,s);var l=function(e){this.register([],e,!1)};l.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},l.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")},"")},l.prototype.update=function(e){!function e(t,n,r){0;n.update(r);if(r.modules)for(var o in r.modules){if(!n.getChild(o))return void 0;e(t.concat(o),n.getChild(o),r.modules[o])}}([],this.root,e)},l.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new a(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&i(t.modules,function(t,o){r.register(e.concat(o),t,n)})},l.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)};var c;var u=function(e){var t=this;void 0===e&&(e={}),!c&&"undefined"!=typeof window&&window.Vue&&g(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1);var i=e.state;void 0===i&&(i={}),"function"==typeof i&&(i=i()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c;var a=this,s=this.dispatch,u=this.commit;this.dispatch=function(e,t){return s.call(a,e,t)},this.commit=function(e,t,n){return u.call(a,e,t,n)},this.strict=r,_(this,i,[],this._modules.root),h(this,i),n.forEach(function(e){return e(t)}),c.config.devtools&&function(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(e,t){o.emit("vuex:mutation",e,t)}))}(this)},p={state:{configurable:!0}};function f(e,t){return t.indexOf(e)<0&&t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function d(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;_(e,n,[],e._modules.root,!0),h(e,n,t)}function h(e,t,n){var r=e._vm;e.getters={};var o={};i(e._wrappedGetters,function(t,n){o[n]=function(){return t(e)},Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})});var a=c.config.silent;c.config.silent=!0,e._vm=new c({data:{$$state:t},computed:o}),c.config.silent=a,e.strict&&function(e){e._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit(function(){r._data.$$state=null}),c.nextTick(function(){return r.$destroy()}))}function _(e,t,n,r,o){var i=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a]=r),!i&&!o){var s=m(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){c.set(s,l,r.state)})}var u=r.context=function(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var i=v(n,r,o),a=i.payload,s=i.options,l=i.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,o){var i=v(n,r,o),a=i.payload,s=i.options,l=i.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){var n={},r=t.length;return Object.keys(e.getters).forEach(function(o){if(o.slice(0,r)===t){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}}),n}(e,t)}},state:{get:function(){return m(e.state,n)}}}),o}(e,a,n);r.forEachMutation(function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push(function(t){n.call(e,r.state,t)})}(e,a+n,t,u)}),r.forEachAction(function(t,n){var r=t.root?n:a+n,o=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push(function(t,o){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t,o);return function(e){return e&&"function"==typeof e.then}(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):i})}(e,r,o,u)}),r.forEachGetter(function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,a+n,t,u)}),r.forEachChild(function(r,i){_(e,t,n.concat(i),r,o)})}function m(e,t){return t.length?t.reduce(function(e,t){return e[t]},e):e}function v(e,t,n){return function(e){return null!==e&&"object"==typeof e}(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function g(e){c&&e===c||r(c=e)}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(e){0},u.prototype.commit=function(e,t,n){var r=this,o=v(e,t,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),l=this._mutations[i];l&&(this._withCommit(function(){l.forEach(function(e){e(a)})}),this._subscribers.forEach(function(e){return e(s,r.state)}))},u.prototype.dispatch=function(e,t){var n=this,r=v(e,t),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s)return this._actionSubscribers.forEach(function(e){return e(a,n.state)}),s.length>1?Promise.all(s.map(function(e){return e(i)})):s[0](i)},u.prototype.subscribe=function(e){return f(e,this._subscribers)},u.prototype.subscribeAction=function(e){return f(e,this._actionSubscribers)},u.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch(function(){return e(r.state,r.getters)},t,n)},u.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._vm._data.$$state=e})},u.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),_(this,this.state,e,this._modules.get(e),n.preserveState),h(this,this.state)},u.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=m(t.state,e.slice(0,-1));c.delete(n,e[e.length-1])}),d(this)},u.prototype.hotUpdate=function(e){this._modules.update(e),d(this,!0)},u.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(u.prototype,p);var b=C(function(e,t){var n={};return x(t).forEach(function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=E(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0}),n}),y=C(function(e,t){var n={};return x(t).forEach(function(t){var r=t.key,o=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var i=E(this.$store,"mapMutations",e);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}}),n}),w=C(function(e,t){var n={};return x(t).forEach(function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||E(this.$store,"mapGetters",e))return this.$store.getters[o]},n[r].vuex=!0}),n}),k=C(function(e,t){var n={};return x(t).forEach(function(t){var r=t.key,o=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var i=E(this.$store,"mapActions",e);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}}),n});function x(e){return Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}})}function C(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function E(e,t,n){return e._modulesNamespaceMap[n]}var A={Store:u,install:g,version:"3.0.1",mapState:b,mapMutations:y,mapGetters:w,mapActions:k,createNamespacedHelpers:function(e){return{mapState:b.bind(null,e),mapGetters:w.bind(null,e),mapMutations:y.bind(null,e),mapActions:k.bind(null,e)}}};t.a=A},LYNF:function(e,t,n){"use strict";var r=n("OH9c");e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},Lmem:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},M1xp:function(e,t,n){var r=n("a0xu");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},MCSJ:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},MLWZ:function(e,t,n){"use strict";var r=n("xTJ+");function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,function(e,t){null!==e&&void 0!==e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},MPFp:function(e,t,n){"use strict";var r=n("uOPS"),o=n("Y7ZC"),i=n("kTiW"),a=n("NegM"),s=n("SBuE"),l=n("j2DC"),c=n("RfKB"),u=n("U+KD"),p=n("UWiX")("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,_,m,v){l(n,t,h);var g,b,y,w=function(e){if(!f&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",x="values"==_,C=!1,E=e.prototype,A=E[p]||E["@@iterator"]||_&&E[_],S=A||w(_),O=_?x?w("entries"):S:void 0,T="Array"==t&&E.entries||A;if(T&&(y=u(T.call(new e)))!==Object.prototype&&y.next&&(c(y,k,!0),r||"function"==typeof y[p]||a(y,p,d)),x&&A&&"values"!==A.name&&(C=!0,S=function(){return A.call(this)}),r&&!v||!f&&!C&&E[p]||a(E,p,S),s[t]=S,s[k]=d,_)if(g={values:x?S:w("values"),keys:m?S:w("keys"),entries:O},v)for(b in g)b in E||i(E,b,g[b]);else o(o.P+o.F*(f||C),t,g);return g}},Mj6V:function(e,t,n){var r,o; /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */void 0===(o="function"==typeof(r=function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function n(e,t,n){return en?n:e}function r(e){return 100*(-1+e)}e.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(a){var s=e.isStarted();a=n(a,t.minimum,1),e.status=1===a?null:a;var l=e.render(!s),c=l.querySelector(t.barSelector),u=t.speed,p=t.easing;return l.offsetWidth,o(function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),i(c,function(e,n,o){var i;return(i="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"}).transition="all "+n+"ms "+o,i}(a,u,p)),1===a?(i(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout(function(){i(l,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){e.remove(),n()},u)},u)):setTimeout(n,u)}),this},e.isStarted=function(){return"number"==typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout(function(){e.status&&(e.trickle(),n())},t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!=typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always(function(){0==--n?(t=0,e.done()):e.set((t-n)/t)}),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");s(document.documentElement,"nprogress-busy");var o=document.createElement("div");o.id="nprogress",o.innerHTML=t.template;var a,l=o.querySelector(t.barSelector),c=n?"-100":r(e.status||0),p=document.querySelector(t.parent);return i(l,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),t.showSpinner||(a=o.querySelector(t.spinnerSelector))&&u(a),p!=document.body&&s(p,"nprogress-custom-parent"),p.appendChild(o),o},e.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&u(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),i=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n){return n=function(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}(n),t[n]||(t[n]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}(n))}function r(e,t,r){t=n(t),e.style[t]=r}return function(e,t){var n,o,i=arguments;if(2==i.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,i[1],i[2])}}();function a(e,t){var n="string"==typeof e?e:c(e);return n.indexOf(" "+t+" ")>=0}function s(e,t){var n=c(e),r=n+t;a(n,t)||(e.className=r.substring(1))}function l(e,t){var n,r=c(e);a(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function c(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function u(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e})?r.call(t,n,t,e):r)||(e.exports=o)},MvwC:function(e,t,n){var r=n("5T2Y").document;e.exports=r&&r.documentElement},NV0k:function(e,t){t.f={}.propertyIsEnumerable},NegM:function(e,t,n){var r=n("2faE"),o=n("rr1i");e.exports=n("jmDH")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"NsO/":function(e,t,n){var r=n("M1xp"),o=n("Jes0");e.exports=function(e){return r(o(e))}},NwJ3:function(e,t,n){var r=n("SBuE"),o=n("UWiX")("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},OH9c:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},OTTw:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},Ojgd:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},P2sY:function(e,t,n){e.exports={default:n("UbbE"),__esModule:!0}},PBE1:function(e,t,n){"use strict";var r=n("Y7ZC"),o=n("WEpk"),i=n("5T2Y"),a=n("8gHz"),s=n("zXhZ");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},PE4B:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return t&&!0===t.clone&&r(e)?s(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function a(e,t,n){var o=e.slice();return t.forEach(function(t,a){void 0===o[a]?o[a]=i(t,n):r(t)?o[a]=s(e[a],t,n):-1===e.indexOf(t)&&o.push(i(t,n))}),o}function s(e,t,n){var o=Array.isArray(t);return o===Array.isArray(e)?o?((n||{arrayMerge:a}).arrayMerge||a)(e,t,n):function(e,t,n){var o={};return r(e)&&Object.keys(e).forEach(function(t){o[t]=i(e[t],n)}),Object.keys(t).forEach(function(a){r(t[a])&&e[a]?o[a]=s(e[a],t[a],n):o[a]=i(t[a],n)}),o}(e,t,n):i(t,n)}s.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return s(e,n,t)})};var l=s;e.exports=l},"Q/yX":function(e,t,n){"use strict";var r=n("Y7ZC"),o=n("ZW5q"),i=n("RDmV");r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},QMMT:function(e,t,n){var r=n("a0xu"),o=n("UWiX")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},QXhf:function(e,t,n){var r,o,i,a=n("2GTP"),s=n("MCSJ"),l=n("MvwC"),c=n("Hsns"),u=n("5T2Y"),p=u.process,f=u.setImmediate,d=u.clearImmediate,h=u.MessageChannel,_=u.Dispatch,m=0,v={},g=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){g.call(e.data)};f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},d=function(e){delete v[e]},"process"==n("a0xu")(p)?r=function(e){p.nextTick(a(g,e,1))}:_&&_.now?r=function(e){_.now(a(g,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),g.call(e)}}:function(e){setTimeout(a(g,e,1),0)}),e.exports={set:f,clear:d}},QbLZ:function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n("P2sY"));t.default=r.default||function(e){for(var t=1;tc;)l.call(e,a=s[c++])&&t.push(a);return t}},RDmV:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},RfKB:function(e,t,n){var r=n("2faE").f,o=n("B+OT"),i=n("UWiX")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},"Rn+g":function(e,t,n){"use strict";var r=n("LYNF");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},SBuE:function(e,t){e.exports={}},TJWN:function(e,t,n){"use strict";var r=n("5T2Y"),o=n("WEpk"),i=n("2faE"),a=n("jmDH"),s=n("UWiX")("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},TuGD:function(e,t,n){var r=n("UWiX")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},"U+KD":function(e,t,n){var r=n("B+OT"),o=n("JB68"),i=n("VVlx")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},UO39:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},UWiX:function(e,t,n){var r=n("29s/")("wks"),o=n("YqAc"),i=n("5T2Y").Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},UbbE:function(e,t,n){n("o8NH"),e.exports=n("WEpk").Object.assign},UnBK:function(e,t,n){"use strict";var r=n("xTJ+"),o=n("xAGQ"),i=n("Lmem"),a=n("JEQr"),s=n("2SVd"),l=n("5oMp");function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},VJsP:function(e,t,n){"use strict";var r=n("2GTP"),o=n("Y7ZC"),i=n("JB68"),a=n("sNwI"),s=n("NwJ3"),l=n("tEej"),c=n("IP1Z"),u=n("fNZA");o(o.S+o.F*!n("TuGD")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,p,f=i(e),d="function"==typeof this?this:Array,h=arguments.length,_=h>1?arguments[1]:void 0,m=void 0!==_,v=0,g=u(f);if(m&&(_=r(_,h>2?arguments[2]:void 0,2)),void 0==g||d==Array&&s(g))for(n=new d(t=l(f.length));t>v;v++)c(n,v,m?_(f[v],v):f[v]);else for(p=g.call(f),n=new d;!(o=p.next()).done;v++)c(n,v,m?a(p,_,[o.value,v],!0):o.value);return n.length=v,n}})},VVlx:function(e,t,n){var r=n("29s/")("keys"),o=n("YqAc");e.exports=function(e){return r[e]||(r[e]=o(e))}},W070:function(e,t,n){var r=n("NsO/"),o=n("tEej"),i=n("D8kY");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},WEpk:function(e,t){var n=e.exports={version:"2.6.2"};"number"==typeof __e&&(__e=n)},"WX/U":function(e,t){e.exports=function(e,t,n,r){var o,i=0;return"boolean"!=typeof t&&(r=n,n=t,t=void 0),function(){var a=this,s=Number(new Date)-i,l=arguments;function c(){i=Number(new Date),n.apply(a,l)}r&&!o&&c(),o&&clearTimeout(o),void 0===r&&s>e?c():!0!==t&&(o=setTimeout(r?function(){o=void 0}:c,void 0===r?e-s:e))}}},"XJU/":function(e,t,n){var r=n("NegM");e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},Y7ZC:function(e,t,n){var r=n("5T2Y"),o=n("WEpk"),i=n("2GTP"),a=n("NegM"),s=n("B+OT"),l=function(e,t,n){var c,u,p,f=e&l.F,d=e&l.G,h=e&l.S,_=e&l.P,m=e&l.B,v=e&l.W,g=d?o:o[t]||(o[t]={}),b=g.prototype,y=d?r:h?r[t]:(r[t]||{}).prototype;for(c in d&&(n=t),n)(u=!f&&y&&void 0!==y[c])&&s(g,c)||(p=u?y[c]:n[c],g[c]=d&&"function"!=typeof y[c]?n[c]:m&&u?i(p,r):v&&y[c]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):_&&"function"==typeof p?i(Function.call,p):p,_&&((g.virtual||(g.virtual={}))[c]=p,e&l.R&&b&&!b[c]&&a(b,c,p)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},YqAc:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},ZOF2:function(e,t,n){},ZW5q:function(e,t,n){"use strict";var r=n("eaoh");e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},Zxgi:function(e,t,n){var r=n("5T2Y"),o=n("WEpk"),i=n("uOPS"),a=n("zLkG"),s=n("2faE").f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},a0xu:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},aW7e:function(e,t,n){n("wgeU"),n("FlQf"),n("bBy9"),n("JMW+"),n("PBE1"),n("Q/yX"),e.exports=n("WEpk").Promise},adOz:function(e,t,n){n("Zxgi")("asyncIterator")},"ar/p":function(e,t,n){var r=n("5vMV"),o=n("FpHa").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},bBy9:function(e,t,n){n("w2d+");for(var r=n("5T2Y"),o=n("NegM"),i=n("SBuE"),a=n("UWiX")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,C=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new k(t,n,this);x.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){C.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});var E=void 0!==o.ResizeObserver?o.ResizeObserver:C;t.default=E}.call(this,n("yLpj"))},cIdk:function(e,t,n){},ccE7:function(e,t,n){var r=n("Ojgd"),o=n("Jes0");e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},dl0q:function(e,t,n){n("Zxgi")("observable")},eUtF:function(e,t,n){e.exports=!n("jmDH")&&!n("KUxP")(function(){return 7!=Object.defineProperty(n("Hsns")("div"),"a",{get:function(){return 7}}).a})},eaoh:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},endd:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},eqyj:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},ez49:function(e,t,n){"use strict";var r,o=n("o97j");o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")) + * @license MIT */void 0===(o="function"==typeof(r=function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function n(e,t,n){return en?n:e}function r(e){return 100*(-1+e)}e.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(a){var s=e.isStarted();a=n(a,t.minimum,1),e.status=1===a?null:a;var l=e.render(!s),c=l.querySelector(t.barSelector),u=t.speed,p=t.easing;return l.offsetWidth,o(function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),i(c,function(e,n,o){var i;return(i="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"}).transition="all "+n+"ms "+o,i}(a,u,p)),1===a?(i(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout(function(){i(l,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){e.remove(),n()},u)},u)):setTimeout(n,u)}),this},e.isStarted=function(){return"number"==typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout(function(){e.status&&(e.trickle(),n())},t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!=typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always(function(){0==--n?(t=0,e.done()):e.set((t-n)/t)}),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");s(document.documentElement,"nprogress-busy");var o=document.createElement("div");o.id="nprogress",o.innerHTML=t.template;var a,l=o.querySelector(t.barSelector),c=n?"-100":r(e.status||0),p=document.querySelector(t.parent);return i(l,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),t.showSpinner||(a=o.querySelector(t.spinnerSelector))&&u(a),p!=document.body&&s(p,"nprogress-custom-parent"),p.appendChild(o),o},e.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&u(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),i=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n){return n=function(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}(n),t[n]||(t[n]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}(n))}function r(e,t,r){t=n(t),e.style[t]=r}return function(e,t){var n,o,i=arguments;if(2==i.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,i[1],i[2])}}();function a(e,t){var n="string"==typeof e?e:c(e);return n.indexOf(" "+t+" ")>=0}function s(e,t){var n=c(e),r=n+t;a(n,t)||(e.className=r.substring(1))}function l(e,t){var n,r=c(e);a(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function c(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function u(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e})?r.call(t,n,t,e):r)||(e.exports=o)},MvwC:function(e,t,n){var r=n("5T2Y").document;e.exports=r&&r.documentElement},NV0k:function(e,t){t.f={}.propertyIsEnumerable},NegM:function(e,t,n){var r=n("2faE"),o=n("rr1i");e.exports=n("jmDH")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"NsO/":function(e,t,n){var r=n("M1xp"),o=n("Jes0");e.exports=function(e){return r(o(e))}},NwJ3:function(e,t,n){var r=n("SBuE"),o=n("UWiX")("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},OH9c:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},OTTw:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},Ojgd:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},P2sY:function(e,t,n){e.exports={default:n("UbbE"),__esModule:!0}},PBE1:function(e,t,n){"use strict";var r=n("Y7ZC"),o=n("WEpk"),i=n("5T2Y"),a=n("8gHz"),s=n("zXhZ");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},PE4B:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return t&&!0===t.clone&&r(e)?s(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function a(e,t,n){var o=e.slice();return t.forEach(function(t,a){void 0===o[a]?o[a]=i(t,n):r(t)?o[a]=s(e[a],t,n):-1===e.indexOf(t)&&o.push(i(t,n))}),o}function s(e,t,n){var o=Array.isArray(t);return o===Array.isArray(e)?o?((n||{arrayMerge:a}).arrayMerge||a)(e,t,n):function(e,t,n){var o={};return r(e)&&Object.keys(e).forEach(function(t){o[t]=i(e[t],n)}),Object.keys(t).forEach(function(a){r(t[a])&&e[a]?o[a]=s(e[a],t[a],n):o[a]=i(t[a],n)}),o}(e,t,n):i(t,n)}s.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return s(e,n,t)})};var l=s;e.exports=l},"Q/yX":function(e,t,n){"use strict";var r=n("Y7ZC"),o=n("ZW5q"),i=n("RDmV");r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},QMMT:function(e,t,n){var r=n("a0xu"),o=n("UWiX")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},QXhf:function(e,t,n){var r,o,i,a=n("2GTP"),s=n("MCSJ"),l=n("MvwC"),c=n("Hsns"),u=n("5T2Y"),p=u.process,f=u.setImmediate,d=u.clearImmediate,h=u.MessageChannel,_=u.Dispatch,m=0,v={},g=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){g.call(e.data)};f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},d=function(e){delete v[e]},"process"==n("a0xu")(p)?r=function(e){p.nextTick(a(g,e,1))}:_&&_.now?r=function(e){_.now(a(g,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),g.call(e)}}:function(e){setTimeout(a(g,e,1),0)}),e.exports={set:f,clear:d}},QbLZ:function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n("P2sY"));t.default=r.default||function(e){for(var t=1;tc;)l.call(e,a=s[c++])&&t.push(a);return t}},RDmV:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},RfKB:function(e,t,n){var r=n("2faE").f,o=n("B+OT"),i=n("UWiX")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},"Rn+g":function(e,t,n){"use strict";var r=n("LYNF");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},SBuE:function(e,t){e.exports={}},TJWN:function(e,t,n){"use strict";var r=n("5T2Y"),o=n("WEpk"),i=n("2faE"),a=n("jmDH"),s=n("UWiX")("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},TuGD:function(e,t,n){var r=n("UWiX")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},"U+KD":function(e,t,n){var r=n("B+OT"),o=n("JB68"),i=n("VVlx")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},UO39:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},UWiX:function(e,t,n){var r=n("29s/")("wks"),o=n("YqAc"),i=n("5T2Y").Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},UbbE:function(e,t,n){n("o8NH"),e.exports=n("WEpk").Object.assign},UnBK:function(e,t,n){"use strict";var r=n("xTJ+"),o=n("xAGQ"),i=n("Lmem"),a=n("JEQr"),s=n("2SVd"),l=n("5oMp");function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},VJsP:function(e,t,n){"use strict";var r=n("2GTP"),o=n("Y7ZC"),i=n("JB68"),a=n("sNwI"),s=n("NwJ3"),l=n("tEej"),c=n("IP1Z"),u=n("fNZA");o(o.S+o.F*!n("TuGD")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,p,f=i(e),d="function"==typeof this?this:Array,h=arguments.length,_=h>1?arguments[1]:void 0,m=void 0!==_,v=0,g=u(f);if(m&&(_=r(_,h>2?arguments[2]:void 0,2)),void 0==g||d==Array&&s(g))for(n=new d(t=l(f.length));t>v;v++)c(n,v,m?_(f[v],v):f[v]);else for(p=g.call(f),n=new d;!(o=p.next()).done;v++)c(n,v,m?a(p,_,[o.value,v],!0):o.value);return n.length=v,n}})},VVlx:function(e,t,n){var r=n("29s/")("keys"),o=n("YqAc");e.exports=function(e){return r[e]||(r[e]=o(e))}},W070:function(e,t,n){var r=n("NsO/"),o=n("tEej"),i=n("D8kY");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},WEpk:function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"WX/U":function(e,t){e.exports=function(e,t,n,r){var o,i=0;return"boolean"!=typeof t&&(r=n,n=t,t=void 0),function(){var a=this,s=Number(new Date)-i,l=arguments;function c(){i=Number(new Date),n.apply(a,l)}r&&!o&&c(),o&&clearTimeout(o),void 0===r&&s>e?c():!0!==t&&(o=setTimeout(r?function(){o=void 0}:c,void 0===r?e-s:e))}}},"XJU/":function(e,t,n){var r=n("NegM");e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},Y7ZC:function(e,t,n){var r=n("5T2Y"),o=n("WEpk"),i=n("2GTP"),a=n("NegM"),s=n("B+OT"),l=function(e,t,n){var c,u,p,f=e&l.F,d=e&l.G,h=e&l.S,_=e&l.P,m=e&l.B,v=e&l.W,g=d?o:o[t]||(o[t]={}),b=g.prototype,y=d?r:h?r[t]:(r[t]||{}).prototype;for(c in d&&(n=t),n)(u=!f&&y&&void 0!==y[c])&&s(g,c)||(p=u?y[c]:n[c],g[c]=d&&"function"!=typeof y[c]?n[c]:m&&u?i(p,r):v&&y[c]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):_&&"function"==typeof p?i(Function.call,p):p,_&&((g.virtual||(g.virtual={}))[c]=p,e&l.R&&b&&!b[c]&&a(b,c,p)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},YqAc:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},ZOF2:function(e,t,n){},ZW5q:function(e,t,n){"use strict";var r=n("eaoh");e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},Zxgi:function(e,t,n){var r=n("5T2Y"),o=n("WEpk"),i=n("uOPS"),a=n("zLkG"),s=n("2faE").f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},a0xu:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},aW7e:function(e,t,n){n("wgeU"),n("FlQf"),n("bBy9"),n("JMW+"),n("PBE1"),n("Q/yX"),e.exports=n("WEpk").Promise},adOz:function(e,t,n){n("Zxgi")("asyncIterator")},"ar/p":function(e,t,n){var r=n("5vMV"),o=n("FpHa").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},bBy9:function(e,t,n){n("w2d+");for(var r=n("5T2Y"),o=n("NegM"),i=n("SBuE"),a=n("UWiX")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,C=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new k(t,n,this);x.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){C.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});var E=void 0!==o.ResizeObserver?o.ResizeObserver:C;t.default=E}.call(this,n("yLpj"))},cIdk:function(e,t,n){},ccE7:function(e,t,n){var r=n("Ojgd"),o=n("Jes0");e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},dl0q:function(e,t,n){n("Zxgi")("observable")},eUtF:function(e,t,n){e.exports=!n("jmDH")&&!n("KUxP")(function(){return 7!=Object.defineProperty(n("Hsns")("div"),"a",{get:function(){return 7}}).a})},eaoh:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},endd:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},eqyj:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},ez49:function(e,t,n){"use strict";var r,o=n("o97j");o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")) /** * Checks if an event is supported in the current execution environment. * -- Gitee From 01e3fe13d54dd84d73ff039c6b6ed66b35f62ce2 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Sat, 4 May 2019 21:50:45 +0800 Subject: [PATCH 17/33] =?UTF-8?q?fix(socket):=20=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laravel/app/Services/WebSocketService.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/laravel/app/Services/WebSocketService.php b/laravel/app/Services/WebSocketService.php index 3f170c8..018d49f 100644 --- a/laravel/app/Services/WebSocketService.php +++ b/laravel/app/Services/WebSocketService.php @@ -37,6 +37,11 @@ class WebSocketService implements WebSocketHandlerInterface // \Log::info('New WebSocket connection', [$request->fd, request()->all(), session()->getId(), session('xxx'), session(['yyy' => time()])]); // 1. 根据 api_excel 的 id 查询总数, $req = $request->get; + $action = $req['action'] ?? ''; + switch ($action) { + case 'api_excel': + + } if (isset($req['id']) && $req['id'] == floor($req['id'])) { while (true) { -- Gitee From 3b3054c75f60a192607268175f65c161d75c0751 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Sat, 4 May 2019 21:51:13 +0800 Subject: [PATCH 18/33] =?UTF-8?q?fix(repo):=20=E6=9B=B4=E6=96=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Api/ApiExcelController.php | 9 ++++++++ .../Repository/MultithreadingRepository.php | 21 +++++++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/laravel/app/Http/Controllers/Api/ApiExcelController.php b/laravel/app/Http/Controllers/Api/ApiExcelController.php index b82daa4..afd9fff 100644 --- a/laravel/app/Http/Controllers/Api/ApiExcelController.php +++ b/laravel/app/Http/Controllers/Api/ApiExcelController.php @@ -3,6 +3,7 @@ namespace App\Http\Controllers\Api; use App\Events\ApiExcelEvent; +use App\Http\Repository\ApiRepository; use App\Http\Repository\ExcelRepository; use App\Http\Requests\ApiExcel\Store; use App\Http\Requests\ApiExcel\Update; @@ -57,6 +58,8 @@ class ApiExcelController extends Controller $where = ['uid' => $user_id]; } $list = ApiExcel::with('apiParam')->where($where)->orderBy('id', 'desc')->paginate($this->perPage); + // 获取完成进度情况 + $list = ApiRepository::getInstent()->workProgress($list); $appUrl = env('APP_URL') ?? ''; $collect = collect(['appUrl' => $appUrl]); @@ -264,6 +267,11 @@ class ApiExcelController extends Controller return $this->out(200); } + /** + * 下载已完成数据 + * + * @return \Illuminate\Http\Response + */ public function downloadLog() { $api_excel_id = $this->request->input('id'); @@ -280,4 +288,5 @@ class ApiExcelController extends Controller } return $this->out(200, ['failed_done_file' => $failed_done_file]); } + } diff --git a/laravel/app/Http/Repository/MultithreadingRepository.php b/laravel/app/Http/Repository/MultithreadingRepository.php index 2a37e51..6656206 100644 --- a/laravel/app/Http/Repository/MultithreadingRepository.php +++ b/laravel/app/Http/Repository/MultithreadingRepository.php @@ -150,7 +150,9 @@ class MultithreadingRepository } $this->dataSet = $dataSet; - return true; + // return true; + // 更新 api_excel 表 total_excel 条数 + return $this->saveTotalExcel($this->api_excel_id, count($dataSet['data'])); } catch (\Exception $e) { return false; } @@ -324,7 +326,9 @@ class MultithreadingRepository // 3. 循环数组每个单元格的数据 $this->dataSet['data'] = $data; - return true; + // return true; + // 更新 api_excel 表 total_excel 条数 + return $this->saveTotalExcel($this->api_excel_id, count($data)); } catch (Exception|\PhpOffice\PhpSpreadsheet\Exception $exception) { return false; } @@ -647,6 +651,19 @@ class MultithreadingRepository return '100'; } + /** + * 保存 total_excel 字段 + * + * @param $api_id + * @param $total + * + * @return bool + */ + private function saveTotalExcel($api_id, $total) + { + return ApiExcel::where('id', $api_id)->update(['total_excel' => $total]); + } + /** * BusRepository constructor. */ -- Gitee From 9ca78cb765f7e78f5436e331302b8ebe3bbf785c Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Sat, 4 May 2019 21:51:37 +0800 Subject: [PATCH 19/33] =?UTF-8?q?fix(repo):=20=E8=BF=9B=E5=BA=A6=E6=9D=A1?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laravel/app/Http/Repository/ApiRepository.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/laravel/app/Http/Repository/ApiRepository.php b/laravel/app/Http/Repository/ApiRepository.php index 3f06a15..636f973 100644 --- a/laravel/app/Http/Repository/ApiRepository.php +++ b/laravel/app/Http/Repository/ApiRepository.php @@ -107,4 +107,13 @@ class ApiRepository { return (float)sprintf('%.0f', microtime(true) * 1000); } + + + /** + * 获取下载进度条 + */ + public function workProgress($list) + { + return $list; + } } -- Gitee From ff29b9e9ba8017caba8ba8e7b2f0f746dab6534a Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Sat, 4 May 2019 21:52:57 +0800 Subject: [PATCH 20/33] =?UTF-8?q?fix(view):=20=E8=BF=9B=E5=BA=A6=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/api_excel/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/src/views/api_excel/index.vue b/admin/src/views/api_excel/index.vue index 9f4f27d..9276dab 100644 --- a/admin/src/views/api_excel/index.vue +++ b/admin/src/views/api_excel/index.vue @@ -56,7 +56,7 @@ - + \ No newline at end of file +Laravel-vue-admin 后台管理系统
\ No newline at end of file diff --git a/laravel/public/static/css/chunk-4c2d.ec693d81.css b/laravel/public/static/css/chunk-4c2d.ac67ea15.css similarity index 100% rename from laravel/public/static/css/chunk-4c2d.ec693d81.css rename to laravel/public/static/css/chunk-4c2d.ac67ea15.css diff --git a/laravel/public/static/css/chunk-9346.248fb62f.css b/laravel/public/static/css/chunk-9346.248fb62f.css deleted file mode 100644 index b80d7fe..0000000 --- a/laravel/public/static/css/chunk-9346.248fb62f.css +++ /dev/null @@ -1 +0,0 @@ -.el-row[data-v-4dea90c2]{margin-bottom:20px}.pagination[data-v-4dea90c2]{margin:20px auto}.reload[data-v-4dea90c2]{margin-right:300px;float:right} \ No newline at end of file diff --git a/laravel/public/static/css/chunk-c5f5.15d4ea7c.css b/laravel/public/static/css/chunk-c5f5.5a6d631d.css similarity index 100% rename from laravel/public/static/css/chunk-c5f5.15d4ea7c.css rename to laravel/public/static/css/chunk-c5f5.5a6d631d.css diff --git a/laravel/public/static/css/chunk-c8fe.237552f2.css b/laravel/public/static/css/chunk-c8fe.9fd5cbc1.css similarity index 100% rename from laravel/public/static/css/chunk-c8fe.237552f2.css rename to laravel/public/static/css/chunk-c8fe.9fd5cbc1.css diff --git a/laravel/public/static/css/chunk-cfc1.1329c27c.css b/laravel/public/static/css/chunk-cfc1.44beec2c.css similarity index 100% rename from laravel/public/static/css/chunk-cfc1.1329c27c.css rename to laravel/public/static/css/chunk-cfc1.44beec2c.css diff --git a/laravel/public/static/css/chunk-fdd2.9329826f.css b/laravel/public/static/css/chunk-fdd2.9329826f.css new file mode 100644 index 0000000..ceb319f --- /dev/null +++ b/laravel/public/static/css/chunk-fdd2.9329826f.css @@ -0,0 +1 @@ +.el-row[data-v-18a09d6c]{margin-bottom:20px}.pagination[data-v-18a09d6c]{margin:20px auto}.reload[data-v-18a09d6c]{margin-right:300px;float:right} \ No newline at end of file diff --git a/laravel/public/static/js/app.8313caaf.js b/laravel/public/static/js/app.cb6b8b60.js similarity index 99% rename from laravel/public/static/js/app.8313caaf.js rename to laravel/public/static/js/app.cb6b8b60.js index 8fcf50f..9d937a7 100644 --- a/laravel/public/static/js/app.8313caaf.js +++ b/laravel/public/static/js/app.cb6b8b60.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{"/OCX":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-table",use:"icon-ico-table-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"0faV":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-article",use:"icon-article-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"3PhE":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},"6xvN":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},"8fzN":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-tag",use:"icon-tag-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"96Go":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-aliyun",use:"icon-ico-aliyun-usage",viewBox:"0 0 1844 1024",content:''});o.a.add(s);n.default=s},"9ChT":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-category",use:"icon-category-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"A0++":function(e,n,t){"use strict";var i=t("xUNX");t.n(i).a},Ahhv:function(e,n,t){},BKkR:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-article",use:"icon-ico-article-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},GPBF:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},Hoqj:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-category",use:"icon-ico-category-usage",viewBox:"0 0 1260 1024",content:''});o.a.add(s);n.default=s},Kj24:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},LyEU:function(e,n,t){"use strict";var i=t("m821");t.n(i).a},MMMJ:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},OXmT:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-permission",use:"icon-permission-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},Q2AE:function(e,n,t){"use strict";var i=t("Kw5r"),a=t("L2JU"),c=t("p46w"),o=t.n(c),s={state:{sidebar:{opened:!+o.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},mutations:{TOGGLE_SIDEBAR:function(e){e.sidebar.opened?o.a.set("sidebarStatus",1):o.a.set("sidebarStatus",0),e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1},CLOSE_SIDEBAR:function(e,n){o.a.set("sidebarStatus",1),e.sidebar.opened=!1,e.sidebar.withoutAnimation=n},TOGGLE_DEVICE:function(e,n){e.device=n}},actions:{ToggleSideBar:function(e){(0,e.commit)("TOGGLE_SIDEBAR")},CloseSideBar:function(e,n){(0,e.commit)("CLOSE_SIDEBAR",n.withoutAnimation)},ToggleDevice:function(e,n){(0,e.commit)("TOGGLE_DEVICE",n)}}},l=t("gDS+"),r=t.n(l),d=t("4d7F"),u=t.n(d),h=t("t3Un");var m=t("X4fA"),p={state:{token:Object(m.a)(),name:"",avatar:"",roles:[],addRouters:[]},mutations:{SET_TOKEN:function(e,n){e.token=n},SET_NAME:function(e,n){e.name=n},SET_AVATAR:function(e,n){e.avatar=n},SET_ROLES:function(e,n){e.roles=n},SET_ROUTERS:function(e,n){e.addRouters=n}},actions:{Login:function(e,n){var t=e.commit;return new u.a(function(e,i){(function(e){return h.a.post("/api/user/login",e)})(n).then(function(n){var i=n.data;Object(m.c)(i.access_token),t("SET_TOKEN",i.access_token),e()}).catch(function(e){i(e)})})},GetInfo:function(e){var n=e.commit,t=e.state;return new u.a(function(e,i){(function(e){return Object(h.a)({url:"/api/user/info",method:"get",params:{token:e}})})(t.token).then(function(t){var a=t.data;a.roles&&a.roles.length>0?n("SET_ROLES",a.roles):i("getInfo: roles must be a non-null array !"),n("SET_NAME",a.name),n("SET_AVATAR",a.avatar),e(t)}).catch(function(e){i(e)})})},LogOut:function(e){var n=e.commit,t=e.state;return new u.a(function(e,i){(t.token,Object(h.a)({url:"/api/user/logout",method:"post"})).then(function(){n("SET_TOKEN",""),n("SET_ROLES",[]),Object(m.b)(),sessionStorage.setItem("roles",""),e()}).catch(function(e){i(e)})})},FedLogOut:function(e){var n=e.commit;return new u.a(function(e){n("SET_TOKEN",""),Object(m.b)(),e()})},GenerateRoutes:function(e,n){var t=e.commit;return new u.a(function(e){t("SET_ROUTERS",n.routers),sessionStorage.setItem("roles",r()(n.roles)),e()})}}},v={sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},roles:function(e){return e.user.roles},addRouters:function(e){return e.user.addRouters}};i.default.use(a.a);var f=new a.a.Store({modules:{app:s,user:p},getters:v});n.a=f},"R/Hx":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},TfVu:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(s);n.default=s},TnCw:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-auth",use:"icon-auth-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"Uf/o":function(e,n,t){var i={"./add.svg":"wqOL","./api.svg":"dHYy","./article.svg":"0faV","./auth.svg":"TnCw","./bus.svg":"jxcm","./category.svg":"9ChT","./example.svg":"MMMJ","./excel.svg":"ZZmv","./eye.svg":"TfVu","./form.svg":"6xvN","./ico-aliyun.svg":"96Go","./ico-article.svg":"BKkR","./ico-category.svg":"Hoqj","./ico-table.svg":"/OCX","./link.svg":"GPBF","./nav.svg":"dbke","./nested.svg":"3PhE","./password.svg":"Kj24","./permission.svg":"OXmT","./role.svg":"Ugzh","./table.svg":"R/Hx","./tag.svg":"8fzN","./task.svg":"dxv6","./tree.svg":"k80C","./user.svg":"s7Vf"};function a(e){var n=c(e);return t(n)}function c(e){var n=i[e];if(!(n+1)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n}a.keys=function(){return Object.keys(i)},a.resolve=c,e.exports=a,a.id="Uf/o"},Ugzh:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-role",use:"icon-role-usage",viewBox:"0 0 1333 1024",content:''});o.a.add(s);n.default=s},Vtdi:function(e,n,t){"use strict";t.r(n);var i=t("Kw5r"),a=(t("9d8Q"),t("XJYT")),c=t.n(a),o=(t("D66Q"),t("cIdk"),t("sg+I"),t("stgD")),s=t.n(o),l=(t("ZOF2"),{name:"App"}),r=(t("A0++"),t("KHd+")),d=Object(r.a)(l,function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},[],!1,null,null,null);d.options.__file="App.vue";var u=d.exports,h=t("jE9Z");i.default.use(h.a);var m=function(){return t.e("chunk-4c2d").then(t.bind(null,"2c6e"))},p=[].concat([{path:"/",name:"index",component:function(){return t.e("chunk-64b5").then(t.bind(null,"er4n"))},hidden:!0},{path:"/line",name:"line",component:function(){return t.e("chunk-687a").then(t.bind(null,"G5rc"))},hidden:!0},{path:"/home",component:function(){return t.e("chunk-1412").then(t.bind(null,"d7gD"))},hidden:!0},{path:"/md",name:"md",component:function(){return t.e("gW6U").then(t.bind(null,"gW6U"))},hidden:!0},{path:"/out",name:"out",component:function(){return t.e("chunk-132e").then(t.bind(null,"LnUv"))},hidden:!0},{path:"/excel",name:"excel",component:function(){return Promise.all([t.e("chunk-7a80"),t.e("chunk-68e9")]).then(t.bind(null,"5EWB"))},hidden:!0},{path:"/upload",name:"upload",component:function(){return t.e("chunk-62f7").then(t.bind(null,"4p+I"))},hidden:!0},{path:"/websocket",name:"websocket",component:function(){return t.e("chunk-f5ec").then(t.bind(null,"6jsT"))},hidden:!0},{path:"/echarts",name:"echarts",component:function(){return Promise.all([t.e("chunk-7025"),t.e("chunk-6148")]).then(t.bind(null,"HnWs"))},hidden:!0},{path:"/login",component:function(){return t.e("chunk-c8fe").then(t.bind(null,"ntYl"))},hidden:!0},{path:"/404",component:function(){return t.e("chunk-c5f5").then(t.bind(null,"jNvO"))},hidden:!0},{path:"/admin",component:m,redirect:"/admin/dashboard",name:"Dashboard",hidden:!0,children:[{path:"dashboard",component:function(){return Promise.all([t.e("chunk-7025"),t.e("chunk-cfc1")]).then(t.bind(null,"lAbF"))}}]}],[{path:"/form",component:m,children:[{path:"index",name:"Form",component:function(){return t.e("chunk-d818").then(t.bind(null,"Nx2/"))},meta:{title:"Form",icon:"form"}}],hidden:!0},{path:"/nested",component:m,redirect:"/nested/menu1",name:"Nested",meta:{title:"Nested",icon:"nested"},children:[{path:"menu1",component:function(){return t.e("6bwb").then(t.bind(null,"6bwb"))},name:"Menu1",meta:{title:"Menu1"},children:[{path:"menu1-1",component:function(){return t.e("kbPl").then(t.bind(null,"kbPl"))},name:"Menu1-1",meta:{title:"Menu1-1"}},{path:"menu1-2",component:function(){return t.e("Vc2m").then(t.bind(null,"Vc2m"))},name:"Menu1-2",meta:{title:"Menu1-2"},children:[{path:"menu1-2-1",component:function(){return t.e("ZYJW").then(t.bind(null,"ZYJW"))},name:"Menu1-2-1",meta:{title:"Menu1-2-1"}},{path:"menu1-2-2",component:function(){return t.e("tvtM").then(t.bind(null,"tvtM"))},name:"Menu1-2-2",meta:{title:"Menu1-2-2"}}]},{path:"menu1-3",component:function(){return t.e("jYsI").then(t.bind(null,"jYsI"))},name:"Menu1-3",meta:{title:"Menu1-3"}}]},{path:"menu2",component:function(){return t.e("27OO").then(t.bind(null,"27OO"))},meta:{title:"menu2"}}]},{path:"*",redirect:"/404",hidden:!0}]),v=new h.a({scrollBehavior:function(){return{y:0}},routes:p}),f=t("Q2AE"),w={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{iconName:function(){return"#icon-"+this.iconClass},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"}}},g=(t("LyEU"),Object(r.a)(w,function(){var e=this.$createElement,n=this._self._c||e;return n("svg",{class:this.svgClass,attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":this.iconName}})])},[],!1,null,"2f0f1ae2",null));g.options.__file="index.vue";var x=g.exports,b={name:"NavBar",data:function(){return{activeIndex:""}}},y=(t("mNmU"),Object(r.a)(b,function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"nav"},[t("el-menu",{staticClass:"el-menu-demo",attrs:{"default-active":e.activeIndex,mode:"horizontal"}},[t("el-row",{attrs:{gutter:1}},[t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"1"}},[t("router-link",{attrs:{to:{name:"index"}}},[e._v("公交-首页")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"3"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"out"}}},[e._v("中文排版")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"4"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"excel"}}},[e._v("在线表格 Excel")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"4"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"upload"}}},[e._v("图片转文字")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-submenu",{attrs:{index:"2"}},[t("template",{slot:"title"},[e._v("其它工具")]),e._v(" "),t("el-menu-item",{attrs:{index:"2-2"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"md"}}},[e._v("Markdown")])],1),e._v(" "),t("el-menu-item",{attrs:{index:"2-2"}},[t("router-link",{attrs:{to:{name:"echarts"}}},[e._v("图表")])],1)],2)],1)])],1)],1)],1)},[],!1,null,"6308ec4e",null));y.options.__file="navBar.vue";var k=y.exports;i.default.component("svg-icon",x),i.default.component("nav-bar",k);!function(e){e.keys().map(e)}(t("Uf/o"));var M=t("m1cH"),z=t.n(M),B=t("QbLZ"),C=t.n(B),L=function(){return t.e("chunk-4c2d").then(t.bind(null,"2c6e"))},E="Super Administrator",H=[{path:"/api_excel",component:L,redirect:"/api_excel/index",name:"Excel-List",meta:{title:"批量测试管理",icon:"ico-table",roles:[E,"Admin"]},children:[{path:"/api_excel/edit/:id",name:"EditExcel",component:function(){return t.e("chunk-d226").then(t.bind(null,"F/uS"))},hidden:!0},{path:"/api_excel/add",name:"AddExcel",component:function(){return t.e("chunk-2f6b").then(t.bind(null,"wf12"))},meta:{title:"上传测试",icon:"excel",roles:[E,"Admin"]}},{path:"/api_excel/index",name:"Excel",component:function(){return t.e("chunk-9346").then(t.bind(null,"yWqU"))},meta:{title:"测试管理",icon:"ico-aliyun",roles:[E,"Admin"]}},{path:"/api_param/add",name:"AddApiParam",component:function(){return t.e("chunk-34e9").then(t.bind(null,"eR/3"))},hidden:!0},{path:"/api_param/edit/:id",name:"EditApiParam",component:function(){return t.e("chunk-2227").then(t.bind(null,"/+Eh"))},hidden:!0},{path:"/api_param/index",name:"ApiParam",component:function(){return t.e("chunk-e667").then(t.bind(null,"dH62"))},meta:{title:"接口列表",icon:"api",roles:[E,"Admin"]}}]}],V=[{path:"/category",component:L,redirect:"/category/index",name:"Category-Nav",meta:{title:"栏目菜单",icon:"category",roles:[E]},children:[{path:"/category/add",name:"AddCategory",component:function(){return t.e("chunk-6908").then(t.bind(null,"GMaQ"))},meta:{title:"添加栏目"},hidden:!0},{path:"/category/edit/:id",name:"EditCategory",component:function(){return t.e("chunk-7105").then(t.bind(null,"1ylW"))},hidden:!0},{path:"/category/index",name:"Category",component:function(){return t.e("chunk-4055").then(t.bind(null,"oZKA"))},meta:{title:"栏目管理",icon:"ico-category",roles:[E]}},{path:"/nav/add",name:"AddNav",component:function(){return t.e("chunk-4f15").then(t.bind(null,"JPfX"))},hidden:!0},{path:"/nav/edit/:id",name:"EditNav",component:function(){return t.e("chunk-4332").then(t.bind(null,"LnHU"))},hidden:!0},{path:"/nav",name:"Nav",component:function(){return t.e("chunk-99dd").then(t.bind(null,"mxRw"))},meta:{title:"导航管理",icon:"nav",roles:[E]}},{path:"/tag/add",name:"AddTag",component:function(){return t.e("chunk-82a7").then(t.bind(null,"+1ta"))},meta:{title:"添加标签"},hidden:!0},{path:"/tag/edit/:id",name:"EditTag",component:function(){return t.e("chunk-1dc3").then(t.bind(null,"S2fK"))},hidden:!0},{path:"/tag",name:"Tag",component:function(){return t.e("chunk-ac41").then(t.bind(null,"ZhNY"))},meta:{title:"标签列表",icon:"tag",roles:[E]}}]},{path:"/article",component:L,name:"Article-List",meta:{title:"文章管理",icon:"article",roles:[E]},children:[{path:"/article/edit/:id",name:"EditArticle",component:function(){return t.e("chunk-766b").then(t.bind(null,"++5l"))},hidden:!0},{path:"/article/index",name:"Article",component:function(){return t.e("chunk-9f60").then(t.bind(null,"Iwy+"))},meta:{title:"文章管理",icon:"ico-article",roles:[E]}},{path:"/article/add",name:"AddArticle",component:function(){return t.e("chunk-59d3").then(t.bind(null,"/cac"))},meta:{title:"添加文章",icon:"add",roles:[E]}}]},{path:"/list",component:L,redirect:"/task",name:"公交",meta:{title:"公交管理",icon:"bus",roles:[E]},children:[{path:"/task/search",name:"search",component:function(){return t.e("chunk-ee37").then(t.bind(null,"Keas"))},hidden:!0},{path:"/task/newBus",name:"NewBus",component:function(){return t.e("chunk-3994").then(t.bind(null,"GRON"))},hidden:!0},{path:"/task/edit/:id",name:"taskEdit",component:function(){return t.e("chunk-fc68").then(t.bind(null,"J1Jp"))},hidden:!0},{path:"/task",name:"定时任务",component:function(){return t.e("chunk-775c").then(t.bind(null,"xDC0"))},meta:{title:"定时任务",icon:"task",roles:[E]}},{path:"lines/add",name:"linesAdd",component:function(){return t.e("chunk-00f7").then(t.bind(null,"V9Fe"))},hidden:!0},{path:"lines/edit/:id",name:"linesEdit",component:function(){return t.e("chunk-e830").then(t.bind(null,"bAuQ"))},hidden:!0},{path:"lines",name:"公交列表",component:function(){return t.e("chunk-47b6").then(t.bind(null,"HBaq"))},meta:{title:"公交列表",icon:"table",roles:[E]}},{path:"config",name:"配置管理",component:function(){return t.e("chunk-47b6").then(t.bind(null,"HBaq"))},meta:{title:"配置列表",icon:"table",roles:[E]}},{path:"tree",name:"Tree",component:function(){return t.e("ad09").then(t.bind(null,"ad09"))},meta:{title:"Tree",icon:"tree",roles:[E]},hidden:!0}]},{path:"user",component:L,redirect:"/user",name:"权限",meta:{title:"权限管理",icon:"auth",roles:[E]},children:[{path:"index",name:"userIndex",component:function(){return t.e("chunk-2164").then(t.bind(null,"44Km"))},hidden:!0},{path:"password",name:"userPassword",component:function(){return t.e("chunk-b5cc").then(t.bind(null,"HwY3"))},hidden:!0},{path:"/user/add",name:"AddUser",component:function(){return t.e("chunk-7951").then(t.bind(null,"fqc2"))},hidden:!0},{path:"/user/edit/:id",name:"EditUser",component:function(){return t.e("chunk-f78c").then(t.bind(null,"00Qp"))},hidden:!0},{path:"/user",name:"用户管理",component:function(){return t.e("chunk-2164").then(t.bind(null,"44Km"))},meta:{title:"用户列表",icon:"user",roles:[E]}},{path:"/permission/add",name:"AddPermission",component:function(){return t.e("chunk-0def").then(t.bind(null,"oKS6"))},hidden:!0},{path:"/permission/edit/:id",name:"EditPermission",component:function(){return t.e("chunk-98bc").then(t.bind(null,"t2jL"))},hidden:!0},{path:"/permission",name:"权限列表",component:function(){return t.e("chunk-1496").then(t.bind(null,"wjrd"))},meta:{title:"权限列表",icon:"permission",roles:[E]}},{path:"/role/add",name:"Addroles",component:function(){return t.e("chunk-4707").then(t.bind(null,"rwG5"))},hidden:!0},{path:"/role/edit/:id",name:"Editroles",component:function(){return t.e("chunk-d993").then(t.bind(null,"XqkG"))},hidden:!0},{path:"/role",name:"角色管理",component:function(){return t.e("chunk-5ba7").then(t.bind(null,"bDWH"))},meta:{title:"角色管理",icon:"role",roles:[E]}}]}],A=[],O=t("Mj6V"),_=t.n(O),S=(t("pdi6"),t("X4fA"));if(0===f.a.getters.roles.length&&sessionStorage.getItem("roles")){var I=JSON.parse(sessionStorage.getItem("roles")),T=N(I);f.a.dispatch("GenerateRoutes",{routers:T,roles:I}),v.addRoutes(T)}var F=["/login","/index","/line","/home","/404","/","","/echarts","/md","/out","/excel","/upload"];function Y(e,n){return e.indexOf("Super Administrator")>=0||(!n||e.some(function(e){return n.indexOf(e)>=0}))}function N(e){return e.indexOf("Super Administrator")>=0?[].concat(z()(H),z()(V),z()(A)):e.indexOf("Admin")>=0?H:A}v.beforeEach(function(e,n,t){_.a.start(),Object(S.a)()?"/login"===e.path?(t({path:"/admin"}),_.a.done()):0===f.a.getters.roles.length?f.a.dispatch("GetInfo").then(function(n){var i=N(n.data.roles);sessionStorage.getItem("roles")||v.addRoutes(i),f.a.dispatch("GenerateRoutes",{routers:i,roles:n.data.roles}),!e.meta.role||-1!==F.indexOf(e.path)||Y(n.data.roles,e.meta.roles)?t(C()({},e,{replace:!0})):(t({path:"/404"}),_.a.done())}).catch(function(e){f.a.dispatch("FedLogOut").then(function(){a.Message.error(e||"Verification failed, please login again"),t({path:"/admin"})})}):!e.meta.role||-1!==F.indexOf(e.path)||Y(f.a.getters.roles,e.meta.roles)?t():(t({path:"/404"}),_.a.done()):-1!==F.indexOf(e.path)?t():(t("/login?redirect="+e.path),_.a.done())}),v.afterEach(function(){_.a.done()}),i.default.use(s.a),i.default.use(c.a),i.default.config.productionTip=!1,new i.default({el:"#app",router:v,store:f.a,render:function(e){return e(u)}})},X4fA:function(e,n,t){"use strict";t.d(n,"a",function(){return o}),t.d(n,"c",function(){return s}),t.d(n,"b",function(){return l});var i=t("p46w"),a=t.n(i),c="Admin-Token";function o(){return a.a.get(c)}function s(e){return a.a.set(c,e)}function l(){return a.a.remove(c)}},ZZmv:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dHYy:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-api",use:"icon-api-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dbke:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-nav",use:"icon-nav-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dxv6:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-task",use:"icon-task-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},jxcm:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-bus",use:"icon-bus-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},k80C:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},m821:function(e,n,t){},mNmU:function(e,n,t){"use strict";var i=t("Ahhv");t.n(i).a},s7Vf:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(s);n.default=s},"sg+I":function(e,n,t){},t3Un:function(e,n,t){"use strict";var i=t("4d7F"),a=t.n(i),c=t("vDqi"),o=t.n(c),s=t("XJYT"),l=t("Q2AE"),r=t("X4fA"),d=o.a.create({baseURL:"https://www.guke1.com",timeout:5e3});d.interceptors.request.use(function(e){return l.a.getters.token&&(e.headers.Authorization="Bearer "+Object(r.a)()),e},function(e){console.log(e),a.a.reject(e)}),d.interceptors.response.use(function(e){var n=e.data;if(200!==n.code){Object(s.Message)({message:n.reason,type:"error",duration:5e3}),50008!==n.code&&50012!==n.code&&50014!==n.code&&1200!==n.code||s.MessageBox.confirm("你已被登出,可以取消继续留在该页面,或者重新登录","确定登出",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then(function(){l.a.dispatch("FedLogOut").then(function(){location.reload()})});var t=n.reason?n.reason:"error";return a.a.reject(t)}return e.data},function(e){return console.log("err"+e),Object(s.Message)({message:e.message,type:"error",duration:5e3}),a.a.reject(e)}),n.a=d},wqOL:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-add",use:"icon-add-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},xUNX:function(e,n,t){}},[["Vtdi","runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{"/OCX":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-table",use:"icon-ico-table-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"0faV":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-article",use:"icon-article-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"3PhE":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},"6xvN":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},"8fzN":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-tag",use:"icon-tag-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"96Go":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-aliyun",use:"icon-ico-aliyun-usage",viewBox:"0 0 1844 1024",content:''});o.a.add(s);n.default=s},"9ChT":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-category",use:"icon-category-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"A0++":function(e,n,t){"use strict";var i=t("xUNX");t.n(i).a},Ahhv:function(e,n,t){},BKkR:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-article",use:"icon-ico-article-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},GPBF:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},Hoqj:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-category",use:"icon-ico-category-usage",viewBox:"0 0 1260 1024",content:''});o.a.add(s);n.default=s},Kj24:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},LyEU:function(e,n,t){"use strict";var i=t("m821");t.n(i).a},MMMJ:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},OXmT:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-permission",use:"icon-permission-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},Q2AE:function(e,n,t){"use strict";var i=t("Kw5r"),a=t("L2JU"),c=t("p46w"),o=t.n(c),s={state:{sidebar:{opened:!+o.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},mutations:{TOGGLE_SIDEBAR:function(e){e.sidebar.opened?o.a.set("sidebarStatus",1):o.a.set("sidebarStatus",0),e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1},CLOSE_SIDEBAR:function(e,n){o.a.set("sidebarStatus",1),e.sidebar.opened=!1,e.sidebar.withoutAnimation=n},TOGGLE_DEVICE:function(e,n){e.device=n}},actions:{ToggleSideBar:function(e){(0,e.commit)("TOGGLE_SIDEBAR")},CloseSideBar:function(e,n){(0,e.commit)("CLOSE_SIDEBAR",n.withoutAnimation)},ToggleDevice:function(e,n){(0,e.commit)("TOGGLE_DEVICE",n)}}},l=t("gDS+"),r=t.n(l),d=t("4d7F"),u=t.n(d),h=t("t3Un");var m=t("X4fA"),p={state:{token:Object(m.a)(),name:"",avatar:"",roles:[],addRouters:[]},mutations:{SET_TOKEN:function(e,n){e.token=n},SET_NAME:function(e,n){e.name=n},SET_AVATAR:function(e,n){e.avatar=n},SET_ROLES:function(e,n){e.roles=n},SET_ROUTERS:function(e,n){e.addRouters=n}},actions:{Login:function(e,n){var t=e.commit;return new u.a(function(e,i){(function(e){return h.a.post("/api/user/login",e)})(n).then(function(n){var i=n.data;Object(m.c)(i.access_token),t("SET_TOKEN",i.access_token),e()}).catch(function(e){i(e)})})},GetInfo:function(e){var n=e.commit,t=e.state;return new u.a(function(e,i){(function(e){return Object(h.a)({url:"/api/user/info",method:"get",params:{token:e}})})(t.token).then(function(t){var a=t.data;a.roles&&a.roles.length>0?n("SET_ROLES",a.roles):i("getInfo: roles must be a non-null array !"),n("SET_NAME",a.name),n("SET_AVATAR",a.avatar),e(t)}).catch(function(e){i(e)})})},LogOut:function(e){var n=e.commit,t=e.state;return new u.a(function(e,i){(t.token,Object(h.a)({url:"/api/user/logout",method:"post"})).then(function(){n("SET_TOKEN",""),n("SET_ROLES",[]),Object(m.b)(),sessionStorage.setItem("roles",""),e()}).catch(function(e){i(e)})})},FedLogOut:function(e){var n=e.commit;return new u.a(function(e){n("SET_TOKEN",""),Object(m.b)(),e()})},GenerateRoutes:function(e,n){var t=e.commit;return new u.a(function(e){t("SET_ROUTERS",n.routers),sessionStorage.setItem("roles",r()(n.roles)),e()})}}},v={sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},roles:function(e){return e.user.roles},addRouters:function(e){return e.user.addRouters}};i.default.use(a.a);var f=new a.a.Store({modules:{app:s,user:p},getters:v});n.a=f},"R/Hx":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},TfVu:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(s);n.default=s},TnCw:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-auth",use:"icon-auth-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"Uf/o":function(e,n,t){var i={"./add.svg":"wqOL","./api.svg":"dHYy","./article.svg":"0faV","./auth.svg":"TnCw","./bus.svg":"jxcm","./category.svg":"9ChT","./example.svg":"MMMJ","./excel.svg":"ZZmv","./eye.svg":"TfVu","./form.svg":"6xvN","./ico-aliyun.svg":"96Go","./ico-article.svg":"BKkR","./ico-category.svg":"Hoqj","./ico-table.svg":"/OCX","./link.svg":"GPBF","./nav.svg":"dbke","./nested.svg":"3PhE","./password.svg":"Kj24","./permission.svg":"OXmT","./role.svg":"Ugzh","./table.svg":"R/Hx","./tag.svg":"8fzN","./task.svg":"dxv6","./tree.svg":"k80C","./user.svg":"s7Vf"};function a(e){var n=c(e);return t(n)}function c(e){var n=i[e];if(!(n+1)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n}a.keys=function(){return Object.keys(i)},a.resolve=c,e.exports=a,a.id="Uf/o"},Ugzh:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-role",use:"icon-role-usage",viewBox:"0 0 1333 1024",content:''});o.a.add(s);n.default=s},Vtdi:function(e,n,t){"use strict";t.r(n);var i=t("Kw5r"),a=(t("9d8Q"),t("XJYT")),c=t.n(a),o=(t("D66Q"),t("cIdk"),t("sg+I"),t("stgD")),s=t.n(o),l=(t("ZOF2"),{name:"App"}),r=(t("A0++"),t("KHd+")),d=Object(r.a)(l,function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},[],!1,null,null,null);d.options.__file="App.vue";var u=d.exports,h=t("jE9Z");i.default.use(h.a);var m=function(){return t.e("chunk-4c2d").then(t.bind(null,"2c6e"))},p=[].concat([{path:"/",name:"index",component:function(){return t.e("chunk-64b5").then(t.bind(null,"er4n"))},hidden:!0},{path:"/line",name:"line",component:function(){return t.e("chunk-687a").then(t.bind(null,"G5rc"))},hidden:!0},{path:"/home",component:function(){return t.e("chunk-1412").then(t.bind(null,"d7gD"))},hidden:!0},{path:"/md",name:"md",component:function(){return t.e("gW6U").then(t.bind(null,"gW6U"))},hidden:!0},{path:"/out",name:"out",component:function(){return t.e("chunk-132e").then(t.bind(null,"LnUv"))},hidden:!0},{path:"/excel",name:"excel",component:function(){return Promise.all([t.e("chunk-7a80"),t.e("chunk-68e9")]).then(t.bind(null,"5EWB"))},hidden:!0},{path:"/upload",name:"upload",component:function(){return t.e("chunk-62f7").then(t.bind(null,"4p+I"))},hidden:!0},{path:"/websocket",name:"websocket",component:function(){return t.e("chunk-f5ec").then(t.bind(null,"6jsT"))},hidden:!0},{path:"/echarts",name:"echarts",component:function(){return Promise.all([t.e("chunk-7025"),t.e("chunk-6148")]).then(t.bind(null,"HnWs"))},hidden:!0},{path:"/login",component:function(){return t.e("chunk-c8fe").then(t.bind(null,"ntYl"))},hidden:!0},{path:"/404",component:function(){return t.e("chunk-c5f5").then(t.bind(null,"jNvO"))},hidden:!0},{path:"/admin",component:m,redirect:"/admin/dashboard",name:"Dashboard",hidden:!0,children:[{path:"dashboard",component:function(){return Promise.all([t.e("chunk-7025"),t.e("chunk-cfc1")]).then(t.bind(null,"lAbF"))}}]}],[{path:"/form",component:m,children:[{path:"index",name:"Form",component:function(){return t.e("chunk-d818").then(t.bind(null,"Nx2/"))},meta:{title:"Form",icon:"form"}}],hidden:!0},{path:"/nested",component:m,redirect:"/nested/menu1",name:"Nested",meta:{title:"Nested",icon:"nested"},children:[{path:"menu1",component:function(){return t.e("6bwb").then(t.bind(null,"6bwb"))},name:"Menu1",meta:{title:"Menu1"},children:[{path:"menu1-1",component:function(){return t.e("kbPl").then(t.bind(null,"kbPl"))},name:"Menu1-1",meta:{title:"Menu1-1"}},{path:"menu1-2",component:function(){return t.e("Vc2m").then(t.bind(null,"Vc2m"))},name:"Menu1-2",meta:{title:"Menu1-2"},children:[{path:"menu1-2-1",component:function(){return t.e("ZYJW").then(t.bind(null,"ZYJW"))},name:"Menu1-2-1",meta:{title:"Menu1-2-1"}},{path:"menu1-2-2",component:function(){return t.e("tvtM").then(t.bind(null,"tvtM"))},name:"Menu1-2-2",meta:{title:"Menu1-2-2"}}]},{path:"menu1-3",component:function(){return t.e("jYsI").then(t.bind(null,"jYsI"))},name:"Menu1-3",meta:{title:"Menu1-3"}}]},{path:"menu2",component:function(){return t.e("27OO").then(t.bind(null,"27OO"))},meta:{title:"menu2"}}]},{path:"*",redirect:"/404",hidden:!0}]),v=new h.a({scrollBehavior:function(){return{y:0}},routes:p}),f=t("Q2AE"),w={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{iconName:function(){return"#icon-"+this.iconClass},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"}}},g=(t("LyEU"),Object(r.a)(w,function(){var e=this.$createElement,n=this._self._c||e;return n("svg",{class:this.svgClass,attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":this.iconName}})])},[],!1,null,"2f0f1ae2",null));g.options.__file="index.vue";var x=g.exports,b={name:"NavBar",data:function(){return{activeIndex:""}}},y=(t("mNmU"),Object(r.a)(b,function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"nav"},[t("el-menu",{staticClass:"el-menu-demo",attrs:{"default-active":e.activeIndex,mode:"horizontal"}},[t("el-row",{attrs:{gutter:1}},[t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"1"}},[t("router-link",{attrs:{to:{name:"index"}}},[e._v("公交-首页")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"3"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"out"}}},[e._v("中文排版")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"4"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"excel"}}},[e._v("在线表格 Excel")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"4"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"upload"}}},[e._v("图片转文字")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-submenu",{attrs:{index:"2"}},[t("template",{slot:"title"},[e._v("其它工具")]),e._v(" "),t("el-menu-item",{attrs:{index:"2-2"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"md"}}},[e._v("Markdown")])],1),e._v(" "),t("el-menu-item",{attrs:{index:"2-2"}},[t("router-link",{attrs:{to:{name:"echarts"}}},[e._v("图表")])],1)],2)],1)])],1)],1)],1)},[],!1,null,"6308ec4e",null));y.options.__file="navBar.vue";var k=y.exports;i.default.component("svg-icon",x),i.default.component("nav-bar",k);!function(e){e.keys().map(e)}(t("Uf/o"));var M=t("m1cH"),z=t.n(M),B=t("QbLZ"),C=t.n(B),L=function(){return t.e("chunk-4c2d").then(t.bind(null,"2c6e"))},E="Super Administrator",H=[{path:"/api_excel",component:L,redirect:"/api_excel/index",name:"Excel-List",meta:{title:"批量测试管理",icon:"ico-table",roles:[E,"Admin"]},children:[{path:"/api_excel/edit/:id",name:"EditExcel",component:function(){return t.e("chunk-d226").then(t.bind(null,"F/uS"))},hidden:!0},{path:"/api_excel/add",name:"AddExcel",component:function(){return t.e("chunk-2f6b").then(t.bind(null,"wf12"))},meta:{title:"上传测试",icon:"excel",roles:[E,"Admin"]}},{path:"/api_excel/index",name:"Excel",component:function(){return t.e("chunk-fdd2").then(t.bind(null,"yWqU"))},meta:{title:"测试管理",icon:"ico-aliyun",roles:[E,"Admin"]}},{path:"/api_param/add",name:"AddApiParam",component:function(){return t.e("chunk-34e9").then(t.bind(null,"eR/3"))},hidden:!0},{path:"/api_param/edit/:id",name:"EditApiParam",component:function(){return t.e("chunk-2227").then(t.bind(null,"/+Eh"))},hidden:!0},{path:"/api_param/index",name:"ApiParam",component:function(){return t.e("chunk-e667").then(t.bind(null,"dH62"))},meta:{title:"接口列表",icon:"api",roles:[E,"Admin"]}}]}],V=[{path:"/category",component:L,redirect:"/category/index",name:"Category-Nav",meta:{title:"栏目菜单",icon:"category",roles:[E]},children:[{path:"/category/add",name:"AddCategory",component:function(){return t.e("chunk-6908").then(t.bind(null,"GMaQ"))},meta:{title:"添加栏目"},hidden:!0},{path:"/category/edit/:id",name:"EditCategory",component:function(){return t.e("chunk-7105").then(t.bind(null,"1ylW"))},hidden:!0},{path:"/category/index",name:"Category",component:function(){return t.e("chunk-4055").then(t.bind(null,"oZKA"))},meta:{title:"栏目管理",icon:"ico-category",roles:[E]}},{path:"/nav/add",name:"AddNav",component:function(){return t.e("chunk-4f15").then(t.bind(null,"JPfX"))},hidden:!0},{path:"/nav/edit/:id",name:"EditNav",component:function(){return t.e("chunk-4332").then(t.bind(null,"LnHU"))},hidden:!0},{path:"/nav",name:"Nav",component:function(){return t.e("chunk-99dd").then(t.bind(null,"mxRw"))},meta:{title:"导航管理",icon:"nav",roles:[E]}},{path:"/tag/add",name:"AddTag",component:function(){return t.e("chunk-82a7").then(t.bind(null,"+1ta"))},meta:{title:"添加标签"},hidden:!0},{path:"/tag/edit/:id",name:"EditTag",component:function(){return t.e("chunk-1dc3").then(t.bind(null,"S2fK"))},hidden:!0},{path:"/tag",name:"Tag",component:function(){return t.e("chunk-ac41").then(t.bind(null,"ZhNY"))},meta:{title:"标签列表",icon:"tag",roles:[E]}}]},{path:"/article",component:L,name:"Article-List",meta:{title:"文章管理",icon:"article",roles:[E]},children:[{path:"/article/edit/:id",name:"EditArticle",component:function(){return t.e("chunk-766b").then(t.bind(null,"++5l"))},hidden:!0},{path:"/article/index",name:"Article",component:function(){return t.e("chunk-9f60").then(t.bind(null,"Iwy+"))},meta:{title:"文章管理",icon:"ico-article",roles:[E]}},{path:"/article/add",name:"AddArticle",component:function(){return t.e("chunk-59d3").then(t.bind(null,"/cac"))},meta:{title:"添加文章",icon:"add",roles:[E]}}]},{path:"/list",component:L,redirect:"/task",name:"公交",meta:{title:"公交管理",icon:"bus",roles:[E]},children:[{path:"/task/search",name:"search",component:function(){return t.e("chunk-ee37").then(t.bind(null,"Keas"))},hidden:!0},{path:"/task/newBus",name:"NewBus",component:function(){return t.e("chunk-3994").then(t.bind(null,"GRON"))},hidden:!0},{path:"/task/edit/:id",name:"taskEdit",component:function(){return t.e("chunk-fc68").then(t.bind(null,"J1Jp"))},hidden:!0},{path:"/task",name:"定时任务",component:function(){return t.e("chunk-775c").then(t.bind(null,"xDC0"))},meta:{title:"定时任务",icon:"task",roles:[E]}},{path:"lines/add",name:"linesAdd",component:function(){return t.e("chunk-00f7").then(t.bind(null,"V9Fe"))},hidden:!0},{path:"lines/edit/:id",name:"linesEdit",component:function(){return t.e("chunk-e830").then(t.bind(null,"bAuQ"))},hidden:!0},{path:"lines",name:"公交列表",component:function(){return t.e("chunk-47b6").then(t.bind(null,"HBaq"))},meta:{title:"公交列表",icon:"table",roles:[E]}},{path:"config",name:"配置管理",component:function(){return t.e("chunk-47b6").then(t.bind(null,"HBaq"))},meta:{title:"配置列表",icon:"table",roles:[E]}},{path:"tree",name:"Tree",component:function(){return t.e("ad09").then(t.bind(null,"ad09"))},meta:{title:"Tree",icon:"tree",roles:[E]},hidden:!0}]},{path:"user",component:L,redirect:"/user",name:"权限",meta:{title:"权限管理",icon:"auth",roles:[E]},children:[{path:"index",name:"userIndex",component:function(){return t.e("chunk-2164").then(t.bind(null,"44Km"))},hidden:!0},{path:"password",name:"userPassword",component:function(){return t.e("chunk-b5cc").then(t.bind(null,"HwY3"))},hidden:!0},{path:"/user/add",name:"AddUser",component:function(){return t.e("chunk-7951").then(t.bind(null,"fqc2"))},hidden:!0},{path:"/user/edit/:id",name:"EditUser",component:function(){return t.e("chunk-f78c").then(t.bind(null,"00Qp"))},hidden:!0},{path:"/user",name:"用户管理",component:function(){return t.e("chunk-2164").then(t.bind(null,"44Km"))},meta:{title:"用户列表",icon:"user",roles:[E]}},{path:"/permission/add",name:"AddPermission",component:function(){return t.e("chunk-0def").then(t.bind(null,"oKS6"))},hidden:!0},{path:"/permission/edit/:id",name:"EditPermission",component:function(){return t.e("chunk-98bc").then(t.bind(null,"t2jL"))},hidden:!0},{path:"/permission",name:"权限列表",component:function(){return t.e("chunk-1496").then(t.bind(null,"wjrd"))},meta:{title:"权限列表",icon:"permission",roles:[E]}},{path:"/role/add",name:"Addroles",component:function(){return t.e("chunk-4707").then(t.bind(null,"rwG5"))},hidden:!0},{path:"/role/edit/:id",name:"Editroles",component:function(){return t.e("chunk-d993").then(t.bind(null,"XqkG"))},hidden:!0},{path:"/role",name:"角色管理",component:function(){return t.e("chunk-5ba7").then(t.bind(null,"bDWH"))},meta:{title:"角色管理",icon:"role",roles:[E]}}]}],A=[],O=t("Mj6V"),_=t.n(O),S=(t("pdi6"),t("X4fA"));if(0===f.a.getters.roles.length&&sessionStorage.getItem("roles")){var I=JSON.parse(sessionStorage.getItem("roles")),T=N(I);f.a.dispatch("GenerateRoutes",{routers:T,roles:I}),v.addRoutes(T)}var F=["/login","/index","/line","/home","/404","/","","/echarts","/md","/out","/excel","/upload"];function Y(e,n){return e.indexOf("Super Administrator")>=0||(!n||e.some(function(e){return n.indexOf(e)>=0}))}function N(e){return e.indexOf("Super Administrator")>=0?[].concat(z()(H),z()(V),z()(A)):e.indexOf("Admin")>=0?H:A}v.beforeEach(function(e,n,t){_.a.start(),Object(S.a)()?"/login"===e.path?(t({path:"/admin"}),_.a.done()):0===f.a.getters.roles.length?f.a.dispatch("GetInfo").then(function(n){var i=N(n.data.roles);sessionStorage.getItem("roles")||v.addRoutes(i),f.a.dispatch("GenerateRoutes",{routers:i,roles:n.data.roles}),!e.meta.role||-1!==F.indexOf(e.path)||Y(n.data.roles,e.meta.roles)?t(C()({},e,{replace:!0})):(t({path:"/404"}),_.a.done())}).catch(function(e){f.a.dispatch("FedLogOut").then(function(){a.Message.error(e||"Verification failed, please login again"),t({path:"/admin"})})}):!e.meta.role||-1!==F.indexOf(e.path)||Y(f.a.getters.roles,e.meta.roles)?t():(t({path:"/404"}),_.a.done()):-1!==F.indexOf(e.path)?t():(t("/login?redirect="+e.path),_.a.done())}),v.afterEach(function(){_.a.done()}),i.default.use(s.a),i.default.use(c.a),i.default.config.productionTip=!1,new i.default({el:"#app",router:v,store:f.a,render:function(e){return e(u)}})},X4fA:function(e,n,t){"use strict";t.d(n,"a",function(){return o}),t.d(n,"c",function(){return s}),t.d(n,"b",function(){return l});var i=t("p46w"),a=t.n(i),c="Admin-Token";function o(){return a.a.get(c)}function s(e){return a.a.set(c,e)}function l(){return a.a.remove(c)}},ZZmv:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dHYy:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-api",use:"icon-api-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dbke:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-nav",use:"icon-nav-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dxv6:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-task",use:"icon-task-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},jxcm:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-bus",use:"icon-bus-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},k80C:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},m821:function(e,n,t){},mNmU:function(e,n,t){"use strict";var i=t("Ahhv");t.n(i).a},s7Vf:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(s);n.default=s},"sg+I":function(e,n,t){},t3Un:function(e,n,t){"use strict";var i=t("4d7F"),a=t.n(i),c=t("vDqi"),o=t.n(c),s=t("XJYT"),l=t("Q2AE"),r=t("X4fA"),d=o.a.create({baseURL:"https://www.guke1.com",timeout:5e3});d.interceptors.request.use(function(e){return l.a.getters.token&&(e.headers.Authorization="Bearer "+Object(r.a)()),e},function(e){console.log(e),a.a.reject(e)}),d.interceptors.response.use(function(e){var n=e.data;if(200!==n.code){Object(s.Message)({message:n.reason,type:"error",duration:5e3}),50008!==n.code&&50012!==n.code&&50014!==n.code&&1200!==n.code||s.MessageBox.confirm("你已被登出,可以取消继续留在该页面,或者重新登录","确定登出",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then(function(){l.a.dispatch("FedLogOut").then(function(){location.reload()})});var t=n.reason?n.reason:"error";return a.a.reject(t)}return e.data},function(e){return console.log("err"+e),Object(s.Message)({message:e.message,type:"error",duration:5e3}),a.a.reject(e)}),n.a=d},wqOL:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-add",use:"icon-add-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},xUNX:function(e,n,t){}},[["Vtdi","runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/laravel/public/static/js/chunk-4c2d.3e34f9bb.js b/laravel/public/static/js/chunk-4c2d.9297d816.js similarity index 100% rename from laravel/public/static/js/chunk-4c2d.3e34f9bb.js rename to laravel/public/static/js/chunk-4c2d.9297d816.js diff --git a/laravel/public/static/js/chunk-9346.60cdd349.js b/laravel/public/static/js/chunk-9346.60cdd349.js deleted file mode 100644 index 43d419f..0000000 --- a/laravel/public/static/js/chunk-9346.60cdd349.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-9346"],{R8mO:function(e,t,n){"use strict";n.d(t,"d",function(){return o}),n.d(t,"e",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"f",function(){return s}),n.d(t,"a",function(){return c}),n.d(t,"g",function(){return l}),n.d(t,"h",function(){return u}),n.d(t,"b",function(){return d});var a=n("t3Un");function o(e){return Object(a.a)({url:"/api/api_excel",method:"get",params:e})}function r(e){return a.a.post("/api/api_excel",e)}function i(e){return a.a.get("/api/api_excel/"+e)}function s(e,t){return a.a.patch("/api/api_excel/"+e,t)}function c(e){return a.a.delete("/api/api_excel/"+e)}function l(e){return Object(a.a)({url:"/api/api_excel_search",method:"get",params:e})}function u(e){return Object(a.a)({url:"/api/start_task",method:"post",params:e})}function d(e){return Object(a.a)({url:"/api/download_log",method:"post",params:e})}},Wy9D:function(e,t,n){"use strict";var a=n("d2AT");n.n(a).a},d2AT:function(e,t,n){},yWqU:function(e,t,n){"use strict";n.r(t);var a=n("P2sY"),o=n.n(a),r=n("R8mO"),i={filters:{statusFilter:function(e){return{1:"success",0:"gray","-1":"danger"}[e]}},data:function(){return{reload:!1,reload_name:"点击刷新",list:null,listLoading:!0,perpage:10,total:100,currentpage:1,listQuery:{page:1},url:null,websock:null}},created:function(){this.listQuery=this.$route.query,this.currentpage=parseInt(this.listQuery.page);var e=parseInt(this.$route.query.perPage);this.perpage=isNaN(e)?this.perpage:e,this.fetchData()},destroyed:function(){this.websock.close()},methods:{startTask:function(e,t){var n=this;this.$confirm("此操作将开启任务, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(r.h)(t).then(function(e){var a="";200===e.code?(t.state=1,a="success"):a="error",n.$message({type:a,message:e.reason})})}).catch(function(){n.$message({type:"info",message:"已取消操作"})})},openTask:function(e,t){var n=this;this.$alert("此操作将开启任务, 是否继续?","开启任务提醒",{confirmButtonText:"确定",center:!0,type:"warning",callback:function(e){"confirm"===e&&Object(r.h)(t).then(function(e){var a="";200===e.code?(t.state=1,a="success"):a="error",n.$message({type:a,message:e.reason})})}})},initWebSocket:function(e){if("WebSocket"in window){var t="wss://www.guke1.com/ws?id="+e;this.websock=new WebSocket(t),this.websock.onmessage=this.onmessage,this.websock.onopen=this.onopen,this.websock.onerror=this.onerror,this.websock.onclose=this.close}else console.log("Your browser does not support WebSocket!")},onopen:function(){},onerror:function(){},onmessage:function(e){console.log(e.data);var t=JSON.parse(e.data);console.log(t)},send:function(e){this.websock.send(e)},close:function(){console.log("断开连接")},download:function(e,t){window.location.href=this.url+t.finish_url},download_log:function(e,t){var n=this;Object(r.b)({id:t.id}).then(function(e){console.log(e),200===e.code&&(window.location.href=n.url+e.data.failed_done_file)})},fetchData:function(){var e=this;this.listLoading=this.reload=!0,this.reload_name="加载中";var t=o()({page:this.listQuery.page},{perPage:this.perpage});Object(r.d)(t).then(function(t){e.list=t.data.data,e.listLoading=!1,e.total=t.data.total,e.url=t.data.appUrl,setTimeout(function(){e.reload=!1,e.reload_name="刷新"},800),e.initWebSocket(8)})},handleEdit:function(e,t){this.$router.push({path:"/api_excel/edit/"+t.id})},handleDelete:function(e,t){var n=this;this.$confirm("此操作将永久删除该数据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error"}).then(function(){Object(r.a)(t.id).then(function(e){n.loading=!1,200===e.code?(n.$message({message:"操作成功",type:"success"}),n.fetchData()):n.$message.error(e.reason)}),n.$message({type:"success",message:"删除成功!"})}).catch(function(){n.$message({type:"info",message:"已取消删除"})})},handleSizeChange:function(e){this.perpage=e,this.$router.push({path:"",query:{page:this.listQuery.page,perPage:e}}),this.fetchData()},handleCurrentChange:function(e){this.listQuery={page:e},this.$router.push({path:"",query:{page:e,perPage:this.perpage}}),this.fetchData({page:e})},goSearch:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return!1;t.listLoading=!0;var n={wd:t.form.input};Object(r.g)(n).then(function(e){t.listLoading=!1,200===e.code?(t.form.isShow=!0,t.list=e.data.data,t.total=e.data.total):t.$message.error(e.reason)})})}}},s=(n("Wy9D"),n("KHd+")),c=Object(s.a)(i,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-row",[n("el-button",{attrs:{type:"primary",size:"medium"}},[n("router-link",{attrs:{to:"/api_excel/add"}},[e._v("上传测试")])],1),e._v(" "),n("el-button",{staticClass:"reload",attrs:{loading:e.reload,type:"primary",plain:""},on:{click:e.fetchData}},[e._v(e._s(e.reload_name))])],1),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"center",label:"ID",width:"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.id)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"接口名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.api_param.name))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"描述内容",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.description))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"用户ID",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.uid)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"原文件"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.upload_url)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"状态",width:"90",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.state?n("div",[n("el-tag",{attrs:{type:"warning"}},[e._v("未开启")])],1):1===t.row.state?n("div",[n("el-tag",{attrs:{type:"primary"}},[e._v("正在处理")])],1):2===t.row.state?n("div",[n("el-tag",{attrs:{type:"success"}},[e._v("已完成")])],1):n("div",[n("el-tag",{attrs:{type:"info"}},[e._v("失败")])],1)]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"进度条",width:"1",align:"center",display:"none"},scopedSlots:e._u([{key:"default",fn:function(e){return[0===e.row.state?n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:0}})],1):1===e.row.state?n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:e.row.rate}})],1):2===e.row.state?n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:100,status:"success"}})],1):n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:50,status:"exception"}})],1)]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"操作",width:"300",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[0===t.row.state?n("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(n){e.openTask(t.$index,t.row)}}},[e._v("点击开启任务")]):1===t.row.state?n("el-button",{attrs:{size:"mini",type:"primary"}},[e._v("...")]):2===t.row.state?n("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(n){e.download(t.$index,t.row)}}},[e._v("点击下载")]):5===t.row.state?n("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(n){e.download_log(t.$index,t.row)}}},[e._v("下载已测试数据")]):e._e(),e._v(" "),n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){e.handleDelete(t.$index,t.row)}}},[e._v("删除")])],1)]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"created_at",label:"创建时间",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.created_at))])]}}])})],1),e._v(" "),n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{total:e.total,"current-page":e.currentpage,"page-sizes":[10,20,30,50,100],"page-size":e.perpage,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},[],!1,null,"4dea90c2",null);c.options.__file="index.vue";t.default=c.exports}}]); \ No newline at end of file diff --git a/laravel/public/static/js/chunk-c5f5.e2b99040.js b/laravel/public/static/js/chunk-c5f5.bd122b9b.js similarity index 100% rename from laravel/public/static/js/chunk-c5f5.e2b99040.js rename to laravel/public/static/js/chunk-c5f5.bd122b9b.js diff --git a/laravel/public/static/js/chunk-c8fe.6fa0d60c.js b/laravel/public/static/js/chunk-c8fe.be008631.js similarity index 100% rename from laravel/public/static/js/chunk-c8fe.6fa0d60c.js rename to laravel/public/static/js/chunk-c8fe.be008631.js diff --git a/laravel/public/static/js/chunk-cfc1.508a5c81.js b/laravel/public/static/js/chunk-cfc1.9e6719ba.js similarity index 100% rename from laravel/public/static/js/chunk-cfc1.508a5c81.js rename to laravel/public/static/js/chunk-cfc1.9e6719ba.js diff --git a/laravel/public/static/js/chunk-fdd2.e62879aa.js b/laravel/public/static/js/chunk-fdd2.e62879aa.js new file mode 100644 index 0000000..a40ce9f --- /dev/null +++ b/laravel/public/static/js/chunk-fdd2.e62879aa.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-fdd2"],{"0za8":function(t,e,n){},R8mO:function(t,e,n){"use strict";n.d(e,"d",function(){return o}),n.d(e,"e",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"f",function(){return s}),n.d(e,"a",function(){return c}),n.d(e,"g",function(){return l}),n.d(e,"h",function(){return u}),n.d(e,"b",function(){return d});var a=n("t3Un");function o(t){return Object(a.a)({url:"/api/api_excel",method:"get",params:t})}function i(t){return a.a.post("/api/api_excel",t)}function r(t){return a.a.get("/api/api_excel/"+t)}function s(t,e){return a.a.patch("/api/api_excel/"+t,e)}function c(t){return a.a.delete("/api/api_excel/"+t)}function l(t){return Object(a.a)({url:"/api/api_excel_search",method:"get",params:t})}function u(t){return Object(a.a)({url:"/api/start_task",method:"post",params:t})}function d(t){return Object(a.a)({url:"/api/download_log",method:"post",params:t})}},uuvh:function(t,e,n){"use strict";var a=n("0za8");n.n(a).a},yWqU:function(t,e,n){"use strict";n.r(e);var a=n("P2sY"),o=n.n(a),i=n("X4fA"),r=n("R8mO"),s={filters:{statusFilter:function(t){return{1:"success",0:"gray","-1":"danger"}[t]}},data:function(){return{reload:!1,reload_name:"点击刷新",list:null,listLoading:!0,perpage:10,total:100,currentpage:1,listQuery:{page:1},url:null,websock:null}},created:function(){this.listQuery=this.$route.query,this.currentpage=parseInt(this.listQuery.page);var t=parseInt(this.$route.query.perPage);this.perpage=isNaN(t)?this.perpage:t,this.initWebSocket()},destroyed:function(){this.websock.close()},methods:{startTask:function(t,e){var n=this;this.$confirm("此操作将开启任务, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(r.h)(e).then(function(t){var a="";200===t.code?(e.state=1,a="success"):a="error",n.$message({type:a,message:t.reason})})}).catch(function(){n.$message({type:"info",message:"已取消操作"})})},openTask:function(t,e){var n=this;this.$alert("此操作将开启任务, 是否继续?","开启任务提醒",{confirmButtonText:"确定",center:!0,type:"warning",callback:function(t){"confirm"===t&&Object(r.h)(e).then(function(t){var a="";200===t.code?(e.state=1,a="success"):a="error",n.$message({type:a,message:t.reason}),n.initWebSocket()})}})},initWebSocket:function(){if("WebSocket"in window){var t="wss://www.guke1.com/ws?action=api_excel&token="+Object(i.a)();this.websock=new WebSocket(t),this.websock.onmessage=this.onmessage,this.websock.onopen=this.onopen,this.websock.onerror=this.onerror,this.websock.onclose=this.close}else console.log("Your browser does not support WebSocket!")},onopen:function(){},onerror:function(){this.fetchData()},onmessage:function(t){var e=this,n=JSON.parse(t.data);console.log(n),this.list=n.data.data,this.listLoading=!1,this.total=n.data.total,this.url=n.data.appUrl,setTimeout(function(){e.reload=!1,e.reload_name="刷新"},800)},send:function(t){this.websock.send(t)},close:function(){console.log("断开连接")},download:function(t,e){window.location.href=this.url+e.finish_url},download_log:function(t,e){var n=this;Object(r.b)({id:e.id}).then(function(t){console.log(t),200===t.code&&(window.location.href=n.url+t.data.failed_done_file)})},fetchData:function(){var t=this;this.listLoading=this.reload=!0,this.reload_name="加载中";var e=o()({page:this.listQuery.page},{perPage:this.perpage});Object(r.d)(e).then(function(e){t.list=e.data.data,t.listLoading=!1,t.total=e.data.total,t.url=e.data.appUrl,setTimeout(function(){t.reload=!1,t.reload_name="刷新"},800)})},handleEdit:function(t,e){this.$router.push({path:"/api_excel/edit/"+e.id})},handleDelete:function(t,e){var n=this;this.$confirm("此操作将永久删除该数据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error"}).then(function(){Object(r.a)(e.id).then(function(t){n.loading=!1,200===t.code?(n.$message({message:"操作成功",type:"success"}),n.fetchData()):n.$message.error(t.reason)}),n.$message({type:"success",message:"删除成功!"})}).catch(function(){n.$message({type:"info",message:"已取消删除"})})},handleSizeChange:function(t){this.perpage=t,this.$router.push({path:"",query:{page:this.listQuery.page,perPage:t}}),this.fetchData()},handleCurrentChange:function(t){this.listQuery={page:t},this.$router.push({path:"",query:{page:t,perPage:this.perpage}}),this.fetchData({page:t})},goSearch:function(t){var e=this;this.$refs[t].validate(function(t){if(!t)return!1;e.listLoading=!0;var n={wd:e.form.input};Object(r.g)(n).then(function(t){e.listLoading=!1,200===t.code?(e.form.isShow=!0,e.list=t.data.data,e.total=t.data.total):e.$message.error(t.reason)})})}}},c=(n("uuvh"),n("KHd+")),l=Object(c.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-row",[n("el-button",{attrs:{type:"primary",size:"medium"}},[n("router-link",{attrs:{to:"/api_excel/add"}},[t._v("上传测试")])],1),t._v(" "),n("el-button",{staticClass:"reload",attrs:{loading:t.reload,type:"primary",plain:""},on:{click:t.fetchData}},[t._v(t._s(t.reload_name))])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"center",label:"ID",width:"70"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.id)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"接口名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.api_param.name))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"描述内容",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.description))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"用户ID",align:"center",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.uid)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"原文件"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.upload_url)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"状态",width:"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.state?n("div",[n("el-tag",{attrs:{type:"warning"}},[t._v("未开启")])],1):1===e.row.state?n("div",[n("el-tag",{attrs:{type:"primary"}},[t._v("正在处理")])],1):2===e.row.state?n("div",[n("el-tag",{attrs:{type:"success"}},[t._v("已完成")])],1):n("div",[n("el-tag",{attrs:{type:"info"}},[t._v("失败")])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"进度条",width:"100",align:"center",display:"none"},scopedSlots:t._u([{key:"default",fn:function(t){return[0===t.row.state?n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:0}})],1):1===t.row.state?n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:t.row.rate}})],1):2===t.row.state?n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:100,status:"success"}})],1):n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:t.row.rate,status:"exception"}})],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"300",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[0===e.row.state?n("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(n){t.openTask(e.$index,e.row)}}},[t._v("点击开启任务")]):1===e.row.state?n("el-button",{attrs:{size:"mini",type:"primary"}},[t._v("...")]):2===e.row.state?n("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(n){t.download(e.$index,e.row)}}},[t._v("点击下载")]):5===e.row.state?n("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(n){t.download_log(e.$index,e.row)}}},[t._v("下载已测试数据")]):t._e(),t._v(" "),n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){t.handleDelete(e.$index,e.row)}}},[t._v("删除")])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"created_at",label:"创建时间",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.created_at))])]}}])})],1),t._v(" "),n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{total:t.total,"current-page":t.currentpage,"page-sizes":[10,20,30,50,100],"page-size":t.perpage,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},[],!1,null,"18a09d6c",null);l.options.__file="index.vue";e.default=l.exports}}]); \ No newline at end of file diff --git a/laravel/public/static/js/chunk-libs.3dab29d7.js b/laravel/public/static/js/chunk-libs.a869e769.js similarity index 99% rename from laravel/public/static/js/chunk-libs.3dab29d7.js rename to laravel/public/static/js/chunk-libs.a869e769.js index b462147..1bf81d5 100644 --- a/laravel/public/static/js/chunk-libs.3dab29d7.js +++ b/laravel/public/static/js/chunk-libs.a869e769.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-libs"],{"+JPL":function(e,t,n){e.exports={default:n("+SFK"),__esModule:!0}},"+SFK":function(e,t,n){n("AUvm"),n("wgeU"),n("adOz"),n("dl0q"),e.exports=n("WEpk").Symbol},"0tVQ":function(e,t,n){n("FlQf"),n("VJsP"),e.exports=n("WEpk").Array.from},"1K8p":function(e,t,n){"use strict";var r=n("jrfk"),o=n("ez49"),i=10,a=40,s=800;function l(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*i,o=n*i,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=a,o*=a):(r*=s,o*=s)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=l},"29s/":function(e,t,n){var r=n("WEpk"),o=n("5T2Y"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("uOPS")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"2GTP":function(e,t,n){var r=n("eaoh");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"2Nb0":function(e,t,n){n("FlQf"),n("bBy9"),e.exports=n("zLkG").f("iterator")},"2SVd":function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},"2faE":function(e,t,n){var r=n("5K7Z"),o=n("eUtF"),i=n("G8Mo"),a=Object.defineProperty;t.f=n("jmDH")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"4BeY":function(e,t,n){(function(t){!function(t,n){e.exports=n()}(0,function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r=n(function(e,t){e.exports=function(){function e(e){var t=e&&"object"==typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(t,n){var o=n&&!0===n.clone;return o&&e(t)?r(function(e){return Array.isArray(e)?[]:{}}(t),t,n):t}function n(n,o,i){var a=n.slice();return o.forEach(function(o,s){void 0===a[s]?a[s]=t(o,i):e(o)?a[s]=r(n[s],o,i):-1===n.indexOf(o)&&a.push(t(o,i))}),a}function r(o,i,a){var s=Array.isArray(i),l=a||{arrayMerge:n},c=l.arrayMerge||n;return s?Array.isArray(o)?c(o,i,a):t(i,a):function(n,o,i){var a={};return e(n)&&Object.keys(n).forEach(function(e){a[e]=t(n[e],i)}),Object.keys(o).forEach(function(s){e(o[s])&&n[s]?a[s]=r(n[s],o[s],i):a[s]=t(o[s],i)}),a}(o,i,a)}return r.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return r(e,n,t)})},r}()}),o=n(function(e,t){t.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},e.exports=t.default}),i=o.svg,a=o.xlink,s={};s[i.name]=i.uri,s[a.name]=a.uri;var l=function(e,t){return void 0===e&&(e=""),""+e+""};return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n}(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(e)})}).call(this,n("yLpj"))},"4d7F":function(e,t,n){e.exports={default:n("aW7e"),__esModule:!0}},"5K7Z":function(e,t,n){var r=n("93I4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"5T2Y":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"5oMp":function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"5vMV":function(e,t,n){var r=n("B+OT"),o=n("NsO/"),i=n("W070")(!1),a=n("VVlx")("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},"6/1s":function(e,t,n){var r=n("YqAc")("meta"),o=n("93I4"),i=n("B+OT"),a=n("2faE").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("KUxP")(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&p.NEED&&l(e)&&!i(e,r)&&u(e),e}}},"8gHz":function(e,t,n){var r=n("5K7Z"),o=n("eaoh"),i=n("UWiX")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},"8oxB":function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,p=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++p1)for(var n=1;no;)K(e,n=r[o++],t[n]);return e},Z=function(e){var t=P.call(this,e=w(e,!0));return!(this===N&&o(R,e)&&!o(I,e))&&(!(t||!o(this,e)||!o(R,e)||o(this,q)&&this[q][e])||t)},J=function(e,t){if(e=y(e),t=w(t,!0),e!==N||!o(R,t)||o(I,t)){var n=O(e,t);return!n||!o(R,t)||o(e,q)&&e[q][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=D(y(e)),r=[],i=0;n.length>i;)o(R,t=n[i++])||t==q||t==l||r.push(t);return r},Y=function(e){for(var t,n=e===N,r=D(n?I:y(e)),i=[],a=0;r.length>a;)!o(R,t=r[a++])||n&&!o(N,t)||i.push(R[t]);return i};z||(s((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===N&&t.call(I,n),o(this,q)&&o(this[q],e)&&(this[q][e]=!1),H(this,e,k(1,n))};return i&&U&&H(N,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),E.f=J,A.f=K,n("ar/p").f=C.f=X,n("NV0k").f=Z,n("mqlF").f=Y,i&&!n("uOPS")&&s(N,"propertyIsEnumerable",Z,!0),h.f=function(e){return W(d(e))}),a(a.G+a.W+a.F*!z,{Symbol:j});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)d(Q[ee++]);for(var te=S(d.store),ne=0;te.length>ne;)_(te[ne++]);a(a.S+a.F*!z,"Symbol",{for:function(e){return o(F,e+="")?F[e]:F[e]=j(e)},keyFor:function(e){if(!V(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!z,"Object",{create:function(e,t){return void 0===t?x(e):G(x(e),t)},defineProperty:K,defineProperties:G,getOwnPropertyDescriptor:J,getOwnPropertyNames:X,getOwnPropertySymbols:Y}),M&&a(a.S+a.F*(!z||c(function(){var e=j();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!V(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!V(t))return t}),r[1]=t,L.apply(M,r)}}),j.prototype[$]||n("NegM")(j.prototype,$,j.prototype.valueOf),p(j,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},"B+OT":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},BEtg:function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)} +(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-libs"],{"+JPL":function(e,t,n){e.exports={default:n("+SFK"),__esModule:!0}},"+SFK":function(e,t,n){n("AUvm"),n("wgeU"),n("adOz"),n("dl0q"),e.exports=n("WEpk").Symbol},"0tVQ":function(e,t,n){n("FlQf"),n("VJsP"),e.exports=n("WEpk").Array.from},"1K8p":function(e,t,n){"use strict";var r=n("jrfk"),o=n("ez49"),i=10,a=40,s=800;function l(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*i,o=n*i,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=a,o*=a):(r*=s,o*=s)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=l},"29s/":function(e,t,n){var r=n("WEpk"),o=n("5T2Y"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("uOPS")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"2GTP":function(e,t,n){var r=n("eaoh");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"2Nb0":function(e,t,n){n("FlQf"),n("bBy9"),e.exports=n("zLkG").f("iterator")},"2SVd":function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},"2faE":function(e,t,n){var r=n("5K7Z"),o=n("eUtF"),i=n("G8Mo"),a=Object.defineProperty;t.f=n("jmDH")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"4BeY":function(e,t,n){(function(t){!function(t,n){e.exports=n()}(0,function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r=n(function(e,t){e.exports=function(){function e(e){var t=e&&"object"==typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(t,n){var o=n&&!0===n.clone;return o&&e(t)?r(function(e){return Array.isArray(e)?[]:{}}(t),t,n):t}function n(n,o,i){var a=n.slice();return o.forEach(function(o,s){void 0===a[s]?a[s]=t(o,i):e(o)?a[s]=r(n[s],o,i):-1===n.indexOf(o)&&a.push(t(o,i))}),a}function r(o,i,a){var s=Array.isArray(i),l=a||{arrayMerge:n},c=l.arrayMerge||n;return s?Array.isArray(o)?c(o,i,a):t(i,a):function(n,o,i){var a={};return e(n)&&Object.keys(n).forEach(function(e){a[e]=t(n[e],i)}),Object.keys(o).forEach(function(s){e(o[s])&&n[s]?a[s]=r(n[s],o[s],i):a[s]=t(o[s],i)}),a}(o,i,a)}return r.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return r(e,n,t)})},r}()}),o=n(function(e,t){t.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},e.exports=t.default}),i=o.svg,a=o.xlink,s={};s[i.name]=i.uri,s[a.name]=a.uri;var l=function(e,t){return void 0===e&&(e=""),""+e+""};return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n}(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(e)})}).call(this,n("yLpj"))},"4d7F":function(e,t,n){e.exports={default:n("aW7e"),__esModule:!0}},"5K7Z":function(e,t,n){var r=n("93I4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"5T2Y":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"5oMp":function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"5vMV":function(e,t,n){var r=n("B+OT"),o=n("NsO/"),i=n("W070")(!1),a=n("VVlx")("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},"6/1s":function(e,t,n){var r=n("YqAc")("meta"),o=n("93I4"),i=n("B+OT"),a=n("2faE").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("KUxP")(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&p.NEED&&l(e)&&!i(e,r)&&u(e),e}}},"8gHz":function(e,t,n){var r=n("5K7Z"),o=n("eaoh"),i=n("UWiX")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},"8oxB":function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,p=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++p1)for(var n=1;no;)K(e,n=r[o++],t[n]);return e},Z=function(e){var t=P.call(this,e=w(e,!0));return!(this===N&&o(R,e)&&!o(I,e))&&(!(t||!o(this,e)||!o(R,e)||o(this,q)&&this[q][e])||t)},J=function(e,t){if(e=y(e),t=w(t,!0),e!==N||!o(R,t)||o(I,t)){var n=O(e,t);return!n||!o(R,t)||o(e,q)&&e[q][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=D(y(e)),r=[],i=0;n.length>i;)o(R,t=n[i++])||t==q||t==l||r.push(t);return r},Y=function(e){for(var t,n=e===N,r=D(n?I:y(e)),i=[],a=0;r.length>a;)!o(R,t=r[a++])||n&&!o(N,t)||i.push(R[t]);return i};z||(s((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===N&&t.call(I,n),o(this,q)&&o(this[q],e)&&(this[q][e]=!1),H(this,e,k(1,n))};return i&&U&&H(N,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),E.f=J,A.f=K,n("ar/p").f=C.f=X,n("NV0k").f=Z,n("mqlF").f=Y,i&&!n("uOPS")&&s(N,"propertyIsEnumerable",Z,!0),h.f=function(e){return W(d(e))}),a(a.G+a.W+a.F*!z,{Symbol:j});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)d(Q[ee++]);for(var te=S(d.store),ne=0;te.length>ne;)_(te[ne++]);a(a.S+a.F*!z,"Symbol",{for:function(e){return o(F,e+="")?F[e]:F[e]=j(e)},keyFor:function(e){if(!V(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!z,"Object",{create:function(e,t){return void 0===t?x(e):G(x(e),t)},defineProperty:K,defineProperties:G,getOwnPropertyDescriptor:J,getOwnPropertyNames:X,getOwnPropertySymbols:Y}),M&&a(a.S+a.F*(!z||c(function(){var e=j();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!V(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!V(t))return t}),r[1]=t,L.apply(M,r)}}),j.prototype[$]||n("NegM")(j.prototype,$,j.prototype.valueOf),p(j,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},"B+OT":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},BEtg:function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)} /*! * Determine if an object is a Buffer * @@ -23,7 +23,7 @@ var n=Object.freeze({});function r(e){return void 0===e||null===e}function o(e){ */ var r=function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}},o="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}var a=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(e,t){this._children[e]=t},a.prototype.removeChild=function(e){delete this._children[e]},a.prototype.getChild=function(e){return this._children[e]},a.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},a.prototype.forEachChild=function(e){i(this._children,e)},a.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},a.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},a.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(a.prototype,s);var l=function(e){this.register([],e,!1)};l.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},l.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")},"")},l.prototype.update=function(e){!function e(t,n,r){0;n.update(r);if(r.modules)for(var o in r.modules){if(!n.getChild(o))return void 0;e(t.concat(o),n.getChild(o),r.modules[o])}}([],this.root,e)},l.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new a(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&i(t.modules,function(t,o){r.register(e.concat(o),t,n)})},l.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)};var c;var u=function(e){var t=this;void 0===e&&(e={}),!c&&"undefined"!=typeof window&&window.Vue&&g(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1);var i=e.state;void 0===i&&(i={}),"function"==typeof i&&(i=i()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c;var a=this,s=this.dispatch,u=this.commit;this.dispatch=function(e,t){return s.call(a,e,t)},this.commit=function(e,t,n){return u.call(a,e,t,n)},this.strict=r,_(this,i,[],this._modules.root),h(this,i),n.forEach(function(e){return e(t)}),c.config.devtools&&function(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(e,t){o.emit("vuex:mutation",e,t)}))}(this)},p={state:{configurable:!0}};function f(e,t){return t.indexOf(e)<0&&t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function d(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;_(e,n,[],e._modules.root,!0),h(e,n,t)}function h(e,t,n){var r=e._vm;e.getters={};var o={};i(e._wrappedGetters,function(t,n){o[n]=function(){return t(e)},Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})});var a=c.config.silent;c.config.silent=!0,e._vm=new c({data:{$$state:t},computed:o}),c.config.silent=a,e.strict&&function(e){e._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit(function(){r._data.$$state=null}),c.nextTick(function(){return r.$destroy()}))}function _(e,t,n,r,o){var i=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a]=r),!i&&!o){var s=m(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){c.set(s,l,r.state)})}var u=r.context=function(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var i=v(n,r,o),a=i.payload,s=i.options,l=i.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,o){var i=v(n,r,o),a=i.payload,s=i.options,l=i.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){var n={},r=t.length;return Object.keys(e.getters).forEach(function(o){if(o.slice(0,r)===t){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}}),n}(e,t)}},state:{get:function(){return m(e.state,n)}}}),o}(e,a,n);r.forEachMutation(function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push(function(t){n.call(e,r.state,t)})}(e,a+n,t,u)}),r.forEachAction(function(t,n){var r=t.root?n:a+n,o=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push(function(t,o){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t,o);return function(e){return e&&"function"==typeof e.then}(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):i})}(e,r,o,u)}),r.forEachGetter(function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,a+n,t,u)}),r.forEachChild(function(r,i){_(e,t,n.concat(i),r,o)})}function m(e,t){return t.length?t.reduce(function(e,t){return e[t]},e):e}function v(e,t,n){return function(e){return null!==e&&"object"==typeof e}(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function g(e){c&&e===c||r(c=e)}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(e){0},u.prototype.commit=function(e,t,n){var r=this,o=v(e,t,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),l=this._mutations[i];l&&(this._withCommit(function(){l.forEach(function(e){e(a)})}),this._subscribers.forEach(function(e){return e(s,r.state)}))},u.prototype.dispatch=function(e,t){var n=this,r=v(e,t),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s)return this._actionSubscribers.forEach(function(e){return e(a,n.state)}),s.length>1?Promise.all(s.map(function(e){return e(i)})):s[0](i)},u.prototype.subscribe=function(e){return f(e,this._subscribers)},u.prototype.subscribeAction=function(e){return f(e,this._actionSubscribers)},u.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch(function(){return e(r.state,r.getters)},t,n)},u.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._vm._data.$$state=e})},u.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),_(this,this.state,e,this._modules.get(e),n.preserveState),h(this,this.state)},u.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=m(t.state,e.slice(0,-1));c.delete(n,e[e.length-1])}),d(this)},u.prototype.hotUpdate=function(e){this._modules.update(e),d(this,!0)},u.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(u.prototype,p);var b=C(function(e,t){var n={};return x(t).forEach(function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=E(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0}),n}),y=C(function(e,t){var n={};return x(t).forEach(function(t){var r=t.key,o=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var i=E(this.$store,"mapMutations",e);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}}),n}),w=C(function(e,t){var n={};return x(t).forEach(function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||E(this.$store,"mapGetters",e))return this.$store.getters[o]},n[r].vuex=!0}),n}),k=C(function(e,t){var n={};return x(t).forEach(function(t){var r=t.key,o=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var i=E(this.$store,"mapActions",e);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}}),n});function x(e){return Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}})}function C(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function E(e,t,n){return e._modulesNamespaceMap[n]}var A={Store:u,install:g,version:"3.0.1",mapState:b,mapMutations:y,mapGetters:w,mapActions:k,createNamespacedHelpers:function(e){return{mapState:b.bind(null,e),mapGetters:w.bind(null,e),mapMutations:y.bind(null,e),mapActions:k.bind(null,e)}}};t.a=A},LYNF:function(e,t,n){"use strict";var r=n("OH9c");e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},Lmem:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},M1xp:function(e,t,n){var r=n("a0xu");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},MCSJ:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},MLWZ:function(e,t,n){"use strict";var r=n("xTJ+");function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,function(e,t){null!==e&&void 0!==e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},MPFp:function(e,t,n){"use strict";var r=n("uOPS"),o=n("Y7ZC"),i=n("kTiW"),a=n("NegM"),s=n("SBuE"),l=n("j2DC"),c=n("RfKB"),u=n("U+KD"),p=n("UWiX")("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,_,m,v){l(n,t,h);var g,b,y,w=function(e){if(!f&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",x="values"==_,C=!1,E=e.prototype,A=E[p]||E["@@iterator"]||_&&E[_],S=A||w(_),O=_?x?w("entries"):S:void 0,T="Array"==t&&E.entries||A;if(T&&(y=u(T.call(new e)))!==Object.prototype&&y.next&&(c(y,k,!0),r||"function"==typeof y[p]||a(y,p,d)),x&&A&&"values"!==A.name&&(C=!0,S=function(){return A.call(this)}),r&&!v||!f&&!C&&E[p]||a(E,p,S),s[t]=S,s[k]=d,_)if(g={values:x?S:w("values"),keys:m?S:w("keys"),entries:O},v)for(b in g)b in E||i(E,b,g[b]);else o(o.P+o.F*(f||C),t,g);return g}},Mj6V:function(e,t,n){var r,o; /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */void 0===(o="function"==typeof(r=function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function n(e,t,n){return en?n:e}function r(e){return 100*(-1+e)}e.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(a){var s=e.isStarted();a=n(a,t.minimum,1),e.status=1===a?null:a;var l=e.render(!s),c=l.querySelector(t.barSelector),u=t.speed,p=t.easing;return l.offsetWidth,o(function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),i(c,function(e,n,o){var i;return(i="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"}).transition="all "+n+"ms "+o,i}(a,u,p)),1===a?(i(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout(function(){i(l,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){e.remove(),n()},u)},u)):setTimeout(n,u)}),this},e.isStarted=function(){return"number"==typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout(function(){e.status&&(e.trickle(),n())},t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!=typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always(function(){0==--n?(t=0,e.done()):e.set((t-n)/t)}),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");s(document.documentElement,"nprogress-busy");var o=document.createElement("div");o.id="nprogress",o.innerHTML=t.template;var a,l=o.querySelector(t.barSelector),c=n?"-100":r(e.status||0),p=document.querySelector(t.parent);return i(l,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),t.showSpinner||(a=o.querySelector(t.spinnerSelector))&&u(a),p!=document.body&&s(p,"nprogress-custom-parent"),p.appendChild(o),o},e.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&u(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),i=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n){return n=function(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}(n),t[n]||(t[n]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}(n))}function r(e,t,r){t=n(t),e.style[t]=r}return function(e,t){var n,o,i=arguments;if(2==i.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,i[1],i[2])}}();function a(e,t){var n="string"==typeof e?e:c(e);return n.indexOf(" "+t+" ")>=0}function s(e,t){var n=c(e),r=n+t;a(n,t)||(e.className=r.substring(1))}function l(e,t){var n,r=c(e);a(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function c(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function u(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e})?r.call(t,n,t,e):r)||(e.exports=o)},MvwC:function(e,t,n){var r=n("5T2Y").document;e.exports=r&&r.documentElement},NV0k:function(e,t){t.f={}.propertyIsEnumerable},NegM:function(e,t,n){var r=n("2faE"),o=n("rr1i");e.exports=n("jmDH")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"NsO/":function(e,t,n){var r=n("M1xp"),o=n("Jes0");e.exports=function(e){return r(o(e))}},NwJ3:function(e,t,n){var r=n("SBuE"),o=n("UWiX")("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},OH9c:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},OTTw:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},Ojgd:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},P2sY:function(e,t,n){e.exports={default:n("UbbE"),__esModule:!0}},PBE1:function(e,t,n){"use strict";var r=n("Y7ZC"),o=n("WEpk"),i=n("5T2Y"),a=n("8gHz"),s=n("zXhZ");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},PE4B:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return t&&!0===t.clone&&r(e)?s(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function a(e,t,n){var o=e.slice();return t.forEach(function(t,a){void 0===o[a]?o[a]=i(t,n):r(t)?o[a]=s(e[a],t,n):-1===e.indexOf(t)&&o.push(i(t,n))}),o}function s(e,t,n){var o=Array.isArray(t);return o===Array.isArray(e)?o?((n||{arrayMerge:a}).arrayMerge||a)(e,t,n):function(e,t,n){var o={};return r(e)&&Object.keys(e).forEach(function(t){o[t]=i(e[t],n)}),Object.keys(t).forEach(function(a){r(t[a])&&e[a]?o[a]=s(e[a],t[a],n):o[a]=i(t[a],n)}),o}(e,t,n):i(t,n)}s.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return s(e,n,t)})};var l=s;e.exports=l},"Q/yX":function(e,t,n){"use strict";var r=n("Y7ZC"),o=n("ZW5q"),i=n("RDmV");r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},QMMT:function(e,t,n){var r=n("a0xu"),o=n("UWiX")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},QXhf:function(e,t,n){var r,o,i,a=n("2GTP"),s=n("MCSJ"),l=n("MvwC"),c=n("Hsns"),u=n("5T2Y"),p=u.process,f=u.setImmediate,d=u.clearImmediate,h=u.MessageChannel,_=u.Dispatch,m=0,v={},g=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){g.call(e.data)};f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},d=function(e){delete v[e]},"process"==n("a0xu")(p)?r=function(e){p.nextTick(a(g,e,1))}:_&&_.now?r=function(e){_.now(a(g,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),g.call(e)}}:function(e){setTimeout(a(g,e,1),0)}),e.exports={set:f,clear:d}},QbLZ:function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n("P2sY"));t.default=r.default||function(e){for(var t=1;tc;)l.call(e,a=s[c++])&&t.push(a);return t}},RDmV:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},RfKB:function(e,t,n){var r=n("2faE").f,o=n("B+OT"),i=n("UWiX")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},"Rn+g":function(e,t,n){"use strict";var r=n("LYNF");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},SBuE:function(e,t){e.exports={}},TJWN:function(e,t,n){"use strict";var r=n("5T2Y"),o=n("WEpk"),i=n("2faE"),a=n("jmDH"),s=n("UWiX")("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},TuGD:function(e,t,n){var r=n("UWiX")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},"U+KD":function(e,t,n){var r=n("B+OT"),o=n("JB68"),i=n("VVlx")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},UO39:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},UWiX:function(e,t,n){var r=n("29s/")("wks"),o=n("YqAc"),i=n("5T2Y").Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},UbbE:function(e,t,n){n("o8NH"),e.exports=n("WEpk").Object.assign},UnBK:function(e,t,n){"use strict";var r=n("xTJ+"),o=n("xAGQ"),i=n("Lmem"),a=n("JEQr"),s=n("2SVd"),l=n("5oMp");function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},VJsP:function(e,t,n){"use strict";var r=n("2GTP"),o=n("Y7ZC"),i=n("JB68"),a=n("sNwI"),s=n("NwJ3"),l=n("tEej"),c=n("IP1Z"),u=n("fNZA");o(o.S+o.F*!n("TuGD")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,p,f=i(e),d="function"==typeof this?this:Array,h=arguments.length,_=h>1?arguments[1]:void 0,m=void 0!==_,v=0,g=u(f);if(m&&(_=r(_,h>2?arguments[2]:void 0,2)),void 0==g||d==Array&&s(g))for(n=new d(t=l(f.length));t>v;v++)c(n,v,m?_(f[v],v):f[v]);else for(p=g.call(f),n=new d;!(o=p.next()).done;v++)c(n,v,m?a(p,_,[o.value,v],!0):o.value);return n.length=v,n}})},VVlx:function(e,t,n){var r=n("29s/")("keys"),o=n("YqAc");e.exports=function(e){return r[e]||(r[e]=o(e))}},W070:function(e,t,n){var r=n("NsO/"),o=n("tEej"),i=n("D8kY");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},WEpk:function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"WX/U":function(e,t){e.exports=function(e,t,n,r){var o,i=0;return"boolean"!=typeof t&&(r=n,n=t,t=void 0),function(){var a=this,s=Number(new Date)-i,l=arguments;function c(){i=Number(new Date),n.apply(a,l)}r&&!o&&c(),o&&clearTimeout(o),void 0===r&&s>e?c():!0!==t&&(o=setTimeout(r?function(){o=void 0}:c,void 0===r?e-s:e))}}},"XJU/":function(e,t,n){var r=n("NegM");e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},Y7ZC:function(e,t,n){var r=n("5T2Y"),o=n("WEpk"),i=n("2GTP"),a=n("NegM"),s=n("B+OT"),l=function(e,t,n){var c,u,p,f=e&l.F,d=e&l.G,h=e&l.S,_=e&l.P,m=e&l.B,v=e&l.W,g=d?o:o[t]||(o[t]={}),b=g.prototype,y=d?r:h?r[t]:(r[t]||{}).prototype;for(c in d&&(n=t),n)(u=!f&&y&&void 0!==y[c])&&s(g,c)||(p=u?y[c]:n[c],g[c]=d&&"function"!=typeof y[c]?n[c]:m&&u?i(p,r):v&&y[c]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):_&&"function"==typeof p?i(Function.call,p):p,_&&((g.virtual||(g.virtual={}))[c]=p,e&l.R&&b&&!b[c]&&a(b,c,p)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},YqAc:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},ZOF2:function(e,t,n){},ZW5q:function(e,t,n){"use strict";var r=n("eaoh");e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},Zxgi:function(e,t,n){var r=n("5T2Y"),o=n("WEpk"),i=n("uOPS"),a=n("zLkG"),s=n("2faE").f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},a0xu:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},aW7e:function(e,t,n){n("wgeU"),n("FlQf"),n("bBy9"),n("JMW+"),n("PBE1"),n("Q/yX"),e.exports=n("WEpk").Promise},adOz:function(e,t,n){n("Zxgi")("asyncIterator")},"ar/p":function(e,t,n){var r=n("5vMV"),o=n("FpHa").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},bBy9:function(e,t,n){n("w2d+");for(var r=n("5T2Y"),o=n("NegM"),i=n("SBuE"),a=n("UWiX")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,C=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new k(t,n,this);x.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){C.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});var E=void 0!==o.ResizeObserver?o.ResizeObserver:C;t.default=E}.call(this,n("yLpj"))},cIdk:function(e,t,n){},ccE7:function(e,t,n){var r=n("Ojgd"),o=n("Jes0");e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},dl0q:function(e,t,n){n("Zxgi")("observable")},eUtF:function(e,t,n){e.exports=!n("jmDH")&&!n("KUxP")(function(){return 7!=Object.defineProperty(n("Hsns")("div"),"a",{get:function(){return 7}}).a})},eaoh:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},endd:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},eqyj:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},ez49:function(e,t,n){"use strict";var r,o=n("o97j");o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")) + * @license MIT */void 0===(o="function"==typeof(r=function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function n(e,t,n){return en?n:e}function r(e){return 100*(-1+e)}e.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(a){var s=e.isStarted();a=n(a,t.minimum,1),e.status=1===a?null:a;var l=e.render(!s),c=l.querySelector(t.barSelector),u=t.speed,p=t.easing;return l.offsetWidth,o(function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),i(c,function(e,n,o){var i;return(i="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"}).transition="all "+n+"ms "+o,i}(a,u,p)),1===a?(i(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout(function(){i(l,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){e.remove(),n()},u)},u)):setTimeout(n,u)}),this},e.isStarted=function(){return"number"==typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout(function(){e.status&&(e.trickle(),n())},t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!=typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always(function(){0==--n?(t=0,e.done()):e.set((t-n)/t)}),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");s(document.documentElement,"nprogress-busy");var o=document.createElement("div");o.id="nprogress",o.innerHTML=t.template;var a,l=o.querySelector(t.barSelector),c=n?"-100":r(e.status||0),p=document.querySelector(t.parent);return i(l,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),t.showSpinner||(a=o.querySelector(t.spinnerSelector))&&u(a),p!=document.body&&s(p,"nprogress-custom-parent"),p.appendChild(o),o},e.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&u(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),i=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n){return n=function(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}(n),t[n]||(t[n]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}(n))}function r(e,t,r){t=n(t),e.style[t]=r}return function(e,t){var n,o,i=arguments;if(2==i.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,i[1],i[2])}}();function a(e,t){var n="string"==typeof e?e:c(e);return n.indexOf(" "+t+" ")>=0}function s(e,t){var n=c(e),r=n+t;a(n,t)||(e.className=r.substring(1))}function l(e,t){var n,r=c(e);a(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function c(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function u(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e})?r.call(t,n,t,e):r)||(e.exports=o)},MvwC:function(e,t,n){var r=n("5T2Y").document;e.exports=r&&r.documentElement},NV0k:function(e,t){t.f={}.propertyIsEnumerable},NegM:function(e,t,n){var r=n("2faE"),o=n("rr1i");e.exports=n("jmDH")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"NsO/":function(e,t,n){var r=n("M1xp"),o=n("Jes0");e.exports=function(e){return r(o(e))}},NwJ3:function(e,t,n){var r=n("SBuE"),o=n("UWiX")("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},OH9c:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},OTTw:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},Ojgd:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},P2sY:function(e,t,n){e.exports={default:n("UbbE"),__esModule:!0}},PBE1:function(e,t,n){"use strict";var r=n("Y7ZC"),o=n("WEpk"),i=n("5T2Y"),a=n("8gHz"),s=n("zXhZ");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},PE4B:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return t&&!0===t.clone&&r(e)?s(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function a(e,t,n){var o=e.slice();return t.forEach(function(t,a){void 0===o[a]?o[a]=i(t,n):r(t)?o[a]=s(e[a],t,n):-1===e.indexOf(t)&&o.push(i(t,n))}),o}function s(e,t,n){var o=Array.isArray(t);return o===Array.isArray(e)?o?((n||{arrayMerge:a}).arrayMerge||a)(e,t,n):function(e,t,n){var o={};return r(e)&&Object.keys(e).forEach(function(t){o[t]=i(e[t],n)}),Object.keys(t).forEach(function(a){r(t[a])&&e[a]?o[a]=s(e[a],t[a],n):o[a]=i(t[a],n)}),o}(e,t,n):i(t,n)}s.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return s(e,n,t)})};var l=s;e.exports=l},"Q/yX":function(e,t,n){"use strict";var r=n("Y7ZC"),o=n("ZW5q"),i=n("RDmV");r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},QMMT:function(e,t,n){var r=n("a0xu"),o=n("UWiX")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},QXhf:function(e,t,n){var r,o,i,a=n("2GTP"),s=n("MCSJ"),l=n("MvwC"),c=n("Hsns"),u=n("5T2Y"),p=u.process,f=u.setImmediate,d=u.clearImmediate,h=u.MessageChannel,_=u.Dispatch,m=0,v={},g=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){g.call(e.data)};f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},d=function(e){delete v[e]},"process"==n("a0xu")(p)?r=function(e){p.nextTick(a(g,e,1))}:_&&_.now?r=function(e){_.now(a(g,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),g.call(e)}}:function(e){setTimeout(a(g,e,1),0)}),e.exports={set:f,clear:d}},QbLZ:function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n("P2sY"));t.default=r.default||function(e){for(var t=1;tc;)l.call(e,a=s[c++])&&t.push(a);return t}},RDmV:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},RfKB:function(e,t,n){var r=n("2faE").f,o=n("B+OT"),i=n("UWiX")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},"Rn+g":function(e,t,n){"use strict";var r=n("LYNF");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},SBuE:function(e,t){e.exports={}},TJWN:function(e,t,n){"use strict";var r=n("5T2Y"),o=n("WEpk"),i=n("2faE"),a=n("jmDH"),s=n("UWiX")("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},TuGD:function(e,t,n){var r=n("UWiX")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},"U+KD":function(e,t,n){var r=n("B+OT"),o=n("JB68"),i=n("VVlx")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},UO39:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},UWiX:function(e,t,n){var r=n("29s/")("wks"),o=n("YqAc"),i=n("5T2Y").Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},UbbE:function(e,t,n){n("o8NH"),e.exports=n("WEpk").Object.assign},UnBK:function(e,t,n){"use strict";var r=n("xTJ+"),o=n("xAGQ"),i=n("Lmem"),a=n("JEQr"),s=n("2SVd"),l=n("5oMp");function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},VJsP:function(e,t,n){"use strict";var r=n("2GTP"),o=n("Y7ZC"),i=n("JB68"),a=n("sNwI"),s=n("NwJ3"),l=n("tEej"),c=n("IP1Z"),u=n("fNZA");o(o.S+o.F*!n("TuGD")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,p,f=i(e),d="function"==typeof this?this:Array,h=arguments.length,_=h>1?arguments[1]:void 0,m=void 0!==_,v=0,g=u(f);if(m&&(_=r(_,h>2?arguments[2]:void 0,2)),void 0==g||d==Array&&s(g))for(n=new d(t=l(f.length));t>v;v++)c(n,v,m?_(f[v],v):f[v]);else for(p=g.call(f),n=new d;!(o=p.next()).done;v++)c(n,v,m?a(p,_,[o.value,v],!0):o.value);return n.length=v,n}})},VVlx:function(e,t,n){var r=n("29s/")("keys"),o=n("YqAc");e.exports=function(e){return r[e]||(r[e]=o(e))}},W070:function(e,t,n){var r=n("NsO/"),o=n("tEej"),i=n("D8kY");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},WEpk:function(e,t){var n=e.exports={version:"2.6.2"};"number"==typeof __e&&(__e=n)},"WX/U":function(e,t){e.exports=function(e,t,n,r){var o,i=0;return"boolean"!=typeof t&&(r=n,n=t,t=void 0),function(){var a=this,s=Number(new Date)-i,l=arguments;function c(){i=Number(new Date),n.apply(a,l)}r&&!o&&c(),o&&clearTimeout(o),void 0===r&&s>e?c():!0!==t&&(o=setTimeout(r?function(){o=void 0}:c,void 0===r?e-s:e))}}},"XJU/":function(e,t,n){var r=n("NegM");e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},Y7ZC:function(e,t,n){var r=n("5T2Y"),o=n("WEpk"),i=n("2GTP"),a=n("NegM"),s=n("B+OT"),l=function(e,t,n){var c,u,p,f=e&l.F,d=e&l.G,h=e&l.S,_=e&l.P,m=e&l.B,v=e&l.W,g=d?o:o[t]||(o[t]={}),b=g.prototype,y=d?r:h?r[t]:(r[t]||{}).prototype;for(c in d&&(n=t),n)(u=!f&&y&&void 0!==y[c])&&s(g,c)||(p=u?y[c]:n[c],g[c]=d&&"function"!=typeof y[c]?n[c]:m&&u?i(p,r):v&&y[c]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):_&&"function"==typeof p?i(Function.call,p):p,_&&((g.virtual||(g.virtual={}))[c]=p,e&l.R&&b&&!b[c]&&a(b,c,p)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},YqAc:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},ZOF2:function(e,t,n){},ZW5q:function(e,t,n){"use strict";var r=n("eaoh");e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},Zxgi:function(e,t,n){var r=n("5T2Y"),o=n("WEpk"),i=n("uOPS"),a=n("zLkG"),s=n("2faE").f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},a0xu:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},aW7e:function(e,t,n){n("wgeU"),n("FlQf"),n("bBy9"),n("JMW+"),n("PBE1"),n("Q/yX"),e.exports=n("WEpk").Promise},adOz:function(e,t,n){n("Zxgi")("asyncIterator")},"ar/p":function(e,t,n){var r=n("5vMV"),o=n("FpHa").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},bBy9:function(e,t,n){n("w2d+");for(var r=n("5T2Y"),o=n("NegM"),i=n("SBuE"),a=n("UWiX")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new n,C=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new k(t,n,this);x.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){C.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});var E=void 0!==o.ResizeObserver?o.ResizeObserver:C;t.default=E}.call(this,n("yLpj"))},cIdk:function(e,t,n){},ccE7:function(e,t,n){var r=n("Ojgd"),o=n("Jes0");e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},dl0q:function(e,t,n){n("Zxgi")("observable")},eUtF:function(e,t,n){e.exports=!n("jmDH")&&!n("KUxP")(function(){return 7!=Object.defineProperty(n("Hsns")("div"),"a",{get:function(){return 7}}).a})},eaoh:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},endd:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},eqyj:function(e,t,n){"use strict";var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},ez49:function(e,t,n){"use strict";var r,o=n("o97j");o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")) /** * Checks if an event is supported in the current execution environment. * diff --git a/laravel/routes/web.php b/laravel/routes/web.php index 33102f5..f8b80ff 100644 --- a/laravel/routes/web.php +++ b/laravel/routes/web.php @@ -45,7 +45,7 @@ Route::group(['namespace' => 'Bus', 'prefix' => 'api'], function () { Route::any('line', 'NewApiController@getList'); Route::any('new_line', 'NewApiController@newBusLine'); Route::any('output', 'NewApiController@output'); - Route::any('test', 'NewApiController@Task'); + Route::any('test', 'NewApiController@jwt'); // 1. 获取七牛上传操作的 token Route::get('getToken', 'AutoController@getToken'); -- Gitee From 7aa8acf0d04607ad786797f621043ed9fa6b7ec9 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Sun, 5 May 2019 16:55:55 +0800 Subject: [PATCH 32/33] =?UTF-8?q?fix(view):=20=E5=A2=9E=E5=8A=A0=20websock?= =?UTF-8?q?et=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/config/dev.env.js | 1 + admin/config/prod.env.js | 1 + admin/src/views/api_excel/index.vue | 10 +++++----- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/admin/config/dev.env.js b/admin/config/dev.env.js index 618c297..1252094 100644 --- a/admin/config/dev.env.js +++ b/admin/config/dev.env.js @@ -5,4 +5,5 @@ const prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"', BASE_API: '"http://localhost:8000"', + WEBSOCKET: '"ws://127.0.0.1:5200"', }) diff --git a/admin/config/prod.env.js b/admin/config/prod.env.js index 402631c..47001bd 100644 --- a/admin/config/prod.env.js +++ b/admin/config/prod.env.js @@ -2,4 +2,5 @@ module.exports = { NODE_ENV: '"production"', BASE_API: '"https://www.guke1.com"', + WEBSOCKET: '"wss://www.guke1.com/ws"', } diff --git a/admin/src/views/api_excel/index.vue b/admin/src/views/api_excel/index.vue index ba3a43a..ab5e11b 100644 --- a/admin/src/views/api_excel/index.vue +++ b/admin/src/views/api_excel/index.vue @@ -222,14 +222,14 @@ export default { }, initWebSocket() { // 初始化 weosocket if ('WebSocket' in window) { - // const url = 'wss://www.guke1.com/ws?action=api_excel&token=' + getToken() - const url = 'ws://localhost:5200?action=api_excel&token=' + getToken() + const url = process.env.WEBSOCKET + '?action=api_excel&token=' + getToken() this.websock = new WebSocket(url) this.websock.onmessage = this.onmessage this.websock.onopen = this.onopen this.websock.onerror = this.onerror this.websock.onclose = this.close } else { + this.fetchData() // 浏览器不支持 WebSocket,使用 ajax 轮询 console.log('Your browser does not support WebSocket!') } @@ -249,7 +249,7 @@ export default { const data = JSON.parse(e.data) // this.list[2].rate = parseInt(data.data.rate) // console.log(this.list[2].rate) - console.log(data) + // console.log(data) // websocket 返回的数据 this.list = data.data.data this.listLoading = false @@ -265,14 +265,14 @@ export default { this.websock.send(Data) }, close() { // 关闭 - console.log('断开连接') + // console.log('断开连接') }, download(index, row) { window.location.href = this.url + row.finish_url }, download_log(index, row) { download_log({ id: row.id }).then(res => { - console.log(res) + // console.log(res) if (res.code === 200) { window.location.href = this.url + res.data.failed_done_file } -- Gitee From 233c0943334eea17d43dcfa9b345ac4b26c30c45 Mon Sep 17 00:00:00 2001 From: lisgroup <407505297@qq.com> Date: Sun, 5 May 2019 16:56:52 +0800 Subject: [PATCH 33/33] =?UTF-8?q?chore(view):=20=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laravel/public/index.html | 2 +- laravel/public/static/css/chunk-01a2.65e79044.css | 1 + laravel/public/static/css/chunk-fdd2.9329826f.css | 1 - laravel/public/static/js/{app.cb6b8b60.js => app.292194fe.js} | 2 +- laravel/public/static/js/chunk-01a2.799243c4.js | 1 + laravel/public/static/js/chunk-fdd2.e62879aa.js | 1 - 6 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 laravel/public/static/css/chunk-01a2.65e79044.css delete mode 100644 laravel/public/static/css/chunk-fdd2.9329826f.css rename laravel/public/static/js/{app.cb6b8b60.js => app.292194fe.js} (99%) create mode 100644 laravel/public/static/js/chunk-01a2.799243c4.js delete mode 100644 laravel/public/static/js/chunk-fdd2.e62879aa.js diff --git a/laravel/public/index.html b/laravel/public/index.html index 7a3a5db..3c098c6 100644 --- a/laravel/public/index.html +++ b/laravel/public/index.html @@ -1 +1 @@ -Laravel-vue-admin 后台管理系统
\ No newline at end of file +Laravel-vue-admin 后台管理系统
\ No newline at end of file diff --git a/laravel/public/static/css/chunk-01a2.65e79044.css b/laravel/public/static/css/chunk-01a2.65e79044.css new file mode 100644 index 0000000..fae2d3c --- /dev/null +++ b/laravel/public/static/css/chunk-01a2.65e79044.css @@ -0,0 +1 @@ +.el-row[data-v-03a7e190]{margin-bottom:20px}.pagination[data-v-03a7e190]{margin:20px auto}.reload[data-v-03a7e190]{margin-right:300px;float:right} \ No newline at end of file diff --git a/laravel/public/static/css/chunk-fdd2.9329826f.css b/laravel/public/static/css/chunk-fdd2.9329826f.css deleted file mode 100644 index ceb319f..0000000 --- a/laravel/public/static/css/chunk-fdd2.9329826f.css +++ /dev/null @@ -1 +0,0 @@ -.el-row[data-v-18a09d6c]{margin-bottom:20px}.pagination[data-v-18a09d6c]{margin:20px auto}.reload[data-v-18a09d6c]{margin-right:300px;float:right} \ No newline at end of file diff --git a/laravel/public/static/js/app.cb6b8b60.js b/laravel/public/static/js/app.292194fe.js similarity index 99% rename from laravel/public/static/js/app.cb6b8b60.js rename to laravel/public/static/js/app.292194fe.js index 9d937a7..c0bc0ca 100644 --- a/laravel/public/static/js/app.cb6b8b60.js +++ b/laravel/public/static/js/app.292194fe.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{"/OCX":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-table",use:"icon-ico-table-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"0faV":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-article",use:"icon-article-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"3PhE":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},"6xvN":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},"8fzN":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-tag",use:"icon-tag-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"96Go":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-aliyun",use:"icon-ico-aliyun-usage",viewBox:"0 0 1844 1024",content:''});o.a.add(s);n.default=s},"9ChT":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-category",use:"icon-category-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"A0++":function(e,n,t){"use strict";var i=t("xUNX");t.n(i).a},Ahhv:function(e,n,t){},BKkR:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-article",use:"icon-ico-article-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},GPBF:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},Hoqj:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-category",use:"icon-ico-category-usage",viewBox:"0 0 1260 1024",content:''});o.a.add(s);n.default=s},Kj24:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},LyEU:function(e,n,t){"use strict";var i=t("m821");t.n(i).a},MMMJ:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},OXmT:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-permission",use:"icon-permission-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},Q2AE:function(e,n,t){"use strict";var i=t("Kw5r"),a=t("L2JU"),c=t("p46w"),o=t.n(c),s={state:{sidebar:{opened:!+o.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},mutations:{TOGGLE_SIDEBAR:function(e){e.sidebar.opened?o.a.set("sidebarStatus",1):o.a.set("sidebarStatus",0),e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1},CLOSE_SIDEBAR:function(e,n){o.a.set("sidebarStatus",1),e.sidebar.opened=!1,e.sidebar.withoutAnimation=n},TOGGLE_DEVICE:function(e,n){e.device=n}},actions:{ToggleSideBar:function(e){(0,e.commit)("TOGGLE_SIDEBAR")},CloseSideBar:function(e,n){(0,e.commit)("CLOSE_SIDEBAR",n.withoutAnimation)},ToggleDevice:function(e,n){(0,e.commit)("TOGGLE_DEVICE",n)}}},l=t("gDS+"),r=t.n(l),d=t("4d7F"),u=t.n(d),h=t("t3Un");var m=t("X4fA"),p={state:{token:Object(m.a)(),name:"",avatar:"",roles:[],addRouters:[]},mutations:{SET_TOKEN:function(e,n){e.token=n},SET_NAME:function(e,n){e.name=n},SET_AVATAR:function(e,n){e.avatar=n},SET_ROLES:function(e,n){e.roles=n},SET_ROUTERS:function(e,n){e.addRouters=n}},actions:{Login:function(e,n){var t=e.commit;return new u.a(function(e,i){(function(e){return h.a.post("/api/user/login",e)})(n).then(function(n){var i=n.data;Object(m.c)(i.access_token),t("SET_TOKEN",i.access_token),e()}).catch(function(e){i(e)})})},GetInfo:function(e){var n=e.commit,t=e.state;return new u.a(function(e,i){(function(e){return Object(h.a)({url:"/api/user/info",method:"get",params:{token:e}})})(t.token).then(function(t){var a=t.data;a.roles&&a.roles.length>0?n("SET_ROLES",a.roles):i("getInfo: roles must be a non-null array !"),n("SET_NAME",a.name),n("SET_AVATAR",a.avatar),e(t)}).catch(function(e){i(e)})})},LogOut:function(e){var n=e.commit,t=e.state;return new u.a(function(e,i){(t.token,Object(h.a)({url:"/api/user/logout",method:"post"})).then(function(){n("SET_TOKEN",""),n("SET_ROLES",[]),Object(m.b)(),sessionStorage.setItem("roles",""),e()}).catch(function(e){i(e)})})},FedLogOut:function(e){var n=e.commit;return new u.a(function(e){n("SET_TOKEN",""),Object(m.b)(),e()})},GenerateRoutes:function(e,n){var t=e.commit;return new u.a(function(e){t("SET_ROUTERS",n.routers),sessionStorage.setItem("roles",r()(n.roles)),e()})}}},v={sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},roles:function(e){return e.user.roles},addRouters:function(e){return e.user.addRouters}};i.default.use(a.a);var f=new a.a.Store({modules:{app:s,user:p},getters:v});n.a=f},"R/Hx":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},TfVu:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(s);n.default=s},TnCw:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-auth",use:"icon-auth-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"Uf/o":function(e,n,t){var i={"./add.svg":"wqOL","./api.svg":"dHYy","./article.svg":"0faV","./auth.svg":"TnCw","./bus.svg":"jxcm","./category.svg":"9ChT","./example.svg":"MMMJ","./excel.svg":"ZZmv","./eye.svg":"TfVu","./form.svg":"6xvN","./ico-aliyun.svg":"96Go","./ico-article.svg":"BKkR","./ico-category.svg":"Hoqj","./ico-table.svg":"/OCX","./link.svg":"GPBF","./nav.svg":"dbke","./nested.svg":"3PhE","./password.svg":"Kj24","./permission.svg":"OXmT","./role.svg":"Ugzh","./table.svg":"R/Hx","./tag.svg":"8fzN","./task.svg":"dxv6","./tree.svg":"k80C","./user.svg":"s7Vf"};function a(e){var n=c(e);return t(n)}function c(e){var n=i[e];if(!(n+1)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n}a.keys=function(){return Object.keys(i)},a.resolve=c,e.exports=a,a.id="Uf/o"},Ugzh:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-role",use:"icon-role-usage",viewBox:"0 0 1333 1024",content:''});o.a.add(s);n.default=s},Vtdi:function(e,n,t){"use strict";t.r(n);var i=t("Kw5r"),a=(t("9d8Q"),t("XJYT")),c=t.n(a),o=(t("D66Q"),t("cIdk"),t("sg+I"),t("stgD")),s=t.n(o),l=(t("ZOF2"),{name:"App"}),r=(t("A0++"),t("KHd+")),d=Object(r.a)(l,function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},[],!1,null,null,null);d.options.__file="App.vue";var u=d.exports,h=t("jE9Z");i.default.use(h.a);var m=function(){return t.e("chunk-4c2d").then(t.bind(null,"2c6e"))},p=[].concat([{path:"/",name:"index",component:function(){return t.e("chunk-64b5").then(t.bind(null,"er4n"))},hidden:!0},{path:"/line",name:"line",component:function(){return t.e("chunk-687a").then(t.bind(null,"G5rc"))},hidden:!0},{path:"/home",component:function(){return t.e("chunk-1412").then(t.bind(null,"d7gD"))},hidden:!0},{path:"/md",name:"md",component:function(){return t.e("gW6U").then(t.bind(null,"gW6U"))},hidden:!0},{path:"/out",name:"out",component:function(){return t.e("chunk-132e").then(t.bind(null,"LnUv"))},hidden:!0},{path:"/excel",name:"excel",component:function(){return Promise.all([t.e("chunk-7a80"),t.e("chunk-68e9")]).then(t.bind(null,"5EWB"))},hidden:!0},{path:"/upload",name:"upload",component:function(){return t.e("chunk-62f7").then(t.bind(null,"4p+I"))},hidden:!0},{path:"/websocket",name:"websocket",component:function(){return t.e("chunk-f5ec").then(t.bind(null,"6jsT"))},hidden:!0},{path:"/echarts",name:"echarts",component:function(){return Promise.all([t.e("chunk-7025"),t.e("chunk-6148")]).then(t.bind(null,"HnWs"))},hidden:!0},{path:"/login",component:function(){return t.e("chunk-c8fe").then(t.bind(null,"ntYl"))},hidden:!0},{path:"/404",component:function(){return t.e("chunk-c5f5").then(t.bind(null,"jNvO"))},hidden:!0},{path:"/admin",component:m,redirect:"/admin/dashboard",name:"Dashboard",hidden:!0,children:[{path:"dashboard",component:function(){return Promise.all([t.e("chunk-7025"),t.e("chunk-cfc1")]).then(t.bind(null,"lAbF"))}}]}],[{path:"/form",component:m,children:[{path:"index",name:"Form",component:function(){return t.e("chunk-d818").then(t.bind(null,"Nx2/"))},meta:{title:"Form",icon:"form"}}],hidden:!0},{path:"/nested",component:m,redirect:"/nested/menu1",name:"Nested",meta:{title:"Nested",icon:"nested"},children:[{path:"menu1",component:function(){return t.e("6bwb").then(t.bind(null,"6bwb"))},name:"Menu1",meta:{title:"Menu1"},children:[{path:"menu1-1",component:function(){return t.e("kbPl").then(t.bind(null,"kbPl"))},name:"Menu1-1",meta:{title:"Menu1-1"}},{path:"menu1-2",component:function(){return t.e("Vc2m").then(t.bind(null,"Vc2m"))},name:"Menu1-2",meta:{title:"Menu1-2"},children:[{path:"menu1-2-1",component:function(){return t.e("ZYJW").then(t.bind(null,"ZYJW"))},name:"Menu1-2-1",meta:{title:"Menu1-2-1"}},{path:"menu1-2-2",component:function(){return t.e("tvtM").then(t.bind(null,"tvtM"))},name:"Menu1-2-2",meta:{title:"Menu1-2-2"}}]},{path:"menu1-3",component:function(){return t.e("jYsI").then(t.bind(null,"jYsI"))},name:"Menu1-3",meta:{title:"Menu1-3"}}]},{path:"menu2",component:function(){return t.e("27OO").then(t.bind(null,"27OO"))},meta:{title:"menu2"}}]},{path:"*",redirect:"/404",hidden:!0}]),v=new h.a({scrollBehavior:function(){return{y:0}},routes:p}),f=t("Q2AE"),w={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{iconName:function(){return"#icon-"+this.iconClass},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"}}},g=(t("LyEU"),Object(r.a)(w,function(){var e=this.$createElement,n=this._self._c||e;return n("svg",{class:this.svgClass,attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":this.iconName}})])},[],!1,null,"2f0f1ae2",null));g.options.__file="index.vue";var x=g.exports,b={name:"NavBar",data:function(){return{activeIndex:""}}},y=(t("mNmU"),Object(r.a)(b,function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"nav"},[t("el-menu",{staticClass:"el-menu-demo",attrs:{"default-active":e.activeIndex,mode:"horizontal"}},[t("el-row",{attrs:{gutter:1}},[t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"1"}},[t("router-link",{attrs:{to:{name:"index"}}},[e._v("公交-首页")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"3"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"out"}}},[e._v("中文排版")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"4"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"excel"}}},[e._v("在线表格 Excel")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"4"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"upload"}}},[e._v("图片转文字")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-submenu",{attrs:{index:"2"}},[t("template",{slot:"title"},[e._v("其它工具")]),e._v(" "),t("el-menu-item",{attrs:{index:"2-2"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"md"}}},[e._v("Markdown")])],1),e._v(" "),t("el-menu-item",{attrs:{index:"2-2"}},[t("router-link",{attrs:{to:{name:"echarts"}}},[e._v("图表")])],1)],2)],1)])],1)],1)],1)},[],!1,null,"6308ec4e",null));y.options.__file="navBar.vue";var k=y.exports;i.default.component("svg-icon",x),i.default.component("nav-bar",k);!function(e){e.keys().map(e)}(t("Uf/o"));var M=t("m1cH"),z=t.n(M),B=t("QbLZ"),C=t.n(B),L=function(){return t.e("chunk-4c2d").then(t.bind(null,"2c6e"))},E="Super Administrator",H=[{path:"/api_excel",component:L,redirect:"/api_excel/index",name:"Excel-List",meta:{title:"批量测试管理",icon:"ico-table",roles:[E,"Admin"]},children:[{path:"/api_excel/edit/:id",name:"EditExcel",component:function(){return t.e("chunk-d226").then(t.bind(null,"F/uS"))},hidden:!0},{path:"/api_excel/add",name:"AddExcel",component:function(){return t.e("chunk-2f6b").then(t.bind(null,"wf12"))},meta:{title:"上传测试",icon:"excel",roles:[E,"Admin"]}},{path:"/api_excel/index",name:"Excel",component:function(){return t.e("chunk-fdd2").then(t.bind(null,"yWqU"))},meta:{title:"测试管理",icon:"ico-aliyun",roles:[E,"Admin"]}},{path:"/api_param/add",name:"AddApiParam",component:function(){return t.e("chunk-34e9").then(t.bind(null,"eR/3"))},hidden:!0},{path:"/api_param/edit/:id",name:"EditApiParam",component:function(){return t.e("chunk-2227").then(t.bind(null,"/+Eh"))},hidden:!0},{path:"/api_param/index",name:"ApiParam",component:function(){return t.e("chunk-e667").then(t.bind(null,"dH62"))},meta:{title:"接口列表",icon:"api",roles:[E,"Admin"]}}]}],V=[{path:"/category",component:L,redirect:"/category/index",name:"Category-Nav",meta:{title:"栏目菜单",icon:"category",roles:[E]},children:[{path:"/category/add",name:"AddCategory",component:function(){return t.e("chunk-6908").then(t.bind(null,"GMaQ"))},meta:{title:"添加栏目"},hidden:!0},{path:"/category/edit/:id",name:"EditCategory",component:function(){return t.e("chunk-7105").then(t.bind(null,"1ylW"))},hidden:!0},{path:"/category/index",name:"Category",component:function(){return t.e("chunk-4055").then(t.bind(null,"oZKA"))},meta:{title:"栏目管理",icon:"ico-category",roles:[E]}},{path:"/nav/add",name:"AddNav",component:function(){return t.e("chunk-4f15").then(t.bind(null,"JPfX"))},hidden:!0},{path:"/nav/edit/:id",name:"EditNav",component:function(){return t.e("chunk-4332").then(t.bind(null,"LnHU"))},hidden:!0},{path:"/nav",name:"Nav",component:function(){return t.e("chunk-99dd").then(t.bind(null,"mxRw"))},meta:{title:"导航管理",icon:"nav",roles:[E]}},{path:"/tag/add",name:"AddTag",component:function(){return t.e("chunk-82a7").then(t.bind(null,"+1ta"))},meta:{title:"添加标签"},hidden:!0},{path:"/tag/edit/:id",name:"EditTag",component:function(){return t.e("chunk-1dc3").then(t.bind(null,"S2fK"))},hidden:!0},{path:"/tag",name:"Tag",component:function(){return t.e("chunk-ac41").then(t.bind(null,"ZhNY"))},meta:{title:"标签列表",icon:"tag",roles:[E]}}]},{path:"/article",component:L,name:"Article-List",meta:{title:"文章管理",icon:"article",roles:[E]},children:[{path:"/article/edit/:id",name:"EditArticle",component:function(){return t.e("chunk-766b").then(t.bind(null,"++5l"))},hidden:!0},{path:"/article/index",name:"Article",component:function(){return t.e("chunk-9f60").then(t.bind(null,"Iwy+"))},meta:{title:"文章管理",icon:"ico-article",roles:[E]}},{path:"/article/add",name:"AddArticle",component:function(){return t.e("chunk-59d3").then(t.bind(null,"/cac"))},meta:{title:"添加文章",icon:"add",roles:[E]}}]},{path:"/list",component:L,redirect:"/task",name:"公交",meta:{title:"公交管理",icon:"bus",roles:[E]},children:[{path:"/task/search",name:"search",component:function(){return t.e("chunk-ee37").then(t.bind(null,"Keas"))},hidden:!0},{path:"/task/newBus",name:"NewBus",component:function(){return t.e("chunk-3994").then(t.bind(null,"GRON"))},hidden:!0},{path:"/task/edit/:id",name:"taskEdit",component:function(){return t.e("chunk-fc68").then(t.bind(null,"J1Jp"))},hidden:!0},{path:"/task",name:"定时任务",component:function(){return t.e("chunk-775c").then(t.bind(null,"xDC0"))},meta:{title:"定时任务",icon:"task",roles:[E]}},{path:"lines/add",name:"linesAdd",component:function(){return t.e("chunk-00f7").then(t.bind(null,"V9Fe"))},hidden:!0},{path:"lines/edit/:id",name:"linesEdit",component:function(){return t.e("chunk-e830").then(t.bind(null,"bAuQ"))},hidden:!0},{path:"lines",name:"公交列表",component:function(){return t.e("chunk-47b6").then(t.bind(null,"HBaq"))},meta:{title:"公交列表",icon:"table",roles:[E]}},{path:"config",name:"配置管理",component:function(){return t.e("chunk-47b6").then(t.bind(null,"HBaq"))},meta:{title:"配置列表",icon:"table",roles:[E]}},{path:"tree",name:"Tree",component:function(){return t.e("ad09").then(t.bind(null,"ad09"))},meta:{title:"Tree",icon:"tree",roles:[E]},hidden:!0}]},{path:"user",component:L,redirect:"/user",name:"权限",meta:{title:"权限管理",icon:"auth",roles:[E]},children:[{path:"index",name:"userIndex",component:function(){return t.e("chunk-2164").then(t.bind(null,"44Km"))},hidden:!0},{path:"password",name:"userPassword",component:function(){return t.e("chunk-b5cc").then(t.bind(null,"HwY3"))},hidden:!0},{path:"/user/add",name:"AddUser",component:function(){return t.e("chunk-7951").then(t.bind(null,"fqc2"))},hidden:!0},{path:"/user/edit/:id",name:"EditUser",component:function(){return t.e("chunk-f78c").then(t.bind(null,"00Qp"))},hidden:!0},{path:"/user",name:"用户管理",component:function(){return t.e("chunk-2164").then(t.bind(null,"44Km"))},meta:{title:"用户列表",icon:"user",roles:[E]}},{path:"/permission/add",name:"AddPermission",component:function(){return t.e("chunk-0def").then(t.bind(null,"oKS6"))},hidden:!0},{path:"/permission/edit/:id",name:"EditPermission",component:function(){return t.e("chunk-98bc").then(t.bind(null,"t2jL"))},hidden:!0},{path:"/permission",name:"权限列表",component:function(){return t.e("chunk-1496").then(t.bind(null,"wjrd"))},meta:{title:"权限列表",icon:"permission",roles:[E]}},{path:"/role/add",name:"Addroles",component:function(){return t.e("chunk-4707").then(t.bind(null,"rwG5"))},hidden:!0},{path:"/role/edit/:id",name:"Editroles",component:function(){return t.e("chunk-d993").then(t.bind(null,"XqkG"))},hidden:!0},{path:"/role",name:"角色管理",component:function(){return t.e("chunk-5ba7").then(t.bind(null,"bDWH"))},meta:{title:"角色管理",icon:"role",roles:[E]}}]}],A=[],O=t("Mj6V"),_=t.n(O),S=(t("pdi6"),t("X4fA"));if(0===f.a.getters.roles.length&&sessionStorage.getItem("roles")){var I=JSON.parse(sessionStorage.getItem("roles")),T=N(I);f.a.dispatch("GenerateRoutes",{routers:T,roles:I}),v.addRoutes(T)}var F=["/login","/index","/line","/home","/404","/","","/echarts","/md","/out","/excel","/upload"];function Y(e,n){return e.indexOf("Super Administrator")>=0||(!n||e.some(function(e){return n.indexOf(e)>=0}))}function N(e){return e.indexOf("Super Administrator")>=0?[].concat(z()(H),z()(V),z()(A)):e.indexOf("Admin")>=0?H:A}v.beforeEach(function(e,n,t){_.a.start(),Object(S.a)()?"/login"===e.path?(t({path:"/admin"}),_.a.done()):0===f.a.getters.roles.length?f.a.dispatch("GetInfo").then(function(n){var i=N(n.data.roles);sessionStorage.getItem("roles")||v.addRoutes(i),f.a.dispatch("GenerateRoutes",{routers:i,roles:n.data.roles}),!e.meta.role||-1!==F.indexOf(e.path)||Y(n.data.roles,e.meta.roles)?t(C()({},e,{replace:!0})):(t({path:"/404"}),_.a.done())}).catch(function(e){f.a.dispatch("FedLogOut").then(function(){a.Message.error(e||"Verification failed, please login again"),t({path:"/admin"})})}):!e.meta.role||-1!==F.indexOf(e.path)||Y(f.a.getters.roles,e.meta.roles)?t():(t({path:"/404"}),_.a.done()):-1!==F.indexOf(e.path)?t():(t("/login?redirect="+e.path),_.a.done())}),v.afterEach(function(){_.a.done()}),i.default.use(s.a),i.default.use(c.a),i.default.config.productionTip=!1,new i.default({el:"#app",router:v,store:f.a,render:function(e){return e(u)}})},X4fA:function(e,n,t){"use strict";t.d(n,"a",function(){return o}),t.d(n,"c",function(){return s}),t.d(n,"b",function(){return l});var i=t("p46w"),a=t.n(i),c="Admin-Token";function o(){return a.a.get(c)}function s(e){return a.a.set(c,e)}function l(){return a.a.remove(c)}},ZZmv:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dHYy:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-api",use:"icon-api-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dbke:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-nav",use:"icon-nav-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dxv6:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-task",use:"icon-task-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},jxcm:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-bus",use:"icon-bus-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},k80C:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},m821:function(e,n,t){},mNmU:function(e,n,t){"use strict";var i=t("Ahhv");t.n(i).a},s7Vf:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(s);n.default=s},"sg+I":function(e,n,t){},t3Un:function(e,n,t){"use strict";var i=t("4d7F"),a=t.n(i),c=t("vDqi"),o=t.n(c),s=t("XJYT"),l=t("Q2AE"),r=t("X4fA"),d=o.a.create({baseURL:"https://www.guke1.com",timeout:5e3});d.interceptors.request.use(function(e){return l.a.getters.token&&(e.headers.Authorization="Bearer "+Object(r.a)()),e},function(e){console.log(e),a.a.reject(e)}),d.interceptors.response.use(function(e){var n=e.data;if(200!==n.code){Object(s.Message)({message:n.reason,type:"error",duration:5e3}),50008!==n.code&&50012!==n.code&&50014!==n.code&&1200!==n.code||s.MessageBox.confirm("你已被登出,可以取消继续留在该页面,或者重新登录","确定登出",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then(function(){l.a.dispatch("FedLogOut").then(function(){location.reload()})});var t=n.reason?n.reason:"error";return a.a.reject(t)}return e.data},function(e){return console.log("err"+e),Object(s.Message)({message:e.message,type:"error",duration:5e3}),a.a.reject(e)}),n.a=d},wqOL:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-add",use:"icon-add-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},xUNX:function(e,n,t){}},[["Vtdi","runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{"/OCX":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-table",use:"icon-ico-table-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"0faV":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-article",use:"icon-article-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"3PhE":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},"6xvN":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},"8fzN":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-tag",use:"icon-tag-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"96Go":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-aliyun",use:"icon-ico-aliyun-usage",viewBox:"0 0 1844 1024",content:''});o.a.add(s);n.default=s},"9ChT":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-category",use:"icon-category-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"A0++":function(e,n,t){"use strict";var i=t("xUNX");t.n(i).a},Ahhv:function(e,n,t){},BKkR:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-article",use:"icon-ico-article-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},GPBF:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},Hoqj:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-ico-category",use:"icon-ico-category-usage",viewBox:"0 0 1260 1024",content:''});o.a.add(s);n.default=s},Kj24:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},LyEU:function(e,n,t){"use strict";var i=t("m821");t.n(i).a},MMMJ:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},OXmT:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-permission",use:"icon-permission-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},Q2AE:function(e,n,t){"use strict";var i=t("Kw5r"),a=t("L2JU"),c=t("p46w"),o=t.n(c),s={state:{sidebar:{opened:!+o.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},mutations:{TOGGLE_SIDEBAR:function(e){e.sidebar.opened?o.a.set("sidebarStatus",1):o.a.set("sidebarStatus",0),e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1},CLOSE_SIDEBAR:function(e,n){o.a.set("sidebarStatus",1),e.sidebar.opened=!1,e.sidebar.withoutAnimation=n},TOGGLE_DEVICE:function(e,n){e.device=n}},actions:{ToggleSideBar:function(e){(0,e.commit)("TOGGLE_SIDEBAR")},CloseSideBar:function(e,n){(0,e.commit)("CLOSE_SIDEBAR",n.withoutAnimation)},ToggleDevice:function(e,n){(0,e.commit)("TOGGLE_DEVICE",n)}}},l=t("gDS+"),r=t.n(l),d=t("4d7F"),u=t.n(d),h=t("t3Un");var m=t("X4fA"),p={state:{token:Object(m.a)(),name:"",avatar:"",roles:[],addRouters:[]},mutations:{SET_TOKEN:function(e,n){e.token=n},SET_NAME:function(e,n){e.name=n},SET_AVATAR:function(e,n){e.avatar=n},SET_ROLES:function(e,n){e.roles=n},SET_ROUTERS:function(e,n){e.addRouters=n}},actions:{Login:function(e,n){var t=e.commit;return new u.a(function(e,i){(function(e){return h.a.post("/api/user/login",e)})(n).then(function(n){var i=n.data;Object(m.c)(i.access_token),t("SET_TOKEN",i.access_token),e()}).catch(function(e){i(e)})})},GetInfo:function(e){var n=e.commit,t=e.state;return new u.a(function(e,i){(function(e){return Object(h.a)({url:"/api/user/info",method:"get",params:{token:e}})})(t.token).then(function(t){var a=t.data;a.roles&&a.roles.length>0?n("SET_ROLES",a.roles):i("getInfo: roles must be a non-null array !"),n("SET_NAME",a.name),n("SET_AVATAR",a.avatar),e(t)}).catch(function(e){i(e)})})},LogOut:function(e){var n=e.commit,t=e.state;return new u.a(function(e,i){(t.token,Object(h.a)({url:"/api/user/logout",method:"post"})).then(function(){n("SET_TOKEN",""),n("SET_ROLES",[]),Object(m.b)(),sessionStorage.setItem("roles",""),e()}).catch(function(e){i(e)})})},FedLogOut:function(e){var n=e.commit;return new u.a(function(e){n("SET_TOKEN",""),Object(m.b)(),e()})},GenerateRoutes:function(e,n){var t=e.commit;return new u.a(function(e){t("SET_ROUTERS",n.routers),sessionStorage.setItem("roles",r()(n.roles)),e()})}}},v={sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},roles:function(e){return e.user.roles},addRouters:function(e){return e.user.addRouters}};i.default.use(a.a);var f=new a.a.Store({modules:{app:s,user:p},getters:v});n.a=f},"R/Hx":function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},TfVu:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(s);n.default=s},TnCw:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-auth",use:"icon-auth-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},"Uf/o":function(e,n,t){var i={"./add.svg":"wqOL","./api.svg":"dHYy","./article.svg":"0faV","./auth.svg":"TnCw","./bus.svg":"jxcm","./category.svg":"9ChT","./example.svg":"MMMJ","./excel.svg":"ZZmv","./eye.svg":"TfVu","./form.svg":"6xvN","./ico-aliyun.svg":"96Go","./ico-article.svg":"BKkR","./ico-category.svg":"Hoqj","./ico-table.svg":"/OCX","./link.svg":"GPBF","./nav.svg":"dbke","./nested.svg":"3PhE","./password.svg":"Kj24","./permission.svg":"OXmT","./role.svg":"Ugzh","./table.svg":"R/Hx","./tag.svg":"8fzN","./task.svg":"dxv6","./tree.svg":"k80C","./user.svg":"s7Vf"};function a(e){var n=c(e);return t(n)}function c(e){var n=i[e];if(!(n+1)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n}a.keys=function(){return Object.keys(i)},a.resolve=c,e.exports=a,a.id="Uf/o"},Ugzh:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-role",use:"icon-role-usage",viewBox:"0 0 1333 1024",content:''});o.a.add(s);n.default=s},Vtdi:function(e,n,t){"use strict";t.r(n);var i=t("Kw5r"),a=(t("9d8Q"),t("XJYT")),c=t.n(a),o=(t("D66Q"),t("cIdk"),t("sg+I"),t("stgD")),s=t.n(o),l=(t("ZOF2"),{name:"App"}),r=(t("A0++"),t("KHd+")),d=Object(r.a)(l,function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},[],!1,null,null,null);d.options.__file="App.vue";var u=d.exports,h=t("jE9Z");i.default.use(h.a);var m=function(){return t.e("chunk-4c2d").then(t.bind(null,"2c6e"))},p=[].concat([{path:"/",name:"index",component:function(){return t.e("chunk-64b5").then(t.bind(null,"er4n"))},hidden:!0},{path:"/line",name:"line",component:function(){return t.e("chunk-687a").then(t.bind(null,"G5rc"))},hidden:!0},{path:"/home",component:function(){return t.e("chunk-1412").then(t.bind(null,"d7gD"))},hidden:!0},{path:"/md",name:"md",component:function(){return t.e("gW6U").then(t.bind(null,"gW6U"))},hidden:!0},{path:"/out",name:"out",component:function(){return t.e("chunk-132e").then(t.bind(null,"LnUv"))},hidden:!0},{path:"/excel",name:"excel",component:function(){return Promise.all([t.e("chunk-7a80"),t.e("chunk-68e9")]).then(t.bind(null,"5EWB"))},hidden:!0},{path:"/upload",name:"upload",component:function(){return t.e("chunk-62f7").then(t.bind(null,"4p+I"))},hidden:!0},{path:"/websocket",name:"websocket",component:function(){return t.e("chunk-f5ec").then(t.bind(null,"6jsT"))},hidden:!0},{path:"/echarts",name:"echarts",component:function(){return Promise.all([t.e("chunk-7025"),t.e("chunk-6148")]).then(t.bind(null,"HnWs"))},hidden:!0},{path:"/login",component:function(){return t.e("chunk-c8fe").then(t.bind(null,"ntYl"))},hidden:!0},{path:"/404",component:function(){return t.e("chunk-c5f5").then(t.bind(null,"jNvO"))},hidden:!0},{path:"/admin",component:m,redirect:"/admin/dashboard",name:"Dashboard",hidden:!0,children:[{path:"dashboard",component:function(){return Promise.all([t.e("chunk-7025"),t.e("chunk-cfc1")]).then(t.bind(null,"lAbF"))}}]}],[{path:"/form",component:m,children:[{path:"index",name:"Form",component:function(){return t.e("chunk-d818").then(t.bind(null,"Nx2/"))},meta:{title:"Form",icon:"form"}}],hidden:!0},{path:"/nested",component:m,redirect:"/nested/menu1",name:"Nested",meta:{title:"Nested",icon:"nested"},children:[{path:"menu1",component:function(){return t.e("6bwb").then(t.bind(null,"6bwb"))},name:"Menu1",meta:{title:"Menu1"},children:[{path:"menu1-1",component:function(){return t.e("kbPl").then(t.bind(null,"kbPl"))},name:"Menu1-1",meta:{title:"Menu1-1"}},{path:"menu1-2",component:function(){return t.e("Vc2m").then(t.bind(null,"Vc2m"))},name:"Menu1-2",meta:{title:"Menu1-2"},children:[{path:"menu1-2-1",component:function(){return t.e("ZYJW").then(t.bind(null,"ZYJW"))},name:"Menu1-2-1",meta:{title:"Menu1-2-1"}},{path:"menu1-2-2",component:function(){return t.e("tvtM").then(t.bind(null,"tvtM"))},name:"Menu1-2-2",meta:{title:"Menu1-2-2"}}]},{path:"menu1-3",component:function(){return t.e("jYsI").then(t.bind(null,"jYsI"))},name:"Menu1-3",meta:{title:"Menu1-3"}}]},{path:"menu2",component:function(){return t.e("27OO").then(t.bind(null,"27OO"))},meta:{title:"menu2"}}]},{path:"*",redirect:"/404",hidden:!0}]),v=new h.a({scrollBehavior:function(){return{y:0}},routes:p}),f=t("Q2AE"),w={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{iconName:function(){return"#icon-"+this.iconClass},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"}}},g=(t("LyEU"),Object(r.a)(w,function(){var e=this.$createElement,n=this._self._c||e;return n("svg",{class:this.svgClass,attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":this.iconName}})])},[],!1,null,"2f0f1ae2",null));g.options.__file="index.vue";var x=g.exports,b={name:"NavBar",data:function(){return{activeIndex:""}}},y=(t("mNmU"),Object(r.a)(b,function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"nav"},[t("el-menu",{staticClass:"el-menu-demo",attrs:{"default-active":e.activeIndex,mode:"horizontal"}},[t("el-row",{attrs:{gutter:1}},[t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"1"}},[t("router-link",{attrs:{to:{name:"index"}}},[e._v("公交-首页")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"3"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"out"}}},[e._v("中文排版")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"4"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"excel"}}},[e._v("在线表格 Excel")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-menu-item",{attrs:{index:"4"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"upload"}}},[e._v("图片转文字")])],1)],1)]),e._v(" "),t("el-col",{attrs:{xs:6,sm:6,md:4,lg:4,xl:4}},[t("div",{staticClass:"grid-content"},[t("el-submenu",{attrs:{index:"2"}},[t("template",{slot:"title"},[e._v("其它工具")]),e._v(" "),t("el-menu-item",{attrs:{index:"2-2"}},[t("router-link",{staticClass:"login",attrs:{to:{name:"md"}}},[e._v("Markdown")])],1),e._v(" "),t("el-menu-item",{attrs:{index:"2-2"}},[t("router-link",{attrs:{to:{name:"echarts"}}},[e._v("图表")])],1)],2)],1)])],1)],1)],1)},[],!1,null,"6308ec4e",null));y.options.__file="navBar.vue";var k=y.exports;i.default.component("svg-icon",x),i.default.component("nav-bar",k);!function(e){e.keys().map(e)}(t("Uf/o"));var M=t("m1cH"),z=t.n(M),B=t("QbLZ"),C=t.n(B),L=function(){return t.e("chunk-4c2d").then(t.bind(null,"2c6e"))},E="Super Administrator",H=[{path:"/api_excel",component:L,redirect:"/api_excel/index",name:"Excel-List",meta:{title:"批量测试管理",icon:"ico-table",roles:[E,"Admin"]},children:[{path:"/api_excel/edit/:id",name:"EditExcel",component:function(){return t.e("chunk-d226").then(t.bind(null,"F/uS"))},hidden:!0},{path:"/api_excel/add",name:"AddExcel",component:function(){return t.e("chunk-2f6b").then(t.bind(null,"wf12"))},meta:{title:"上传测试",icon:"excel",roles:[E,"Admin"]}},{path:"/api_excel/index",name:"Excel",component:function(){return t.e("chunk-01a2").then(t.bind(null,"yWqU"))},meta:{title:"测试管理",icon:"ico-aliyun",roles:[E,"Admin"]}},{path:"/api_param/add",name:"AddApiParam",component:function(){return t.e("chunk-34e9").then(t.bind(null,"eR/3"))},hidden:!0},{path:"/api_param/edit/:id",name:"EditApiParam",component:function(){return t.e("chunk-2227").then(t.bind(null,"/+Eh"))},hidden:!0},{path:"/api_param/index",name:"ApiParam",component:function(){return t.e("chunk-e667").then(t.bind(null,"dH62"))},meta:{title:"接口列表",icon:"api",roles:[E,"Admin"]}}]}],V=[{path:"/category",component:L,redirect:"/category/index",name:"Category-Nav",meta:{title:"栏目菜单",icon:"category",roles:[E]},children:[{path:"/category/add",name:"AddCategory",component:function(){return t.e("chunk-6908").then(t.bind(null,"GMaQ"))},meta:{title:"添加栏目"},hidden:!0},{path:"/category/edit/:id",name:"EditCategory",component:function(){return t.e("chunk-7105").then(t.bind(null,"1ylW"))},hidden:!0},{path:"/category/index",name:"Category",component:function(){return t.e("chunk-4055").then(t.bind(null,"oZKA"))},meta:{title:"栏目管理",icon:"ico-category",roles:[E]}},{path:"/nav/add",name:"AddNav",component:function(){return t.e("chunk-4f15").then(t.bind(null,"JPfX"))},hidden:!0},{path:"/nav/edit/:id",name:"EditNav",component:function(){return t.e("chunk-4332").then(t.bind(null,"LnHU"))},hidden:!0},{path:"/nav",name:"Nav",component:function(){return t.e("chunk-99dd").then(t.bind(null,"mxRw"))},meta:{title:"导航管理",icon:"nav",roles:[E]}},{path:"/tag/add",name:"AddTag",component:function(){return t.e("chunk-82a7").then(t.bind(null,"+1ta"))},meta:{title:"添加标签"},hidden:!0},{path:"/tag/edit/:id",name:"EditTag",component:function(){return t.e("chunk-1dc3").then(t.bind(null,"S2fK"))},hidden:!0},{path:"/tag",name:"Tag",component:function(){return t.e("chunk-ac41").then(t.bind(null,"ZhNY"))},meta:{title:"标签列表",icon:"tag",roles:[E]}}]},{path:"/article",component:L,name:"Article-List",meta:{title:"文章管理",icon:"article",roles:[E]},children:[{path:"/article/edit/:id",name:"EditArticle",component:function(){return t.e("chunk-766b").then(t.bind(null,"++5l"))},hidden:!0},{path:"/article/index",name:"Article",component:function(){return t.e("chunk-9f60").then(t.bind(null,"Iwy+"))},meta:{title:"文章管理",icon:"ico-article",roles:[E]}},{path:"/article/add",name:"AddArticle",component:function(){return t.e("chunk-59d3").then(t.bind(null,"/cac"))},meta:{title:"添加文章",icon:"add",roles:[E]}}]},{path:"/list",component:L,redirect:"/task",name:"公交",meta:{title:"公交管理",icon:"bus",roles:[E]},children:[{path:"/task/search",name:"search",component:function(){return t.e("chunk-ee37").then(t.bind(null,"Keas"))},hidden:!0},{path:"/task/newBus",name:"NewBus",component:function(){return t.e("chunk-3994").then(t.bind(null,"GRON"))},hidden:!0},{path:"/task/edit/:id",name:"taskEdit",component:function(){return t.e("chunk-fc68").then(t.bind(null,"J1Jp"))},hidden:!0},{path:"/task",name:"定时任务",component:function(){return t.e("chunk-775c").then(t.bind(null,"xDC0"))},meta:{title:"定时任务",icon:"task",roles:[E]}},{path:"lines/add",name:"linesAdd",component:function(){return t.e("chunk-00f7").then(t.bind(null,"V9Fe"))},hidden:!0},{path:"lines/edit/:id",name:"linesEdit",component:function(){return t.e("chunk-e830").then(t.bind(null,"bAuQ"))},hidden:!0},{path:"lines",name:"公交列表",component:function(){return t.e("chunk-47b6").then(t.bind(null,"HBaq"))},meta:{title:"公交列表",icon:"table",roles:[E]}},{path:"config",name:"配置管理",component:function(){return t.e("chunk-47b6").then(t.bind(null,"HBaq"))},meta:{title:"配置列表",icon:"table",roles:[E]}},{path:"tree",name:"Tree",component:function(){return t.e("ad09").then(t.bind(null,"ad09"))},meta:{title:"Tree",icon:"tree",roles:[E]},hidden:!0}]},{path:"user",component:L,redirect:"/user",name:"权限",meta:{title:"权限管理",icon:"auth",roles:[E]},children:[{path:"index",name:"userIndex",component:function(){return t.e("chunk-2164").then(t.bind(null,"44Km"))},hidden:!0},{path:"password",name:"userPassword",component:function(){return t.e("chunk-b5cc").then(t.bind(null,"HwY3"))},hidden:!0},{path:"/user/add",name:"AddUser",component:function(){return t.e("chunk-7951").then(t.bind(null,"fqc2"))},hidden:!0},{path:"/user/edit/:id",name:"EditUser",component:function(){return t.e("chunk-f78c").then(t.bind(null,"00Qp"))},hidden:!0},{path:"/user",name:"用户管理",component:function(){return t.e("chunk-2164").then(t.bind(null,"44Km"))},meta:{title:"用户列表",icon:"user",roles:[E]}},{path:"/permission/add",name:"AddPermission",component:function(){return t.e("chunk-0def").then(t.bind(null,"oKS6"))},hidden:!0},{path:"/permission/edit/:id",name:"EditPermission",component:function(){return t.e("chunk-98bc").then(t.bind(null,"t2jL"))},hidden:!0},{path:"/permission",name:"权限列表",component:function(){return t.e("chunk-1496").then(t.bind(null,"wjrd"))},meta:{title:"权限列表",icon:"permission",roles:[E]}},{path:"/role/add",name:"Addroles",component:function(){return t.e("chunk-4707").then(t.bind(null,"rwG5"))},hidden:!0},{path:"/role/edit/:id",name:"Editroles",component:function(){return t.e("chunk-d993").then(t.bind(null,"XqkG"))},hidden:!0},{path:"/role",name:"角色管理",component:function(){return t.e("chunk-5ba7").then(t.bind(null,"bDWH"))},meta:{title:"角色管理",icon:"role",roles:[E]}}]}],A=[],O=t("Mj6V"),_=t.n(O),S=(t("pdi6"),t("X4fA"));if(0===f.a.getters.roles.length&&sessionStorage.getItem("roles")){var I=JSON.parse(sessionStorage.getItem("roles")),T=N(I);f.a.dispatch("GenerateRoutes",{routers:T,roles:I}),v.addRoutes(T)}var F=["/login","/index","/line","/home","/404","/","","/echarts","/md","/out","/excel","/upload"];function Y(e,n){return e.indexOf("Super Administrator")>=0||(!n||e.some(function(e){return n.indexOf(e)>=0}))}function N(e){return e.indexOf("Super Administrator")>=0?[].concat(z()(H),z()(V),z()(A)):e.indexOf("Admin")>=0?H:A}v.beforeEach(function(e,n,t){_.a.start(),Object(S.a)()?"/login"===e.path?(t({path:"/admin"}),_.a.done()):0===f.a.getters.roles.length?f.a.dispatch("GetInfo").then(function(n){var i=N(n.data.roles);sessionStorage.getItem("roles")||v.addRoutes(i),f.a.dispatch("GenerateRoutes",{routers:i,roles:n.data.roles}),!e.meta.role||-1!==F.indexOf(e.path)||Y(n.data.roles,e.meta.roles)?t(C()({},e,{replace:!0})):(t({path:"/404"}),_.a.done())}).catch(function(e){f.a.dispatch("FedLogOut").then(function(){a.Message.error(e||"Verification failed, please login again"),t({path:"/admin"})})}):!e.meta.role||-1!==F.indexOf(e.path)||Y(f.a.getters.roles,e.meta.roles)?t():(t({path:"/404"}),_.a.done()):-1!==F.indexOf(e.path)?t():(t("/login?redirect="+e.path),_.a.done())}),v.afterEach(function(){_.a.done()}),i.default.use(s.a),i.default.use(c.a),i.default.config.productionTip=!1,new i.default({el:"#app",router:v,store:f.a,render:function(e){return e(u)}})},X4fA:function(e,n,t){"use strict";t.d(n,"a",function(){return o}),t.d(n,"c",function(){return s}),t.d(n,"b",function(){return l});var i=t("p46w"),a=t.n(i),c="Admin-Token";function o(){return a.a.get(c)}function s(e){return a.a.set(c,e)}function l(){return a.a.remove(c)}},ZZmv:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dHYy:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-api",use:"icon-api-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dbke:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-nav",use:"icon-nav-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},dxv6:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-task",use:"icon-task-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},jxcm:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-bus",use:"icon-bus-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},k80C:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);n.default=s},m821:function(e,n,t){},mNmU:function(e,n,t){"use strict";var i=t("Ahhv");t.n(i).a},s7Vf:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});o.a.add(s);n.default=s},"sg+I":function(e,n,t){},t3Un:function(e,n,t){"use strict";var i=t("4d7F"),a=t.n(i),c=t("vDqi"),o=t.n(c),s=t("XJYT"),l=t("Q2AE"),r=t("X4fA"),d=o.a.create({baseURL:"https://www.guke1.com",timeout:5e3});d.interceptors.request.use(function(e){return l.a.getters.token&&(e.headers.Authorization="Bearer "+Object(r.a)()),e},function(e){console.log(e),a.a.reject(e)}),d.interceptors.response.use(function(e){var n=e.data;if(200!==n.code){Object(s.Message)({message:n.reason,type:"error",duration:5e3}),50008!==n.code&&50012!==n.code&&50014!==n.code&&1200!==n.code||s.MessageBox.confirm("你已被登出,可以取消继续留在该页面,或者重新登录","确定登出",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then(function(){l.a.dispatch("FedLogOut").then(function(){location.reload()})});var t=n.reason?n.reason:"error";return a.a.reject(t)}return e.data},function(e){return console.log("err"+e),Object(s.Message)({message:e.message,type:"error",duration:5e3}),a.a.reject(e)}),n.a=d},wqOL:function(e,n,t){"use strict";t.r(n);var i=t("4BeY"),a=t.n(i),c=t("IaFt"),o=t.n(c),s=new a.a({id:"icon-add",use:"icon-add-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);n.default=s},xUNX:function(e,n,t){}},[["Vtdi","runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/laravel/public/static/js/chunk-01a2.799243c4.js b/laravel/public/static/js/chunk-01a2.799243c4.js new file mode 100644 index 0000000..0d55091 --- /dev/null +++ b/laravel/public/static/js/chunk-01a2.799243c4.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-01a2"],{R8mO:function(t,e,n){"use strict";n.d(e,"d",function(){return i}),n.d(e,"e",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"f",function(){return s}),n.d(e,"a",function(){return c}),n.d(e,"g",function(){return l}),n.d(e,"h",function(){return u}),n.d(e,"b",function(){return d});var a=n("t3Un");function i(t){return Object(a.a)({url:"/api/api_excel",method:"get",params:t})}function r(t){return a.a.post("/api/api_excel",t)}function o(t){return a.a.get("/api/api_excel/"+t)}function s(t,e){return a.a.patch("/api/api_excel/"+t,e)}function c(t){return a.a.delete("/api/api_excel/"+t)}function l(t){return Object(a.a)({url:"/api/api_excel_search",method:"get",params:t})}function u(t){return Object(a.a)({url:"/api/start_task",method:"post",params:t})}function d(t){return Object(a.a)({url:"/api/download_log",method:"post",params:t})}},kXeL:function(t,e,n){"use strict";var a=n("uDov");n.n(a).a},uDov:function(t,e,n){},yWqU:function(t,e,n){"use strict";n.r(e);var a=n("P2sY"),i=n.n(a),r=n("X4fA"),o=n("R8mO"),s={filters:{statusFilter:function(t){return{1:"success",0:"gray","-1":"danger"}[t]}},data:function(){return{reload:!1,reload_name:"点击刷新",list:null,listLoading:!0,perpage:10,total:100,currentpage:1,listQuery:{page:1},url:null,websock:null}},created:function(){this.listQuery=this.$route.query,this.currentpage=parseInt(this.listQuery.page);var t=parseInt(this.$route.query.perPage);this.perpage=isNaN(t)?this.perpage:t,this.initWebSocket()},destroyed:function(){this.websock.close()},methods:{startTask:function(t,e){var n=this;this.$confirm("此操作将开启任务, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.h)(e).then(function(t){var a="";200===t.code?(e.state=1,a="success"):a="error",n.$message({type:a,message:t.reason})})}).catch(function(){n.$message({type:"info",message:"已取消操作"})})},openTask:function(t,e){var n=this;this.$alert("此操作将开启任务, 是否继续?","开启任务提醒",{confirmButtonText:"确定",center:!0,type:"warning",callback:function(t){"confirm"===t&&Object(o.h)(e).then(function(t){var a="";200===t.code?(e.state=1,a="success"):a="error",n.$message({type:a,message:t.reason}),n.initWebSocket()})}})},initWebSocket:function(){if("WebSocket"in window){var t="wss://www.guke1.com/ws?action=api_excel&token="+Object(r.a)();this.websock=new WebSocket(t),this.websock.onmessage=this.onmessage,this.websock.onopen=this.onopen,this.websock.onerror=this.onerror,this.websock.onclose=this.close}else this.fetchData(),console.log("Your browser does not support WebSocket!")},onopen:function(){},onerror:function(){this.fetchData()},onmessage:function(t){var e=this,n=JSON.parse(t.data);this.list=n.data.data,this.listLoading=!1,this.total=n.data.total,this.url=n.data.appUrl,setTimeout(function(){e.reload=!1,e.reload_name="刷新"},800)},send:function(t){this.websock.send(t)},close:function(){},download:function(t,e){window.location.href=this.url+e.finish_url},download_log:function(t,e){var n=this;Object(o.b)({id:e.id}).then(function(t){200===t.code&&(window.location.href=n.url+t.data.failed_done_file)})},fetchData:function(){var t=this;this.listLoading=this.reload=!0,this.reload_name="加载中";var e=i()({page:this.listQuery.page},{perPage:this.perpage});Object(o.d)(e).then(function(e){t.list=e.data.data,t.listLoading=!1,t.total=e.data.total,t.url=e.data.appUrl,setTimeout(function(){t.reload=!1,t.reload_name="刷新"},800)})},handleEdit:function(t,e){this.$router.push({path:"/api_excel/edit/"+e.id})},handleDelete:function(t,e){var n=this;this.$confirm("此操作将永久删除该数据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error"}).then(function(){Object(o.a)(e.id).then(function(t){n.loading=!1,200===t.code?(n.$message({message:"操作成功",type:"success"}),n.fetchData()):n.$message.error(t.reason)}),n.$message({type:"success",message:"删除成功!"})}).catch(function(){n.$message({type:"info",message:"已取消删除"})})},handleSizeChange:function(t){this.perpage=t,this.$router.push({path:"",query:{page:this.listQuery.page,perPage:t}}),this.fetchData()},handleCurrentChange:function(t){this.listQuery={page:t},this.$router.push({path:"",query:{page:t,perPage:this.perpage}}),this.fetchData({page:t})},goSearch:function(t){var e=this;this.$refs[t].validate(function(t){if(!t)return!1;e.listLoading=!0;var n={wd:e.form.input};Object(o.g)(n).then(function(t){e.listLoading=!1,200===t.code?(e.form.isShow=!0,e.list=t.data.data,e.total=t.data.total):e.$message.error(t.reason)})})}}},c=(n("kXeL"),n("KHd+")),l=Object(c.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-row",[n("el-button",{attrs:{type:"primary",size:"medium"}},[n("router-link",{attrs:{to:"/api_excel/add"}},[t._v("上传测试")])],1),t._v(" "),n("el-button",{staticClass:"reload",attrs:{loading:t.reload,type:"primary",plain:""},on:{click:t.fetchData}},[t._v(t._s(t.reload_name))])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"center",label:"ID",width:"70"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.id)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"接口名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.api_param.name))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"描述内容",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.description))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"用户ID",align:"center",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.uid)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"原文件"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.upload_url)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"状态",width:"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.state?n("div",[n("el-tag",{attrs:{type:"warning"}},[t._v("未开启")])],1):1===e.row.state?n("div",[n("el-tag",{attrs:{type:"primary"}},[t._v("正在处理")])],1):2===e.row.state?n("div",[n("el-tag",{attrs:{type:"success"}},[t._v("已完成")])],1):n("div",[n("el-tag",{attrs:{type:"info"}},[t._v("失败")])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"进度条",width:"100",align:"center",display:"none"},scopedSlots:t._u([{key:"default",fn:function(t){return[0===t.row.state?n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:0}})],1):1===t.row.state?n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:t.row.rate}})],1):2===t.row.state?n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:100,status:"success"}})],1):n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:t.row.rate,status:"exception"}})],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"300",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[0===e.row.state?n("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(n){t.openTask(e.$index,e.row)}}},[t._v("点击开启任务")]):1===e.row.state?n("el-button",{attrs:{size:"mini",type:"primary"}},[t._v("...")]):2===e.row.state?n("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(n){t.download(e.$index,e.row)}}},[t._v("点击下载")]):5===e.row.state?n("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(n){t.download_log(e.$index,e.row)}}},[t._v("下载已测试数据")]):t._e(),t._v(" "),n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){t.handleDelete(e.$index,e.row)}}},[t._v("删除")])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"created_at",label:"创建时间",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.created_at))])]}}])})],1),t._v(" "),n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{total:t.total,"current-page":t.currentpage,"page-sizes":[10,20,30,50,100],"page-size":t.perpage,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},[],!1,null,"03a7e190",null);l.options.__file="index.vue";e.default=l.exports}}]); \ No newline at end of file diff --git a/laravel/public/static/js/chunk-fdd2.e62879aa.js b/laravel/public/static/js/chunk-fdd2.e62879aa.js deleted file mode 100644 index a40ce9f..0000000 --- a/laravel/public/static/js/chunk-fdd2.e62879aa.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-fdd2"],{"0za8":function(t,e,n){},R8mO:function(t,e,n){"use strict";n.d(e,"d",function(){return o}),n.d(e,"e",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"f",function(){return s}),n.d(e,"a",function(){return c}),n.d(e,"g",function(){return l}),n.d(e,"h",function(){return u}),n.d(e,"b",function(){return d});var a=n("t3Un");function o(t){return Object(a.a)({url:"/api/api_excel",method:"get",params:t})}function i(t){return a.a.post("/api/api_excel",t)}function r(t){return a.a.get("/api/api_excel/"+t)}function s(t,e){return a.a.patch("/api/api_excel/"+t,e)}function c(t){return a.a.delete("/api/api_excel/"+t)}function l(t){return Object(a.a)({url:"/api/api_excel_search",method:"get",params:t})}function u(t){return Object(a.a)({url:"/api/start_task",method:"post",params:t})}function d(t){return Object(a.a)({url:"/api/download_log",method:"post",params:t})}},uuvh:function(t,e,n){"use strict";var a=n("0za8");n.n(a).a},yWqU:function(t,e,n){"use strict";n.r(e);var a=n("P2sY"),o=n.n(a),i=n("X4fA"),r=n("R8mO"),s={filters:{statusFilter:function(t){return{1:"success",0:"gray","-1":"danger"}[t]}},data:function(){return{reload:!1,reload_name:"点击刷新",list:null,listLoading:!0,perpage:10,total:100,currentpage:1,listQuery:{page:1},url:null,websock:null}},created:function(){this.listQuery=this.$route.query,this.currentpage=parseInt(this.listQuery.page);var t=parseInt(this.$route.query.perPage);this.perpage=isNaN(t)?this.perpage:t,this.initWebSocket()},destroyed:function(){this.websock.close()},methods:{startTask:function(t,e){var n=this;this.$confirm("此操作将开启任务, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(r.h)(e).then(function(t){var a="";200===t.code?(e.state=1,a="success"):a="error",n.$message({type:a,message:t.reason})})}).catch(function(){n.$message({type:"info",message:"已取消操作"})})},openTask:function(t,e){var n=this;this.$alert("此操作将开启任务, 是否继续?","开启任务提醒",{confirmButtonText:"确定",center:!0,type:"warning",callback:function(t){"confirm"===t&&Object(r.h)(e).then(function(t){var a="";200===t.code?(e.state=1,a="success"):a="error",n.$message({type:a,message:t.reason}),n.initWebSocket()})}})},initWebSocket:function(){if("WebSocket"in window){var t="wss://www.guke1.com/ws?action=api_excel&token="+Object(i.a)();this.websock=new WebSocket(t),this.websock.onmessage=this.onmessage,this.websock.onopen=this.onopen,this.websock.onerror=this.onerror,this.websock.onclose=this.close}else console.log("Your browser does not support WebSocket!")},onopen:function(){},onerror:function(){this.fetchData()},onmessage:function(t){var e=this,n=JSON.parse(t.data);console.log(n),this.list=n.data.data,this.listLoading=!1,this.total=n.data.total,this.url=n.data.appUrl,setTimeout(function(){e.reload=!1,e.reload_name="刷新"},800)},send:function(t){this.websock.send(t)},close:function(){console.log("断开连接")},download:function(t,e){window.location.href=this.url+e.finish_url},download_log:function(t,e){var n=this;Object(r.b)({id:e.id}).then(function(t){console.log(t),200===t.code&&(window.location.href=n.url+t.data.failed_done_file)})},fetchData:function(){var t=this;this.listLoading=this.reload=!0,this.reload_name="加载中";var e=o()({page:this.listQuery.page},{perPage:this.perpage});Object(r.d)(e).then(function(e){t.list=e.data.data,t.listLoading=!1,t.total=e.data.total,t.url=e.data.appUrl,setTimeout(function(){t.reload=!1,t.reload_name="刷新"},800)})},handleEdit:function(t,e){this.$router.push({path:"/api_excel/edit/"+e.id})},handleDelete:function(t,e){var n=this;this.$confirm("此操作将永久删除该数据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error"}).then(function(){Object(r.a)(e.id).then(function(t){n.loading=!1,200===t.code?(n.$message({message:"操作成功",type:"success"}),n.fetchData()):n.$message.error(t.reason)}),n.$message({type:"success",message:"删除成功!"})}).catch(function(){n.$message({type:"info",message:"已取消删除"})})},handleSizeChange:function(t){this.perpage=t,this.$router.push({path:"",query:{page:this.listQuery.page,perPage:t}}),this.fetchData()},handleCurrentChange:function(t){this.listQuery={page:t},this.$router.push({path:"",query:{page:t,perPage:this.perpage}}),this.fetchData({page:t})},goSearch:function(t){var e=this;this.$refs[t].validate(function(t){if(!t)return!1;e.listLoading=!0;var n={wd:e.form.input};Object(r.g)(n).then(function(t){e.listLoading=!1,200===t.code?(e.form.isShow=!0,e.list=t.data.data,e.total=t.data.total):e.$message.error(t.reason)})})}}},c=(n("uuvh"),n("KHd+")),l=Object(c.a)(s,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-row",[n("el-button",{attrs:{type:"primary",size:"medium"}},[n("router-link",{attrs:{to:"/api_excel/add"}},[t._v("上传测试")])],1),t._v(" "),n("el-button",{staticClass:"reload",attrs:{loading:t.reload,type:"primary",plain:""},on:{click:t.fetchData}},[t._v(t._s(t.reload_name))])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"center",label:"ID",width:"70"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.id)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"接口名称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.api_param.name))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"描述内容",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.description))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"用户ID",align:"center",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.uid)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"原文件"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.upload_url)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"状态",width:"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.state?n("div",[n("el-tag",{attrs:{type:"warning"}},[t._v("未开启")])],1):1===e.row.state?n("div",[n("el-tag",{attrs:{type:"primary"}},[t._v("正在处理")])],1):2===e.row.state?n("div",[n("el-tag",{attrs:{type:"success"}},[t._v("已完成")])],1):n("div",[n("el-tag",{attrs:{type:"info"}},[t._v("失败")])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"进度条",width:"100",align:"center",display:"none"},scopedSlots:t._u([{key:"default",fn:function(t){return[0===t.row.state?n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:0}})],1):1===t.row.state?n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:t.row.rate}})],1):2===t.row.state?n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:100,status:"success"}})],1):n("div",[n("el-progress",{attrs:{"text-inside":!0,"stroke-width":18,percentage:t.row.rate,status:"exception"}})],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"300",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[0===e.row.state?n("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(n){t.openTask(e.$index,e.row)}}},[t._v("点击开启任务")]):1===e.row.state?n("el-button",{attrs:{size:"mini",type:"primary"}},[t._v("...")]):2===e.row.state?n("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(n){t.download(e.$index,e.row)}}},[t._v("点击下载")]):5===e.row.state?n("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(n){t.download_log(e.$index,e.row)}}},[t._v("下载已测试数据")]):t._e(),t._v(" "),n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){t.handleDelete(e.$index,e.row)}}},[t._v("删除")])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"created_at",label:"创建时间",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.created_at))])]}}])})],1),t._v(" "),n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{total:t.total,"current-page":t.currentpage,"page-sizes":[10,20,30,50,100],"page-size":t.perpage,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},[],!1,null,"18a09d6c",null);l.options.__file="index.vue";e.default=l.exports}}]); \ No newline at end of file -- Gitee