From 40ed72a5fce3f87cd017531c77e60cc1f51644a2 Mon Sep 17 00:00:00 2001 From: smallchill Date: Sat, 1 Jun 2019 13:02:30 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E6=9B=B4=E6=96=B0avue=E8=87=B32.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 161 ++++++++++++++++++------------ public/cdn/avue/2.0.0/avue.min.js | 6 +- public/cdn/avue/2.0.0/index.css | 2 +- 3 files changed, 103 insertions(+), 66 deletions(-) diff --git a/README.md b/README.md index 738d1c9..d11f56f 100644 --- a/README.md +++ b/README.md @@ -1,58 +1,116 @@ +

+ Build Status + Coverage Status + Downloads +

-## 简介 -Saber 是 [SpringBlade](https://gitee.com/smallc/SpringBlade)前端UI项目,基于vue、vuex、avue、element-ui,用于快速构建系统中后台业务。 +## SpringBlade微服务开发平台 +* 采用前后端分离的模式,前端开源两个框架:[Sword](https://gitee.com/smallc/Sword) (基于 React、Ant Design)、[Saber](https://gitee.com/smallc/Saber) (基于 Vue、Element-UI) +* 后端采用SpringCloud全家桶,并同时对其基础组件做了高度的封装,单独开源出一个框架:[BladeTool](https://github.com/chillzhuang/blade-tool) +* [BladeTool](https://github.com/chillzhuang/blade-tool)已推送至Maven中央库,直接引入即可,减少了工程的臃肿,也可更注重于业务开发 +* 集成Sentinel从流量控制、熔断降级、系统负载等多个维度保护服务的稳定性。 +* 注册中心、配置中心选型Nacos,为工程瘦身的同时加强各模块之间的联动。 +* 使用Traefik进行反向代理,监听后台变化自动化应用新的配置文件。 +* 极简封装了多租户底层,用更少的代码换来拓展性更强的SaaS多租户系统。 +* 借鉴OAuth2,实现了多终端认证系统,可控制子系统的token权限互相隔离。 +* 借鉴Security,封装了Secure模块,采用JWT做Token认证,可拓展集成Redis等细颗粒度控制方案。 +* 稳定生产了一年,经历了从Camden -> Greenwich的技术架构,也经历了从fat jar -> docker -> k8s + jenkins的部署架构 +* 项目分包明确,规范微服务的开发模式,使包与包之间的分工清晰。 + +## 架构图 + + +## 工程结构 +``` +SpringBlade +├── blade-auth -- 授权服务提供 +├── blade-common -- 常用工具封装包 +├── blade-gateway -- Spring Cloud 网关 +├── blade-ops -- 运维中心 +├ ├── blade-admin -- spring-cloud后台管理 +├ ├── blade-develop -- 代码生成 +├── blade-service -- 业务模块 +├ ├── blade-desk -- 工作台模块 +├ ├── blade-log -- 日志模块 +├ ├── blade-system -- 系统模块 +├ └── blade-user -- 用户模块 +├── blade-service-api -- 业务模块api封装 +├ ├── blade-desk-api -- 工作台api +├ ├── blade-dict-api -- 字典api +├ ├── blade-system-api -- 系统api +└── └── blade-user-api -- 用户api +``` ## 官网 * 官网地址:[https://bladex.vip](https://bladex.vip) +* 问答社区:[https://sns.bladex.vip](https://sns.bladex.vip) +* 会员计划:[SpringBlade会员计划](https://gitee.com/smallc/SpringBlade/wikis/SpringBlade会员计划) +* 交流群:`477853168` ## 在线演示 * Sword演示地址:[https://sword.bladex.vip](https://sword.bladex.vip) * Saber演示地址:[https://saber.bladex.vip](https://saber.bladex.vip) -## 后端项目地址 -* [Gitee地址](https://gitee.com/smallc/SpringBlade) -* [Github地址](https://github.com/chillzhuang/SpringBlade) +## 项目地址 +* 后端Gitee地址:[https://gitee.com/smallc/SpringBlade](https://gitee.com/smallc/SpringBlade) +* 后端Github地址:[https://github.com/chillzhuang/SpringBlade](https://github.com/chillzhuang/SpringBlade) +* 后端SpringBoot版:[https://gitee.com/smallc/SpringBlade/tree/2.0-boot/](https://gitee.com/smallc/SpringBlade/tree/2.0-boot/) +* 前端框架Sword(基于React):[https://gitee.com/smallc/Sword](https://gitee.com/smallc/Sword) +* 前端框架Saber(基于Vue):[https://gitee.com/smallc/Saber](https://gitee.com/smallc/Saber) +* 核心框架项目地址:[https://github.com/chillzhuang/blade-tool](https://github.com/chillzhuang/blade-tool) -## 前端项目地址 -* [Sword--基于React](https://gitee.com/smallc/Sword) -* [Saber--基于Vue](https://gitee.com/smallc/Saber) - -## 特性 - -- 基于现有的element-ui库进行的二次封装,简化一些繁琐的操作,核心理念为数据驱动视图 -- 主要的组件库针对table表格和form表单场景,同时衍生出更多企业常用的组件,达到高复用,容易维护和扩展的框架 -- 同时内置了丰富了数据展示组件,让开发变得更加容易 - -## 支持环境 - -现代浏览器及 IE11。 - -| [IE / Edge](http://godban.github.io/browsers-support-badges/)
IE / Edge | [Firefox](http://godban.github.io/browsers-support-badges/)
Firefox | [Chrome](http://godban.github.io/browsers-support-badges/)
Chrome | [Safari](http://godban.github.io/browsers-support-badges/)
Safari | [Opera](http://godban.github.io/browsers-support-badges/)
Opera | -| --------- | --------- | --------- | --------- | --------- | -| IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions +## 技术文档 +* [SpringBlade开发手册](https://gitee.com/smallc/SpringBlade/wikis/SpringBlade开发手册) ## 用户权益 * 允许免费用于学习、毕设、公司项目、私活等。 * 代码文件需保留相关license信息。 - -## 禁止事项 -* 直接将本项目挂淘宝等商业平台出售。 -* 业务代码50%以上相似度的二次开源,二次开源需先联系作者。 - -注意:若禁止条款被发现有权追讨19999的授权费。 - -## 如何启动 -``` -$ git clone https://gitee.com/smallc/Saber.git -$ cd Saber -# 安装 -$ yarn install -# 启动 -$ yarn run serve -``` +* 禁止直接将本项目挂淘宝等商业平台出售。 +* 非界面代码50%以上相似度的二次开源,二次开源需先联系作者。 # 界面 -## Saber界面一览 + +## [BladeX](https://bladex.vip/#/vip) 工作流一览 + + + + + + + + + + + + + +
+ +## [Sword](https://gitee.com/smallc/Sword) 界面一览 + + + + + + + + + + + + + + + + + + + + + +
+ +## [Saber](https://gitee.com/smallc/Saber) 界面一览 @@ -96,26 +154,5 @@ $ yarn run serve
-## Sword界面一览 - - - - - - - - - - - - - - - - - - - - - -
+## 关注我们 +![](https://images.gitee.com/uploads/images/2019/0330/065148_f0ada806_410595.jpeg) diff --git a/public/cdn/avue/2.0.0/avue.min.js b/public/cdn/avue/2.0.0/avue.min.js index d3445d4..5e7e9f3 100644 --- a/public/cdn/avue/2.0.0/avue.min.js +++ b/public/cdn/avue/2.0.0/avue.min.js @@ -1,8 +1,8 @@ /*! - * Avuex.js v1.1.0-alpha.1 + * 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=148)}([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(152),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];in[e]?-1:t[e]1&&void 0!==arguments[1]?arguments[1]:"";return(0,a.validatenull)(t)&&(t=e),(0,a.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},""),u=(e.findByValue=function t(e,n,i,o,l,u){i=i||{};var d=i.label||"label",f=i.value||"value",p=i.children||"children";if(o&&(s=n),(0,a.validatenull)(e))return s;if(["string","number","boolean"].includes(void 0===n?"undefined":r(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?u(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,a.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(7),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(174),a=i(r),o=n(186),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(168),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(7),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(165),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(178),u=n(43),c=n(181),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(179),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(180).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("