app.1d06dc3d.js 11 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{0:function(e,t,n){n("db4d"),e.exports=n("56d7")},"24ab":function(e,t,n){e.exports={theme:"#63cbe7"}},"56d7":function(e,t,n){"use strict";n.r(t);var o={},r=(t=(n.r(o),n.d(o,"parseTime",(function(){return d})),n.d(o,"formatTime",(function(){return f})),n.d(o,"timeAgo",(function(){return m})),n.d(o,"numberFormatter",(function(){return b})),n.d(o,"toThousandFilter",(function(){return g})),n.d(o,"uppercaseFirst",(function(){return _})),n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("a434"),n("2ca0"),n("fb6a"),n("d3b7"),n("159b"),n("b64b"),n("4de4"),n("3ca3"),n("ddb0"),VueRouter),new t({mode:"hash",base:"/",scrollBehavior:function(){return{y:0}},routes:[{path:"/",redirect:"/loadingPage"},{path:"/loadingPage",component:function(){return n.e("chunk-4ff11544").then(n.bind(null,"7e10"))},hidden:!0},{path:"/test-good-share",component:function(){return n.e("chunk-5bbfac1e").then(n.bind(null,"1e21"))},hidden:!0},{path:"/good-share",component:function(){return n.e("chunk-5bbfac1e").then(n.bind(null,"1e21"))},hidden:!0}]})),a=t.prototype.push,i=(t=(t.prototype.push=function(e){return a.call(this,e).catch((function(e){return e}))},Vue.use(t),r),r=(n("f5df1"),n("e05f"),n("6944")),r=n.n(r),n("5c96")),u=(i=n.n(i),n("0808"),n("24ab"),n("b20f"),n("1da1")),c=(n("96cf"),{name:"App",data:function(){return{code:""}},created:function(){return Object(u.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},methods:{}}),l=(n("5c0b"),n("2877")),s=Object(l.a)(c,(function(){var e=this.$createElement;e=this._self._c||e;return e("div",{attrs:{id:"app"}},[e("router-view")],1)}),[],!1,null,null,null).exports,p=(n("a9e3"),n("ac1f"),n("5319"),n("b680"),n("25f0"),n("53ca"));function d(e,t){if(0===arguments.length||!e)return null;t=t||"{y}-{m}-{d} {h}:{i}:{s}",e="object"===Object(p.a)(e)?e:("number"==typeof(e="string"==typeof e?/^[0-9]+$/.test(e)?parseInt(e):e.replace(new RegExp(/-/gm),"/"):e)&&10===e.toString().length&&(e*=1e3),new Date(e));var n={y:e.getFullYear(),m:e.getMonth()+1,d:e.getDate(),h:e.getHours(),i:e.getMinutes(),s:e.getSeconds(),a:e.getDay()};return t.replace(/{([ymdhisa])+}/g,(function(e,t){var o=n[t];return"a"===t?["日","一","二","三","四","五","六"][o]:o.toString().padStart(2,"0")}))}function f(e,t){e=10===(""+e).length?1e3*parseInt(e):+e;var n=new Date(e),o=(Date.now()-n)/1e3;return o<30?"刚刚":o<3600?Math.ceil(o/60)+"分钟前":o<86400?Math.ceil(o/3600)+"小时前":o<172800?"1天前":t?d(e,t):n.getMonth()+1+"月"+n.getDate()+"日"+n.getHours()+"时"+n.getMinutes()+"分"}function h(e,t){return 1===e?e+t:e+t+"s"}function m(e){return e=Date.now()/1e3-Number(e),e<3600?h(~~(e/60)," minute"):e<86400?h(~~(e/3600)," hour"):h(~~(e/86400)," day")}function b(e,t){for(var n=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],o=0;o<n.length;o++)if(e>=n[o].value)return(e/n[o].value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+n[o].symbol;return e.toString()}function g(e){return(+e||0).toString().replace(/^-?\d+/g,(function(e){return e.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function _(e){return e.charAt(0).toUpperCase()+e.slice(1)}n("00b4"),n("4d63"),n("2c3e"),n("4d90"),n("a15b"),n("d81d"),n("1276"),n("a630"),n("6062"),n("466d"),Vue.filter("money",(function(e){return parseFloat(e).toFixed(2)})),Vue.filter("num",(function(e){return parseInt(e)})),n("b0c0");var y=n("ffe0"),v=[];y.keys().forEach((function(e){var t=y(e);e.startsWith("./gRegion")||v.push(t.default||t)})),l={install:function(e){v.forEach((function(t){e.component(t.name,t)}))}},c=n("95ff"),c=n.n(c);Array.prototype.remove=function(e){e=this.indexOf(e),-1<e&&this.splice(e,1)},"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(e){return this.slice(0,e.length)===e}),Vue.use(r.a,{defaultOptions:{zIndex:9999}}),Vue.use(c.a),Vue.use(l),Object.keys(o).forEach((function(e){Vue.filter(e,o[e])})),Vue.config.productionTip=!1,Vue.use(i.a),window.vm=new Vue({router:t,render:function(e){return e(s)}}).$mount("#app")},"5c0b":function(e,t,n){"use strict";n("9c0c")},"8bbf":function(e,t){e.exports=Vue},"9c0c":function(e,t,n){},"9e53":function(e,t,n){"use strict";n.r(t),n("4de4"),n("d3b7"),n("a434");var o=n("53fe"),r=n.n(o);o={name:"ex-table",components:{"ex-slot":{functional:!0,props:{render:Function,scope:{type:Object,default:null},column:{type:Object,default:null}},render:function(e,t){return t.props.column&&(t.props.scope.column=t.props.column),t.props.render(e,t.props.scope)}}},props:{table:{type:Object,default:function(){}},data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},page:{type:[Boolean,Object],default:!1},conditions:{type:Array,default:function(){return[]}},isRowDrop:{type:Boolean,default:!1},isColDrop:{type:Boolean,default:!1},size:{type:String,default:"mini"}},computed:{screenColumns:function(){return this.columns.filter((function(e){return!0===e._screen_}))},setColumns:function(){return this.columns.filter((function(e){return!e._noset_}))},isHasScreenColumn:function(){return function(e){return this.conditions.some((function(t){return t.prop===e.prop}))}},page_curr:function(){return this.page.curr},page_size:function(){return this.page.size},page_total:function(){return this.page.total}},data:function(){return{tableSelection:[]}},watch:{page_curr:function(e){this.page.curr=e},page_size:function(e){this.page.size=e},page_total:function(e){this.page.total=e}},mounted:function(){this.rowDrop(),this.columnDrop()},directives:{drap:{inserted:function(e,t){e.onmousedown=function(n){var o=t.modifiers.parent?e.parentNode:e,r=document.body.offsetWidth,a=document.body.offsetHeight,i=o.offsetWidth,u=o.offsetHeight,c=n.clientX-o.offsetLeft,l=n.clientY-o.offsetTop;document.onmousemove=function(e){var n=e.clientX-c;e=e.clientY-l;t.modifiers.limit&&(n=r-i<(n=n<0?0:n)?r-i:n,e=a-u<(e=e<0?0:e)?a-u:e),o.style.left=n+"px",o.style.top=e+"px"},document.onmouseup=function(){document.onmousemove=null}}}}},methods:{arraySpanMethod:function(e){e.row,e.column,e.rowIndex,e.columnIndex},objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex;if(0===e.columnIndex)return t%2==0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}},handleSelectionChange:function(e){this.tableSelection=e,this.$emit("selection",{list:this.tableSelection})},rowDrop:function(){var e=this,t=document.querySelector(".el-table__body-wrapper > table > tbody");r.a.create(t,{disabled:!this.isRowDrop,ghostClass:"sortable-ghost",animation:180,delay:0,onEndevt:function(t){var n=e.data.splice(t.oldIndex,1)[0];e.data.splice(t.newIndex,0,n)}})},columnDrop:function(){var e=this,t=document.querySelector(".el-table__header-wrapper tr");r.a.create(t,{disabled:!this.isColDrop,ghostClass:"sortable-ghost",animation:180,delay:0,onEnd:function(t){var n=e.columns.splice(t.oldIndex,1)[0];e.columns.splice(t.newIndex,0,n)}})},getObjPrototype:function(e,t){return new Function("obj","return obj.".concat(t))(e)},doLayout:function(){var e;(e=this.$refs.elTable).doLayout.apply(e,arguments)},clearSelection:function(){var e;(e=this.$refs.elTable).clearSelection.apply(e,arguments)},toggleRowSelection:function(){var e;(e=this.$refs.elTable).toggleRowSelection.apply(e,arguments)},toggleAllSelection:function(){var e;(e=this.$refs.elTable).toggleAllSelection.apply(e,arguments)},setCurrentRow:function(){var e;(e=this.$refs.elTable).setCurrentRow.apply(e,arguments)},toggleRowExpansion:function(){var e;(e=this.$refs.elTable).toggleRowExpansion.apply(e,arguments)}}},n("e52d"),n("a2e6"),n=n("2877"),n=Object(n.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"table-header"},[e._l(e.table._defaultHeader_,(function(t,o){return["setcol"==t?n("el-dropdown",{key:o,staticClass:"setcol-table-lie",attrs:{placement:"bottom-end",trigger:"click","hide-on-click":!1}},[n("el-button",{attrs:{size:"mini"}},[e._v("列设置")]),n("el-dropdown-menu",{class:"ex-table-setcol-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.setColumns,(function(t,o){return[t._noset_?e._e():n("el-dropdown-item",{key:"setColumns"+o},[n("el-switch",{attrs:{"active-text":t.label,"active-value":!1,"inactive-value":!0},model:{value:t._hidden_,callback:function(n){e.$set(t,"_hidden_",n)},expression:"column._hidden_"}})],1)]}))],2)],1):e._e()]})),e._t("table-header",null,{selection:e.tableSelection,alldata:e.data})],2),n("el-table",e._g(e._b({ref:"elTable",staticStyle:{width:"100%"},attrs:{data:e.data,size:e.size,"span-method":e.arraySpanMethod,"row-key":"id"},on:{"selection-change":e.handleSelectionChange}},"el-table",e.table,!1),e.$listeners),[e._l(e.columns,(function(t,o){return[t._hidden_||!t.type||t._slot_?t._hidden_?e._e():n("el-table-column",e._b({key:o,attrs:{"show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(o){return[n("span",[e._v(e._s(t.label))]),t._screen_?n("span",{on:{click:function(n){return n.stopPropagation(),e.addConditionItemByCol(t,o)}}},[!1===t._screen_tip_?n("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(t)?"color:#3888e5;":""}):n("el-tooltip",{attrs:{effect:t._screen_tip_effect_||"dark",content:t._screen_tip_||"筛选",placement:t._screen_tip_placement_||"top"}},[n("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(t)?"color:#3888e5;":""})])],1):e._e()]}},{key:"default",fn:function(o){return t._slot_?e._t(t._slot_,null,{scope:o}):t._render_?[n("ex-slot",{attrs:{column:t,render:t._render_,scope:o}})]:[n("span",[e._v(e._s(t._format_?t._format_(o.row):e.getObjPrototype(o.row,t.prop)))])]}}],null,!0)},"el-table-column",t,!1)):n("el-table-column",e._b({key:o,attrs:{align:"center",width:"45px"}},"el-table-column",t,!1))]}))],2),!1!==e.page&&e.data&&0<e.data.length?n("div",{staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[n("el-pagination",{attrs:{"current-page":e.page.curr,"page-sizes":[15,50,100],"page-size":e.page.size,size:e.searchSize,layout:"total, sizes, prev, pager, next, jumper",total:e.page.total},on:{"size-change":function(t){return e.$emit("page-size-change",t)},"current-change":function(t){return e.$emit("page-curr-change",t)}}})],1):e._e()],1)}),[],!1,null,"e0cb0c92",null);t.default=n.exports},a2e6:function(e,t,n){"use strict";n("e8a1")},b20f:function(e,t,n){e.exports={menuText:"azure",menuActiveText:"#076c87",subMenuActiveText:"#076c87",menuBg:"#63cbe7",menuHover:"#63cbe7",subMenuBg:"#7ad3eb",subMenuHover:"#7ad3eb",sideBarWidth:"210px"}},ca3b:function(e,t,n){},e52d:function(e,t,n){"use strict";n("ca3b")},e8a1:function(e,t,n){},ffe0:function(e,t,n){var o={"./ex-table/main.vue":"9e53"};function r(e){return e=a(e),n(e)}function a(e){if(n.o(o,e))return o[e];throw(e=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",e}r.keys=function(){return Object.keys(o)},r.resolve=a,(e.exports=r).id="ffe0"}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);