ytg7vue 1.19.3 → 1.19.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/js/HdGrid.js CHANGED
@@ -1 +1 @@
1
- module.exports=function(e){function t(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,o){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=24)}([function(e,t){e.exports=function(e,t,i,o,n,r){var s,l=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(s=e,l=e.default);var d="function"==typeof l?l.options:l;t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),i&&(d.functional=!0),n&&(d._scopeId=n);var u;if(r?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},d._ssrRegister=u):o&&(u=o),u){var c=d.functional,h=c?d.render:d.beforeCreate;c?(d._injectStyles=u,d.render=function(e,t){return u.call(t),h(e,t)}):d.beforeCreate=h?[].concat(h,u):[u]}return{esModule:s,exports:l,options:d}}},function(e,t){function i(e,t){var i=e[1]||"",n=e[3];if(!n)return i;if(t&&"function"==typeof btoa){var r=o(n);return[i].concat(n.sources.map(function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"})).concat([r]).join("\n")}return[i].join("\n")}function o(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o=i(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},n=0;n<this.length;n++){var r=this[n][0];"number"==typeof r&&(o[r]=!0)}for(n=0;n<e.length;n++){var s=e[n];"number"==typeof s[0]&&o[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),t.push(s))}},t}},function(e,t,i){function o(e){for(var t=0;t<e.length;t++){var i=e[t],o=u[i.id];if(o){o.refs++;for(var n=0;n<o.parts.length;n++)o.parts[n](i.parts[n]);for(;n<i.parts.length;n++)o.parts.push(r(i.parts[n]));o.parts.length>i.parts.length&&(o.parts.length=i.parts.length)}else{for(var s=[],n=0;n<i.parts.length;n++)s.push(r(i.parts[n]));u[i.id]={id:i.id,refs:1,parts:s}}}}function n(){var e=document.createElement("style");return e.type="text/css",c.appendChild(e),e}function r(e){var t,i,o=document.querySelector("style["+v+'~="'+e.id+'"]');if(o){if(p)return g;o.parentNode.removeChild(o)}if(w){var r=f++;o=h||(h=n()),t=s.bind(null,o,r,!1),i=s.bind(null,o,r,!0)}else o=n(),t=l.bind(null,o),i=function(){o.parentNode.removeChild(o)};return t(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;t(e=o)}else i()}}function s(e,t,i,o){var n=i?"":o.css;if(e.styleSheet)e.styleSheet.cssText=b(t,n);else{var r=document.createTextNode(n),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function l(e,t){var i=t.css,o=t.media,n=t.sourceMap;if(o&&e.setAttribute("media",o),m.ssrId&&e.setAttribute(v,t.id),n&&(i+="\n/*# sourceURL="+n.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=i(4),u={},c=a&&(document.head||document.getElementsByTagName("head")[0]),h=null,f=0,p=!1,g=function(){},m=null,v="data-vue-ssr-id",w="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,i,n){p=i,m=n||{};var r=d(e,t);return o(r),function(t){for(var i=[],n=0;n<r.length;n++){var s=r[n],l=u[s.id];l.refs--,i.push(l)}t?(r=d(e,t),o(r)):r=[];for(var n=0;n<i.length;n++){var l=i[n];if(0===l.refs){for(var a=0;a<l.parts.length;a++)l.parts[a]();delete u[l.id]}}}};var b=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},function(e,t,i){"use strict";t.a={name:"BtnRight",data:function(){return{btnRight:!0}},created:function(){},methods:{getName:function(){},checkRight:function(){if(!this.$store)return!0;var e=this.$store.state.user.hidBtns,t=this.findNameCombine();if(!t)return!0;var i=this.$route.name;if(e&&e.length>0)for(var o=0;o<e.length;o++){var n=e[o];n.menuId==i&&t==n.permissions&&(this.btnRight=!1)}},addBtnMetaToParent:function(){if(!this.$route.meta.btnRole)return!1;var e=this.findNameCombine();if(!e)return!1;var t={name:this.getName(),permissions:e};this.checkIsSame(t)||this.$route.meta.btnRole.push(t)},checkIsSame:function(e){for(var t=this.$route.meta.btnRole,i=0;i<t.length;i++){if(t[i].permissions==e.permissions)return!0}return!1},findNameCombine:function(){if(this.vid)return this.vid;var e=this.$vnode.context,t=e.$options.name;return"HdFormDialog"==t&&(t=this.findNameFromFile(e.$vnode.context.$options.name)),t||(t="noname"),t+"_"+this.getName()},findNameFromFile:function(e){if(!e)return!1;var t=e.split("\\");return t[t.length-1].split(".")[0]},findRoleSetParent:function(){for(var e=this.$parent.$parent;e&&"btnRole"==!e.$options.name;)e=e.$parent;return e}}}},function(e,t){e.exports=function(e,t){for(var i=[],o={},n=0;n<t.length;n++){var r=t[n],s=r[0],l=r[1],a=r[2],d=r[3],u={id:e+":"+n,css:l,media:a,sourceMap:d};o[s]?o[s].parts.push(u):i.push(o[s]={id:s,parts:[u]})}return i}},function(e,t,i){"use strict";var o=i(7);t.a={name:"HdBtn",mixins:[o.a],data:function(){return{}},props:{noRoleManage:Boolean,keyMap:Array,keyType:String,hotKeyRange:{type:String,default:"hd-com-grid"},icon:String,hint:String,vid:String},created:function(){this.noRoleManage||this.$route&&this.$route.meta.btnRoleCheck&&this.addBtnMetaToParent()},mounted:function(){var e=this;this.$nextTick(function(){e.$refs.hdbtn&&e.$refs.hdbtn.referenceElm&&e.$refs.hdbtn.referenceElm.setAttribute("tabindex",-1)}),this.checkRight()},computed:{addTextProp:function(){return this.nowKeyMap&&2==this.nowKeyMap.length?"("+this.nowKeyMap[1].toUpperCase()+")":""},nowKeyMap:function(){return this.keyMap?this.keyMap:this.keyType&&this.$keyMap?this.$keyMap[this.keyType]:void 0}},methods:{getName:function(){return this.hint+"(-)"},handleClick:function(e){this.$emit("click",e)},click:function(e){void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled||this.handleClick(e)}}}},function(e,t){e.exports=require("babel-runtime/helpers/toConsumableArray")},function(e,t,i){"use strict";var o=i(3),n=i(0),r=n(o.a,null,!1,null,null,null);t.a=r.exports},function(e,t){e.exports=require("babel-runtime/core-js/object/assign")},function(e,t){e.exports=require("babel-runtime/core-js/json/stringify")},function(e,t,i){"use strict";var o=i(11),n=i.n(o),r=i(8),s=i.n(r),l=i(6),a=i.n(l),d=i(27),u=i(33),c=i(39),h=i(42),f=i(48),p=i(49),g=i(18),m=i(54);t.a={name:"HdGrid",components:{HdRightMenu:m.a,GridShow:d.a,PdfShow:h.a,GridExField:u.a,ExtendColumn:p.a,HdBtn:g.default},mixins:[c.a,f.a],data:function(){return{disCol:[],oriCol:[],chiCol:[],colThis:[],menuId:"",gridId:"",queryShow:!0,excelAllExporting:!1,pdfAllExporting:!1,gridShowIs:!1,exFieldShowIs:!1,pdfShowIs:!1,gridCanReload:!0,isGridCustom:!1,exFieldRows:[],rightMenuVisable:!1,rightMenuRow:[],lastSelectRow:null}},inheritAttrs:!1,props:{hdResult:Object,hdAllResult:Object,hdQuery:{type:Object,default:function(){return{}}},height:{type:String,default:function(){return"100%"}},noSets:{type:Boolean,default:function(){return!1}},defaultSort:{type:Object,default:function(){return{prop:"updTim",order:"descending"}}},pageHide:Boolean,ckHide:Boolean,indexHide:Boolean,recHide:Boolean,rowClassName:Function,noExcelExport:[Array],excelPropHeader:Boolean,visualScroll:Boolean,pageSizes:[Array],exField:{type:Object,default:function(){return{open:!1,table:null,columnList:null}}},excelFormatter:Function,addHide:Boolean,delHide:Boolean,saveHide:Boolean,copyHide:Boolean,hdBtnTool:{type:Boolean,default:!0},rightMenuOpen:{type:Boolean,default:!1}},created:function(){this.$parent.$vnode.context.$options._componentTag?this.gridId=this.$parent.$vnode.context.$options._componentTag+"_"+this.$parent.$parent.$options._componentTag:this.gridId=this.$parent.$vnode.context.$options.name+"_"+this.$parent.$parent.$options._componentTag},mounted:function(){this.hdQuery.doSort(this.defaultSort,!0);var e=localStorage.getItem("page_"+this.gridId);e&&(this.hdQuery.rows=parseInt(e)),this.pageHide&&(this.hdQuery.page=null,this.hdQuery.rows=null),this.visualScroll&&this.initVisual(),this.exField.gridCode&&this.initExFieldRows(),this.$nextTick(function(){this.noSets||this.gridShow(!0)})},methods:{doAdd:function(){this.$emit("sel-ok","doAdd")},doRemove:function(){this.$emit("sel-ok","doRemove")},doSave:function(){this.$emit("sel-ok","doSave")},doCopy:function(){this.$emit("sel-ok","doCopy")},doUpdateOne:function(){this.$emit("sel-ok","doUpdateOne",this.rightMenuRow)},doRemoveOne:function(){this.$emit("sel-ok","doRemoveOne",this.rightMenuRow)},doCopyOne:function(){this.$emit("sel-ok","doCopyOne",this.rightMenuRow)},gridShow:function(e){e||(this.gridCanReload=!1),this.$nextTick(function(){this.gridCanReload=!0,this.$nextTick(function(){var t=this;!e&&this.visualScroll&&(this.initVisual(),this.initTableHeight()),this.oriCol=this.$refs.ingrid.store.states._columns,this.menuId=this.$route.name;var i="/webresources/login/com/ComGridShow/find?menuId="+this.menuId+"&gridId="+this.gridId;this.$http.post(i).then(function(e){t.isGridCustom=0!=e.data.length,t.disCol=t.gridCompute(t.oriCol,e.data),t.$refs.ingrid.store.states._columns=t.disCol.filter(function(e){return"0"!=e.showFlg}),console.log("显示序列条数",t.$refs.ingrid.store.states._columns.length),t.$refs.ingrid.store.updateColumns(),t.$nextTick(function(){this.$refs.ingrid.doLayout()})})})})},exFieldShow:function(){window.location.reload()},gridSets:function(){var e=this;this.gridShowIs=!0,this.$nextTick(function(){e.$refs.gridShow.show(e.disCol,e.menuId,e.gridId)})},exFieldSets:function(){var e=this;this.exFieldShowIs=!0,this.$nextTick(function(){e.$refs.exFieldShow.show()})},gridCompute:function(e,t){for(var i=this,o=[],n=[],r=0;r<e.length;r++){var s=e[r];s.showFlg="1",s._ori_label=s.label,s.label=s._ori_label;var l=!1;if(!s||s.property){for(var d=0;d<t.length;d++)if(s.property==t[d].property){l=!0;break}l||n.push(s)}else"right"==s.fixed?o.push(e[r]):o.push(s)}for(var u=0;u<t.length;u++){(function(n){var r=t[n];if(o.some(function(e){return e.property==r.property}))return console.log("已经重复"+r.property),"continue";for(var s=0;s<e.length;s++){var l=e[s];if("checkBox"==l.className&&(i.$set(l,"fixed","left"),i.$set(l,"className","checkBox backFF")),"selection"!=l.type&&"index"!=l.type||(i.$set(l,"fixed","left"),i.$set(l,"className","backFF")),l.property&&r.property==l.property){i.$set(l,"showFlg",r.showFlg),i.$set(l,"freezeFlg",r.freezeFlg),"1"==r.freezeFlg&&(i.$set(l,"fixed","left"),i.$set(l,"className","backFF"+l.className)),l.width=r.width,o.push(l);break}}})(u)}return o=[].concat(a()(o),n)},extSets:function(e){"gridSets"==e&&this.gridSets(),"exFieldSets"==e?this.exFieldSets():"pageExcel"==e?this.doPageExcel():"allExcel"==e?this.doAllExcel():"allPdf"==e?this.doAllPdf():"queryToggle"==e&&(this.queryShow=!this.queryShow),this.$emit("extSets",e)},getHdComGrid:function(){for(var e=this.$parent;e;){if("HdComGrid"==e.$options.name)return e;e=e.$parent}return null},myselectionChange:function(e){this.hdQuery&&(this.hdQuery.selObj=e),this.$emit("selection-change",e,!0)},myrowClick:function(e,t,i){this.hdQuery&&(this.hdQuery.selRow=e)},myrowDblClick:function(e,t,i){this.$listeners["row-dblclick"]||1!=this.$route.path.indexOf("privilege")&&(this.$emit("sel-ok","doUpdateOne",e),this.hdQuery&&(this.hdQuery.selRow=e))},myrowContextmenu:function(e,t,i){if(this.hdQuery&&(this.rightMenuRow=e),this.rightMenuVisable=!1,i.preventDefault(),this.rightMenuOpen){var o=this.$refs.rightMenu.$el;document.addEventListener("click",this.foo),o.style.left=i.clientX+"px",o.style.top=i.clientY+"px",this.rightMenuVisable=!0}},foo:function(){this.rightMenuVisable=!1,document.removeEventListener("click",this.foo)},dodefaultSort:function(e,t,i){var o=this;if(e.column.sortable){for(var n=!1,r=0;r<this.hdResultComRows.length;r++)if(this.hdResultComRows[r].isEdit){n=!0;break}n?this.$confirm(this.$t("存在未保存数据,是否继续?"),this.$t("提示"),{}).then(function(){o.hdQuery.doSort(e,!1)}):this.hdQuery.doSort(e,!1)}},localeCompare:function(e,t){return e?t?e.localeCompare(t):-1:1},doPageExcel:function(){this.excelExport(this.hdResult.rows)},doAllExcel:function(){var e=this,t=null;this.$emit("allExcel",function(e){t=e}),this.excelAllExporting=!0,t.then(function(t){e.excelExport(t.data.rows),e.excelAllExporting=!1})},doAllPdf:function(){var e=this,t=null;this.pdfShowIs=!0,this.$emit("allExcel",function(e){t=e}),this.pdfAllExporting=!0,t.then(function(t){e.pdfExport(t.data.rows),e.pdfAllExporting=!1})},getInputFormat:function(e){for(var t=0;t<this.colThis.length;t++){var i=this.colThis[t];if(i.$attrs.prop==e)return i.getValueByPath}},rowSizeChg:function(e){localStorage.setItem("page_"+this.gridId,e),this.hdQuery.doSizeChg(e)},getCkRows:function(){return this.visualScroll?this.hdResult.rows.filter(function(e){return 1==e._isCK}):this.hdQuery.selObj},initExFieldRows:function(){var e=this,t=new HdQuery(this);t.query.gridCode=this.exField.gridCode,t.sort="sortNo",t.order="asc",this.$http.post("/webresources/login/tech/ComExField/detail/find",t).then(function(t){e.exFieldRows=t.data.rows,e.exFieldRows.forEach(function(e){e.fieldName=e.columnName.toLowerCase().replace(/\_+[a-zA-Z]/g,function(e,t){return t?e.substr(-1).toUpperCase():e})}),e.$nextTick(function(){this.$refs.ingrid.doLayout()})})},filterChange:function(e){this.hdResult.filters=s()(this.hdResult.filters||{},e),this.filterHdResult()},filterHdResult:function(){var e=this,t=n()(this.hdResult.filters||{});this.hdResult.rows=this.hdResult._rows.filter(function(i){return!t.some(function(t){var o=(e.$refs.ingrid.store.states._columns.find(function(e){return e.id==t})||"").property;return e.hdResult.filters[t].length>0&&-1==e.hdResult.filters[t].indexOf(i[o])})})},selectPart:function(e,t){var i=this,o=this.hdResult.rows.indexOf(this.hdQuery.selRow),n=this.hdResult.rows.indexOf(this.rightMenuRow);if(o>n){var r=o;o=n,n=r}this.hdResult.rows.forEach(function(e,r){r>=o&&r<=n&&i.$refs.ingrid.toggleRowSelection(e,!t)})},unSelectPart:function(e){this.selectPart(e,!0)}},computed:{hdResultComRows:function(){return this.visualScroll?this.gridDataRows:this.hdResult.rows},pageSizeArray:function(){return null==this.pageSizes?this.visualScroll?[20,50,100,200,500,1e3,2e3]:[20,50,100,200,500]:this.pageSizes},showBtnTool:function(){return this.hdBtnTool&&1!=this.$route.path.indexOf("privilege")}},watch:{}}},function(e,t){e.exports=require("babel-runtime/core-js/object/keys")},function(e,t,i){"use strict";var o=i(9),n=i.n(o),r=i(13),s=i.n(r);t.a={name:"gridshow",components:{},data:function(){return{hdQuery:new HdQuery(this),list:[],oldList:[],newList:[],visible:!1,loading:!1,menuId:"",gridId:"",specCkForGrid:!0}},mounted:function(){this.loading=!1},methods:{show:function(e,t,i){var o=this;this.menuId=t,this.gridId=i,this.visible=!0,this.list=JSON.parse(n()(e.filter(function(e){return e.property}))),this.list.forEach(function(e){return e.children=[]}),this.oldList=this.list.map(function(e){return e.property}),this.newList=this.oldList.slice(),this.$nextTick(function(){o.setSort()})},setSort:function(){for(var e=this,t=document.querySelectorAll(".gridShow .el-table__body-wrapper > table > tbody"),i=0;i<t.length;i++){var o=t[i];this.sortable=s.a.create(o,{ghostClass:"sortable-ghost",onEnd:function(t){var i=e.list.splice(t.oldIndex,1)[0];e.list.splice(t.newIndex,0,i);var o=e.newList.splice(t.oldIndex,1)[0];e.newList.splice(t.newIndex,0,o)}})}},submit:function(){var e=this,t="/webresources/login/com/ComGridShow/save?menuId="+this.menuId+"&gridId="+this.gridId;this.loading=!0,this.$http.post(t,this.list).then(function(t){e.loading=!1;var i=t.data;e.$message({type:"-1"==i.code?"error":"success",message:i.message}),"-1"!=i.code&&(e.visible=!1,e.$emit("save-ok"))})},reset:function(){var e=this,t="/webresources/login/com/ComGridShow/reset?menuId="+this.menuId+"&gridId="+this.gridId;this.$http.post(t,this.list).then(function(t){var i=t.data;e.$message({type:"-1"==i.code?"error":"success",message:i.message}),"-1"!=i.code&&(e.visible=!1,e.$emit("save-ok"))})}}}},function(e,t){e.exports=require("sortablejs")},function(e,t,i){"use strict";var o=i(13),n=i.n(o),r=i(36);t.a={name:"gridexfield",components:{SelGridFieldcode:r.a},props:{table:String,columnList:Array,gridCode:String},data:function(){return{hdQuery:new HdQuery(this),visible:!1,loading:!1,list:[]}},mounted:function(){this.init()},methods:{init:function(e){var t=this;this.hdQuery.query.tableName=this.table,this.hdQuery.query.columnList=this.columnList,this.hdQuery.query.gridCode=this.gridCode,this.hdQuery.sort="sortNo",this.hdQuery.order="asc",this.$http.post("/webresources/login/tech/ComExFieldCustom/find",this.hdQuery).then(function(e){t.list=e.data.rows,t.columnList&&t.columnList.forEach(function(i){e.data.rows.some(function(e){return e.columnName==i})||t.list.unshift({columnName:i,tableName:t.table,formXs:"20",formSpan:"12",isEdit:!0})});var i=0;t.list.forEach(function(e){e.isEdit=!0,e.sortNo=i++,e.formSpan=e.formSpan+""}),t.$refs.grid.doQuery({rows:t.list}),t.$nextTick(function(){t.setSort()})})},show:function(){this.visible=!0,this.list.forEach(function(e){e.isEdit=!0})},setSort:function(){for(var e=this,t=document.querySelectorAll(".gridShow .el-table__body-wrapper > table > tbody"),i=0;i<t.length;i++){var o=t[i];this.sortable=n.a.create(o,{ghostClass:"sortable-ghost",onEnd:function(t){e.list.forEach(function(e){e.sortNo==t.oldIndex?e.sortNo=t.newIndex:t.newIndex>t.oldIndex&&e.sortNo<=t.newIndex&&e.sortNo>t.oldIndex?e.sortNo=e.sortNo-1:t.newIndex<t.oldIndex&&e.sortNo>=t.newIndex&&e.sortNo<t.oldIndex&&(e.sortNo=e.sortNo+1)})}})}},doAdd:function(){var e=this.getEmptyColumn();if(null==e)return void this.$message({message:"没有剩余的扩展字段"});var t={gridCode:this.gridCode,tableName:this.table,columnName:e,formXs:12,formSpan:"20",isEdit:!0};this.$refs.grid.doEdit("",t)},submit:function(){var e=this;this.list.forEach(function(t){t.columnComment&&t.columnType||(t.isEdit=!1),t.gridCode=e.gridCode}),this.$refs.grid.doSaveAll().then(function(t){e.visible=!1,e.$emit("save-ok")}).catch(function(t){e.$message({message:"填写有误"})})},getEmptyColumn:function(){var e=this,t=this.columnList.filter(function(t){return!e.list.some(function(e){return e.columnName==t})});return t.length>0?t[0]:null},columnTypeChange:function(e,t){t.exColumnId&&this.$message({type:"warning",message:this.$t("修改类型可能回造成数据混乱或丢失, 请慎重!")}),"VARCHAR"!=t.columnType&&"BOOLEAN"!=t.columnType||(t.formatter="x")}}}},function(e,t,i){"use strict";t.a={name:"sel-grid-fieldcode",components:{},data:function(){return{hdQuery:new HdQuery(this)}},mounted:function(){},props:{txtVal:String,idVal:String,disabled:Boolean},methods:{beforeQuery:function(e){this.hdQuery.query.anyQuery=e},doClick:function(e){this.$emit("update:txtVal",e.fieldName),this.$emit("update:idVal",e.fieldCod)}}}},function(e,t,i){"use strict";var o=i(6),n=i.n(o),r=i(9),s=i.n(r),l=i(45),a=i.n(l),d=i(46);i.n(d);window.jsPDF=a.a,t.a={name:"pdfshow",components:{},props:{gening:{type:Boolean,default:function(){return!0}},defaultSort:{type:Object,default:function(){return{prop:"updTim",order:"descending"}}},pageHide:Boolean,ckHide:Boolean,indexHide:Boolean,recHide:Boolean,rowClassName:Function,excelPropHeader:Boolean},data:function(){return{visible:!0,totalSize:0,isLandscape:!1,pdfExport:[],currentPage:1,pageSize:400,resultData:[],gridData:[],title:"",fontSize:10}},mounted:function(){},methods:{handleSizeChange:function(){this.initPdf()},handleCurrentChange:function(){this.initPdf()},initShowData:function(){this.gridData=[];for(var e=0;e<this.resultData.length;e++){for(var t=[],i=0;i<this.resultData[e].length;i++)this.pdfExport.indexOf(i)>-1&&t.push(this.resultData[e][i]);this.gridData.push(t)}},refreshGridData:function(){var e={isLandscape:this.isLandscape,fontSize:this.fontSize,cols:this.pdfExport};localStorage.setItem("HdPdfSel"+this.$parent.gridId,s()(e)),this.initShowData(),this.initPdf()},addScript:function(){this.$message({type:"success",showClose:!0,duration:99999,message:this.$t("正在初始化pdf脚本,请等待...")});var e=document.getElementsByTagName("head")[0],t=document.createElement("script"),i=this;t.onload=t.onreadystatechange=function(){console.log("readyState",i.readyState),i.readyState&&"loaded"!==i.readyState&&"complete"!==i.readyState||(i.$message.closeAll(),i.initPdf(),t.onload=t.onreadystatechange=null)},t.type="text/javascript",t.src="static/js/simsun.js",e.appendChild(t)},genPdf:function(e,t,i){this.totalSize=t.length-1,this.resultData.push(["#"].concat(n()(t[0])));for(var o=1;o<t.length;o++)this.resultData.push([o].concat(n()(t[o])));var r=localStorage.getItem("HdPdfSel"+this.$parent.gridId);if(r){var s=JSON.parse(r);if(this.pdfExport=s.cols,this.fontSize=s.fontSize,this.isLandscape=s.isLandscape,!this.pdfExport||!Array.isArray(this.pdfExport)||this.pdfExport.length<1){this.pdfExport=[];for(var l=0;l<=this.totalSize;l++)this.pdfExport.push(l)}}this.initShowData(),this.title=i,this.addScript()},initPdf:function(){var e=this,t=(this.currentPage-1)*this.pageSize+1,i=this.currentPage*this.pageSize+1,o=this.gridData.slice(t,i);this.$nextTick(function(){e.showPdf([e.gridData[0]],o,e.title)})},showPdf:function(e,t,i){var o=e,n=t,r=null;if(this.isLandscape){var r=new a.a("l","pt");r.setFont("simsun"),r.setFontStyle("normal"),r.text(i,450,30,{align:"center"})}else{var r=new a.a("h","pt");r.setFont("simsun"),r.setFontStyle("normal"),r.text(i,300,30,{align:"center"})}r.autoTable({head:o,body:n,margin:{right:12,left:12},styles:{font:"simsun",fontStyle:"normal",lineColor:"#000",lineWidth:1,fontSize:this.fontSize,cellPadding:.5,halign:"center",overflow:"linebreak"},headStyles:{font:"simsun",fontStyle:"normal"}}),document.getElementById("output").data=r.output("datauristring")}},watch:{fontSize:function(e){e?e>50?this.fontSize=50:e<2&&(this.fontSize=1):this.fontSize=10}}}},function(e,t,i){"use strict";var o=i(52);t.a={name:"ExtendColumn",mixins:[o.a],props:{exFieldRow:Object},data:function(){return{codeList:Object}},mounted:function(){},methods:{genCode:function(e,t){var i=this;if(this.codeList[t])return this.codeList[t][e];this.codeList[t]={},this.$http.get("/webresources/login/privilege/SysCode/findAll?fieldCod="+t).then(function(o){o.data.forEach(function(o){return i.codeList[t][o.code]=o.name,i.codeList[t][e]})})},getSysCode:function(e){var t=this;this.$http.get("/webresources/login/privilege/SysCode/findAll?fieldCod="+e).then(function(i){i.data.forEach(function(i){t.codeList[e][i.fieldCod]=i.fieldNam})})}}}},function(e,t,i){"use strict";function o(e){i(19)}Object.defineProperty(t,"__esModule",{value:!0});var n=i(5),r=i(21),s=i(0),l=o,a=s(n.a,r.a,!1,l,null,null);t.default=a.exports},function(e,t,i){var o=i(20);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("37399a8d",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".hdBtn{cursor:pointer}",""])},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.btnRight?i("el-tooltip",{ref:"hdbtn",attrs:{content:e.$t(e.hint+e.addTextProp),placement:"bottom",effect:"light",enterable:!1,"open-delay":500,transition:""}},[i("i",{class:"hdBtn "+e.icon,on:{click:e.handleClick}},[e.icon?e._e():e._t("default"),e._v(" "),e.nowKeyMap?i("hd-hot-key",{attrs:{hotKeyRange:e.hotKeyRange,keyMap:e.nowKeyMap},on:{do:function(t){e.click("hotkey")}}}):e._e()],2)]):e._e()},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";t.a={name:"HdRightMenu",props:{noRoleManage:!1},data:function(){return{isFocus:!1,rangeThis:{}}},created:function(){},methods:{doAdd:function(){this.$emit("do-add")},doRemove:function(){this.$emit("do-remove")},doUpdate:function(){this.$emit("do-update")},doCopy:function(){this.$emit("do-copy")}}}},function(e,t){e.exports=require("xlsx")},function(e,t,i){"use strict";function o(e){i(25)}Object.defineProperty(t,"__esModule",{value:!0});var n=i(10),r=i(56),s=i(0),l=o,a=s(n.a,r.a,!1,l,"data-v-13280730",null);t.default=a.exports},function(e,t,i){var o=i(26);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("33e28431",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".hdgrid[data-v-13280730]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hdgrid[data-v-13280730] .el-table{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.hdgrid[data-v-13280730] .el-table th.gutter{display:table-cell!important}.hdgrid[data-v-13280730] .el-table .el-table__fixed-header-wrapper th,.hdgrid[data-v-13280730] .el-table .el-table__header-wrapper th{background-color:#f6f6f6}.hdgrid[data-v-13280730] .el-table td,.hdgrid[data-v-13280730] .el-table th{padding:1px 0}.hdgrid[data-v-13280730] .el-table .cell,.hdgrid[data-v-13280730] .el-table .el-table--border td:first-child .cell,.hdgrid[data-v-13280730] .el-table .el-table--border th:first-child .cell,.hdgrid[data-v-13280730] .el-table .el-table th div{padding:1.5px 0 1.5px 4px!important}.hdgrid[data-v-13280730] .el-table .el-table__empty-block{position:static;text-align:center;width:100%;height:80%}.hdgrid[data-v-13280730] .el-table .el-table__body{margin-bottom:10px}.hdgrid[data-v-13280730] .el-table .el-table__body-wrapper{height:100%;overflow:auto}.hdgrid[data-v-13280730] .el-table .el-input__inner{height:27px;margin-bottom:0;line-height:27px}.hdgrid[data-v-13280730] .el-table .el-form-item__content,.hdgrid[data-v-13280730] .el-table .el-form-item__label,.hdgrid[data-v-13280730] .el-table .el-input,.hdgrid[data-v-13280730] .el-table .el-input__icon{line-height:30px}.hdgrid[data-v-13280730] .el-table .el-input__inner{padding:5px}.hdgrid[data-v-13280730] .el-table .el-input--prefix .el-input__inner{padding-left:30px}.hdgrid[data-v-13280730] .el-table .cell{min-width:20px}.hdgrid[data-v-13280730] .el-table .checkBox .cell{overflow:inherit}.hdgrid[data-v-13280730] .el-table .checkBox .cell .el-checkbox,.hdgrid[data-v-13280730] .el-table .checkBox .cell .el-checkbox__input{position:inherit}.hdBtnTool[data-v-13280730]{font-weight:700;vertical-align:middle;margin-left:20px}",""])},function(e,t,i){"use strict";function o(e){i(28),i(30)}var n=i(12),r=i(32),s=i(0),l=o,a=s(n.a,r.a,!1,l,"data-v-630d1931",null);t.a=a.exports},function(e,t,i){var o=i(29);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("2c06258a",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".sortable-ghost{opacity:.8;color:#fff!important;background:#42b983!important}.gridShow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.gridShow .el-table{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.gridShow .el-table .el-table__body-wrapper{width:100%;padding-bottom:30px}.gridShow .el-table .el-table__header-wrapper th{background-color:#f6f6f6}.gridShow .el-table .el-table__fixed-header-wrapper th{background-color:#8cbda4}.gridShow .el-table td,.gridShow .el-table th{padding:2px 0}.gridShow .el-table .cell,.gridShow .el-table .el-table--border td:first-child .cell,.gridShow .el-table .el-table--border th:first-child .cell,.gridShow .el-table .el-table th div{padding-left:2px!important;padding-right:2px!important}.gridShow .el-table .el-table__empty-block{position:static;text-align:center;width:100%;height:80%}.gridShow .el-table .el-table__body{margin-bottom:10px}.gridShow .el-table .el-table__body-wrapper{height:100%;overflow-y:auto}.gridShow .el-table .el-input__inner{height:27px;margin-bottom:0}.gridShow .el-table .el-form-item__content,.gridShow .el-table .el-form-item__label,.gridShow .el-table .el-input,.gridShow .el-table .el-input__icon{line-height:30px}.gridShow .el-table .el-input__inner{padding:5px}.gridShow .el-table .el-input--prefix .el-input__inner{padding-left:30px}",""])},function(e,t,i){var o=i(31);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("22e58d91",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".icon-star[data-v-630d1931]{margin-right:2px}.drag-handler[data-v-630d1931]{width:20px;height:20px;cursor:pointer}.show-d[data-v-630d1931]{margin-top:15px}",""])},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"展示设置",visible:e.visible,width:"50%","append-to-body":"",top:"2vh"},on:{"update:visible":function(t){e.visible=t}}},[i("el-container",{staticStyle:{height:"80vh",border:"1px solid #eee"}},[i("el-main",{staticClass:"gridShow"},[i("el-table",{attrs:{data:e.list,"row-key":"property"}},[i("el-table-column",{attrs:{align:"center",label:"名称",prop:"label",width:"150",noQuery:""}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"宽度(px)",prop:"width",width:"150",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("hd-num",{attrs:{step:10},model:{value:t.row.width,callback:function(i){e.$set(t.row,"width",e._n(i))},expression:"scope.row.width"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"展示",prop:"showFlg",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.row.showFlg,callback:function(i){e.$set(t.row,"showFlg",i)},expression:"scope.row.showFlg"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"冻结",prop:"freezeFlg",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.row.freezeFlg,callback:function(i){e.$set(t.row,"freezeFlg",i)},expression:"scope.row.freezeFlg"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"排序",width:"80",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(e){return[i("svg-icon",{staticClass:"drag-handler",attrs:{"icon-class":"drag"}})]}}])})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.reset}},[e._v(e._s(e.$t("重置")))]),e._v(" "),i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v(e._s(e.$t("取 消")))]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v(" "+e._s(e.$t("确 定")))])],1)],1)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";function o(e){i(34)}var n=i(14),r=i(38),s=i(0),l=o,a=s(n.a,r.a,!1,l,"data-v-cee2d6d8",null);t.a=a.exports},function(e,t,i){var o=i(35);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("5ab29bc4",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,"",""])},function(e,t,i){"use strict";var o=i(15),n=i(37),r=i(0),s=r(o.a,n.a,!1,null,null,null);t.a=s.exports},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("hd-grid-sel",{attrs:{txtVal:e.txtVal,idVal:e.idVal,placeholder:"请点击选取",height:"50vh",width:"300px",hdQuery:e.hdQuery,disabled:e.disabled,url:"webresources/login/privilege/SysField/vue/find",beforeQuery:e.beforeQuery},on:{rowClick:e.doClick}},[i("el-table-column",{attrs:{width:"120px",align:"left","header-align":"center",label:"代码",prop:"fieldCod",sortable:""}}),e._v(" "),i("el-table-column",{attrs:{widhth:"180px",align:"left","header-align":"center",label:"名称",prop:"fieldName",sortable:""}})],1)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"扩展字段设置",visible:e.visible,width:"65%","append-to-body":"",top:"2vh"},on:{"update:visible":function(t){e.visible=t}}},[i("el-container",{staticStyle:{height:"80vh",border:"1px solid #eee"}},[i("el-main",{staticClass:"gridShow"},[i("hd-com-grid",{ref:"grid",attrs:{hdQuery:e.hdQuery,url:"/webresources/login/tech/ComExFieldCustom","not-init":"","no-sets":"","ck-hide":"","no-sort":"","index-hide":"","hd-btn-tool":!1,"rec-hide":"","page-hide":"","default-sort":{prop:"sortNo",order:"ascending"}}},[i("el-table-column",{attrs:{width:"100px",align:"center",label:"是否使用",prop:"useFlg",sortable:"",rules:e.$r(0,0,50),input:"el-switch",inputProp:{activeValue:"1",inactiveValue:"0"},inputFormat:e.$ckFt}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"字段注解",prop:"columnComment",rules:e.$r(1,0,50)}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"字段类型",prop:"columnType",rules:e.$r(1),input:"HdDrop",inputProp:{field:"IDV_COLUMN_TYPE"}},on:{change:e.columnTypeChange}}),e._v(" "),i("el-table-column",{attrs:{width:"110px",align:"center",label:"格式/代码",prop:"formatter",rules:e.$r(1)},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?["DROP"==t.row.columnType?[i("sel-grid-fieldcode",{staticStyle:{width:"100%"},attrs:{gridRow:t.row,txtVal:t.row.formatter,idVal:t.row.formatter},on:{"update:txtVal":function(i){e.$set(t.row,"formatter",i)},"update:idVal":function(i){e.$set(t.row,"formatter",i)},blur:function(i){e.checkErr(t.row)}},model:{value:t.row.formatter,callback:function(i){e.$set(t.row,"formatter",i)},expression:"scope.row['formatter']"}})]:"NUMBER"==t.row.columnType?[i("HdDrop",{staticStyle:{width:"100%"},attrs:{gridRow:t.row,txtVal:t.row.formatterStr,idVal:t.row.formatter,field:"IDV_NUMBER_FORMATTER"},on:{"update:txtVal":function(i){e.$set(t.row,"formatterStr",i)},"update:idVal":function(i){e.$set(t.row,"formatter",i)},blur:function(i){e.checkErr(t.row)}},model:{value:t.row.formatter,callback:function(i){e.$set(t.row,"formatter",i)},expression:"scope.row['formatter']"}})]:"DATE"==t.row.columnType?[i("HdDrop",{staticStyle:{width:"100%"},attrs:{gridRow:t.row,txtVal:t.row.formatterStr,idVal:t.row.formatter,field:"IDV_DATE_FORMATTER"},on:{"update:txtVal":function(i){e.$set(t.row,"formatterStr",i)},"update:idVal":function(i){e.$set(t.row,"formatter",i)},blur:function(i){e.checkErr(t.row)}},model:{value:t.row.formatter,callback:function(i){e.$set(t.row,"formatter",i)},expression:"scope.row['formatter']"}})]:void 0]:e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"是否必填",prop:"columnRequire",input:"el-switch",inputProp:{"active-value":1,"inactive-value":0},inputFormat:e.$ckFt}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"最大长度",prop:"columnLen",rules:e.$r(1,0,255,"number"),input:"HdNum"}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"表格宽度",prop:"formSpan",rules:e.$r(1),input:"HdDrop",inputProp:{field:"IDV_FORM_SPAN"}}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"排序",width:"80px",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(e){return[i("svg-icon",{staticClass:"drag-handler",attrs:{"icon-class":"drag"}})]}}])})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v(e._s(e.$t("取 消")))]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v(" "+e._s(e.$t("确 定")))])],1)],1)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";t.a={data:function(){return{rowSelNum:-1}},methods:{addHotKey:function(){document.body.addEventListener("keydown",this.handleKeydown)},removeHotKey:function(){document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode;if(-1!==[38,40,37,39].indexOf(t)){if(38===t&&(this.rowSelNum-=1),40===t&&(this.rowSelNum+=1),37===t&&this.hdQuery.doCurPageChange(this.hdQuery.page-1<1?1:this.hdQuery.page-1),39===t){var i=(this.hdResult.total-1)/this.hdQuery.rows+1;this.hdQuery.doCurPageChange(this.hdQuery.page+1>i?i:this.hdQuery.page+1)}e.stopPropagation(),e.preventDefault()}13===t&&(this.hdQuery.selRow?(this.$emit("enterClick",this.hdQuery.selRow),this.hdQuery.selRow=null):this.hdResultComRows.length>0&&(this.hdQuery.selRow=this.hdResultComRows[0],this.$emit("enterClick",this.hdResultComRows[0]),this.hdQuery.selRow=null)),e.altKey&&13===t&&this.$emit("altEnterClick",this.hdQuery.selRow)},setCurrentRow:function(e,t){this.rowSelNum=e,this.$refs.ingrid.setCurrentRow(this.hdResultComRows[e]),this.hdQuery&&(this.hdQuery.selRow=this.hdResultComRows[this.rowSelNum]);var i=this.$refs.ingrid.$el.querySelectorAll(".el-table__body tr")[e];if(!i)return!0;var o=this.$refs.ingrid.$el.querySelector(".el-table__body-wrapper"),n=(o.getBoundingClientRect().height,i.offsetTop),r=i.offsetTop+i.offsetHeight,s=o.scrollTop,l=s+o.clientHeight+i.clientHeight/3;n<s?o.scrollTop=n:r>l&&(o.scrollTop=o.scrollTop+i.clientHeight)},findLeafCol:function(e,t,i,o,n){if(e.children)for(var r=0;r<e.children.length;r++)this.findLeafCol(e.children[r],t,i,o,e);else t.push(e),n?i.push(n.label+"-"+e.label):i.push(e.label),o.push(e.property)},comExport:function(e){for(var t=[],i=[],o=[],n=0;n<this.disCol.length;n++){var r=this.disCol[n];r&&(r.property||r.children)&&r.showFlg&&"0"!=r.showFlg&&this.findLeafCol(r,o,t,i)}var s=this.formatJson(i,e,t),l=[t].concat(s);return this.summaryAdd(l,i.length),{header:t,filterVal:i,merdata:l,title:this.$route.meta.title+(new Date).format("yyyy-MM-dd HH:mm:ss")}},excelExport:function(e){var t=this.comExport(e),o={};if(this.excelFormatter)o=this.excelFormatter(t);else{var n=t.merdata;this.excelPropHeader&&(n=this.formatJson(t.filterVal,n)),o={header:n[0],data:n.slice(1),filename:t.title}}i(40).export_json_to_excel(o)},pdfExport:function(e){var t=this.comExport(e),i=t.header,o=(t.filterVal,t.merdata),n=t.title;this.$refs.pdfshow.genPdf(i,o,n)},summaryAdd:function(e,t){if(void 0!=this.$attrs.showSummary||void 0!=this.$attrs["show-summary"]){for(var i=[],o=0;o<this.disCol.length;o++){var n=this.disCol[o];n&&n.property&&n.showFlg&&i.push(n)}for(var r=new Array(t),s=this.$attrs.summaryMethod||this.$attrs["summary-method"],l=s({columns:i}),a=0;a<r.length;a++)l[a]?r[a]=l[a]:r[a]="";e.push(r)}},formatJson:function(e,t,i){var o=this;if(!t||0==t.length)return[];if(this.excelPropHeader)for(var n in t[0]){var r=!1;for(var s in e)if(e[s]==n){r=!0;break}r||e.push(n)}var l=["_obj","idevVersionUse","_map"];this.noExcelExport&&(l=l.concat(this.noExcelExport));for(var a=0;a<l.length;a++){var d=e.removeone(l[a]);-1!=d&&i.splice(d,1)}return t.map(function(t){return e.map(function(e){try{var i=o.getInputFormat(e);return i?i(t,e):t[e]+""}catch(e){return console.info(e),null}})})}},watch:{rowSelNum:function(e,t){if(e<0){if(0==this.hdResult.rows.length)return this.rowSelNum=-1,!1;this.rowSelNum=0}e>this.hdResult.rows.length-1&&(this.rowSelNum=this.hdResult.rows.length-1),this.hdQuery&&(this.hdQuery.selRow=this.hdResult.rows[this.rowSelNum]),this.setCurrentRow(this.rowSelNum,e-t>0)}}}},function(e,t,i){"use strict";function o(e){for(var t=[],i=e.querySelectorAll("tr"),o=[],n=0;n<i.length;++n){for(var r=[],s=i[n],l=s.querySelectorAll("td"),a=0;a<l.length;++a){var d=l[a],u=d.getAttribute("colspan"),c=d.getAttribute("rowspan"),h=d.innerText;if(""!==h&&h==+h&&(h=+h),o.forEach(function(e){if(n>=e.s.r&&n<=e.e.r&&r.length>=e.s.c&&r.length<=e.e.c)for(var t=0;t<=e.e.c-e.s.c;++t)r.push(null)}),(c||u)&&(c=c||1,u=u||1,o.push({s:{r:n,c:r.length},e:{r:n+c-1,c:r.length+u-1}})),r.push(""!==h?h:null),u)for(var f=0;f<u-1;++f)r.push(null)}t.push(r)}return[t,o]}function n(e,t){return t&&(e+=1462),(Date.parse(e)-new Date(Date.UTC(1899,11,30)))/864e5}function r(e,t){for(var i={},o={s:{c:1e7,r:1e7},e:{c:0,r:0}},r=0;r!=e.length;++r)for(var s=0;s!=e[r].length;++s){o.s.r>r&&(o.s.r=r),o.s.c>s&&(o.s.c=s),o.e.r<r&&(o.e.r=r),o.e.c<s&&(o.e.c=s);var l={v:e[r][s]};if(null!=l.v){var a=p.a.utils.encode_cell({c:s,r:r});"number"==typeof l.v?l.t="n":"boolean"==typeof l.v?l.t="b":l.v instanceof Date?(l.t="n",l.z=p.a.SSF._table[14],l.v=n(l.v)):l.t="s",i[a]=l}}return o.s.c<1e7&&(i["!ref"]=p.a.utils.encode_range(o)),i}function s(){if(!(this instanceof s))return new s;this.SheetNames=[],this.Sheets={}}function l(e){for(var t=new ArrayBuffer(e.length),i=new Uint8Array(t),o=0;o!=e.length;++o)i[o]=255&e.charCodeAt(o);return t}function a(e){var t=document.getElementById(e),i=o(t),n=i[1],a=i[0],d=new s,u=r(a);u["!merges"]=n,d.SheetNames.push("SheetJS"),d.Sheets.SheetJS=u;var c=p.a.write(d,{bookType:"xlsx",bookSST:!1,type:"binary"});Object(h.saveAs)(new Blob([l(c)],{type:"application/octet-stream"}),"test.xlsx")}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.multiHeader,i=void 0===t?[]:t,o=e.header,n=e.data,a=e.filename,d=e.merges,u=void 0===d?[]:d,f=e.autoWidth,g=void 0===f||f,m=e.bookType,v=void 0===m?"xlsx":m;a=a||"excel-list",n=[].concat(c()(n)),n.unshift(o);for(var w=i.length-1;w>-1;w--)n.unshift(i[w]);var b=new s,x=r(n);if(u.length>0&&(x["!merges"]||(x["!merges"]=[]),u.forEach(function(e){x["!merges"].push(p.a.utils.decode_range(e))})),g){for(var y=n.map(function(e){return e.map(function(e){return null==e?{wch:10}:e.toString().charCodeAt(0)>255?{wch:2*e.toString().length}:{wch:e.toString().length}})}),_=y[0],S=1;S<y.length;S++)for(var $=0;$<y[S].length;$++)_[$].wch<y[S][$].wch&&(_[$].wch=y[S][$].wch);x["!cols"]=_}b.SheetNames.push("SheetJS"),b.Sheets.SheetJS=x;var R=p.a.write(b,{bookType:v,bookSST:!1,type:"binary"});Object(h.saveAs)(new Blob([l(R)],{type:"application/octet-stream"}),a+"."+v)}Object.defineProperty(t,"__esModule",{value:!0}),t.export_table_to_excel=a,t.export_json_to_excel=d;var u=i(6),c=i.n(u),h=i(41),f=(i.n(h),i(23)),p=i.n(f)},function(e,t){e.exports=require("file-saver")},function(e,t,i){"use strict";function o(e){i(43)}var n=i(16),r=i(47),s=i(0),l=o,a=s(n.a,r.a,!1,l,"data-v-86fe9e58",null);t.a=a.exports},function(e,t,i){var o=i(44);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("3d5508c6",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".pdfshow[data-v-86fe9e58] .el-dialog__body{width:100%;height:calc(100% - 55px)}",""])},function(e,t){e.exports=require("jspdf")},function(e,t){e.exports=require("jspdf-autotable")},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"pdfshow",attrs:{fullscreen:!0,title:e.gening?"正在生成pdf":"PDF预览",visible:e.visible},on:{"update:visible":function(t){e.visible=t},close:function(t){e.$emit("close")}}},[i("el-row",[i("el-col",{attrs:{span:4}},[i("el-switch",{attrs:{"active-text":e.$t("横向显示"),"inactive-text":e.$t("竖向显示")},on:{change:function(t){e.initPdf()}},model:{value:e.isLandscape,callback:function(t){e.isLandscape=t},expression:"isLandscape"}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[e._v("\n "+e._s(e.$t("字号"))+"\n "),i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:!1,placeholder:e.$t("请输入字号"),size:"mini"},model:{value:e.fontSize,callback:function(t){e.fontSize=e._n(t)},expression:"fontSize"}})],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-pagination",{attrs:{"current-page":e.currentPage,"page-size":e.pageSize,"page-sizes":[100,200,400],total:e.totalSize,layout:"sizes, prev, pager, next"},on:{"update:currentPage":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"current-change":function(t){e.initPdf()},"size-change":function(t){e.initPdf()}}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("el-button",{on:{click:function(t){e.refreshGridData()}}},[e._v(e._s(e.$t("刷新")))])],1)],1),e._v(" "),i("el-row",[i("el-checkbox-group",{model:{value:e.pdfExport,callback:function(t){e.pdfExport=t},expression:"pdfExport"}},e._l(e.resultData[0],function(t,o){return i("el-checkbox",{key:o,attrs:{label:o}},[e._v(e._s(t))])}))],1),e._v(" "),i("object",{staticStyle:{width:"100%",height:"calc(100% - 40px)"},attrs:{id:"output",type:"application/pdf"}},[i("p",[e._v("It appears you don't have PDF support in this web browser")])])],1)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";t.a={data:function(){return{gridDataRows:[],startIndex:0,scroller:0,trHeight:35.5,minRowNum:0,tmpScrollNum:0}},activated:function(){if(!this.visualScroll)return!1;this.scroller=this.$refs.ingrid.$refs.bodyWrapper.scrollTop},methods:{initVisual:function(){var e=this;if(!this.visualScroll)return!1;this.initTableStyle();var t=this.$refs.ingrid.$refs.bodyWrapper,i=this;t.onscroll=function(o){i.tmpScrollNum++,e.$refs.ingrid.store.states.hoverRow="locked",i.scroller=t.scrollTop,setTimeout(function(){0==--i.tmpScrollNum&&(e.$refs.ingrid.store.states.hoverRow=null)},500)}},initTableStyle:function(){this.$refs.ingrid.$refs.bodyWrapper.querySelector("tbody").style.position="absolute"},initTableHeight:function(){var e=this.hdResult.rows.length*this.trHeight,t=this.$refs.ingrid.$refs.bodyWrapper;t.querySelector(".el-table__body").style.height=e+"px",this.updateGridDataRows(t.scrollTop,t.clientHeight)},updateGridDataRows:function(e,t){t=t>this.minRowNum*this.trHeight?t:this.minRowNum*this.trHeight;var i=Math.ceil(e/this.trHeight);i=i<0?0:i;var o=Math.ceil((e+t)/this.trHeight);o=o>this.hdResult.rows.length?this.hdResult.rows.length:o,this.gridDataRows=this.hdResult.rows.slice(i,o),this.startIndex=i,this.$refs.ingrid.setCurrentRow(this.hdQuery.selRow)},getIndex:function(e){return this.startIndex+e},checkAllChange:function(e){for(var t=0;t<this.hdResult.rows.length;t++)this.$set(this.hdResult.rows[t],"_isCK",e)}},watch:{scroller:function(e,t){if(!this.visualScroll)return!1;var i=this.$refs.ingrid.$refs.bodyWrapper,o=this.$refs.ingrid.$refs.fixedBodyWrapper,n=this.$refs.ingrid.$refs.rightFixedBodyWrapper,r=i.clientHeight;e!=t&&(i.querySelector("tbody").style.transform="translate(0px,"+e+"px)",o&&(o.scrollTop=0),n&&(n.scrollTop=0),this.updateGridDataRows(e,r))},"hdResult.rows":function(){var e=this;if(!this.visualScroll)return!1;this.hdResult.rows.filter(function(e){return!e._isCK}).forEach(function(t){e.$set(t,"_isCk",!1)}),this.initTableHeight()}},computed:{isSubChecked:function(){if(!this.visualScroll)return!1;var e=!1,t=!1;return!(!this.hdResult.rows||0==this.hdResult.rows.length)&&(this.hdResult.rows.forEach(function(i){i._isCK&&(e=!0),i._isCK||(t=!0)}),e&&t)},isAllChecked:function(){if(!this.visualScroll)return!1;var e=!0;return!(!this.hdResult.rows||0==this.hdResult.rows.length)&&(this.hdResult.rows.forEach(function(t){t._isCK||(e=!1)}),e)}}}},function(e,t,i){"use strict";function o(e){i(50)}var n=i(17),r=i(53),s=i(0),l=o,a=s(n.a,r.a,!1,l,"data-v-47c19530",null);t.a=a.exports},function(e,t,i){var o=i(51);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("6cf9b2ba",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,"",""])},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a={methods:{genFormatter:function genFormatter(formatter){var rtn=eval("this."+formatter);return rtn},genRules:function genRules(field){if(field.rules)return eval("this."+field.rules);var require=field.columnRequire?field.columnRequire:"0",rules="";return rules="DROP"==field.columnType||"DATE"==field.columnType||"BOOLEAN"==field.columnType?"this.$r("+require+")":"NUMBER"==field.columnType?"this.$r("+require+", 0, "+this.repeat("9",field.columnLen)+",'number',"+field.formatter+")":"this.$r("+require+", 0, "+field.columnLen+")",eval(rules)},repeat:function(e,t){return new Array(t+1).join(e)}}}},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return"BOOLEAN"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center","input-format":e.$ckFt,input:"el-switch",inputProp:{activeValue:"1",inactiveValue:"0"},label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):"DROP"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center","input-format":function(t){return e.genCode(t,e.exFieldRow.formatter)},input:"HdDrop",inputProp:{field:e.exFieldRow.formatter},label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):"DATE"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{inputProp:e.genFormatter(e.exFieldRow.formatter),align:"center",input:"el-date-picker",label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):"NUMBER"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center",input:"HdNum",label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center",label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}})},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";var o=i(22),n=i(55),r=i(0),s=r(o.a,n.a,!1,null,null,null);t.a=s.exports},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"rightmenu"},[e._t("rightMenu",[i("el-button-group",[i("ex-button",{staticClass:"rightmenu_button",attrs:{vid:"doAdd"},on:{click:e.doAdd}},[e._v("增加\n ")]),e._v(" "),i("ex-button",{staticClass:"rightmenu_button",attrs:{vid:"doUpdate"},on:{click:e.doUpdate}},[e._v("修改\n ")]),e._v(" "),i("ex-button",{staticClass:"rightmenu_button",attrs:{vid:"doRemove"},on:{click:e.doRemove}},[e._v("删除\n ")]),e._v(" "),i("ex-button",{staticClass:"rightmenu_button",attrs:{vid:"doCopy"},on:{click:e.doCopy}},[e._v("复制\n ")])],1),e._v(" "),e.$slots.rightMenuExt?i("div",{staticStyle:{border:"#555 1px solid"}}):e._e(),e._v(" "),i("el-button-group",[e._t("rightMenuExt")],2)])],2)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"grid",staticClass:"hdgrid",style:{width:"100%",height:e.height}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.queryShow,expression:"queryShow"}]},[e._t("query")],2),e._v(" "),e.noSets?e._e():i("div",{staticStyle:{height:"0px"}},[i("el-dropdown",{staticStyle:{float:"right",height:"0",width:"20px",position:"relative",right:"0px","text-align":"center","z-index":"100",cursor:"pointer","font-size":"25px"},on:{command:e.extSets}},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"fa fa-cogs",style:{"font-size":"13px",color:e.isGridCustom?"red !important":""}})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"gridSets"}},[e._v(e._s(e.$t("自定义展示")))]),e._v(" "),i("el-dropdown-item",{attrs:{command:"pageExcel"}},[e._v(e._s(e.$t("导出当页excel"))+"\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{disabled:e.excelAllExporting,command:"allExcel"}},[e._v("\n "+e._s(e.excelAllExporting?e.$t("正在导出"):e.$t("导出全部excel"))+"\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{disabled:e.pdfAllExporting,command:"allPdf"}},[e._v("\n "+e._s(e.pdfAllExporting?e.$t("正在生成"):e.$t("pdf打印"))+"\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{command:"queryToggle"}},[e._v(e._s(e.queryShow?e.$t("隐藏查询区"):e.$t("显示查询区")))]),e._v(" "),e.exField.open?i("el-dropdown-item",{attrs:{command:"exFieldSets"}},[e._v(e._s(e.$t("添加扩展字段")))]):e._e(),e._v(" "),e._t("extSets")],2)],1)],1),e._v(" "),e.gridCanReload?i("el-table",e._g(e._b({ref:"ingrid",attrs:{data:e.hdResultComRows,"default-sort":e.defaultSort,"row-class-name":e.rowClassName,stripe:void 0==e.$attrs.stripe||e.$attrs.stripe,border:"","element-loading-text":"加载中...",height:"100%","highlight-current-row":""},on:{"row-click":e.myrowClick,"row-dblclick":e.myrowDblClick,"row-contextmenu":e.myrowContextmenu,"selection-change":e.myselectionChange,"sort-change":e.dodefaultSort,"filter-change":e.filterChange}},"el-table",e.$attrs,!1),e.$listeners),[e.visualScroll?[e.ckHide?e._e():i("ex-table-column",{attrs:{showOverflowTooltip:!0,align:"center","class-name":"checkBox",noEdit:"",noSlot:"",width:"30"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("el-checkbox",{attrs:{indeterminate:e.isSubChecked,value:e.isAllChecked},on:{change:e.checkAllChange}})]}},{key:"default",fn:function(t){return[i("el-checkbox",{model:{value:t.row._isCK,callback:function(i){e.$set(t.row,"_isCK",i)},expression:"scope.row._isCK"}})]}}])}),e._v(" "),e.indexHide?e._e():i("ex-table-column",{attrs:{index:e.getIndex,showOverflowTooltip:!0,align:"center",noEdit:"",noSlot:"",type:"index",width:"40"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("span",[e._v("#")])]}},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+e.startIndex+1)+"\n ")]}}])})]:[e.ckHide?e._e():i("ExTableColumn",{attrs:{showOverflowTooltip:!1,align:"center","class-name":"backFF",noEdit:"",noSlot:"",type:"selection",width:"30"},nativeOn:{click:function(t){e.selectClick(t)}}}),e._v(" "),e.indexHide?e._e():i("ex-table-column",{attrs:{showOverflowTooltip:!1,align:"center",noEdit:"",noSlot:"",type:"index",width:"40"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("span",[e._v("#")])]}}])})],e._v(" "),e._t("default"),e._v(" "),e.exField.gridCode?[e._l(e.exFieldRows,function(e){return[i("ExtendColumn",{attrs:{exFieldRow:e}})]})]:e._e(),e._v(" "),e.recHide?e._e():[i("el-table-column",{attrs:{align:"left","header-align":"center",label:"创建人",noEdit:"",prop:"recNam",sortable:"",width:"auto"}}),e._v(" "),i("el-table-column",{attrs:{inputProp:e.$date,align:"center",input:"el-date-picker",label:"创建时间",noEdit:"",prop:"recTim",sortable:"",width:"135px"}}),e._v(" "),i("el-table-column",{attrs:{align:"left","header-align":"center",label:"更新人",noEdit:"",prop:"updNam",sortable:"",width:"auto"}}),e._v(" "),i("el-table-column",{attrs:{inputProp:e.$date,align:"center",input:"el-date-picker",label:"更新时间",noEdit:"",prop:"updTim",sortable:"",width:"135px"}})]],2):e._e(),e._v(" "),!e.pageHide||e.showBtnTool?i("div",{ref:"pagecon",staticClass:"pagination-container",staticStyle:{height:"26px",overflow:"hidden"}},[e.showBtnTool?i("div",{staticStyle:{float:"left"}},[e._t("btnTool",[e.addHide?e._e():i("hd-btn",{staticClass:"hdBtnTool",attrs:{icon:"el-icon-plus",hint:"增加",vid:"doAdd",keyType:"add"},on:{click:e.doAdd}}),e._v(" "),e.delHide?e._e():i("hd-btn",{staticClass:"hdBtnTool",attrs:{icon:"el-icon-minus",hint:"删除",keyType:"del"},on:{click:e.doRemove}}),e._v(" "),e.saveHide?e._e():i("hd-btn",{staticClass:"hdBtnTool",attrs:{icon:"el-icon-check",hint:"保存",keyType:"save"},on:{click:e.doSave}})])],2):e._e(),e._v(" "),e.pageHide?e._e():i("el-pagination",{staticStyle:{float:"right"},attrs:{"current-page":e.hdQuery.page,"page-size":e.hdQuery.rows,"page-sizes":e.pageSizeArray,total:e.hdResult.total,layout:" total, slot, prev, pager, next,sizes",small:""},on:{"update:currentPage":function(t){e.$set(e.hdQuery,"page",t)},"current-change":e.hdQuery.doCurPageChange,"size-change":e.rowSizeChg}})],1):e._e(),e._v(" "),e.gridShowIs?i("GridShow",{ref:"gridShow",on:{"save-ok":function(t){e.gridShow()}}}):e._e(),e._v(" "),e.exField.open&&e.exFieldShowIs?i("GridExField",{ref:"exFieldShow",attrs:{columnList:e.exField.columnList,gridCode:e.exField.gridCode,table:e.exField.table},on:{"save-ok":function(t){e.exFieldShow()}}}):e._e(),e._v(" "),e.pdfShowIs?i("PdfShow",{ref:"pdfshow",attrs:{gening:e.pdfAllExporting},on:{close:function(t){e.pdfShowIs=!1}}}):e._e(),e._v(" "),e.rightMenuOpen?i("hd-right-menu",{directives:[{name:"show",rawName:"v-show",value:e.rightMenuVisable,expression:"rightMenuVisable"}],ref:"rightMenu",on:{"do-add":e.doAdd,"do-update":e.doUpdateOne,"do-remove":e.doRemoveOne,"do-copy":e.doCopyOne}},[i("template",{slot:"rightMenu"},[e._t("rightMenu")],2),e._v(" "),i("template",{slot:"rightMenuExt"},[e._t("rightMenuExt")],2)],2):e._e()],1)},n=[],r={render:o,staticRenderFns:n};t.a=r}]);
1
+ module.exports=function(e){function t(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,o){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=24)}([function(e,t){e.exports=function(e,t,i,o,n,r){var l,s=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(l=e,s=e.default);var d="function"==typeof s?s.options:s;t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),i&&(d.functional=!0),n&&(d._scopeId=n);var u;if(r?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},d._ssrRegister=u):o&&(u=o),u){var c=d.functional,h=c?d.render:d.beforeCreate;c?(d._injectStyles=u,d.render=function(e,t){return u.call(t),h(e,t)}):d.beforeCreate=h?[].concat(h,u):[u]}return{esModule:l,exports:s,options:d}}},function(e,t){function i(e,t){var i=e[1]||"",n=e[3];if(!n)return i;if(t&&"function"==typeof btoa){var r=o(n);return[i].concat(n.sources.map(function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"})).concat([r]).join("\n")}return[i].join("\n")}function o(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o=i(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},n=0;n<this.length;n++){var r=this[n][0];"number"==typeof r&&(o[r]=!0)}for(n=0;n<e.length;n++){var l=e[n];"number"==typeof l[0]&&o[l[0]]||(i&&!l[2]?l[2]=i:i&&(l[2]="("+l[2]+") and ("+i+")"),t.push(l))}},t}},function(e,t,i){function o(e){for(var t=0;t<e.length;t++){var i=e[t],o=u[i.id];if(o){o.refs++;for(var n=0;n<o.parts.length;n++)o.parts[n](i.parts[n]);for(;n<i.parts.length;n++)o.parts.push(r(i.parts[n]));o.parts.length>i.parts.length&&(o.parts.length=i.parts.length)}else{for(var l=[],n=0;n<i.parts.length;n++)l.push(r(i.parts[n]));u[i.id]={id:i.id,refs:1,parts:l}}}}function n(){var e=document.createElement("style");return e.type="text/css",c.appendChild(e),e}function r(e){var t,i,o=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(o){if(p)return g;o.parentNode.removeChild(o)}if(m){var r=f++;o=h||(h=n()),t=l.bind(null,o,r,!1),i=l.bind(null,o,r,!0)}else o=n(),t=s.bind(null,o),i=function(){o.parentNode.removeChild(o)};return t(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;t(e=o)}else i()}}function l(e,t,i,o){var n=i?"":o.css;if(e.styleSheet)e.styleSheet.cssText=v(t,n);else{var r=document.createTextNode(n),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(r,l[t]):e.appendChild(r)}}function s(e,t){var i=t.css,o=t.media,n=t.sourceMap;if(o&&e.setAttribute("media",o),n&&(i+="\n/*# sourceURL="+n.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=i(4),u={},c=a&&(document.head||document.getElementsByTagName("head")[0]),h=null,f=0,p=!1,g=function(){},m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,i){p=i;var n=d(e,t);return o(n),function(t){for(var i=[],r=0;r<n.length;r++){var l=n[r],s=u[l.id];s.refs--,i.push(s)}t?(n=d(e,t),o(n)):n=[];for(var r=0;r<i.length;r++){var s=i[r];if(0===s.refs){for(var a=0;a<s.parts.length;a++)s.parts[a]();delete u[s.id]}}}};var v=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},function(e,t,i){"use strict";t.a={name:"BtnRight",data:function(){return{btnRight:!0}},created:function(){},methods:{getName:function(){},checkRight:function(){if(!this.$store)return!0;var e=this.$store.state.user.hidBtns,t=this.findNameCombine();if(!t)return!0;var i=this.$route.name;if(e&&e.length>0)for(var o=0;o<e.length;o++){var n=e[o];n.menuId==i&&t==n.permissions&&(this.btnRight=!1)}},addBtnMetaToParent:function(){if(!this.$route.meta.btnRole)return!1;var e=this.findNameCombine();if(!e)return!1;var t={name:this.getName(),permissions:e};this.checkIsSame(t)||this.$route.meta.btnRole.push(t)},checkIsSame:function(e){for(var t=this.$route.meta.btnRole,i=0;i<t.length;i++){if(t[i].permissions==e.permissions)return!0}return!1},findNameCombine:function(){if(this.vid)return this.vid;var e=this.$vnode.context,t=e.$options.name;return"HdFormDialog"==t&&(t=this.findNameFromFile(e.$vnode.context.$options.name)),t||(t="noname"),t+"_"+this.getName()},findNameFromFile:function(e){if(!e)return!1;var t=e.split("\\");return t[t.length-1].split(".")[0]},findRoleSetParent:function(){for(var e=this.$parent.$parent;e&&"btnRole"==!e.$options.name;)e=e.$parent;return e}}}},function(e,t){e.exports=function(e,t){for(var i=[],o={},n=0;n<t.length;n++){var r=t[n],l=r[0],s=r[1],a=r[2],d=r[3],u={id:e+":"+n,css:s,media:a,sourceMap:d};o[l]?o[l].parts.push(u):i.push(o[l]={id:l,parts:[u]})}return i}},function(e,t,i){"use strict";var o=i(7);t.a={name:"HdBtn",mixins:[o.a],data:function(){return{}},props:{noRoleManage:Boolean,keyMap:Array,keyType:String,hotKeyRange:{type:String,default:"hd-com-grid"},icon:String,hint:String,vid:String},created:function(){this.noRoleManage||this.$route&&this.$route.meta.btnRoleCheck&&this.addBtnMetaToParent()},mounted:function(){var e=this;this.$nextTick(function(){e.$refs.hdbtn&&e.$refs.hdbtn.referenceElm&&e.$refs.hdbtn.referenceElm.setAttribute("tabindex",-1)}),this.checkRight()},computed:{addTextProp:function(){return this.nowKeyMap&&2==this.nowKeyMap.length?"("+this.nowKeyMap[1].toUpperCase()+")":""},nowKeyMap:function(){return this.keyMap?this.keyMap:this.keyType&&this.$keyMap?this.$keyMap[this.keyType]:void 0}},methods:{getName:function(){return this.hint+"(-)"},handleClick:function(e){this.$emit("click",e)},click:function(e){void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled||this.handleClick(e)}}}},function(e,t){e.exports=require("babel-runtime/helpers/toConsumableArray")},function(e,t,i){"use strict";var o=i(3),n=i(0),r=n(o.a,null,!1,null,null,null);t.a=r.exports},function(e,t){e.exports=require("babel-runtime/core-js/object/assign")},function(e,t){e.exports=require("babel-runtime/core-js/json/stringify")},function(e,t,i){"use strict";var o=i(11),n=i.n(o),r=i(8),l=i.n(r),s=i(6),a=i.n(s),d=i(27),u=i(33),c=i(39),h=i(42),f=i(48),p=i(49),g=i(18),m=i(54);t.a={name:"HdGrid",components:{HdRightMenu:m.a,GridShow:d.a,PdfShow:h.a,GridExField:u.a,ExtendColumn:p.a,HdBtn:g.default},mixins:[c.a,f.a],data:function(){return{disCol:[],oriCol:[],chiCol:[],colThis:[],menuId:"",gridId:"",queryShow:!0,excelAllExporting:!1,pdfAllExporting:!1,gridShowIs:!1,exFieldShowIs:!1,pdfShowIs:!1,gridCanReload:!0,isGridCustom:!1,exFieldRows:[],rightMenuVisable:!1,rightMenuRow:[],lastSelectRow:null}},inheritAttrs:!1,props:{hdResult:Object,hdAllResult:Object,hdQuery:{type:Object,default:function(){return{}}},height:{type:String,default:function(){return"100%"}},noSets:{type:Boolean,default:function(){return!1}},defaultSort:{type:Object,default:function(){return{prop:"updTim",order:"descending"}}},pageHide:Boolean,ckHide:Boolean,indexHide:Boolean,recHide:Boolean,rowClassName:Function,noExcelExport:[Array],excelPropHeader:Boolean,visualScroll:Boolean,pageSizes:[Array],exField:{type:Object,default:function(){return{open:!1,table:null,columnList:null}}},excelFormatter:Function,addHide:Boolean,delHide:Boolean,saveHide:Boolean,copyHide:Boolean,hdBtnTool:{type:Boolean,default:!0},rightMenuOpen:{type:Boolean,default:!1}},created:function(){this.$parent.$vnode.context.$options._componentTag?this.gridId=this.$parent.$vnode.context.$options._componentTag+"_"+this.$parent.$parent.$options._componentTag:this.gridId=this.$parent.$vnode.context.$options.name+"_"+this.$parent.$parent.$options._componentTag},mounted:function(){this.hdQuery.doSort(this.defaultSort,!0);var e=localStorage.getItem("page_"+this.gridId);e&&(this.hdQuery.rows=parseInt(e)),this.pageHide&&(this.hdQuery.page=null,this.hdQuery.rows=null),this.visualScroll&&this.initVisual(),this.exField.gridCode&&this.initExFieldRows(),this.$nextTick(function(){this.noSets||this.gridShow(!0)})},methods:{doAdd:function(){this.$emit("sel-ok","doAdd")},doRemove:function(){this.$emit("sel-ok","doRemove")},doSave:function(){this.$emit("sel-ok","doSave")},doCopy:function(){this.$emit("sel-ok","doCopy")},doUpdateOne:function(){this.$emit("sel-ok","doUpdateOne",this.rightMenuRow)},doRemoveOne:function(){this.$emit("sel-ok","doRemoveOne",this.rightMenuRow)},doCopyOne:function(){this.$emit("sel-ok","doCopyOne",this.rightMenuRow)},gridShow:function(e){e||(this.gridCanReload=!1),this.$nextTick(function(){this.gridCanReload=!0,this.$nextTick(function(){var t=this;!e&&this.visualScroll&&(this.initVisual(),this.initTableHeight()),this.oriCol=this.$refs.ingrid.store.states._columns,this.menuId=this.$route.name;var i="/webresources/login/com/ComGridShow/find?menuId="+this.menuId+"&gridId="+this.gridId;this.$http.post(i).then(function(e){t.isGridCustom=0!=e.data.length,t.disCol=t.gridCompute(t.oriCol,e.data),t.$refs.ingrid.store.states._columns=t.disCol.filter(function(e){return"0"!=e.showFlg}),console.log("显示序列条数",t.$refs.ingrid.store.states._columns.length),t.$refs.ingrid.store.updateColumns(),t.$nextTick(function(){this.$refs.ingrid.doLayout()})})})})},exFieldShow:function(){window.location.reload()},gridSets:function(){var e=this;this.gridShowIs=!0,this.$nextTick(function(){e.$refs.gridShow.show(e.disCol,e.menuId,e.gridId)})},exFieldSets:function(){var e=this;this.exFieldShowIs=!0,this.$nextTick(function(){e.$refs.exFieldShow.show()})},gridCompute:function(e,t){for(var i=this,o=[],n=[],r=0;r<e.length;r++){var l=e[r];l.showFlg="1",l._ori_label=l.label,l.label=l._ori_label;var s=!1;if(!l||l.property){for(var d=0;d<t.length;d++)if(l.property==t[d].property){s=!0;break}s||n.push(l)}else"right"==l.fixed?o.push(e[r]):o.push(l)}for(var u=0;u<t.length;u++){(function(n){var r=t[n];if(o.some(function(e){return e.property==r.property}))return console.log("已经重复"+r.property),"continue";for(var l=0;l<e.length;l++){var s=e[l];if("checkBox"==s.className&&(i.$set(s,"fixed","left"),i.$set(s,"className","checkBox backFF")),"selection"!=s.type&&"index"!=s.type||(i.$set(s,"fixed","left"),i.$set(s,"className","backFF")),s.property&&r.property==s.property){i.$set(s,"showFlg",r.showFlg),i.$set(s,"freezeFlg",r.freezeFlg),"1"==r.freezeFlg&&(i.$set(s,"fixed","left"),i.$set(s,"className","backFF"+s.className)),s.width=r.width,o.push(s);break}}})(u)}return o=[].concat(a()(o),n)},extSets:function(e){"gridSets"==e&&this.gridSets(),"exFieldSets"==e?this.exFieldSets():"pageExcel"==e?this.doPageExcel():"allExcel"==e?this.doAllExcel():"allPdf"==e?this.doAllPdf():"queryToggle"==e&&(this.queryShow=!this.queryShow),this.$emit("extSets",e)},getHdComGrid:function(){for(var e=this.$parent;e;){if("HdComGrid"==e.$options.name)return e;e=e.$parent}return null},myselectionChange:function(e){this.hdQuery&&(this.hdQuery.selObj=e),this.$emit("selection-change",e,!0)},myrowClick:function(e,t,i){this.hdQuery&&(this.hdQuery.selRow=e)},myrowDblClick:function(e,t,i){this.$listeners["row-dblclick"]||1!=this.$route.path.indexOf("privilege")&&(this.$emit("sel-ok","doUpdateOne",e),this.hdQuery&&(this.hdQuery.selRow=e))},myrowContextmenu:function(e,t,i){if(this.hdQuery&&(this.rightMenuRow=e),this.rightMenuVisable=!1,i.preventDefault(),this.rightMenuOpen){var o=this.$refs.rightMenu.$el;document.addEventListener("click",this.foo),o.style.left=i.clientX+"px",o.style.top=i.clientY+"px",this.rightMenuVisable=!0}},foo:function(){this.rightMenuVisable=!1,document.removeEventListener("click",this.foo)},dodefaultSort:function(e,t,i){var o=this;if(e.column.sortable){for(var n=!1,r=0;r<this.hdResultComRows.length;r++)if(this.hdResultComRows[r].isEdit){n=!0;break}n?this.$confirm(this.$t("存在未保存数据,是否继续?"),this.$t("提示"),{}).then(function(){o.hdQuery.doSort(e,!1)}):this.hdQuery.doSort(e,!1)}},localeCompare:function(e,t){return e?t?e.localeCompare(t):-1:1},doPageExcel:function(){this.excelExport(this.hdResult.rows)},doAllExcel:function(){var e=this,t=null;this.$emit("allExcel",function(e){t=e}),this.excelAllExporting=!0,t.then(function(t){e.excelExport(t.data.rows),e.excelAllExporting=!1})},doAllPdf:function(){var e=this,t=null;this.pdfShowIs=!0,this.$emit("allExcel",function(e){t=e}),this.pdfAllExporting=!0,t.then(function(t){e.pdfExport(t.data.rows),e.pdfAllExporting=!1})},getInputFormat:function(e){for(var t=0;t<this.colThis.length;t++){var i=this.colThis[t];if(i.$attrs.prop==e)return i.getValueByPath}},rowSizeChg:function(e){localStorage.setItem("page_"+this.gridId,e),this.hdQuery.doSizeChg(e)},getCkRows:function(){return this.visualScroll?this.hdResult.rows.filter(function(e){return 1==e._isCK}):this.hdQuery.selObj},initExFieldRows:function(){var e=this,t=new HdQuery(this);t.query.gridCode=this.exField.gridCode,t.sort="sortNo",t.order="asc",this.$http.post("/webresources/login/tech/ComExField/detail/find",t).then(function(t){e.exFieldRows=t.data.rows,e.exFieldRows.forEach(function(e){e.fieldName=e.columnName.toLowerCase().replace(/\_+[a-zA-Z]/g,function(e,t){return t?e.substr(-1).toUpperCase():e})}),e.$nextTick(function(){this.$refs.ingrid.doLayout()})})},filterChange:function(e){this.hdResult.filters=l()(this.hdResult.filters||{},e),this.filterHdResult()},filterHdResult:function(){var e=this,t=n()(this.hdResult.filters||{});this.hdResult.rows=this.hdResult._rows.filter(function(i){return!t.some(function(t){var o=(e.$refs.ingrid.store.states._columns.find(function(e){return e.id==t})||"").property;return e.hdResult.filters[t].length>0&&-1==e.hdResult.filters[t].indexOf(i[o])})})},selectPart:function(e,t){var i=this,o=this.hdResult.rows.indexOf(this.hdQuery.selRow),n=this.hdResult.rows.indexOf(this.rightMenuRow);if(o>n){var r=o;o=n,n=r}this.hdResult.rows.forEach(function(e,r){r>=o&&r<=n&&i.$refs.ingrid.toggleRowSelection(e,!t)})},unSelectPart:function(e){this.selectPart(e,!0)}},computed:{hdResultComRows:function(){return this.visualScroll?this.gridDataRows:this.hdResult.rows},pageSizeArray:function(){return null==this.pageSizes?this.visualScroll?[20,50,100,200,500,1e3,2e3]:[20,50,100,200,500]:this.pageSizes},showBtnTool:function(){return this.hdBtnTool&&1!=this.$route.path.indexOf("privilege")}},watch:{}}},function(e,t){e.exports=require("babel-runtime/core-js/object/keys")},function(e,t,i){"use strict";var o=i(9),n=i.n(o),r=i(13),l=i.n(r);t.a={name:"gridshow",components:{},data:function(){return{hdQuery:new HdQuery(this),list:[],oldList:[],newList:[],visible:!1,loading:!1,menuId:"",gridId:"",specCkForGrid:!0}},mounted:function(){this.loading=!1},methods:{show:function(e,t,i){var o=this;this.menuId=t,this.gridId=i,this.visible=!0,this.list=JSON.parse(n()(e.filter(function(e){return e.property}))),this.list.forEach(function(e){return e.children=[]}),this.oldList=this.list.map(function(e){return e.property}),this.newList=this.oldList.slice(),this.$nextTick(function(){o.setSort()})},setSort:function(){for(var e=this,t=document.querySelectorAll(".gridShow .el-table__body-wrapper > table > tbody"),i=0;i<t.length;i++){var o=t[i];this.sortable=l.a.create(o,{ghostClass:"sortable-ghost",onEnd:function(t){var i=e.list.splice(t.oldIndex,1)[0];e.list.splice(t.newIndex,0,i);var o=e.newList.splice(t.oldIndex,1)[0];e.newList.splice(t.newIndex,0,o)}})}},submit:function(){var e=this,t="/webresources/login/com/ComGridShow/save?menuId="+this.menuId+"&gridId="+this.gridId;this.loading=!0,this.$http.post(t,this.list).then(function(t){e.loading=!1;var i=t.data;e.$message({type:"-1"==i.code?"error":"success",message:i.message}),"-1"!=i.code&&(e.visible=!1,e.$emit("save-ok"))})},reset:function(){var e=this,t="/webresources/login/com/ComGridShow/reset?menuId="+this.menuId+"&gridId="+this.gridId;this.$http.post(t,this.list).then(function(t){var i=t.data;e.$message({type:"-1"==i.code?"error":"success",message:i.message}),"-1"!=i.code&&(e.visible=!1,e.$emit("save-ok"))})}}}},function(e,t){e.exports=require("sortablejs")},function(e,t,i){"use strict";var o=i(13),n=i.n(o),r=i(36);t.a={name:"gridexfield",components:{SelGridFieldcode:r.a},props:{table:String,columnList:Array,gridCode:String},data:function(){return{hdQuery:new HdQuery(this),visible:!1,loading:!1,list:[]}},mounted:function(){this.init()},methods:{init:function(e){var t=this;this.hdQuery.query.tableName=this.table,this.hdQuery.query.columnList=this.columnList,this.hdQuery.query.gridCode=this.gridCode,this.hdQuery.sort="sortNo",this.hdQuery.order="asc",this.$http.post("/webresources/login/tech/ComExFieldCustom/find",this.hdQuery).then(function(e){t.list=e.data.rows,t.columnList&&t.columnList.forEach(function(i){e.data.rows.some(function(e){return e.columnName==i})||t.list.unshift({columnName:i,tableName:t.table,formXs:"20",formSpan:"12",isEdit:!0})});var i=0;t.list.forEach(function(e){e.isEdit=!0,e.sortNo=i++,e.formSpan=e.formSpan+""}),t.$refs.grid.doQuery({rows:t.list}),t.$nextTick(function(){t.setSort()})})},show:function(){this.visible=!0,this.list.forEach(function(e){e.isEdit=!0})},setSort:function(){for(var e=this,t=document.querySelectorAll(".gridShow .el-table__body-wrapper > table > tbody"),i=0;i<t.length;i++){var o=t[i];this.sortable=n.a.create(o,{ghostClass:"sortable-ghost",onEnd:function(t){e.list.forEach(function(e){e.sortNo==t.oldIndex?e.sortNo=t.newIndex:t.newIndex>t.oldIndex&&e.sortNo<=t.newIndex&&e.sortNo>t.oldIndex?e.sortNo=e.sortNo-1:t.newIndex<t.oldIndex&&e.sortNo>=t.newIndex&&e.sortNo<t.oldIndex&&(e.sortNo=e.sortNo+1)})}})}},doAdd:function(){var e=this.getEmptyColumn();if(null==e)return void this.$message({message:"没有剩余的扩展字段"});var t={gridCode:this.gridCode,tableName:this.table,columnName:e,formXs:12,formSpan:"20",isEdit:!0};this.$refs.grid.doEdit("",t)},submit:function(){var e=this;this.list.forEach(function(t){t.columnComment&&t.columnType||(t.isEdit=!1),t.gridCode=e.gridCode}),this.$refs.grid.doSaveAll().then(function(t){e.visible=!1,e.$emit("save-ok")}).catch(function(t){e.$message({message:"填写有误"})})},getEmptyColumn:function(){var e=this,t=this.columnList.filter(function(t){return!e.list.some(function(e){return e.columnName==t})});return t.length>0?t[0]:null},columnTypeChange:function(e,t){t.exColumnId&&this.$message({type:"warning",message:this.$t("修改类型可能回造成数据混乱或丢失, 请慎重!")}),"VARCHAR"!=t.columnType&&"BOOLEAN"!=t.columnType||(t.formatter="x")}}}},function(e,t,i){"use strict";t.a={name:"sel-grid-fieldcode",components:{},data:function(){return{hdQuery:new HdQuery(this)}},mounted:function(){},props:{txtVal:String,idVal:String,disabled:Boolean},methods:{beforeQuery:function(e){this.hdQuery.query.anyQuery=e},doClick:function(e){this.$emit("update:txtVal",e.fieldName),this.$emit("update:idVal",e.fieldCod)}}}},function(e,t,i){"use strict";var o=i(6),n=i.n(o),r=i(9),l=i.n(r),s=i(45),a=i.n(s),d=i(46);i.n(d);window.jsPDF=a.a,t.a={name:"pdfshow",components:{},props:{gening:{type:Boolean,default:function(){return!0}},defaultSort:{type:Object,default:function(){return{prop:"updTim",order:"descending"}}},pageHide:Boolean,ckHide:Boolean,indexHide:Boolean,recHide:Boolean,rowClassName:Function,excelPropHeader:Boolean},data:function(){return{visible:!0,totalSize:0,isLandscape:!1,pdfExport:[],currentPage:1,pageSize:400,resultData:[],columnStyles:[],gridData:[],gridStyles:[],title:"",fontSize:10}},mounted:function(){},methods:{handleSizeChange:function(){this.initPdf()},handleCurrentChange:function(){this.initPdf()},initShowData:function(){var e=this;this.gridData=this.resultData.map(function(t){return t.filter(function(t,i){return e.pdfExport.indexOf(i)>-1})});var t=0;this.gridStyles=this.resultData[0].reduce(function(i,o,n){if(e.pdfExport.indexOf(n)>-1){var r=parseInt(e.columnStyles[n].cellWidth);console.log("xxx".cellWidth,e.columnStyles[n].cellWidth),i[t++]={cellWidth:isNaN(r)?"auto":r}}return i},{}),console.log(this.gridData,this.gridStyles)},refreshGridData:function(){var e={isLandscape:this.isLandscape,fontSize:this.fontSize,cols:this.pdfExport,columnStyles:this.columnStyles};localStorage.setItem("HdPdfSel"+this.$parent.gridId,l()(e)),this.initShowData(),this.initPdf()},addScript:function(){this.$message({type:"success",showClose:!0,duration:99999,message:this.$t("正在初始化pdf脚本,请等待...")});var e=document.getElementsByTagName("head")[0],t=document.createElement("script"),i=this;t.onload=t.onreadystatechange=function(){console.log("readyState",i.readyState),i.readyState&&"loaded"!==i.readyState&&"complete"!==i.readyState||(i.$message.closeAll(),i.initPdf(),t.onload=t.onreadystatechange=null)},t.type="text/javascript",t.src="static/js/simsun.js",e.appendChild(t)},genPdf:function(e,t,i){this.totalSize=t.length-1,this.resultData.push(["#"].concat(n()(t[0])));for(var o=1;o<t.length;o++)this.resultData.push([o].concat(n()(t[o])));var r=localStorage.getItem("HdPdfSel"+this.$parent.gridId);if(r){var l=JSON.parse(r);this.pdfExport=l.cols,this.fontSize=l.fontSize,this.isLandscape=l.isLandscape;var s=this.resultData[0].map(function(e){return{cellWidth:"auto"}});if(this.columnStyles=l.columnStyles||s,!this.pdfExport||!Array.isArray(this.pdfExport)||this.pdfExport.length<1){this.pdfExport=[];for(var a=0;a<=this.totalSize;a++)this.pdfExport.push(a)}console.log(this.columnStyles,this.resultData)}this.initShowData(),this.title=i,this.addScript()},initPdf:function(){var e=this,t=(this.currentPage-1)*this.pageSize+1,i=this.currentPage*this.pageSize+1,o=this.gridData.slice(t,i);this.$nextTick(function(){e.showPdf([e.gridData[0]],o,e.title)})},showPdf:function(e,t,i){var o=e,n=t,r=null;if(this.isLandscape){var r=new a.a("l","pt");r.setFont("simsun"),r.setFontStyle("normal"),r.text(i,450,30,{align:"center"})}else{var r=new a.a("h","pt");r.setFont("simsun"),r.setFontStyle("normal"),r.text(i,300,30,{align:"center"})}r.autoTable({head:o,body:n,margin:{right:12,left:12},styles:{font:"simsun",fontStyle:"normal",lineColor:"#000",lineWidth:1,fontSize:this.fontSize,cellPadding:.5,halign:"center",overflow:"linebreak",cellWidth:"10"},headStyles:{font:"simsun",fontStyle:"normal"},columnStyles:this.gridStyles}),document.getElementById("output").data=r.output("datauristring")}},watch:{fontSize:function(e){e?e>50?this.fontSize=50:e<2&&(this.fontSize=1):this.fontSize=10}}}},function(e,t,i){"use strict";var o=i(52);t.a={name:"ExtendColumn",mixins:[o.a],props:{exFieldRow:Object},data:function(){return{codeList:Object}},mounted:function(){},methods:{genCode:function(e,t){var i=this;if(this.codeList[t])return this.codeList[t][e];this.codeList[t]={},this.$http.get("/webresources/login/privilege/SysCode/findAll?fieldCod="+t).then(function(o){o.data.forEach(function(o){return i.codeList[t][o.code]=o.name,i.codeList[t][e]})})},getSysCode:function(e){var t=this;this.$http.get("/webresources/login/privilege/SysCode/findAll?fieldCod="+e).then(function(i){i.data.forEach(function(i){t.codeList[e][i.fieldCod]=i.fieldNam})})}}}},function(e,t,i){"use strict";function o(e){i(19)}Object.defineProperty(t,"__esModule",{value:!0});var n=i(5),r=i(21),l=i(0),s=o,a=l(n.a,r.a,!1,s,null,null);t.default=a.exports},function(e,t,i){var o=i(20);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("55915356",o,!0)},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".hdBtn{cursor:pointer}",""])},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.btnRight?i("el-tooltip",{ref:"hdbtn",attrs:{content:e.$t(e.hint+e.addTextProp),placement:"bottom",effect:"light",enterable:!1,"open-delay":500,transition:""}},[i("i",{class:"hdBtn "+e.icon,on:{click:e.handleClick}},[e.icon?e._e():e._t("default"),e._v(" "),e.nowKeyMap?i("hd-hot-key",{attrs:{hotKeyRange:e.hotKeyRange,keyMap:e.nowKeyMap},on:{do:function(t){e.click("hotkey")}}}):e._e()],2)]):e._e()},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";t.a={name:"HdRightMenu",props:{noRoleManage:!1},data:function(){return{isFocus:!1,rangeThis:{}}},created:function(){},methods:{doAdd:function(){this.$emit("do-add")},doRemove:function(){this.$emit("do-remove")},doUpdate:function(){this.$emit("do-update")},doCopy:function(){this.$emit("do-copy")}}}},function(e,t){e.exports=require("xlsx")},function(e,t,i){"use strict";function o(e){i(25)}Object.defineProperty(t,"__esModule",{value:!0});var n=i(10),r=i(56),l=i(0),s=o,a=l(n.a,r.a,!1,s,"data-v-13280730",null);t.default=a.exports},function(e,t,i){var o=i(26);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("542514fa",o,!0)},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".hdgrid[data-v-13280730]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hdgrid[data-v-13280730] .el-table{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.hdgrid[data-v-13280730] .el-table th.gutter{display:table-cell!important}.hdgrid[data-v-13280730] .el-table .el-table__fixed-header-wrapper th,.hdgrid[data-v-13280730] .el-table .el-table__header-wrapper th{background-color:#f6f6f6}.hdgrid[data-v-13280730] .el-table td,.hdgrid[data-v-13280730] .el-table th{padding:1px 0}.hdgrid[data-v-13280730] .el-table .cell,.hdgrid[data-v-13280730] .el-table .el-table--border td:first-child .cell,.hdgrid[data-v-13280730] .el-table .el-table--border th:first-child .cell,.hdgrid[data-v-13280730] .el-table .el-table th div{padding:1.5px 0 1.5px 4px!important}.hdgrid[data-v-13280730] .el-table .el-table__empty-block{position:static;text-align:center;width:100%;height:80%}.hdgrid[data-v-13280730] .el-table .el-table__body{margin-bottom:10px}.hdgrid[data-v-13280730] .el-table .el-table__body-wrapper{height:100%;overflow:auto}.hdgrid[data-v-13280730] .el-table .el-input__inner{height:27px;margin-bottom:0;line-height:27px}.hdgrid[data-v-13280730] .el-table .el-form-item__content,.hdgrid[data-v-13280730] .el-table .el-form-item__label,.hdgrid[data-v-13280730] .el-table .el-input,.hdgrid[data-v-13280730] .el-table .el-input__icon{line-height:30px}.hdgrid[data-v-13280730] .el-table .el-input__inner{padding:5px}.hdgrid[data-v-13280730] .el-table .el-input--prefix .el-input__inner{padding-left:30px}.hdgrid[data-v-13280730] .el-table .cell{min-width:20px}.hdgrid[data-v-13280730] .el-table .checkBox .cell{overflow:inherit}.hdgrid[data-v-13280730] .el-table .checkBox .cell .el-checkbox,.hdgrid[data-v-13280730] .el-table .checkBox .cell .el-checkbox__input{position:inherit}.hdBtnTool[data-v-13280730]{font-weight:700;vertical-align:middle;margin-left:20px}",""])},function(e,t,i){"use strict";function o(e){i(28),i(30)}var n=i(12),r=i(32),l=i(0),s=o,a=l(n.a,r.a,!1,s,"data-v-630d1931",null);t.a=a.exports},function(e,t,i){var o=i(29);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("fc95c992",o,!0)},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".sortable-ghost{opacity:.8;color:#fff!important;background:#42b983!important}.gridShow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.gridShow .el-table{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.gridShow .el-table .el-table__body-wrapper{width:100%;padding-bottom:30px}.gridShow .el-table .el-table__header-wrapper th{background-color:#f6f6f6}.gridShow .el-table .el-table__fixed-header-wrapper th{background-color:#8cbda4}.gridShow .el-table td,.gridShow .el-table th{padding:2px 0}.gridShow .el-table .cell,.gridShow .el-table .el-table--border td:first-child .cell,.gridShow .el-table .el-table--border th:first-child .cell,.gridShow .el-table .el-table th div{padding-left:2px!important;padding-right:2px!important}.gridShow .el-table .el-table__empty-block{position:static;text-align:center;width:100%;height:80%}.gridShow .el-table .el-table__body{margin-bottom:10px}.gridShow .el-table .el-table__body-wrapper{height:100%;overflow-y:auto}.gridShow .el-table .el-input__inner{height:27px;margin-bottom:0}.gridShow .el-table .el-form-item__content,.gridShow .el-table .el-form-item__label,.gridShow .el-table .el-input,.gridShow .el-table .el-input__icon{line-height:30px}.gridShow .el-table .el-input__inner{padding:5px}.gridShow .el-table .el-input--prefix .el-input__inner{padding-left:30px}",""])},function(e,t,i){var o=i(31);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("4ebf2f78",o,!0)},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".icon-star[data-v-630d1931]{margin-right:2px}.drag-handler[data-v-630d1931]{width:20px;height:20px;cursor:pointer}.show-d[data-v-630d1931]{margin-top:15px}",""])},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"展示设置",visible:e.visible,width:"50%","append-to-body":"",top:"2vh"},on:{"update:visible":function(t){e.visible=t}}},[i("el-container",{staticStyle:{height:"80vh",border:"1px solid #eee"}},[i("el-main",{staticClass:"gridShow"},[i("el-table",{attrs:{data:e.list,"row-key":"property"}},[i("el-table-column",{attrs:{align:"center",label:"名称",prop:"label",width:"150",noQuery:""}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"宽度(px)",prop:"width",width:"150",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("hd-num",{attrs:{step:10},model:{value:t.row.width,callback:function(i){e.$set(t.row,"width",e._n(i))},expression:"scope.row.width"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"展示",prop:"showFlg",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.row.showFlg,callback:function(i){e.$set(t.row,"showFlg",i)},expression:"scope.row.showFlg"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"冻结",prop:"freezeFlg",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.row.freezeFlg,callback:function(i){e.$set(t.row,"freezeFlg",i)},expression:"scope.row.freezeFlg"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"排序",width:"80",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(e){return[i("svg-icon",{staticClass:"drag-handler",attrs:{"icon-class":"drag"}})]}}])})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.reset}},[e._v(e._s(e.$t("重置")))]),e._v(" "),i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v(e._s(e.$t("取 消")))]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v(" "+e._s(e.$t("确 定")))])],1)],1)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";function o(e){i(34)}var n=i(14),r=i(38),l=i(0),s=o,a=l(n.a,r.a,!1,s,"data-v-cee2d6d8",null);t.a=a.exports},function(e,t,i){var o=i(35);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("da83c76a",o,!0)},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,"",""])},function(e,t,i){"use strict";var o=i(15),n=i(37),r=i(0),l=r(o.a,n.a,!1,null,null,null);t.a=l.exports},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("hd-grid-sel",{attrs:{txtVal:e.txtVal,idVal:e.idVal,placeholder:"请点击选取",height:"50vh",width:"300px",hdQuery:e.hdQuery,disabled:e.disabled,url:"webresources/login/privilege/SysField/vue/find",beforeQuery:e.beforeQuery},on:{rowClick:e.doClick}},[i("el-table-column",{attrs:{width:"120px",align:"left","header-align":"center",label:"代码",prop:"fieldCod",sortable:""}}),e._v(" "),i("el-table-column",{attrs:{widhth:"180px",align:"left","header-align":"center",label:"名称",prop:"fieldName",sortable:""}})],1)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"扩展字段设置",visible:e.visible,width:"65%","append-to-body":"",top:"2vh"},on:{"update:visible":function(t){e.visible=t}}},[i("el-container",{staticStyle:{height:"80vh",border:"1px solid #eee"}},[i("el-main",{staticClass:"gridShow"},[i("hd-com-grid",{ref:"grid",attrs:{hdQuery:e.hdQuery,url:"/webresources/login/tech/ComExFieldCustom","not-init":"","no-sets":"","ck-hide":"","no-sort":"","index-hide":"","hd-btn-tool":!1,"rec-hide":"","page-hide":"","default-sort":{prop:"sortNo",order:"ascending"}}},[i("el-table-column",{attrs:{width:"100px",align:"center",label:"是否使用",prop:"useFlg",sortable:"",rules:e.$r(0,0,50),input:"el-switch",inputProp:{activeValue:"1",inactiveValue:"0"},inputFormat:e.$ckFt}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"字段注解",prop:"columnComment",rules:e.$r(1,0,50)}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"字段类型",prop:"columnType",rules:e.$r(1),input:"HdDrop",inputProp:{field:"IDV_COLUMN_TYPE"}},on:{change:e.columnTypeChange}}),e._v(" "),i("el-table-column",{attrs:{width:"110px",align:"center",label:"格式/代码",prop:"formatter",rules:e.$r(1)},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?["DROP"==t.row.columnType?[i("sel-grid-fieldcode",{staticStyle:{width:"100%"},attrs:{gridRow:t.row,txtVal:t.row.formatter,idVal:t.row.formatter},on:{"update:txtVal":function(i){e.$set(t.row,"formatter",i)},"update:idVal":function(i){e.$set(t.row,"formatter",i)},blur:function(i){e.checkErr(t.row)}},model:{value:t.row.formatter,callback:function(i){e.$set(t.row,"formatter",i)},expression:"scope.row['formatter']"}})]:"NUMBER"==t.row.columnType?[i("HdDrop",{staticStyle:{width:"100%"},attrs:{gridRow:t.row,txtVal:t.row.formatterStr,idVal:t.row.formatter,field:"IDV_NUMBER_FORMATTER"},on:{"update:txtVal":function(i){e.$set(t.row,"formatterStr",i)},"update:idVal":function(i){e.$set(t.row,"formatter",i)},blur:function(i){e.checkErr(t.row)}},model:{value:t.row.formatter,callback:function(i){e.$set(t.row,"formatter",i)},expression:"scope.row['formatter']"}})]:"DATE"==t.row.columnType?[i("HdDrop",{staticStyle:{width:"100%"},attrs:{gridRow:t.row,txtVal:t.row.formatterStr,idVal:t.row.formatter,field:"IDV_DATE_FORMATTER"},on:{"update:txtVal":function(i){e.$set(t.row,"formatterStr",i)},"update:idVal":function(i){e.$set(t.row,"formatter",i)},blur:function(i){e.checkErr(t.row)}},model:{value:t.row.formatter,callback:function(i){e.$set(t.row,"formatter",i)},expression:"scope.row['formatter']"}})]:void 0]:e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"是否必填",prop:"columnRequire",input:"el-switch",inputProp:{"active-value":1,"inactive-value":0},inputFormat:e.$ckFt}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"最大长度",prop:"columnLen",rules:e.$r(1,0,255,"number"),input:"HdNum"}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"表格宽度",prop:"formSpan",rules:e.$r(1),input:"HdDrop",inputProp:{field:"IDV_FORM_SPAN"}}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"排序",width:"80px",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(e){return[i("svg-icon",{staticClass:"drag-handler",attrs:{"icon-class":"drag"}})]}}])})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v(e._s(e.$t("取 消")))]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v(" "+e._s(e.$t("确 定")))])],1)],1)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";t.a={data:function(){return{rowSelNum:-1}},methods:{addHotKey:function(){document.body.addEventListener("keydown",this.handleKeydown)},removeHotKey:function(){document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode;if(-1!==[38,40,37,39].indexOf(t)){if(38===t&&(this.rowSelNum-=1),40===t&&(this.rowSelNum+=1),37===t&&this.hdQuery.doCurPageChange(this.hdQuery.page-1<1?1:this.hdQuery.page-1),39===t){var i=(this.hdResult.total-1)/this.hdQuery.rows+1;this.hdQuery.doCurPageChange(this.hdQuery.page+1>i?i:this.hdQuery.page+1)}e.stopPropagation(),e.preventDefault()}13===t&&(this.hdQuery.selRow?(this.$emit("enterClick",this.hdQuery.selRow),this.hdQuery.selRow=null):this.hdResultComRows.length>0&&(this.hdQuery.selRow=this.hdResultComRows[0],this.$emit("enterClick",this.hdResultComRows[0]),this.hdQuery.selRow=null)),e.altKey&&13===t&&this.$emit("altEnterClick",this.hdQuery.selRow)},setCurrentRow:function(e,t){this.rowSelNum=e,this.$refs.ingrid.setCurrentRow(this.hdResultComRows[e]),this.hdQuery&&(this.hdQuery.selRow=this.hdResultComRows[this.rowSelNum]);var i=this.$refs.ingrid.$el.querySelectorAll(".el-table__body tr")[e];if(!i)return!0;var o=this.$refs.ingrid.$el.querySelector(".el-table__body-wrapper"),n=(o.getBoundingClientRect().height,i.offsetTop),r=i.offsetTop+i.offsetHeight,l=o.scrollTop,s=l+o.clientHeight+i.clientHeight/3;n<l?o.scrollTop=n:r>s&&(o.scrollTop=o.scrollTop+i.clientHeight)},findLeafCol:function(e,t,i,o,n){if(e.children)for(var r=0;r<e.children.length;r++)this.findLeafCol(e.children[r],t,i,o,e);else t.push(e),n?i.push(n.label+"-"+e.label):i.push(e.label),o.push(e.property)},comExport:function(e){for(var t=[],i=[],o=[],n=0;n<this.disCol.length;n++){var r=this.disCol[n];r&&(r.property||r.children)&&r.showFlg&&"0"!=r.showFlg&&this.findLeafCol(r,o,t,i)}var l=this.formatJson(i,e,t),s=[t].concat(l);return this.summaryAdd(s,i.length),{header:t,filterVal:i,merdata:s,title:this.$route.meta.title+(new Date).format("yyyy-MM-dd HH:mm:ss")}},excelExport:function(e){var t=this.comExport(e),o={};if(this.excelFormatter)o=this.excelFormatter(t);else{var n=t.merdata;this.excelPropHeader&&(n=this.formatJson(t.filterVal,n)),o={header:n[0],data:n.slice(1),filename:t.title}}i(40).export_json_to_excel(o)},pdfExport:function(e){var t=this.comExport(e),i=t.header,o=(t.filterVal,t.merdata),n=t.title;this.$refs.pdfshow.genPdf(i,o,n)},summaryAdd:function(e,t){if(void 0!=this.$attrs.showSummary||void 0!=this.$attrs["show-summary"]){for(var i=[],o=0;o<this.disCol.length;o++){var n=this.disCol[o];n&&n.property&&n.showFlg&&i.push(n)}for(var r=new Array(t),l=this.$attrs.summaryMethod||this.$attrs["summary-method"],s=l({columns:i}),a=0;a<r.length;a++)s[a]?r[a]=s[a]:r[a]="";e.push(r)}},formatJson:function(e,t,i){var o=this;if(!t||0==t.length)return[];if(this.excelPropHeader)for(var n in t[0]){var r=!1;for(var l in e)if(e[l]==n){r=!0;break}r||e.push(n)}var s=["_obj","idevVersionUse","_map"];this.noExcelExport&&(s=s.concat(this.noExcelExport));for(var a=0;a<s.length;a++){var d=e.removeone(s[a]);-1!=d&&i.splice(d,1)}return t.map(function(t){return e.map(function(e){try{var i=o.getInputFormat(e);return i?i(t,e):t[e]+""}catch(e){return console.info(e),null}})})}},watch:{rowSelNum:function(e,t){if(e<0){if(0==this.hdResult.rows.length)return this.rowSelNum=-1,!1;this.rowSelNum=0}e>this.hdResult.rows.length-1&&(this.rowSelNum=this.hdResult.rows.length-1),this.hdQuery&&(this.hdQuery.selRow=this.hdResult.rows[this.rowSelNum]),this.setCurrentRow(this.rowSelNum,e-t>0)}}}},function(e,t,i){"use strict";function o(e){for(var t=[],i=e.querySelectorAll("tr"),o=[],n=0;n<i.length;++n){for(var r=[],l=i[n],s=l.querySelectorAll("td"),a=0;a<s.length;++a){var d=s[a],u=d.getAttribute("colspan"),c=d.getAttribute("rowspan"),h=d.innerText;if(""!==h&&h==+h&&(h=+h),o.forEach(function(e){if(n>=e.s.r&&n<=e.e.r&&r.length>=e.s.c&&r.length<=e.e.c)for(var t=0;t<=e.e.c-e.s.c;++t)r.push(null)}),(c||u)&&(c=c||1,u=u||1,o.push({s:{r:n,c:r.length},e:{r:n+c-1,c:r.length+u-1}})),r.push(""!==h?h:null),u)for(var f=0;f<u-1;++f)r.push(null)}t.push(r)}return[t,o]}function n(e,t){return t&&(e+=1462),(Date.parse(e)-new Date(Date.UTC(1899,11,30)))/864e5}function r(e,t){for(var i={},o={s:{c:1e7,r:1e7},e:{c:0,r:0}},r=0;r!=e.length;++r)for(var l=0;l!=e[r].length;++l){o.s.r>r&&(o.s.r=r),o.s.c>l&&(o.s.c=l),o.e.r<r&&(o.e.r=r),o.e.c<l&&(o.e.c=l);var s={v:e[r][l]};if(null!=s.v){var a=p.a.utils.encode_cell({c:l,r:r});"number"==typeof s.v?s.t="n":"boolean"==typeof s.v?s.t="b":s.v instanceof Date?(s.t="n",s.z=p.a.SSF._table[14],s.v=n(s.v)):s.t="s",i[a]=s}}return o.s.c<1e7&&(i["!ref"]=p.a.utils.encode_range(o)),i}function l(){if(!(this instanceof l))return new l;this.SheetNames=[],this.Sheets={}}function s(e){for(var t=new ArrayBuffer(e.length),i=new Uint8Array(t),o=0;o!=e.length;++o)i[o]=255&e.charCodeAt(o);return t}function a(e){var t=document.getElementById(e),i=o(t),n=i[1],a=i[0],d=new l,u=r(a);u["!merges"]=n,d.SheetNames.push("SheetJS"),d.Sheets.SheetJS=u;var c=p.a.write(d,{bookType:"xlsx",bookSST:!1,type:"binary"});Object(h.saveAs)(new Blob([s(c)],{type:"application/octet-stream"}),"test.xlsx")}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.multiHeader,i=void 0===t?[]:t,o=e.header,n=e.data,a=e.filename,d=e.merges,u=void 0===d?[]:d,f=e.autoWidth,g=void 0===f||f,m=e.bookType,v=void 0===m?"xlsx":m;a=a||"excel-list",n=[].concat(c()(n)),n.unshift(o);for(var w=i.length-1;w>-1;w--)n.unshift(i[w]);var b=new l,x=r(n);if(u.length>0&&(x["!merges"]||(x["!merges"]=[]),u.forEach(function(e){x["!merges"].push(p.a.utils.decode_range(e))})),g){for(var y=n.map(function(e){return e.map(function(e){return null==e?{wch:10}:e.toString().charCodeAt(0)>255?{wch:2*e.toString().length}:{wch:e.toString().length}})}),_=y[0],S=1;S<y.length;S++)for(var $=0;$<y[S].length;$++)_[$].wch<y[S][$].wch&&(_[$].wch=y[S][$].wch);x["!cols"]=_}b.SheetNames.push("SheetJS"),b.Sheets.SheetJS=x;var R=p.a.write(b,{bookType:v,bookSST:!1,type:"binary"});Object(h.saveAs)(new Blob([s(R)],{type:"application/octet-stream"}),a+"."+v)}Object.defineProperty(t,"__esModule",{value:!0}),t.export_table_to_excel=a,t.export_json_to_excel=d;var u=i(6),c=i.n(u),h=i(41),f=(i.n(h),i(23)),p=i.n(f)},function(e,t){e.exports=require("file-saver")},function(e,t,i){"use strict";function o(e){i(43)}var n=i(16),r=i(47),l=i(0),s=o,a=l(n.a,r.a,!1,s,"data-v-03d5d0fd",null);t.a=a.exports},function(e,t,i){var o=i(44);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("3ac87537",o,!0)},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".pdfshow[data-v-03d5d0fd] .el-dialog__body{width:100%;height:calc(100% - 55px)}",""])},function(e,t){e.exports=require("jspdf")},function(e,t){e.exports=require("jspdf-autotable")},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"pdfshow",attrs:{fullscreen:!0,title:e.gening?"正在生成pdf":"PDF预览",visible:e.visible},on:{"update:visible":function(t){e.visible=t},close:function(t){e.$emit("close")}}},[i("el-row",[i("el-col",{attrs:{span:4}},[i("el-switch",{attrs:{"active-text":e.$t("横向显示"),"inactive-text":e.$t("竖向显示")},on:{change:function(t){e.initPdf()}},model:{value:e.isLandscape,callback:function(t){e.isLandscape=t},expression:"isLandscape"}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[e._v("\n "+e._s(e.$t("字号"))+"\n "),i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:!1,placeholder:e.$t("请输入字号"),size:"mini"},model:{value:e.fontSize,callback:function(t){e.fontSize=e._n(t)},expression:"fontSize"}})],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-pagination",{attrs:{"current-page":e.currentPage,"page-size":e.pageSize,"page-sizes":[100,200,400],total:e.totalSize,layout:"sizes, prev, pager, next"},on:{"update:currentPage":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"current-change":function(t){e.initPdf()},"size-change":function(t){e.initPdf()}}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("el-button",{on:{click:function(t){e.refreshGridData()}}},[e._v(e._s(e.$t("刷新")))])],1)],1),e._v(" "),i("el-row",[e.columnStyles.length>0?i("el-checkbox-group",{model:{value:e.pdfExport,callback:function(t){e.pdfExport=t},expression:"pdfExport"}},e._l(e.resultData[0],function(t,o){return i("el-checkbox",{key:o,attrs:{label:o}},[e._v(e._s(t)+"\n "),i("el-input",{staticStyle:{width:"50px"},attrs:{clearable:!1,placeholder:e.$t("最小宽"),size:"mini"},model:{value:e.columnStyles[o].cellWidth,callback:function(t){e.$set(e.columnStyles[o],"cellWidth",t)},expression:"columnStyles[index].cellWidth"}})],1)})):e._e()],1),e._v(" "),i("object",{staticStyle:{width:"100%",height:"calc(100% - 40px)"},attrs:{id:"output",type:"application/pdf"}},[i("p",[e._v("It appears you don't have PDF support in this web browser")])])],1)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";t.a={data:function(){return{gridDataRows:[],startIndex:0,scroller:0,trHeight:35.5,minRowNum:0,tmpScrollNum:0}},activated:function(){if(!this.visualScroll)return!1;this.scroller=this.$refs.ingrid.$refs.bodyWrapper.scrollTop},methods:{initVisual:function(){var e=this;if(!this.visualScroll)return!1;this.initTableStyle();var t=this.$refs.ingrid.$refs.bodyWrapper,i=this;t.onscroll=function(o){i.tmpScrollNum++,e.$refs.ingrid.store.states.hoverRow="locked",i.scroller=t.scrollTop,setTimeout(function(){0==--i.tmpScrollNum&&(e.$refs.ingrid.store.states.hoverRow=null)},500)}},initTableStyle:function(){this.$refs.ingrid.$refs.bodyWrapper.querySelector("tbody").style.position="absolute"},initTableHeight:function(){var e=this.hdResult.rows.length*this.trHeight,t=this.$refs.ingrid.$refs.bodyWrapper;t.querySelector(".el-table__body").style.height=e+"px",this.updateGridDataRows(t.scrollTop,t.clientHeight)},updateGridDataRows:function(e,t){t=t>this.minRowNum*this.trHeight?t:this.minRowNum*this.trHeight;var i=Math.ceil(e/this.trHeight);i=i<0?0:i;var o=Math.ceil((e+t)/this.trHeight);o=o>this.hdResult.rows.length?this.hdResult.rows.length:o,this.gridDataRows=this.hdResult.rows.slice(i,o),this.startIndex=i,this.$refs.ingrid.setCurrentRow(this.hdQuery.selRow)},getIndex:function(e){return this.startIndex+e},checkAllChange:function(e){for(var t=0;t<this.hdResult.rows.length;t++)this.$set(this.hdResult.rows[t],"_isCK",e)}},watch:{scroller:function(e,t){if(!this.visualScroll)return!1;var i=this.$refs.ingrid.$refs.bodyWrapper,o=this.$refs.ingrid.$refs.fixedBodyWrapper,n=this.$refs.ingrid.$refs.rightFixedBodyWrapper,r=i.clientHeight;e!=t&&(i.querySelector("tbody").style.transform="translate(0px,"+e+"px)",o&&(o.scrollTop=0),n&&(n.scrollTop=0),this.updateGridDataRows(e,r))},"hdResult.rows":function(){var e=this;if(!this.visualScroll)return!1;this.hdResult.rows.filter(function(e){return!e._isCK}).forEach(function(t){e.$set(t,"_isCk",!1)}),this.initTableHeight()}},computed:{isSubChecked:function(){if(!this.visualScroll)return!1;var e=!1,t=!1;return!(!this.hdResult.rows||0==this.hdResult.rows.length)&&(this.hdResult.rows.forEach(function(i){i._isCK&&(e=!0),i._isCK||(t=!0)}),e&&t)},isAllChecked:function(){if(!this.visualScroll)return!1;var e=!0;return!(!this.hdResult.rows||0==this.hdResult.rows.length)&&(this.hdResult.rows.forEach(function(t){t._isCK||(e=!1)}),e)}}}},function(e,t,i){"use strict";function o(e){i(50)}var n=i(17),r=i(53),l=i(0),s=o,a=l(n.a,r.a,!1,s,"data-v-47c19530",null);t.a=a.exports},function(e,t,i){var o=i(51);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("394613a3",o,!0)},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,"",""])},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a={methods:{genFormatter:function genFormatter(formatter){var rtn=eval("this."+formatter);return rtn},genRules:function genRules(field){if(field.rules)return eval("this."+field.rules);var require=field.columnRequire?field.columnRequire:"0",rules="";return rules="DROP"==field.columnType||"DATE"==field.columnType||"BOOLEAN"==field.columnType?"this.$r("+require+")":"NUMBER"==field.columnType?"this.$r("+require+", 0, "+this.repeat("9",field.columnLen)+",'number',"+field.formatter+")":"this.$r("+require+", 0, "+field.columnLen+")",eval(rules)},repeat:function(e,t){return new Array(t+1).join(e)}}}},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return"BOOLEAN"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center","input-format":e.$ckFt,input:"el-switch",inputProp:{activeValue:"1",inactiveValue:"0"},label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):"DROP"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center","input-format":function(t){return e.genCode(t,e.exFieldRow.formatter)},input:"HdDrop",inputProp:{field:e.exFieldRow.formatter},label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):"DATE"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{inputProp:e.genFormatter(e.exFieldRow.formatter),align:"center",input:"el-date-picker",label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):"NUMBER"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center",input:"HdNum",label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center",label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}})},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";var o=i(22),n=i(55),r=i(0),l=r(o.a,n.a,!1,null,null,null);t.a=l.exports},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"rightmenu"},[e._t("rightMenu",[i("el-button-group",[i("ex-button",{staticClass:"rightmenu_button",attrs:{vid:"doAdd"},on:{click:e.doAdd}},[e._v("增加\n ")]),e._v(" "),i("ex-button",{staticClass:"rightmenu_button",attrs:{vid:"doUpdate"},on:{click:e.doUpdate}},[e._v("修改\n ")]),e._v(" "),i("ex-button",{staticClass:"rightmenu_button",attrs:{vid:"doRemove"},on:{click:e.doRemove}},[e._v("删除\n ")]),e._v(" "),i("ex-button",{staticClass:"rightmenu_button",attrs:{vid:"doCopy"},on:{click:e.doCopy}},[e._v("复制\n ")])],1),e._v(" "),e.$slots.rightMenuExt?i("div",{staticStyle:{border:"#555 1px solid"}}):e._e(),e._v(" "),i("el-button-group",[e._t("rightMenuExt")],2)])],2)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"grid",staticClass:"hdgrid",style:{width:"100%",height:e.height}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.queryShow,expression:"queryShow"}]},[e._t("query")],2),e._v(" "),e.noSets?e._e():i("div",{staticStyle:{height:"0px"}},[i("el-dropdown",{staticStyle:{float:"right",height:"0",width:"20px",position:"relative",right:"0px","text-align":"center","z-index":"100",cursor:"pointer","font-size":"25px"},on:{command:e.extSets}},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"fa fa-cogs",style:{"font-size":"13px",color:e.isGridCustom?"red !important":""}})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"gridSets"}},[e._v(e._s(e.$t("自定义展示")))]),e._v(" "),i("el-dropdown-item",{attrs:{command:"pageExcel"}},[e._v(e._s(e.$t("导出当页excel"))+"\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{disabled:e.excelAllExporting,command:"allExcel"}},[e._v("\n "+e._s(e.excelAllExporting?e.$t("正在导出"):e.$t("导出全部excel"))+"\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{disabled:e.pdfAllExporting,command:"allPdf"}},[e._v("\n "+e._s(e.pdfAllExporting?e.$t("正在生成"):e.$t("pdf打印"))+"\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{command:"queryToggle"}},[e._v(e._s(e.queryShow?e.$t("隐藏查询区"):e.$t("显示查询区")))]),e._v(" "),e.exField.open?i("el-dropdown-item",{attrs:{command:"exFieldSets"}},[e._v(e._s(e.$t("添加扩展字段")))]):e._e(),e._v(" "),e._t("extSets")],2)],1)],1),e._v(" "),e.gridCanReload?i("el-table",e._g(e._b({ref:"ingrid",attrs:{data:e.hdResultComRows,"default-sort":e.defaultSort,"row-class-name":e.rowClassName,stripe:void 0==e.$attrs.stripe||e.$attrs.stripe,border:"","element-loading-text":"加载中...",height:"100%","highlight-current-row":""},on:{"row-click":e.myrowClick,"row-dblclick":e.myrowDblClick,"row-contextmenu":e.myrowContextmenu,"selection-change":e.myselectionChange,"sort-change":e.dodefaultSort,"filter-change":e.filterChange}},"el-table",e.$attrs,!1),e.$listeners),[e.visualScroll?[e.ckHide?e._e():i("ex-table-column",{attrs:{showOverflowTooltip:!0,align:"center","class-name":"checkBox",noEdit:"",noSlot:"",width:"30"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("el-checkbox",{attrs:{indeterminate:e.isSubChecked,value:e.isAllChecked},on:{change:e.checkAllChange}})]}},{key:"default",fn:function(t){return[i("el-checkbox",{model:{value:t.row._isCK,callback:function(i){e.$set(t.row,"_isCK",i)},expression:"scope.row._isCK"}})]}}])}),e._v(" "),e.indexHide?e._e():i("ex-table-column",{attrs:{index:e.getIndex,showOverflowTooltip:!0,align:"center",noEdit:"",noSlot:"",type:"index",width:"40"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("span",[e._v("#")])]}},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+e.startIndex+1)+"\n ")]}}])})]:[e.ckHide?e._e():i("ExTableColumn",{attrs:{showOverflowTooltip:!1,align:"center","class-name":"backFF",noEdit:"",noSlot:"",type:"selection",width:"30"},nativeOn:{click:function(t){e.selectClick(t)}}}),e._v(" "),e.indexHide?e._e():i("ex-table-column",{attrs:{showOverflowTooltip:!1,align:"center",noEdit:"",noSlot:"",type:"index",width:"40"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("span",[e._v("#")])]}}])})],e._v(" "),e._t("default"),e._v(" "),e.exField.gridCode?[e._l(e.exFieldRows,function(e){return[i("ExtendColumn",{attrs:{exFieldRow:e}})]})]:e._e(),e._v(" "),e.recHide?e._e():[i("el-table-column",{attrs:{align:"left","header-align":"center",label:"创建人",noEdit:"",prop:"recNam",sortable:"",width:"auto"}}),e._v(" "),i("el-table-column",{attrs:{inputProp:e.$date,align:"center",input:"el-date-picker",label:"创建时间",noEdit:"",prop:"recTim",sortable:"",width:"135px"}}),e._v(" "),i("el-table-column",{attrs:{align:"left","header-align":"center",label:"更新人",noEdit:"",prop:"updNam",sortable:"",width:"auto"}}),e._v(" "),i("el-table-column",{attrs:{inputProp:e.$date,align:"center",input:"el-date-picker",label:"更新时间",noEdit:"",prop:"updTim",sortable:"",width:"135px"}})]],2):e._e(),e._v(" "),!e.pageHide||e.showBtnTool?i("div",{ref:"pagecon",staticClass:"pagination-container",staticStyle:{height:"26px",overflow:"hidden"}},[e.showBtnTool?i("div",{staticStyle:{float:"left"}},[e._t("btnTool",[e.addHide?e._e():i("hd-btn",{staticClass:"hdBtnTool",attrs:{icon:"el-icon-plus",hint:"增加",vid:"doAdd",keyType:"add"},on:{click:e.doAdd}}),e._v(" "),e.delHide?e._e():i("hd-btn",{staticClass:"hdBtnTool",attrs:{icon:"el-icon-minus",hint:"删除",keyType:"del"},on:{click:e.doRemove}}),e._v(" "),e.saveHide?e._e():i("hd-btn",{staticClass:"hdBtnTool",attrs:{icon:"el-icon-check",hint:"保存",keyType:"save"},on:{click:e.doSave}})])],2):e._e(),e._v(" "),e.pageHide?e._e():i("el-pagination",{staticStyle:{float:"right"},attrs:{"current-page":e.hdQuery.page,"page-size":e.hdQuery.rows,"page-sizes":e.pageSizeArray,total:e.hdResult.total,layout:" total, slot, prev, pager, next,sizes",small:""},on:{"update:currentPage":function(t){e.$set(e.hdQuery,"page",t)},"current-change":e.hdQuery.doCurPageChange,"size-change":e.rowSizeChg}})],1):e._e(),e._v(" "),e.gridShowIs?i("GridShow",{ref:"gridShow",on:{"save-ok":function(t){e.gridShow()}}}):e._e(),e._v(" "),e.exField.open&&e.exFieldShowIs?i("GridExField",{ref:"exFieldShow",attrs:{columnList:e.exField.columnList,gridCode:e.exField.gridCode,table:e.exField.table},on:{"save-ok":function(t){e.exFieldShow()}}}):e._e(),e._v(" "),e.pdfShowIs?i("PdfShow",{ref:"pdfshow",attrs:{gening:e.pdfAllExporting},on:{close:function(t){e.pdfShowIs=!1}}}):e._e(),e._v(" "),e.rightMenuOpen?i("hd-right-menu",{directives:[{name:"show",rawName:"v-show",value:e.rightMenuVisable,expression:"rightMenuVisable"}],ref:"rightMenu",on:{"do-add":e.doAdd,"do-update":e.doUpdateOne,"do-remove":e.doRemoveOne,"do-copy":e.doCopyOne}},[i("template",{slot:"rightMenu"},[e._t("rightMenu")],2),e._v(" "),i("template",{slot:"rightMenuExt"},[e._t("rightMenuExt")],2)],2):e._e()],1)},n=[],r={render:o,staticRenderFns:n};t.a=r}]);
@@ -1 +1 @@
1
- module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=77)}({0:function(e,t){e.exports=function(e,t,n,r,o,s){var i,a=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(i=e,a=e.default);var c="function"==typeof a?a.options:a;t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o);var f;if(s?(f=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=f):r&&(f=r),f){var d=c.functional,p=d?c.render:c.beforeCreate;d?(c._injectStyles=f,c.render=function(e,t){return f.call(t),p(e,t)}):c.beforeCreate=p?[].concat(p,f):[f]}return{esModule:i,exports:a,options:c}}},1:function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var s=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([s]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var s=this[o][0];"number"==typeof s&&(r[s]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},2:function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=f[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(s(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var i=[],o=0;o<n.parts.length;o++)i.push(s(n.parts[o]));f[n.id]={id:n.id,refs:1,parts:i}}}}function o(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function s(e){var t,n,r=document.querySelector("style["+m+'~="'+e.id+'"]');if(r){if(h)return v;r.parentNode.removeChild(r)}if(y){var s=l++;r=p||(p=o()),t=i.bind(null,r,s,!1),n=i.bind(null,r,s,!0)}else r=o(),t=a.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function i(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var s=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(s,i[t]):e.appendChild(s)}}function a(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),g.ssrId&&e.setAttribute(m,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(4),f={},d=u&&(document.head||document.getElementsByTagName("head")[0]),p=null,l=0,h=!1,v=function(){},g=null,m="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,o){h=n,g=o||{};var s=c(e,t);return r(s),function(t){for(var n=[],o=0;o<s.length;o++){var i=s[o],a=f[i.id];a.refs--,n.push(a)}t?(s=c(e,t),r(s)):s=[];for(var o=0;o<n.length;o++){var a=n[o];if(0===a.refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete f[a.id]}}}};var _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},4:function(e,t){e.exports=function(e,t){for(var n=[],r={},o=0;o<t.length;o++){var s=t[o],i=s[0],a=s[1],u=s[2],c=s[3],f={id:e+":"+o,css:a,media:u,sourceMap:c};r[i]?r[i].parts.push(f):n.push(r[i]={id:i,parts:[f]})}return n}},58:function(e,t,n){"use strict";t.a={name:"HdHotKey",data:function(){return{isFocus:!1,rangeThis:{}}},props:["keyMap","hotKeyRange"],created:function(){this.rangeThis=this.getRangeThis(),this.$set(this.$store.state,"IdevFocus",-1)},mounted:function(){var e=this;this.$nextTick(function(){if(e.rangeThis){var t=e.rangeThis.$el;t.onmouseenter=function(){"-1"!=e.$store.state.hotKey&&e.$set(e.$store.state,"IdevFocus",e.rangeThis._uid)},t.onmouseleave=function(){e.$set(e.$store.state,"IdevFocus","-1")}}})},methods:{getRangeThis:function(){for(var e=this.$parent;e;){if(e.$options._componentTag==this.hotKeyRange)return e;e=e.$parent}return null},doMethod:function(e){this.$emit("do",e)}},watch:{"$store.state.IdevFocus":function(){if(!this.rangeThis)return!1;this.rangeThis.$el&&(this.$store.state.IdevFocus==this.rangeThis._uid?this.isFocus=!0:this.isFocus=!1)}}}},77:function(e,t,n){"use strict";function r(e){n(78)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(58),s=n(80),i=n(0),a=r,u=i(o.a,s.a,!1,a,null,null);t.default=u.exports},78:function(e,t,n){var r=n(79);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(2)("347069e0",r,!0,{})},79:function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,"",""])},80:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isFocus?n("div",{directives:[{name:"shortkey",rawName:"v-shortkey",value:e.keyMap,expression:"keyMap"}],on:{shortkey:e.doMethod}}):e._e()},o=[],s={render:r,staticRenderFns:o};t.a=s}});
1
+ module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=77)}({0:function(e,t){e.exports=function(e,t,n,r,o,s){var i,a=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(i=e,a=e.default);var c="function"==typeof a?a.options:a;t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o);var f;if(s?(f=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=f):r&&(f=r),f){var d=c.functional,p=d?c.render:c.beforeCreate;d?(c._injectStyles=f,c.render=function(e,t){return f.call(t),p(e,t)}):c.beforeCreate=p?[].concat(p,f):[f]}return{esModule:i,exports:a,options:c}}},1:function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var s=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([s]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var s=this[o][0];"number"==typeof s&&(r[s]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},2:function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=f[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(s(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var i=[],o=0;o<n.parts.length;o++)i.push(s(n.parts[o]));f[n.id]={id:n.id,refs:1,parts:i}}}}function o(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function s(e){var t,n,r=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(r){if(h)return v;r.parentNode.removeChild(r)}if(g){var s=l++;r=p||(p=o()),t=i.bind(null,r,s,!1),n=i.bind(null,r,s,!0)}else r=o(),t=a.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function i(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=m(t,o);else{var s=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(s,i[t]):e.appendChild(s)}}function a(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(4),f={},d=u&&(document.head||document.getElementsByTagName("head")[0]),p=null,l=0,h=!1,v=function(){},g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n){h=n;var o=c(e,t);return r(o),function(t){for(var n=[],s=0;s<o.length;s++){var i=o[s],a=f[i.id];a.refs--,n.push(a)}t?(o=c(e,t),r(o)):o=[];for(var s=0;s<n.length;s++){var a=n[s];if(0===a.refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete f[a.id]}}}};var m=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},4:function(e,t){e.exports=function(e,t){for(var n=[],r={},o=0;o<t.length;o++){var s=t[o],i=s[0],a=s[1],u=s[2],c=s[3],f={id:e+":"+o,css:a,media:u,sourceMap:c};r[i]?r[i].parts.push(f):n.push(r[i]={id:i,parts:[f]})}return n}},58:function(e,t,n){"use strict";t.a={name:"HdHotKey",data:function(){return{isFocus:!1,rangeThis:{}}},props:["keyMap","hotKeyRange"],created:function(){this.rangeThis=this.getRangeThis(),this.$set(this.$store.state,"IdevFocus",-1)},mounted:function(){var e=this;this.$nextTick(function(){if(e.rangeThis){var t=e.rangeThis.$el;t.onmouseenter=function(){"-1"!=e.$store.state.hotKey&&e.$set(e.$store.state,"IdevFocus",e.rangeThis._uid)},t.onmouseleave=function(){e.$set(e.$store.state,"IdevFocus","-1")}}})},methods:{getRangeThis:function(){for(var e=this.$parent;e;){if(e.$options._componentTag==this.hotKeyRange)return e;e=e.$parent}return null},doMethod:function(e){this.$emit("do",e)}},watch:{"$store.state.IdevFocus":function(){if(!this.rangeThis)return!1;this.rangeThis.$el&&(this.$store.state.IdevFocus==this.rangeThis._uid?this.isFocus=!0:this.isFocus=!1)}}}},77:function(e,t,n){"use strict";function r(e){n(78)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(58),s=n(80),i=n(0),a=r,u=i(o.a,s.a,!1,a,null,null);t.default=u.exports},78:function(e,t,n){var r=n(79);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(2)("09b209a1",r,!0)},79:function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,"",""])},80:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isFocus?n("div",{directives:[{name:"shortkey",rawName:"v-shortkey",value:e.keyMap,expression:"keyMap"}],on:{shortkey:e.doMethod}}):e._e()},o=[],s={render:r,staticRenderFns:o};t.a=s}});
@@ -1 +1 @@
1
- module.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=67)}({0:function(e,t){e.exports=function(e,t,n,r,a,o){var i,l=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(i=e,l=e.default);var c="function"==typeof l?l.options:l;t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),a&&(c._scopeId=a);var d;if(o?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=d):r&&(d=r),d){var u=c.functional,p=u?c.render:c.beforeCreate;u?(c._injectStyles=d,c.render=function(e,t){return d.call(t),p(e,t)}):c.beforeCreate=p?[].concat(p,d):[d]}return{esModule:i,exports:l,options:c}}},1:function(e,t){function n(e,t){var n=e[1]||"",a=e[3];if(!a)return n;if(t&&"function"==typeof btoa){var o=r(a);return[n].concat(a.sources.map(function(e){return"/*# sourceURL="+a.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a<this.length;a++){var o=this[a][0];"number"==typeof o&&(r[o]=!0)}for(a=0;a<e.length;a++){var i=e[a];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},2:function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=d[n.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](n.parts[a]);for(;a<n.parts.length;a++)r.parts.push(o(n.parts[a]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var i=[],a=0;a<n.parts.length;a++)i.push(o(n.parts[a]));d[n.id]={id:n.id,refs:1,parts:i}}}}function a(){var e=document.createElement("style");return e.type="text/css",u.appendChild(e),e}function o(e){var t,n,r=document.querySelector("style["+_+'~="'+e.id+'"]');if(r){if(h)return v;r.parentNode.removeChild(r)}if(m){var o=f++;r=p||(p=a()),t=i.bind(null,r,o,!1),n=i.bind(null,r,o,!0)}else r=a(),t=l.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function i(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function l(e,t){var n=t.css,r=t.media,a=t.sourceMap;if(r&&e.setAttribute("media",r),b.ssrId&&e.setAttribute(_,t.id),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var s="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(4),d={},u=s&&(document.head||document.getElementsByTagName("head")[0]),p=null,f=0,h=!1,v=function(){},b=null,_="data-vue-ssr-id",m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,a){h=n,b=a||{};var o=c(e,t);return r(o),function(t){for(var n=[],a=0;a<o.length;a++){var i=o[a],l=d[i.id];l.refs--,n.push(l)}t?(o=c(e,t),r(o)):o=[];for(var a=0;a<n.length;a++){var l=n[a];if(0===l.refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete d[l.id]}}}};var g=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},4:function(e,t){e.exports=function(e,t){for(var n=[],r={},a=0;a<t.length;a++){var o=t[a],i=o[0],l=o[1],s=o[2],c=o[3],d={id:e+":"+a,css:l,media:s,sourceMap:c};r[i]?r[i].parts.push(d):n.push(r[i]={id:i,parts:[d]})}return n}},57:function(e,t,n){"use strict";var r=n(72),a=n.n(r),o=n(73);t.a={name:"treeTable",props:{data:{type:[Array,Object],required:!0},columns:{type:Array,default:function(){return[]}},evalFunc:Function,evalArgs:Array,expandAll:{type:Boolean,default:!1}},computed:{formatData:function(){var e=void 0;e=Array.isArray(this.data)?this.data:[this.data];var t=this.evalFunc||o.a,n=this.evalArgs?a()([e,this.expandAll],this.evalArgs):[e,this.expandAll];return t.apply(null,n)}},methods:{showRow:function(e){var t=!e.row.parent||e.row.parent._expanded&&e.row.parent._show;return e.row._show=t,t?"animation:treeTableShow 1s;-webkit-animation:treeTableShow 1s;":"display:none;"},toggleExpanded:function(e){var t=this.formatData[e];t._expanded=!t._expanded},iconShow:function(e,t){return 0===e&&t.children&&t.children.length>0}}}},67:function(e,t,n){"use strict";function r(e){n(68),n(70)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(57),o=n(76),i=n(0),l=r,s=i(a.a,o.a,!1,l,"data-v-4e6c8ebe",null);t.default=s.exports},68:function(e,t,n){var r=n(69);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(2)("6acf1827",r,!0,{})},69:function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,"@keyframes treeTableShow{0%{opacity:0}to{opacity:1}}@-webkit-keyframes treeTableShow{0%{opacity:0}to{opacity:1}}",""])},70:function(e,t,n){var r=n(71);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(2)("d8751f2c",r,!0,{})},71:function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,'.ms-tree-space[data-v-4e6c8ebe]{position:relative;top:1px;display:inline-block;font-style:normal;font-weight:400;line-height:1;width:8px;height:14px}.ms-tree-space[data-v-4e6c8ebe]:before{content:""}.processContainer[data-v-4e6c8ebe]{width:100%;height:100%}table td[data-v-4e6c8ebe]{line-height:26px}.tree-ctrl[data-v-4e6c8ebe]{position:relative;cursor:pointer;color:#2196f3;margin-left:-8px}.el-table[data-v-4e6c8ebe]{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.el-table .el-table__body-wrapper[data-v-4e6c8ebe]{width:100%}.el-table .el-table__fixed-header-wrapper th[data-v-4e6c8ebe],.el-table .el-table__header-wrapper th[data-v-4e6c8ebe]{background-color:#f6f6f6}.el-table td[data-v-4e6c8ebe],.el-table th[data-v-4e6c8ebe]{padding:1px 0}.el-table .cell[data-v-4e6c8ebe],.el-table .el-table--border td:first-child .cell[data-v-4e6c8ebe],.el-table .el-table--border th:first-child .cell[data-v-4e6c8ebe],.el-table .el-table th div[data-v-4e6c8ebe]{padding:1.5px 1px 1.5px 5px!important}.el-table .el-table__empty-block[data-v-4e6c8ebe]{position:static;text-align:center;width:100%;height:80%}.el-table .el-table__body[data-v-4e6c8ebe]{margin-bottom:10px}.el-table .el-table__body-wrapper[data-v-4e6c8ebe]{height:100%;overflow-y:auto}.el-table .el-input__inner[data-v-4e6c8ebe]{height:27px;margin-bottom:0}.el-table .el-form-item__content[data-v-4e6c8ebe],.el-table .el-form-item__label[data-v-4e6c8ebe],.el-table .el-input[data-v-4e6c8ebe],.el-table .el-input__icon[data-v-4e6c8ebe]{line-height:30px}.el-table .el-input__inner[data-v-4e6c8ebe]{padding:5px}.el-table .el-input--prefix .el-input__inner[data-v-4e6c8ebe]{padding-left:30px}',""])},72:function(e,t){e.exports=require("babel-runtime/core-js/array/concat")},73:function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[];return o()(e).forEach(function(e){"open"===e.state&&(e._expanded=!0),void 0===e._expanded&&l.a.set(e,"_expanded",t);var o=1;if(void 0!==a&&null!==a&&(o=a+1),l.a.set(e,"_level",o),n&&l.a.set(e,"parent",n),i.push(e),e.children&&e.children.length>0){var s=r(e.children,t,e,o);i=i.concat(s)}}),i}t.a=r;var a=n(74),o=n.n(a),i=n(75),l=n.n(i)},74:function(e,t){e.exports=require("babel-runtime/core-js/array/from")},75:function(e,t){e.exports=require("vue")},76:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-table",e._b({attrs:{data:e.formatData,"row-style":e.showRow}},"el-table",e.$attrs,!1),[0===e.columns.length?n("el-table-column",{attrs:{width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._l(t.row._level,function(e){return n("span",{key:e,staticClass:"ms-tree-space"})}),e._v(" "),e.iconShow(0,t.row)?n("span",{staticClass:"tree-ctrl",on:{click:function(n){e.toggleExpanded(t.$index)}}},[t.row._expanded?n("i",{staticClass:"el-icon-minus"}):n("i",{staticClass:"el-icon-plus"})]):e._e(),e._v("\n "+e._s(t.$index)+"\n ")]}}])}):e._l(e.columns,function(t,r){return n("el-table-column",{key:t.value,attrs:{label:t.text,width:t.width},scopedSlots:e._u([{key:"default",fn:function(a){return[e._l(a.row._level,function(t){return 0===r?n("span",{key:t,staticClass:"ms-tree-space"}):e._e()}),e._v(" "),e.iconShow(r,a.row)?n("span",{staticClass:"tree-ctrl",on:{click:function(t){e.toggleExpanded(a.$index)}}},[a.row._expanded?n("i",{staticClass:"el-icon-minus"}):n("i",{staticClass:"el-icon-plus"})]):e._e(),e._v("\n "+e._s(a.row[t.value])+"\n ")]}}])})}),e._v(" "),e._t("default")],2)},a=[],o={render:r,staticRenderFns:a};t.a=o}});
1
+ module.exports=function(e){function t(n){if(a[n])return a[n].exports;var r=a[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=67)}({0:function(e,t){e.exports=function(e,t,a,n,r,o){var i,l=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(i=e,l=e.default);var d="function"==typeof l?l.options:l;t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),a&&(d.functional=!0),r&&(d._scopeId=r);var c;if(o?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=c):n&&(c=n),c){var u=d.functional,p=u?d.render:d.beforeCreate;u?(d._injectStyles=c,d.render=function(e,t){return c.call(t),p(e,t)}):d.beforeCreate=p?[].concat(p,c):[c]}return{esModule:i,exports:l,options:d}}},1:function(e,t){function a(e,t){var a=e[1]||"",r=e[3];if(!r)return a;if(t&&"function"==typeof btoa){var o=n(r);return[a].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([o]).join("\n")}return[a].join("\n")}function n(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=a(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,a){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(n[o]=!0)}for(r=0;r<e.length;r++){var i=e[r];"number"==typeof i[0]&&n[i[0]]||(a&&!i[2]?i[2]=a:a&&(i[2]="("+i[2]+") and ("+a+")"),t.push(i))}},t}},2:function(e,t,a){function n(e){for(var t=0;t<e.length;t++){var a=e[t],n=c[a.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](a.parts[r]);for(;r<a.parts.length;r++)n.parts.push(o(a.parts[r]));n.parts.length>a.parts.length&&(n.parts.length=a.parts.length)}else{for(var i=[],r=0;r<a.parts.length;r++)i.push(o(a.parts[r]));c[a.id]={id:a.id,refs:1,parts:i}}}}function r(){var e=document.createElement("style");return e.type="text/css",u.appendChild(e),e}function o(e){var t,a,n=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(n){if(h)return v;n.parentNode.removeChild(n)}if(b){var o=f++;n=p||(p=r()),t=i.bind(null,n,o,!1),a=i.bind(null,n,o,!0)}else n=r(),t=l.bind(null,n),a=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else a()}}function i(e,t,a,n){var r=a?"":n.css;if(e.styleSheet)e.styleSheet.cssText=_(t,r);else{var o=document.createTextNode(r),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function l(e,t){var a=t.css,n=t.media,r=t.sourceMap;if(n&&e.setAttribute("media",n),r&&(a+="\n/*# sourceURL="+r.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}var s="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=a(4),c={},u=s&&(document.head||document.getElementsByTagName("head")[0]),p=null,f=0,h=!1,v=function(){},b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,a){h=a;var r=d(e,t);return n(r),function(t){for(var a=[],o=0;o<r.length;o++){var i=r[o],l=c[i.id];l.refs--,a.push(l)}t?(r=d(e,t),n(r)):r=[];for(var o=0;o<a.length;o++){var l=a[o];if(0===l.refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete c[l.id]}}}};var _=function(){var e=[];return function(t,a){return e[t]=a,e.filter(Boolean).join("\n")}}()},4:function(e,t){e.exports=function(e,t){for(var a=[],n={},r=0;r<t.length;r++){var o=t[r],i=o[0],l=o[1],s=o[2],d=o[3],c={id:e+":"+r,css:l,media:s,sourceMap:d};n[i]?n[i].parts.push(c):a.push(n[i]={id:i,parts:[c]})}return a}},57:function(e,t,a){"use strict";var n=a(72),r=a.n(n),o=a(73);t.a={name:"treeTable",props:{data:{type:[Array,Object],required:!0},columns:{type:Array,default:function(){return[]}},evalFunc:Function,evalArgs:Array,expandAll:{type:Boolean,default:!1}},computed:{formatData:function(){var e=void 0;e=Array.isArray(this.data)?this.data:[this.data];var t=this.evalFunc||o.a,a=this.evalArgs?r()([e,this.expandAll],this.evalArgs):[e,this.expandAll];return t.apply(null,a)}},methods:{showRow:function(e){var t=!e.row.parent||e.row.parent._expanded&&e.row.parent._show;return e.row._show=t,t?"animation:treeTableShow 1s;-webkit-animation:treeTableShow 1s;":"display:none;"},toggleExpanded:function(e){var t=this.formatData[e];t._expanded=!t._expanded},iconShow:function(e,t){return 0===e&&t.children&&t.children.length>0}}}},67:function(e,t,a){"use strict";function n(e){a(68),a(70)}Object.defineProperty(t,"__esModule",{value:!0});var r=a(57),o=a(76),i=a(0),l=n,s=i(r.a,o.a,!1,l,"data-v-71aa4a34",null);t.default=s.exports},68:function(e,t,a){var n=a(69);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a(2)("0eefa593",n,!0)},69:function(e,t,a){t=e.exports=a(1)(void 0),t.push([e.i,"@keyframes treeTableShow{0%{opacity:0}to{opacity:1}}@-webkit-keyframes treeTableShow{0%{opacity:0}to{opacity:1}}",""])},70:function(e,t,a){var n=a(71);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a(2)("26deb8e1",n,!0)},71:function(e,t,a){t=e.exports=a(1)(void 0),t.push([e.i,'.ms-tree-space[data-v-71aa4a34]{position:relative;top:1px;display:inline-block;font-style:normal;font-weight:400;line-height:1;width:8px;height:14px}.ms-tree-space[data-v-71aa4a34]:before{content:""}.processContainer[data-v-71aa4a34]{width:100%;height:100%}table td[data-v-71aa4a34]{line-height:26px}.tree-ctrl[data-v-71aa4a34]{position:relative;cursor:pointer;color:#2196f3;margin-left:-8px}.el-table[data-v-71aa4a34]{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.el-table .el-table__body-wrapper[data-v-71aa4a34]{width:100%}.el-table .el-table__fixed-header-wrapper th[data-v-71aa4a34],.el-table .el-table__header-wrapper th[data-v-71aa4a34]{background-color:#f6f6f6}.el-table td[data-v-71aa4a34],.el-table th[data-v-71aa4a34]{padding:1px 0}.el-table .cell[data-v-71aa4a34],.el-table .el-table--border td:first-child .cell[data-v-71aa4a34],.el-table .el-table--border th:first-child .cell[data-v-71aa4a34],.el-table .el-table th div[data-v-71aa4a34]{padding:1.5px 1px 1.5px 5px!important}.el-table .el-table__empty-block[data-v-71aa4a34]{position:static;text-align:center;width:100%;height:80%}.el-table .el-table__body[data-v-71aa4a34]{margin-bottom:10px}.el-table .el-table__body-wrapper[data-v-71aa4a34]{height:100%;overflow-y:auto}.el-table .el-input__inner[data-v-71aa4a34]{height:27px;margin-bottom:0}.el-table .el-form-item__content[data-v-71aa4a34],.el-table .el-form-item__label[data-v-71aa4a34],.el-table .el-input[data-v-71aa4a34],.el-table .el-input__icon[data-v-71aa4a34]{line-height:30px}.el-table .el-input__inner[data-v-71aa4a34]{padding:5px}.el-table .el-input--prefix .el-input__inner[data-v-71aa4a34]{padding-left:30px}',""])},72:function(e,t){e.exports=require("babel-runtime/core-js/array/concat")},73:function(e,t,a){"use strict";function n(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[];return o()(e).forEach(function(e){"open"===e.state&&(e._expanded=!0),void 0===e._expanded&&l.a.set(e,"_expanded",t);var o=1;if(void 0!==r&&null!==r&&(o=r+1),l.a.set(e,"_level",o),a&&l.a.set(e,"parent",a),i.push(e),e.children&&e.children.length>0){var s=n(e.children,t,e,o);i=i.concat(s)}}),i}t.a=n;var r=a(74),o=a.n(r),i=a(75),l=a.n(i)},74:function(e,t){e.exports=require("babel-runtime/core-js/array/from")},75:function(e,t){e.exports=require("vue")},76:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-table",e._b({attrs:{data:e.formatData,"row-style":e.showRow}},"el-table",e.$attrs,!1),[0===e.columns.length?a("el-table-column",{attrs:{width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._l(t.row._level,function(e){return a("span",{key:e,staticClass:"ms-tree-space"})}),e._v(" "),e.iconShow(0,t.row)?a("span",{staticClass:"tree-ctrl",on:{click:function(a){e.toggleExpanded(t.$index)}}},[t.row._expanded?a("i",{staticClass:"el-icon-minus"}):a("i",{staticClass:"el-icon-plus"})]):e._e(),e._v("\n "+e._s(t.$index)+"\n ")]}}])}):e._l(e.columns,function(t,n){return a("el-table-column",{key:t.value,attrs:{label:t.text,width:t.width},scopedSlots:e._u([{key:"default",fn:function(r){return[e._l(r.row._level,function(t){return 0===n?a("span",{key:t,staticClass:"ms-tree-space"}):e._e()}),e._v(" "),e.iconShow(n,r.row)?a("span",{staticClass:"tree-ctrl",on:{click:function(t){e.toggleExpanded(r.$index)}}},[r.row._expanded?a("i",{staticClass:"el-icon-minus"}):a("i",{staticClass:"el-icon-plus"})]):e._e(),e._v("\n "+e._s(r.row[t.value])+"\n ")]}}])})}),e._v(" "),e._t("default")],2)},r=[],o={render:n,staticRenderFns:r};t.a=o}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ytg7vue",
3
- "version": "1.19.3",
3
+ "version": "1.19.5",
4
4
  "description": "烟台港插件",
5
5
  "author": "liangjinghao",
6
6
  "license": "commerical",
@@ -26,7 +26,7 @@
26
26
  "js-cookie": "2.2.0",
27
27
  "jsonlint": "1.6.2",
28
28
  "jspdf": "^1.5.3",
29
- "jspdf-autotable": "^3.0.2",
29
+ "jspdf-autotable": "^3.5.21",
30
30
  "jszip": "3.1.4",
31
31
  "minami": "^1.2.3",
32
32
  "normalize.css": "7.0.0",