From a36e00e5546fba1208a913ae6db7d70f71132715 Mon Sep 17 00:00:00 2001 From: smallchill Date: Fri, 24 Apr 2020 18:02:36 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=202.7.0.RELEASE,=E5=86=85=E6=A0=B8?= =?UTF-8?q?=E5=85=A8=E9=9D=A2=E5=8D=87=E7=BA=A7,=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=B2=97=E4=BD=8D=E7=AE=A1=E7=90=86,=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LICENSE | 2 +- README.md | 7 +- package.json | 8 +- public/cdn/avue/2.0.0/avue.min.js | 8 - public/cdn/avue/2.0.0/index.css | 1 - public/cdn/avue/2.5.0/avue.min.js | 8 + public/cdn/avue/2.5.0/index.css | 1 + public/cdn/element-ui/2.12.0/index.js | 1 + .../{2.8.2 => 2.12.0}/theme-chalk/alert.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/aside.css | 0 .../2.12.0/theme-chalk/autocomplete.css | 1 + .../element-ui/2.12.0/theme-chalk/avatar.css | 1 + .../element-ui/2.12.0/theme-chalk/backtop.css | 1 + .../{2.8.2 => 2.12.0}/theme-chalk/badge.css | 0 .../element-ui/2.12.0/theme-chalk/base.css | 1 + .../theme-chalk/breadcrumb-item.css | 0 .../theme-chalk/breadcrumb.css | 0 .../theme-chalk/button-group.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/button.css | 0 .../theme-chalk/calendar.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/card.css | 0 .../theme-chalk/carousel-item.css | 0 .../theme-chalk/carousel.css | 0 .../2.12.0/theme-chalk/cascader-panel.css | 1 + .../2.12.0/theme-chalk/cascader.css | 1 + .../theme-chalk/checkbox-button.css | 0 .../theme-chalk/checkbox-group.css | 0 .../theme-chalk/checkbox.css | 2 +- .../{2.8.2 => 2.12.0}/theme-chalk/col.css | 0 .../theme-chalk/collapse-item.css | 0 .../theme-chalk/collapse.css | 0 .../theme-chalk/color-picker.css | 0 .../theme-chalk/container.css | 0 .../theme-chalk/date-picker.css | 2 +- .../{2.8.2 => 2.12.0}/theme-chalk/dialog.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/display.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/divider.css | 0 .../element-ui/2.12.0/theme-chalk/drawer.css | 1 + .../theme-chalk/dropdown-item.css | 0 .../theme-chalk/dropdown-menu.css | 0 .../theme-chalk/dropdown.css | 2 +- .../theme-chalk/fonts/element-icons.ttf | Bin .../theme-chalk/fonts/element-icons.woff | Bin .../{2.8.2 => 2.12.0}/theme-chalk/footer.css | 0 .../theme-chalk/form-item.css | 0 .../element-ui/2.12.0/theme-chalk/form.css | 1 + .../{2.8.2 => 2.12.0}/theme-chalk/header.css | 0 .../element-ui/2.12.0/theme-chalk/icon.css | 1 + .../element-ui/2.12.0/theme-chalk/image.css | 1 + .../element-ui/2.12.0/theme-chalk/index.css | 1 + .../theme-chalk/infinite-scroll.css} | 0 .../theme-chalk/infiniteScroll.css} | 0 .../2.12.0/theme-chalk/input-number.css | 1 + .../element-ui/2.12.0/theme-chalk/input.css | 1 + .../{2.8.2 => 2.12.0}/theme-chalk/link.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/loading.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/main.css | 0 .../theme-chalk/menu-item-group.css} | 0 .../theme-chalk/menu-item.css} | 0 .../{2.8.2 => 2.12.0}/theme-chalk/menu.css | 0 .../theme-chalk/message-box.css | 2 +- .../element-ui/2.12.0/theme-chalk/message.css | 1 + .../theme-chalk/notification.css | 0 .../theme-chalk/option-group.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/option.css | 0 .../2.12.0/theme-chalk/page-header.css | 1 + .../2.12.0/theme-chalk/pagination.css | 1 + .../{2.8.2 => 2.12.0}/theme-chalk/popover.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/popper.css | 0 .../2.12.0/theme-chalk/progress.css | 1 + .../theme-chalk/radio-button.css | 0 .../theme-chalk/radio-group.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/radio.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/rate.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/reset.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/row.css | 0 .../theme-chalk/scrollbar.css | 0 .../theme-chalk/select-dropdown.css | 0 .../element-ui/2.12.0/theme-chalk/select.css | 1 + .../element-ui/2.12.0/theme-chalk/slider.css | 1 + .../{2.8.2 => 2.12.0}/theme-chalk/spinner.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/step.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/steps.css | 0 .../element-ui/2.12.0/theme-chalk/submenu.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/switch.css | 0 .../2.12.0/theme-chalk/tab-pane.css | 0 .../2.12.0/theme-chalk/table-column.css | 1 + .../element-ui/2.12.0/theme-chalk/table.css | 1 + .../element-ui/2.12.0/theme-chalk/tabs.css | 1 + .../cdn/element-ui/2.12.0/theme-chalk/tag.css | 1 + .../theme-chalk/time-picker.css | 2 +- .../theme-chalk/time-select.css | 0 .../theme-chalk/timeline-item.css | 0 .../theme-chalk/timeline.css | 0 .../{2.8.2 => 2.12.0}/theme-chalk/tooltip.css | 0 .../2.12.0/theme-chalk/transfer.css | 1 + .../{2.8.2 => 2.12.0}/theme-chalk/tree.css | 2 +- .../element-ui/2.12.0/theme-chalk/upload.css | 1 + public/cdn/element-ui/2.8.2/index.js | 1 - .../2.8.2/theme-chalk/autocomplete.css | 1 - .../cdn/element-ui/2.8.2/theme-chalk/base.css | 1 - .../element-ui/2.8.2/theme-chalk/cascader.css | 1 - .../cdn/element-ui/2.8.2/theme-chalk/form.css | 1 - .../cdn/element-ui/2.8.2/theme-chalk/icon.css | 1 - .../element-ui/2.8.2/theme-chalk/image.css | 1 - .../element-ui/2.8.2/theme-chalk/index.css | 1 - .../2.8.2/theme-chalk/input-number.css | 1 - .../element-ui/2.8.2/theme-chalk/input.css | 1 - .../element-ui/2.8.2/theme-chalk/message.css | 1 - .../2.8.2/theme-chalk/pagination.css | 1 - .../element-ui/2.8.2/theme-chalk/progress.css | 1 - .../element-ui/2.8.2/theme-chalk/select.css | 1 - .../element-ui/2.8.2/theme-chalk/slider.css | 1 - .../2.8.2/theme-chalk/table-column.css | 1 - .../element-ui/2.8.2/theme-chalk/table.css | 1 - .../cdn/element-ui/2.8.2/theme-chalk/tabs.css | 1 - .../cdn/element-ui/2.8.2/theme-chalk/tag.css | 1 - .../element-ui/2.8.2/theme-chalk/transfer.css | 1 - .../element-ui/2.8.2/theme-chalk/upload.css | 1 - public/cdn/vue-router/3.0.1/vue-router.min.js | 710 +- public/cdn/vue/2.5.2/vue.min.js | 10552 ---------------- public/cdn/vue/2.6.10/vue.min.js | 6 + public/cdn/vuex/2.4.1/vuex.min.js | 6 - public/cdn/vuex/3.1.1/vuex.min.js | 6 + public/index.html | 12 +- src/api/system/post.js | 60 + src/api/system/user.js | 11 + src/api/user.js | 3 +- src/config/website.js | 1 + src/page/login/userlogin.vue | 3 +- src/views/desk/notice.vue | 28 +- src/views/monitor/log/api.vue | 9 +- src/views/monitor/log/error.vue | 9 +- src/views/monitor/log/usual.vue | 9 +- src/views/system/client.vue | 28 +- src/views/system/dept.vue | 59 +- src/views/system/dict.vue | 61 +- src/views/system/menu.vue | 52 +- src/views/system/param.vue | 28 +- src/views/system/post.vue | 280 + src/views/system/role.vue | 451 +- src/views/system/tenant.vue | 34 +- src/views/system/user.vue | 257 +- src/views/tool/code.vue | 35 +- src/views/tool/datasource.vue | 26 +- src/views/wel.vue | 22 +- yarn.lock | 107 +- 147 files changed, 1170 insertions(+), 11789 deletions(-) delete mode 100644 public/cdn/avue/2.0.0/avue.min.js delete mode 100755 public/cdn/avue/2.0.0/index.css create mode 100644 public/cdn/avue/2.5.0/avue.min.js create mode 100644 public/cdn/avue/2.5.0/index.css create mode 100644 public/cdn/element-ui/2.12.0/index.js rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/alert.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/aside.css (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/autocomplete.css create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/avatar.css create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/backtop.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/badge.css (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/base.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/breadcrumb-item.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/breadcrumb.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/button-group.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/button.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/calendar.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/card.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/carousel-item.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/carousel.css (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/cascader-panel.css create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/cascader.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/checkbox-button.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/checkbox-group.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/checkbox.css (66%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/col.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/collapse-item.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/collapse.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/color-picker.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/container.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/date-picker.css (74%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/dialog.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/display.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/divider.css (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/drawer.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/dropdown-item.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/dropdown-menu.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/dropdown.css (84%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/fonts/element-icons.ttf (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/fonts/element-icons.woff (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/footer.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/form-item.css (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/form.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/header.css (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/icon.css create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/image.css create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/index.css rename public/cdn/element-ui/{2.8.2/theme-chalk/menu-item-group.css => 2.12.0/theme-chalk/infinite-scroll.css} (100%) rename public/cdn/element-ui/{2.8.2/theme-chalk/menu-item.css => 2.12.0/theme-chalk/infiniteScroll.css} (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/input-number.css create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/input.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/link.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/loading.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/main.css (100%) rename public/cdn/element-ui/{2.8.2/theme-chalk/submenu.css => 2.12.0/theme-chalk/menu-item-group.css} (100%) rename public/cdn/element-ui/{2.8.2/theme-chalk/tab-pane.css => 2.12.0/theme-chalk/menu-item.css} (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/menu.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/message-box.css (60%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/message.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/notification.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/option-group.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/option.css (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/page-header.css create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/pagination.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/popover.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/popper.css (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/progress.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/radio-button.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/radio-group.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/radio.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/rate.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/reset.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/row.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/scrollbar.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/select-dropdown.css (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/select.css create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/slider.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/spinner.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/step.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/steps.css (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/submenu.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/switch.css (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/tab-pane.css create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/table-column.css create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/table.css create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/tabs.css create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/tag.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/time-picker.css (65%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/time-select.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/timeline-item.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/timeline.css (100%) rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/tooltip.css (100%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/transfer.css rename public/cdn/element-ui/{2.8.2 => 2.12.0}/theme-chalk/tree.css (66%) create mode 100644 public/cdn/element-ui/2.12.0/theme-chalk/upload.css delete mode 100644 public/cdn/element-ui/2.8.2/index.js delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/autocomplete.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/base.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/cascader.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/form.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/icon.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/image.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/index.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/input-number.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/input.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/message.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/pagination.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/progress.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/select.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/slider.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/table-column.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/table.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/tabs.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/tag.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/transfer.css delete mode 100644 public/cdn/element-ui/2.8.2/theme-chalk/upload.css delete mode 100644 public/cdn/vue/2.5.2/vue.min.js create mode 100644 public/cdn/vue/2.6.10/vue.min.js delete mode 100644 public/cdn/vuex/2.4.1/vuex.min.js create mode 100644 public/cdn/vuex/3.1.1/vuex.min.js create mode 100644 src/api/system/post.js create mode 100644 src/views/system/post.vue diff --git a/LICENSE b/LICENSE index 1481eda..5533663 100644 --- a/LICENSE +++ b/LICENSE @@ -176,7 +176,7 @@ recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2019 ZhuangQian (smallchill@163.com) + Copyright 2020 BladeX (https://bladex.vip) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 75748c0..d7dd428 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@

- Downloads + Downloads Build Status Build Status - Coverage Status - Downloads + Coverage Status + Downloads Downloads @@ -64,6 +64,7 @@ SpringBlade * Saber-基于Vue:[https://saber.bladex.vip](https://saber.bladex.vip) * Sword-基于React:[https://sword.bladex.vip](https://sword.bladex.vip) * Archer-全能代码生成系统:[https://archer.bladex.vip](https://archer.bladex.vip) +* Caster-数据大屏展示系统:[https://data.avuejs.com](https://data.avuejs.com) ## 技术文档 * [SpringBlade开发手册一览](https://gitee.com/smallc/SpringBlade/wikis/SpringBlade开发手册) diff --git a/package.json b/package.json index bfbb794..c807a20 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "saber-admin", - "version": "2.6.2", + "version": "2.7.0", "private": true, "scripts": { "serve": "vue-cli-service serve", @@ -14,18 +14,18 @@ "axios": "^0.18.0", "babel-polyfill": "^6.26.0", "classlist-polyfill": "^1.2.0", - "element-ui": "^2.8.2", + "element-ui": "^2.12.0", "js-base64": "^2.5.1", "js-cookie": "^2.2.0", "mockjs": "^1.0.1-beta3", "node-gyp": "^5.0.6", "nprogress": "^0.2.0", "script-loader": "^0.7.2", - "vue": "^2.5.16", + "vue": "^2.6.10", "vue-axios": "^2.1.2", "vue-i18n": "^8.7.0", "vue-router": "^3.0.1", - "vuex": "^3.0.1" + "vuex": "^3.1.1" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.1.1", diff --git a/public/cdn/avue/2.0.0/avue.min.js b/public/cdn/avue/2.0.0/avue.min.js deleted file mode 100644 index 5e7e9f3..0000000 --- a/public/cdn/avue/2.0.0/avue.min.js +++ /dev/null @@ -1,8 +0,0 @@ -/*! - * Avue.js v2.0.0 - * (c) 2017-2019 Smallwei - * Released under the MIT License. - * - */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("Vue")):"function"==typeof define&&define.amd?define("AVUE",["Vue"],e):"object"==typeof exports?exports.AVUE=e(require("Vue")):t.AVUE=e(t.Vue)}(this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=146)}([function(t,e){t.exports=function(t,e,n,i,r,a){var o,l=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(o=t,l=t.default);var u="function"==typeof l?l.options:l;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r);var c;if(a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=i),c){var d=u.functional,f=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),f(t,e)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:o,exports:l,options:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.name=a.KEY_COMPONENT_NAME+t.name,t.mixins=t.mixins||[],t.mixins.push(r.default),t};var i=n(150),r=function(t){return t&&t.__esModule?t:{default:t}}(i),a=n(32)},function(t,e,n){"use strict";(function(t){function i(){for(var t=arguments.length,e=Array(t),n=0;n=a)return t;switch(t){case"%s":return String(e[i++]);case"%d":return Number(e[i++]);case"%j":try{return JSON.stringify(e[i++])}catch(t){return"[Circular]"}break;default:return t}}),l=e[i];i1&&void 0!==arguments[1]?arguments[1]:2;return Number(t.toFixed(e))}Object.defineProperty(e,"__esModule",{value:!0}),e.vaildData=e.getPasswordChar=e.findArray=e.filterForm=e.getObjValue=e.getDeepData=e.findByValue=e.detailDic=e.setPx=e.sortArrys=e.deepClone=e.isJson=e.getObjType=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.hasOwn=i,e.getFixed=r;var o=n(9),l=Object.prototype.hasOwnProperty,s=e.getObjType=function(t){var e=Object.prototype.toString,n={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return t instanceof Element?"element":n[e.call(t)]},u=(e.isJson=function(t){return Array.isArray(t)?t[0]instanceof Object:t instanceof Object},e.deepClone=function t(e){var n,i=s(e);if("array"===i)n=[];else{if("object"!==i)return e;n={}}if("array"===i)for(var r=0,a=e.length;rn[e]?-1:t[e]1&&void 0!==arguments[1]?arguments[1]:"";return(0,o.validatenull)(t)&&(t=e),(0,o.validatenull)(t)?"":(t+="",-1===t.indexOf("%")&&(t+="px"),t)},e.detailDic=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],r=n.value||"value",a=n.children||"children";return e.forEach(function(e){"number"===i?e[r]=Number(e[r]):"string"===i&&(e[r]=e[r]+""),e[a]&&t(e[a],n,i)}),e},""),c=(e.findByValue=function t(e,n,i,r,l,s){i=i||{};var c=i.label||"label",f=i.value||"value",p=i.children||"children";if(r&&(u=n),(0,o.validatenull)(e))return u;if(["string","number","boolean"].includes(void 0===n?"undefined":a(n)))for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],i=e.split("."),r=t;return""===i[0]&&"object"!==n?c(t):(""!==i[0]&&i.forEach(function(t){r=r[t]}),r)},e.filterForm=function(t){var e={};return Object.keys(t).forEach(function(n){(0,o.validatenull)(t[n])||(e[n]=t[n])}),e},e.findArray=function(t,e,n){n=n||"value";for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1],n=t.toString().length;t="";for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(i,r){new a.default(t).validate(e,n,function(t){t?r(t):i()})})}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={sumText:"合 计",menuWidth:240,menuXsWidth:100,menuAlign:"center",headerAlign:"left",cancelBtnIcon:"el-icon-delete",viewBtnIcon:"el-icon-view",editBtnIcon:"el-icon-edit",addBtnIcon:"el-icon-plus",printBtnIcon:"el-icon-plus",excelBtnIcon:"el-icon-plus",delBtnIcon:"el-icon-delete",searchBtnIcon:"el-icon-search",emptyBtnIcon:"el-icon-delete",saveBtnIcon:"el-icon-check",columnBtnIcon:"el-icon-menu",filterBtnIcon:"el-icon-tickets",refreshBtnIcon:"el-icon-refresh",searchBoxBtnIcon:"el-icon-search",viewBtn:!1,editBtn:!0,cancelBtn:!0,addBtn:!0,addRowBtn:!1,printBtn:!1,excelBtn:!1,delBtn:!0,cellBtn:!1,dateBtn:!1,refreshBtn:!0,columnBtn:!0,filterBtn:!1,searchBtn:!0,menuBtn:!1,searchSubBtn:!0,searchResetBtn:!0,selectClearBtn:!0,searchShow:!0,tip:!0,dialogHeight:400,dialogWidth:"60%",formFullscreen:!1,customClass:"",pageBackground:!0,page:!0,menu:!0,indexLabel:"#",filterMultiple:!0,calcHeight:300,title:"表格标题",width:"100%",dateDefault:!0,searchMultiple:["checkbox","tree","select"]}},function(t,e,n){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:[];return t.forEach(function(e,n){if(e.cascaderItem){var r=[].concat(i(e.cascaderItem)),a=e.prop;t[n].cascader=[].concat(i(r)),r.forEach(function(o,l){var s=n+l+1;t[s].parentProp=a,t[s].cascaderChange=e.cascaderChange,t[s].cascader=[].concat(i(r)).splice(l+1),a=t[s].prop})}}),t},0),l=(e.calcCount=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&(o=0);return o=o+(t.span||e)+(t.offset||0),24===o?o=0:o>24?o=0+(t.span||e)+(t.offset||0):t.row&&24!==o&&(t.count=24-o,o=0),t},e.dateList=["dates","date","datetime","datetimerange","daterange","week","month","dategrpup","year"]);e.initVal=function(t){var e=t.type,n=t.multiple,i=t.dataType,a=t.value;if(["select","tree"].includes(e)&&n||["checkbox","cascader","dynamic","upload"].includes(e)){if(Array.isArray(a))return a;if((0,r.validatenull)(a))return[];var o=(a||"").split(",")||[];return"number"===i?o.map(function(t){return Number(t)}):o}return a},e.getCellType=function(t){var e="input";return["select","radio","checkbox"].includes(t)?e="select":["time","timerange"].includes(t)?e="time":l.includes(t)?e="date":["cascader"].includes(t)?e="cascader":["number"].includes(t)?e="input-number":["switch"].includes(t)&&(e="switch"),a.KEY_COMPONENT_NAME+e},e.getSearchType=function(t){var e="input";return["select","radio","checkbox","switch"].includes(t)?e="select":["time","timerange"].includes(t)?e="time":l.includes(t)?e="date":["cascader"].includes(t)?e="cascader":["number"].includes(t)&&(e="input-number"),a.KEY_COMPONENT_NAME+e},e.getComponent=function(t,e){var n="input";return(0,r.validatenull)(e)?"select"===t?n="select":"radio"===t?n="radio":"checkbox"===t?n="checkbox":["time","timerange"].includes(t)?n="time":["dates","date","datetime","datetimerange","daterange","week","month","dategrpup","year"].includes(t)?n="date":"cascader"===t?n="cascader":"number"===t?n="input-number":"password"===t?n="input":"switch"===t?n="switch":"rate"===t?n="rate":"upload"===t?n="upload":"silder"===t?n="silder":"dynamic"===t?n="dynamic":"icon-select"===t?n="icon-select":"color"===t&&(n="color"):n=e,a.KEY_COMPONENT_NAME+n},e.formInitVal=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e={},n={};return t.forEach(function(t){"checkbox"===t.type||"cascader"===t.type||"dynamic"===t.type||"dates"===t.type||"upload"===t.type&&"picture-img"!==t.listType||t.multiple||t.range||"array"===t.dataType?(e[t.prop]=[],t.search&&(n[t.prop]=[])):["number","rate","silder"].includes(t.type)||"number"===t.dataType?(e[t.prop]=0,t.search&&(n[t.prop]=0)):(e[t.prop]="",t.search&&(n[t.prop]="")),(0,r.validatenull)(t.valueDefault)||(e[t.prop]=t.valueDefault),(0,r.validatenull)(t.searchDefault)||(n[t.prop]=t.searchDefault)}),{tableForm:e,searchForm:n}},e.getPlaceholder=function(t,e){var n=t.placeholder,i=t.label;if("search"===e){var a=t.searchPlaceholder;return(0,r.validatenull)(a)?i:a}return(0,r.validatenull)(n)?["select","checkbox","radio","tree"].includes(t.type)?this.t("tip.select")+" "+i:this.t("tip.input")+" "+i:n},e.getType=function(t){var e=t.type;return t.more||!1?"date"===e?"daterange":"datetime"===e?"datetimerange":"time"===e?"timerange":e:e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(53);!function(t){t&&t.__esModule}(i);e.default=function(){return{logs:function(t){}}}()},function(t,e,n){var i=n(16),r=n(26);t.exports=n(17)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(25),r=n(55),a=n(35),o=Object.defineProperty;e.f=n(17)?Object.defineProperty:function(t,e,n){if(i(t),e=a(e,!0),i(n),r)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(58),r=n(36);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(39)("wks"),r=n(29),a=n(10).Symbol,o="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=o&&a[t]||(o?a:r)("Symbol."+t))}).store=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e="crud"===t;return{props:{option:{type:Object,required:!0,default:function(){return{}}}},watch:{option:{handler:function(){this.init()},deep:!0}},data:function(){return{DIC:{},cascaderDIC:{},tableOption:{},isMobile:""}},created:function(){this.init()},computed:{menuType:function(){return this.tableOption.menuType||this.$AVUE.menuType||"button"},isMediumSize:function(){return"medium"===this.controlSize?"small":this.controlSize},controlSize:function(){return this.tableOption.size||(this.$AVUE||{}).size||"medium"}},methods:{getKey:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];return t[e[n]||(this.parentOption.props||{})[n]||n]},getIsMobile:function(){this.isMobile=window.document.body.clientWidth<=768},init:function(){var t=this;this.tableOption=this.option,this.getIsMobile(),window.onresize=function(){t.getIsMobile()},this.rulesInit&&(e?this.propOption:this.columnOption).forEach(function(e){t.rulesInit(e.column)}),setTimeout(function(){t.initDic()},0)},initDic:function(){var t=this;e?this.propOption.forEach(function(e){Array.isArray(e.dicData)&&t.$set(t.DIC,e.prop,e.dicData)}):this.columnOption.forEach(function(e){(e.column||[]).forEach(function(e){Array.isArray(e.dicData)&&t.$set(t.DIC,e.prop,e.dicData)})})},handleLoadDic:function(t){var e=this;return new Promise(function(n){if(e.vaildData(e.tableOption.dicFlag,!0))(0,i.loadDic)(t||e.tableOption).then(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(t).forEach(function(n){e.$set(e.DIC,n,t[n])}),n()});else{var r=e.tableOption.dicData||[];e.DIC=e.deepClone(r),n()}})},handleLoadCascaderDic:function(t,n){var r=this;(0,i.loadCascaderDic)(t||(e?this.propOption:this.columnOption),this.data||[n]).then(function(e){t?Object.keys(e).forEach(function(t){r.$set(r.cascaderDIC,t,e)}):r.cascaderDIC=r.deepClone(e)})}}}};var i=n(24)},function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";function i(t){var e=t.url,n=void 0===e?"":e,i=t.column,r=void 0===i?[]:i,a=t.props,o=void 0===a?{}:a,s=[],u={};return r.forEach(function(t){var e=t.dicData,i=t.dicUrl,r=t.prop;!1!==t.dicFlag&&(Array.isArray(e)?u[r]=e:(0,l.validatenull)(i)||s.push({url:i||n,name:e||r,method:t.dicMethod,props:t.props,dataType:t.dataType,resKey:(t.props||{}).res||(o||{}).res,query:t.dicQuery}))}),{ajaxdic:s,locationdic:u}}function r(t){var e={},n=[];return new Promise(function(i){t.forEach(function(t){n.push(new Promise(function(e){u(Object.assign(t,{url:""+t.url.replace("{{key}}","")})).then(function(n){n=(0,s.detailDic)(n,t.props,t.dataType),e(n)})}))}),Promise.all(n).then(function(n){t.forEach(function(t,i){e[t.name]=n[i]}),i(e)})})}Object.defineProperty(e,"__esModule",{value:!0}),e.sendDic=e.loadDic=e.loadCascaderDic=void 0;var a=n(14),o=function(t){return t&&t.__esModule?t:{default:t}}(a),l=n(9),s=n(6),u=(e.loadCascaderDic=function(t,e){return new Promise(function(n,i){var r=[],a=[],o={};t.forEach(function(t){t.parentProp&&r.push(t)}),e.forEach(function(t,e){r.forEach(function(n){a.push(new Promise(function(i){(0,l.validatenull)(t[n.parentProp])?i({prop:n.prop,data:[],index:e}):u(Object.assign({url:""+n.dicUrl.replace("{{key}}",t[n.parentProp])},{resKey:(n.props||{}).res,method:n.dicMethod,query:n.dicQuery})).then(function(t){i({prop:n.prop,data:t,index:e})})}))})}),Promise.all(a).then(function(t){t.forEach(function(t){(0,l.validatenull)(o[t.index])&&(o[t.index]={}),o[t.index][t.prop]=t.data}),n(o)})})},e.loadDic=function(t){var e={},n={},a=[];return new Promise(function(s,u){e=t.dicData||{};var c=i(t);e=Object.assign(e,c.locationdic),a=c.ajaxdic,(0,l.validatenull)(e)&&(0,l.validatenull)(a)&&s(),window.axios||(0,l.validatenull)(a)||(o.default.logs("axios"),s()),r(a).then(function(t){n=t,s(Object.assign(e,n))}).catch(function(t){u(t)})})},e.sendDic=function(t){var e=t.url,n=t.query,i=t.method,r=t.resKey;return new Promise(function(t){var a=function(e){var n=(0,s.getObjValue)(e.data,r);t(n)};"post"===i?window.axios.post(e,n).then(function(t){a(t)}).catch(function(){return[t([])]}):window.axios.get(e,{params:n}).then(function(t){a(t)}).catch(function(){return[t([])]})})})},function(t,e,n){var i=n(22);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(57),r=n(40);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e){t.exports=!0},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(172),a=i(r),o=n(184),l=i(o),s="function"==typeof l.default&&"symbol"==typeof a.default?function(t){return typeof t}:function(t){return t&&"function"==typeof l.default&&t.constructor===l.default&&t!==l.default.prototype?"symbol":typeof t};e.default="function"==typeof l.default&&"symbol"===s(a.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof l.default&&t.constructor===l.default&&t!==l.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.KEY_COMPONENT_NAME="avue-",e.KEY_ECHART_NAME="echart-"},function(t,e,n){"use strict";function i(t,e){return l.call(t,e)}function r(t){return null!==t&&"object"===(void 0===t?"undefined":o(t))&&i(t,"componentOptions")}function a(t){return"object"===("undefined"==typeof HTMLElement?"undefined":o(HTMLElement))?function(){return t instanceof HTMLElement}():function(){return t&&"object"===(void 0===t?"undefined":o(t))&&1===t.nodeType&&"string"==typeof t.nodeName}()}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.hasOwn=i,e.isVNode=r,e.isDom=a;var l=Object.prototype.hasOwnProperty},function(t,e,n){var i=n(10),r=n(21),a=n(166),o=n(15),l=n(11),s=function(t,e,n){var u,c,d,f=t&s.F,p=t&s.G,h=t&s.S,m=t&s.P,v=t&s.B,y=t&s.W,b=p?r:r[e]||(r[e]={}),g=b.prototype,_=p?i:h?i[e]:(i[e]||{}).prototype;p&&(n=e);for(u in n)(c=!f&&_&&void 0!==_[u])&&l(b,u)||(d=c?_[u]:n[u],b[u]=p&&"function"!=typeof _[u]?n[u]:v&&c?a(d,i):y&&_[u]==d?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):m&&"function"==typeof d?a(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[u]=d,t&s.R&&g&&!g[u]&&o(g,u,d)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var i=n(22);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(39)("keys"),r=n(29);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){var i=n(21),r=n(10),a=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(28)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){t.exports={}},function(t,e,n){var i=n(16).f,r=n(11),a=n(19)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e,n){e.f=n(19)},function(t,e,n){var i=n(10),r=n(21),a=n(28),o=n(44),l=n(16).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||l(e,t,{value:o.f(t)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.detail=void 0;var i=n(9),r=n(6),a=n(71),o=function(t){return t&&t.__esModule?t:{default:t}}(a);e.detail=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],l=t[e.prop||e.value],s=e.type;if((0,i.validatenull)(l)&&(l=""),e.formatter&&"function"==typeof e.formatter&&(l=e.formatter(t,t[e.prop],l,e)),!(0,i.validatenull)(l)&&["date","time","datetime"].includes(s)&&e.format){var u=e.format.replace("dd","DD").replace("yyyy","YYYY");l=(0,o.default)(l).format(u)}return["password"].includes(s)&&(l=(0,r.getPasswordChar)(l,"*")),(0,i.validatenull)(a)||(l=(0,r.findByValue)(a,l,e.props||n.props,!0,["cascader"].includes(e.type))),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(t){return t&&t.__esModule?t:{default:t}}(i),a=n(33);e.default=(0,r.default)({name:"affix",props:{id:{},offsetTop:{type:Number,default:0},offsetBottom:{type:Number}},data:function(){return{affix:!1,styles:{},slot:!1,slotStyle:{}}},computed:{parent:function(){return this.validatenull(this.id)?window:(0,a.isDom)(this.id)?this.id:window.document.getElementById(this.id)},offsetType:function(){var t="top";return this.offsetBottom>=0&&(t="bottom"),t}},mounted:function(){this.parent.addEventListener("scroll",this.handleScroll,!1),this.parent.addEventListener("resize",this.handleScroll,!1)},beforeDestroy:function(){this.parent.removeEventListener("scroll",this.handleScroll,!1),this.parent.removeEventListener("resize",this.handleScroll,!1)},methods:{getScroll:function(t,e){var n=e?"pageYOffset":"pageXOffset",i=e?"scrollTop":"scrollLeft",r=t[n];return"number"!=typeof r&&(r=window.document.documentElement[i]),r},getOffset:function(t){var e=t.getBoundingClientRect(),n=this.getScroll(this.parent,!0),i=this.getScroll(this.parent),r=window.document.body,a=r.clientTop||0,o=r.clientLeft||0;return{top:e.top+n-a,left:e.left+i-o}},handleScroll:function(){var t=this.affix,e=this.getScroll(window,!0),n=this.getOffset(this.$el),i=window.innerHeight,r=this.$el.getElementsByTagName("div")[0].offsetHeight;n.top-this.offsetTope&&"top"==this.offsetType&&t&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),n.top+this.offsetBottom+r>e+i&&"bottom"==this.offsetType&&!t?(this.affix=!0,this.styles={bottom:this.offsetBottom+"px",left:n.left+"px",width:this.$el.offsetWidth+"px"},this.$emit("on-change",!0)):n.top+this.offsetBottom+r0&&void 0!==arguments[0]?arguments[0]:{},e=this.list.length;this.list.push(this.deepClone(Object.assign(this.tableForm,{$cellEdit:!0,$index:e},t))),this.formIndexList.push(e)},rowCanel:function(t,e){if(this.validatenull(t[this.rowKey]))return void this.list.splice(e,1);this.formCascaderList[e].$cellEdit=!1,this.$set(this.list,e,this.formCascaderList[e]),this.$set(this.cascaderDIC,e,this.cascaderDicList[e]),this.formIndexList.splice(this.formIndexList.indexOf(e),1)},rowCellEdit:function(t,e){var n=this;t.$cellEdit=!0,this.$set(this.list,e,t),this.formCascaderList[e]=this.deepClone(t),this.cascaderDicList[e]=this.deepClone(this.cascaderDIC[e]),setTimeout(function(){n.formIndexList.push(e)},1e3)},rowCellUpdate:function(t,e){var n=this;this.asyncValidator(this.formCellRules,t).then(function(i){n.$refs.dialogForm.keyBtn=!0,n.$emit("row-update",t,e,function(){t.$cellEdit=!1,n.$set(n.list,e,t)},function(){n.$refs.dialogForm.keyBtn=!1})}).catch(function(t){n.$message.warning(t[0])})},rowAdd:function(){this.$refs.dialogForm.show("add")},rowClone:function(t){var e={};return Object.keys(t).forEach(function(n){["_parent","children"].includes(n)||(e[n]=t[n])}),e},searchChange:function(){this.$refs.headerSearch.searchChange()},searchReset:function(){this.$refs.headerSearch.searchReset()},rowExcel:function(){this.$refs.headerMenu.rowExcel()},rowPrint:function(){this.$refs.headerMenu.rowPrint()},rowEdit:function(t,e){this.tableForm=this.rowClone(t),this.$emit("input",this.tableForm),this.tableIndex=e,this.$refs.dialogForm.show("edit",e)},rowView:function(t,e){this.tableForm=this.rowClone(t),this.$emit("input",this.tableForm),this.tableIndex=e,this.$refs.dialogForm.show("view")},rowDel:function(t,e){this.$emit("row-del",t,e)},resetForm:function(){this.$refs.dialogForm.resetForm(),this.$emit("input",this.tableForm)},findColumnIndex:function(t){return this.findArray(this.propOption,t,"prop")},tableSpanMethod:function(t){if("function"==typeof this.spanMethod)return this.spanMethod(t)},tableSummaryMethod:function(t){var e=this;if("function"==typeof this.summaryMethod)return this.summaryMethod(t);var n=t.columns,i=t.data,r=[];return n.length>0&&n.forEach(function(t,n){var a=e.sumColumnList.find(function(e){return e.name===t.property});if(0===n)r[n]=e.tableOption.sumText||j.default.sumText;else if(a)switch(a.type){case"count":r[n]="计数:"+i.length;break;case"avg":var o=i.map(function(e){return Number(e[t.property])}),l=1;r[n]=o.reduce(function(t,e){var n=Number(e);return isNaN(n)?t:(t+e)/l++},0),r[n]="平均:"+r[n].toFixed(2);break;case"sum":var s=i.map(function(e){return Number(e[t.property])});r[n]=s.reduce(function(t,e){var n=Number(e);return isNaN(n)?t:t+e},0),r[n]="合计:"+r[n].toFixed(2)}else r[n]="-"}),this.sumsList=r,r}}})},function(t,e,n){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:"default",e="";switch(t){case"default":e="#35495E";break;case"primary":e="#3488ff";break;case"success":e="#43B883";break;case"warning":e="#e6a23c";break;case"danger":e="#f56c6c"}return e}Object.defineProperty(e,"__esModule",{value:!0});var a={};a.capsule=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"primary";console.log("%c "+t+" %c "+e+" %c","background:#35495E; padding: 1px; border-radius: 3px 0 0 3px; color: #fff;","background:"+r(n)+"; padding: 1px; border-radius: 0 3px 3px 0; color: #fff;","background:transparent")},a.colorful=function(t){var e;(e=console).log.apply(e,["%c"+t.map(function(t){return t.text||""}).join("%c")].concat(i(t.map(function(t){return"color: "+r(t.type)+";"}))))},a.default=function(t){a.colorful([{text:t}])},a.primary=function(t){a.colorful([{text:t,type:"primary"}])},a.success=function(t){a.colorful([{text:t,type:"success"}])},a.warning=function(t){a.colorful([{text:t,type:"warning"}])},a.danger=function(t){a.colorful([{text:t,type:"danger"}])},e.default=a},function(t,e,n){"use strict";e.__esModule=!0;var i=n(163),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default||function(t){for(var e=1;es;)i(l,n=e[s++])&&(~a(u,n)||u.push(n));return u}},function(t,e,n){var i=n(59);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(36);t.exports=function(t){return Object(i(t))}},function(t,e,n){"use strict";var i=n(28),r=n(34),a=n(62),o=n(15),l=n(42),s=n(176),u=n(43),c=n(179),d=n(19)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,h,m,v,y){s(n,e,h);var b,g,_,x=function(t){if(!f&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",O="values"==m,C=!1,M=t.prototype,S=M[d]||M["@@iterator"]||m&&M[m],k=S||x(m),j=m?O?x("entries"):k:void 0,$="Array"==e?M.entries||S:S;if($&&(_=c($.call(new t)))!==Object.prototype&&_.next&&(u(_,w,!0),i||"function"==typeof _[d]||o(_,d,p)),O&&S&&"values"!==S.name&&(C=!0,k=function(){return S.call(this)}),i&&!y||!f&&!C&&M[d]||o(M,d,k),l[e]=k,l[w]=p,m)if(b={values:O?k:x("values"),keys:v?k:x("keys"),entries:j},y)for(g in b)g in M||a(M,g,b[g]);else r(r.P+r.F*(f||C),e,b);return b}},function(t,e,n){t.exports=n(15)},function(t,e,n){var i=n(25),r=n(177),a=n(40),o=n(38)("IE_PROTO"),l=function(){},s=function(){var t,e=n(56)("iframe"),i=a.length;for(e.style.display="none",n(178).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(" - - + + - - + + diff --git a/src/api/system/post.js b/src/api/system/post.js new file mode 100644 index 0000000..614b8fc --- /dev/null +++ b/src/api/system/post.js @@ -0,0 +1,60 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/blade-system/post/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getPostList = (tenantId) => { + return request({ + url: '/api/blade-system/post/select', + method: 'get', + params: { + tenantId + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/blade-system/post/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/blade-system/post/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/blade-system/post/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/blade-system/post/submit', + method: 'post', + data: row + }) +} + diff --git a/src/api/system/user.js b/src/api/system/user.js index d85e3e8..28d2afd 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -37,6 +37,17 @@ export const update = (row) => { }) } +export const grant = (userIds, roleIds) => { + return request({ + url: '/api/blade-user/grant', + method: 'post', + params: { + userIds, + roleIds, + } + }) +} + export const getUser = (id) => { return request({ url: '/api/blade-user/detail', diff --git a/src/api/user.js b/src/api/user.js index 943ca37..199b59e 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -1,5 +1,6 @@ import request from '@/router/axios'; import {baseUrl} from '@/config/env'; +import website from "@/config/website"; export const loginByUsername = (tenantId, account, password, type, key, code) => request({ url: '/api/blade-auth/token', @@ -9,7 +10,7 @@ export const loginByUsername = (tenantId, account, password, type, key, code) => 'Captcha-Code': code, }, params: { - grantType: 'captcha', + grantType: (website.captchaMode ? "captcha" : "password"), tenantId, account, password, diff --git a/src/config/website.js b/src/config/website.js index 386e558..0f39005 100644 --- a/src/config/website.js +++ b/src/config/website.js @@ -7,6 +7,7 @@ export default { clientId: 'saber', // 客户端id clientSecret: 'saber_secret', // 客户端密钥 tenantMode: true, // 是否开启租户模式 + captchaMode: true, // 是否开启验证码模式 logo: "S", key: 'saber',//配置主键,目前用于存储 lockPage: '/lock', diff --git a/src/page/login/userlogin.vue b/src/page/login/userlogin.vue index 9e2ed04..d132996 100644 --- a/src/page/login/userlogin.vue +++ b/src/page/login/userlogin.vue @@ -39,7 +39,7 @@ class="icon-mima"> - + { - loading(); + done(); this.onLoad(this.page); this.$message({ type: "success", message: "操作成功!" }); }, error => { - done(); - console.log(error); + window.console.log(error); + loading(); }); }, - rowUpdate(row, index, loading, done) { + rowUpdate(row, index, done, loading) { update(row).then(() => { - loading(); + done(); this.onLoad(this.page); this.$message({ type: "success", message: "操作成功!" }); }, error => { - done(); - console.log(error); + window.console.log(error); + loading(); }); }, rowDel(row) { @@ -173,9 +179,11 @@ this.query = {}; this.onLoad(this.page); }, - searchChange(params) { + searchChange(params, done) { this.query = params; + this.page.currentPage = 1; this.onLoad(this.page, params); + done(); }, selectionChange(list) { this.selectionList = list; @@ -217,10 +225,12 @@ this.page.pageSize = pageSize; }, onLoad(page, params = {}) { + this.loading = true; getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { const data = res.data.data; this.page.total = data.total; this.data = data.records; + this.loading = false; }); } } diff --git a/src/views/monitor/log/api.vue b/src/views/monitor/log/api.vue index f211c2d..408f5b3 100644 --- a/src/views/monitor/log/api.vue +++ b/src/views/monitor/log/api.vue @@ -32,6 +32,10 @@ total: 0 }, option: { + height: 'auto', + calcHeight: 80, + searchShow: true, + searchMenuSpan: 6, tip: false, border: true, index: true, @@ -40,6 +44,7 @@ addBtn: false, delBtn: false, menuWidth: 120, + dialogType: 'drawer', column: [ { label: "服务id", @@ -108,9 +113,11 @@ this.query = {}; this.onLoad(this.page); }, - searchChange(params) { + searchChange(params, done) { this.query = params; + this.page.currentPage = 1; this.onLoad(this.page, params); + done(); }, beforeOpen(done, type) { if (["edit", "view"].includes(type)) { diff --git a/src/views/monitor/log/error.vue b/src/views/monitor/log/error.vue index 071c19a..e121a9f 100644 --- a/src/views/monitor/log/error.vue +++ b/src/views/monitor/log/error.vue @@ -32,6 +32,10 @@ total: 0 }, option: { + height: 'auto', + calcHeight: 80, + searchShow: true, + searchMenuSpan: 6, tip: false, border: true, index: true, @@ -40,6 +44,7 @@ addBtn: false, delBtn: false, menuWidth: 120, + dialogType: 'drawer', column: [ { label: "服务id", @@ -115,9 +120,11 @@ this.query = {}; this.onLoad(this.page); }, - searchChange(params) { + searchChange(params, done) { this.query = params; + this.page.currentPage = 1; this.onLoad(this.page, params); + done(); }, beforeOpen(done, type) { if (["edit", "view"].includes(type)) { diff --git a/src/views/monitor/log/usual.vue b/src/views/monitor/log/usual.vue index 3e79ced..b7a5fc3 100644 --- a/src/views/monitor/log/usual.vue +++ b/src/views/monitor/log/usual.vue @@ -32,6 +32,10 @@ total: 0 }, option: { + height: 'auto', + calcHeight: 80, + searchShow: true, + searchMenuSpan: 6, tip: false, border: true, index: true, @@ -40,6 +44,7 @@ addBtn: false, delBtn: false, menuWidth: 120, + dialogType: 'drawer', column: [ { label: "服务id", @@ -107,9 +112,11 @@ this.query = {}; this.onLoad(this.page); }, - searchChange(params) { + searchChange(params, done) { this.query = params; + this.page.currentPage = 1; this.onLoad(this.page, params); + done(); }, beforeOpen(done, type) { if (["edit", "view"].includes(type)) { diff --git a/src/views/system/client.vue b/src/views/system/client.vue index a22592b..444d683 100644 --- a/src/views/system/client.vue +++ b/src/views/system/client.vue @@ -1,6 +1,7 @@ @@ -38,6 +49,7 @@ return { form: {}, selectionList: [], + loading: true, query: {}, page: { pageSize: 10, @@ -45,12 +57,17 @@ total: 0 }, option: { + height: 'auto', + calcHeight: 80, + searchShow: true, + searchMenuSpan: 6, tip: false, tree: true, border: true, index: true, selection: true, viewBtn: true, + menuWidth: 300, column: [ { label: "部门名称", @@ -108,7 +125,6 @@ trigger: "click" }] }, - { label: "排序", prop: "sort", @@ -119,11 +135,11 @@ trigger: "blur" }] }, - { label: "备注", prop: "remark", span: 24, + hide: true, rules: [{ required: false, message: "请输入备注", @@ -136,7 +152,7 @@ }; }, computed: { - ...mapGetters(["permission"]), + ...mapGetters(["userInfo", "permission"]), permissionList() { return { addBtn: this.vaildData(this.permission.dept_add, false), @@ -154,30 +170,40 @@ } }, methods: { - rowSave(row, loading, done) { + handleAdd(row) { + this.$refs.crud.value.parentId = row.id; + this.$refs.crud.option.column.filter(item => { + if (item.prop === "parentId") { + item.value = row.id; + item.addDisabled = true; + } + }); + this.$refs.crud.rowAdd(); + }, + rowSave(row, done, loading) { add(row).then(() => { - loading(); + done(); this.onLoad(this.page); this.$message({ type: "success", message: "操作成功!" }); }, error => { - done(); - console.log(error); + window.console.log(error); + loading(); }); }, - rowUpdate(row, index, loading, done) { + rowUpdate(row, index, done, loading) { update(row).then(() => { - loading(); + done(); this.onLoad(this.page); this.$message({ type: "success", message: "操作成功!" }); }, error => { - done(); - console.log(error); + window.console.log(error); + loading(); }); }, rowDel(row) { @@ -223,9 +249,11 @@ this.query = {}; this.onLoad(this.page); }, - searchChange(params) { + searchChange(params, done) { this.query = params; + this.page.currentPage = 1; this.onLoad(this.page, params); + done(); }, selectionChange(list) { this.selectionList = list; @@ -245,12 +273,13 @@ this.page.pageSize = pageSize; }, onLoad(page, params = {}) { + this.loading = true; getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { this.data = res.data.data; + this.loading = false; getDeptTree().then(res => { - const data = res.data.data; - const index = this.$refs.crud.findColumnIndex("parentId"); - this.option.column[index].dicData = data; + const column = this.findObject(this.option.column, "parentId"); + column.dicData = res.data.data; }); }); } diff --git a/src/views/system/dict.vue b/src/views/system/dict.vue index 807b939..cd0e477 100644 --- a/src/views/system/dict.vue +++ b/src/views/system/dict.vue @@ -1,6 +1,7 @@ + @@ -37,6 +48,7 @@ return { form: {}, selectionList: [], + loading: true, query: {}, page: { pageSize: 10, @@ -44,12 +56,17 @@ total: 0 }, option: { + height: 'auto', + calcHeight: 80, + searchShow: true, + searchMenuSpan: 6, tip: false, tree: true, border: true, index: true, selection: true, viewBtn: true, + menuWidth: 300, column: [ { label: "字典编号", @@ -120,7 +137,7 @@ }; }, computed: { - ...mapGetters(["permission"]), + ...mapGetters(["userInfo", "permission"]), permissionList() { return { addBtn: this.vaildData(this.permission.dict_add, false), @@ -138,30 +155,45 @@ } }, methods: { - rowSave(row, loading, done) { + handleAdd(row) { + this.$refs.crud.value.code = row.code; + this.$refs.crud.value.parentId = row.id; + this.$refs.crud.option.column.filter(item => { + if (item.prop === "code") { + item.value = row.code; + item.addDisabled = true; + } + if (item.prop === "parentId") { + item.value = row.id; + item.addDisabled = true; + } + }); + this.$refs.crud.rowAdd(); + }, + rowSave(row, done, loading) { add(row).then(() => { - loading(); + done(); this.onLoad(this.page); this.$message({ type: "success", message: "操作成功!" }); }, error => { - done(); - console.log(error); + window.console.log(error); + loading(); }); }, - rowUpdate(row, index, loading, done) { + rowUpdate(row, index, done, loading) { update(row).then(() => { - loading(); + done(); this.onLoad(this.page); this.$message({ type: "success", message: "操作成功!" }); }, error => { - done(); - console.log(error); + window.console.log(error); + loading(); }); }, rowDel(row) { @@ -185,9 +217,11 @@ this.query = {}; this.onLoad(this.page); }, - searchChange(params) { + searchChange(params, done) { this.query = params; + this.page.currentPage = 1; this.onLoad(this.page, params); + done(); }, selectionChange(list) { this.selectionList = list; @@ -229,12 +263,13 @@ this.page.pageSize = pageSize; }, onLoad(page, params = {}) { + this.loading = true; getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { this.data = res.data.data; + this.loading = false; getDictTree().then(res => { - const data = res.data.data; - const index = this.$refs.crud.findColumnIndex("parentId"); - this.option.column[index].dicData = data; + const column = this.findObject(this.option.column, "parentId"); + column.dicData = res.data.data; }); }); } diff --git a/src/views/system/menu.vue b/src/views/system/menu.vue index 470f59b..37bd4c4 100644 --- a/src/views/system/menu.vue +++ b/src/views/system/menu.vue @@ -1,6 +1,7 @@ +