ytg7vue 1.16.1 → 1.16.2
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/README.md +4 -1
- package/lib/idev.common.js +1 -1
- package/lib/index.js +33 -24
- package/lib/js/HdComGrid.js +1 -1
- package/lib/js/HdGrid.js +1 -1
- package/package.json +1 -1
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 c;if(r?(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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},d._ssrRegister=c):o&&(c=o),c){var u=d.functional,h=u?d.render:d.beforeCreate;u?(d._injectStyles=c,d.render=function(e,t){return c.call(t),h(e,t)}):d.beforeCreate=h?[].concat(h,c):[c]}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=c[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]));c[i.id]={id:i.id,refs:1,parts:s}}}}function n(){var e=document.createElement("style");return e.type="text/css",u.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),c={},u=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=c[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 c[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],c={id:e+":"+n,css:l,media:a,sourceMap:d};o[s]?o[s].parts.push(c):i.push(o[s]={id:s,parts:[c]})}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),c=i(33),u=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:c.a,ExtendColumn:p.a,HdBtn:g.default},mixins:[u.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:[]}},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}},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=[],o=[],n=0;n<e.length;n++){var r=e[n];r.showFlg="1",r._ori_label=r.label,r.label=r._ori_label;var s=!1;if(!r||r.property){for(var l=0;l<t.length;l++)if(r.property==t[l].property){s=!0;break}s||o.push(r)}else"right"==r.fixed?i.push(e[n]):i.push(r)}for(var d=0;d<t.length;d++)for(var c=t[d],u=0;u<e.length;u++){var h=e[u];if("checkBox"==h.className&&(this.$set(h,"fixed","left"),this.$set(h,"className","checkBox backFF")),"selection"!=h.type&&"index"!=h.type||(this.$set(h,"fixed","left"),this.$set(h,"className","backFF")),h.property&&c.property==h.property){this.$set(h,"showFlg",c.showFlg),this.$set(h,"freezeFlg",c.freezeFlg),"1"==c.freezeFlg&&(this.$set(h,"fixed","left"),this.$set(h,"className","backFF"+h.className)),h.width=c.width,i.push(h);break}}return i=[].concat(a()(i),o)},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){this.hdQuery&&(this.rightMenuRow=e),this.rightMenuVisable=!1,i.preventDefault();var o=this.$refs.rightMenu.$el;console.log(i),i.clientX>900?o.style.left=i.clientX-265+"px":o.style.left=i.clientX-175+"px",document.addEventListener("click",this.foo),i.clientY>500?o.style.top=i.clientY-185+"px":o.style.top=i.clientY-105+"px"},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])})})}},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]:[20,50,100,200]: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.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(){console.log("refreshGridData",this.pdfExport);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])));console.log("localStorage",localStorage.getItem("HdPdfSel"+this.$parent.gridId));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,20,{align:"center"})}else{var r=new a.a("h","pt");r.setFont("simsun"),r.setFontStyle("normal"),r.text(i,300,20,{align:"center"})}r.autoTable({head:o,body:n,margin:{right:6,left:6},styles:{font:"simsun",fontStyle:"normal",lineColor:"#000",lineWidth:1,fontSize:this.fontSize,cellPadding:.5,halign:"center"},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-4ca5c5c6",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)("0eea07ed",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".hdgrid[data-v-4ca5c5c6]{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-4ca5c5c6] .el-table{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.hdgrid[data-v-4ca5c5c6] .el-table th.gutter{display:table-cell!important}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__fixed-header-wrapper th,.hdgrid[data-v-4ca5c5c6] .el-table .el-table__header-wrapper th{background-color:#f6f6f6}.hdgrid[data-v-4ca5c5c6] .el-table td,.hdgrid[data-v-4ca5c5c6] .el-table th{padding:1px 0}.hdgrid[data-v-4ca5c5c6] .el-table .cell,.hdgrid[data-v-4ca5c5c6] .el-table .el-table--border td:first-child .cell,.hdgrid[data-v-4ca5c5c6] .el-table .el-table--border th:first-child .cell,.hdgrid[data-v-4ca5c5c6] .el-table .el-table th div{padding:1.5px 0 1.5px 4px!important}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__empty-block{position:static;text-align:center;width:100%;height:80%}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__body{margin-bottom:10px}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__body-wrapper{height:100%;overflow:auto}.hdgrid[data-v-4ca5c5c6] .el-table .el-input__inner{height:27px;margin-bottom:0;line-height:27px}.hdgrid[data-v-4ca5c5c6] .el-table .el-form-item__content,.hdgrid[data-v-4ca5c5c6] .el-table .el-form-item__label,.hdgrid[data-v-4ca5c5c6] .el-table .el-input,.hdgrid[data-v-4ca5c5c6] .el-table .el-input__icon{line-height:30px}.hdgrid[data-v-4ca5c5c6] .el-table .el-input__inner{padding:5px}.hdgrid[data-v-4ca5c5c6] .el-table .el-input--prefix .el-input__inner{padding-left:30px}.hdgrid[data-v-4ca5c5c6] .el-table .cell{min-width:20px}.hdgrid[data-v-4ca5c5c6] .el-table .checkBox .cell{overflow:inherit}.hdgrid[data-v-4ca5c5c6] .el-table .checkBox .cell .el-checkbox,.hdgrid[data-v-4ca5c5c6] .el-table .checkBox .cell .el-checkbox__input{position:inherit}.hdBtnTool[data-v-4ca5c5c6]{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-324af748",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)("34aa3991",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)("0462a30a",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".icon-star[data-v-324af748]{margin-right:2px}.drag-handler[data-v-324af748]{width:20px;height:20px;cursor:pointer}.show-d[data-v-324af748]{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;-1!==[38,40,37,39].indexOf(t)&&(38===t&&(this.rowSelNum-=1),40===t&&(this.rowSelNum+=1),37===t&&this.hdQuery.doCurPageChange(this.hdQuery.page-1),39===t&&this.hdQuery.doCurPageChange(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],c=d.getAttribute("colspan"),u=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)}),(u||c)&&(u=u||1,c=c||1,o.push({s:{r:n,c:r.length},e:{r:n+u-1,c:r.length+c-1}})),r.push(""!==h?h:null),c)for(var f=0;f<c-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,c=r(a);c["!merges"]=n,d.SheetNames.push("SheetJS"),d.Sheets.SheetJS=c;var u=p.a.write(d,{bookType:"xlsx",bookSST:!1,type:"binary"});Object(h.saveAs)(new Blob([l(u)],{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,c=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(u()(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(c.length>0&&(x["!merges"]||(x["!merges"]=[]),c.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 c=i(6),u=i.n(c),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-6bc33797",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)("d86d12e2",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".pdfshow[data-v-6bc33797] .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:"menu"},[e._t("rightMenu",[i("el-button-group",[i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doAdd"},on:{click:e.doAdd}},[e._v("增加\n ")]),e._v(" "),i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doUpdate"},on:{click:e.doUpdate}},[e._v("修改\n ")]),e._v(" "),i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doRemove"},on:{click:e.doRemove}},[e._v("删除\n ")]),e._v(" "),i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doCopy"},on:{click:e.doCopy}},[e._v("复制\n ")])],1),e._v(" "),this.$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"}}),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(" "),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)],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 c;if(r?(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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},d._ssrRegister=c):o&&(c=o),c){var u=d.functional,h=u?d.render:d.beforeCreate;u?(d._injectStyles=c,d.render=function(e,t){return c.call(t),h(e,t)}):d.beforeCreate=h?[].concat(h,c):[c]}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=c[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]));c[i.id]={id:i.id,refs:1,parts:l}}}}function n(){var e=document.createElement("style");return e.type="text/css",u.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=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=b(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),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),c={},u=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 l=r[n],s=c[l.id];s.refs--,i.push(s)}t?(r=d(e,t),o(r)):r=[];for(var n=0;n<i.length;n++){var s=i[n];if(0===s.refs){for(var a=0;a<s.parts.length;a++)s.parts[a]();delete c[s.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],l=r[0],s=r[1],a=r[2],d=r[3],c={id:e+":"+n,css:s,media:a,sourceMap:d};o[l]?o[l].parts.push(c):i.push(o[l]={id:l,parts:[c]})}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),c=i(33),u=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:c.a,ExtendColumn:p.a,HdBtn:g.default},mixins:[u.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:[]}},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}},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=[],o=[],n=0;n<e.length;n++){var r=e[n];r.showFlg="1",r._ori_label=r.label,r.label=r._ori_label;var l=!1;if(!r||r.property){for(var s=0;s<t.length;s++)if(r.property==t[s].property){l=!0;break}l||o.push(r)}else"right"==r.fixed?i.push(e[n]):i.push(r)}for(var d=0;d<t.length;d++)for(var c=t[d],u=0;u<e.length;u++){var h=e[u];if("checkBox"==h.className&&(this.$set(h,"fixed","left"),this.$set(h,"className","checkBox backFF")),"selection"!=h.type&&"index"!=h.type||(this.$set(h,"fixed","left"),this.$set(h,"className","backFF")),h.property&&c.property==h.property){this.$set(h,"showFlg",c.showFlg),this.$set(h,"freezeFlg",c.freezeFlg),"1"==c.freezeFlg&&(this.$set(h,"fixed","left"),this.$set(h,"className","backFF"+h.className)),h.width=c.width,i.push(h);break}}return i=[].concat(a()(i),o)},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){this.hdQuery&&(this.rightMenuRow=e),this.rightMenuVisable=!1,i.preventDefault();var o=this.$refs.rightMenu.$el;console.log(i),i.clientX>900?o.style.left=i.clientX-265+"px":o.style.left=i.clientX-175+"px",document.addEventListener("click",this.foo),i.clientY>500?o.style.top=i.clientY-185+"px":o.style.top=i.clientY-105+"px"},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])})})}},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]:[20,50,100,200]: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.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:[],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,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])));console.log("localStorage",localStorage.getItem("HdPdfSel"+this.$parent.gridId));var r=localStorage.getItem("HdPdfSel"+this.$parent.gridId);if(r){var l=JSON.parse(r);if(this.pdfExport=l.cols,this.fontSize=l.fontSize,this.isLandscape=l.isLandscape,!this.pdfExport||!Array.isArray(this.pdfExport)||this.pdfExport.length<1){this.pdfExport=[];for(var s=0;s<=this.totalSize;s++)this.pdfExport.push(s)}}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){console.log("header",e),console.log("merdata",t),console.log("title",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"},didParseCell:function(e){console.log("HookData",e.cell.text,e.cell,e.cell.text[0].length),e.cell.width=e.cell.text[0].length}}),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)("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),l=i(0),s=o,a=l(n.a,r.a,!1,s,"data-v-4ca5c5c6",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)("0eea07ed",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".hdgrid[data-v-4ca5c5c6]{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-4ca5c5c6] .el-table{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.hdgrid[data-v-4ca5c5c6] .el-table th.gutter{display:table-cell!important}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__fixed-header-wrapper th,.hdgrid[data-v-4ca5c5c6] .el-table .el-table__header-wrapper th{background-color:#f6f6f6}.hdgrid[data-v-4ca5c5c6] .el-table td,.hdgrid[data-v-4ca5c5c6] .el-table th{padding:1px 0}.hdgrid[data-v-4ca5c5c6] .el-table .cell,.hdgrid[data-v-4ca5c5c6] .el-table .el-table--border td:first-child .cell,.hdgrid[data-v-4ca5c5c6] .el-table .el-table--border th:first-child .cell,.hdgrid[data-v-4ca5c5c6] .el-table .el-table th div{padding:1.5px 0 1.5px 4px!important}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__empty-block{position:static;text-align:center;width:100%;height:80%}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__body{margin-bottom:10px}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__body-wrapper{height:100%;overflow:auto}.hdgrid[data-v-4ca5c5c6] .el-table .el-input__inner{height:27px;margin-bottom:0;line-height:27px}.hdgrid[data-v-4ca5c5c6] .el-table .el-form-item__content,.hdgrid[data-v-4ca5c5c6] .el-table .el-form-item__label,.hdgrid[data-v-4ca5c5c6] .el-table .el-input,.hdgrid[data-v-4ca5c5c6] .el-table .el-input__icon{line-height:30px}.hdgrid[data-v-4ca5c5c6] .el-table .el-input__inner{padding:5px}.hdgrid[data-v-4ca5c5c6] .el-table .el-input--prefix .el-input__inner{padding-left:30px}.hdgrid[data-v-4ca5c5c6] .el-table .cell{min-width:20px}.hdgrid[data-v-4ca5c5c6] .el-table .checkBox .cell{overflow:inherit}.hdgrid[data-v-4ca5c5c6] .el-table .checkBox .cell .el-checkbox,.hdgrid[data-v-4ca5c5c6] .el-table .checkBox .cell .el-checkbox__input{position:inherit}.hdBtnTool[data-v-4ca5c5c6]{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-324af748",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)("34aa3991",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)("0462a30a",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".icon-star[data-v-324af748]{margin-right:2px}.drag-handler[data-v-324af748]{width:20px;height:20px;cursor:pointer}.show-d[data-v-324af748]{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)("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),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;-1!==[38,40,37,39].indexOf(t)&&(38===t&&(this.rowSelNum-=1),40===t&&(this.rowSelNum+=1),37===t&&this.hdQuery.doCurPageChange(this.hdQuery.page-1),39===t&&this.hdQuery.doCurPageChange(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],c=d.getAttribute("colspan"),u=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)}),(u||c)&&(u=u||1,c=c||1,o.push({s:{r:n,c:r.length},e:{r:n+u-1,c:r.length+c-1}})),r.push(""!==h?h:null),c)for(var f=0;f<c-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,c=r(a);c["!merges"]=n,d.SheetNames.push("SheetJS"),d.Sheets.SheetJS=c;var u=p.a.write(d,{bookType:"xlsx",bookSST:!1,type:"binary"});Object(h.saveAs)(new Blob([s(u)],{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,c=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(u()(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(c.length>0&&(x["!merges"]||(x["!merges"]=[]),c.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 C=p.a.write(b,{bookType:v,bookSST:!1,type:"binary"});Object(h.saveAs)(new Blob([s(C)],{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 c=i(6),u=i.n(c),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-6a20afc4",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)("16133770",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".pdfshow[data-v-6a20afc4] .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),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)("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),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:"menu"},[e._t("rightMenu",[i("el-button-group",[i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doAdd"},on:{click:e.doAdd}},[e._v("增加\n ")]),e._v(" "),i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doUpdate"},on:{click:e.doUpdate}},[e._v("修改\n ")]),e._v(" "),i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doRemove"},on:{click:e.doRemove}},[e._v("删除\n ")]),e._v(" "),i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doCopy"},on:{click:e.doCopy}},[e._v("复制\n ")])],1),e._v(" "),this.$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"}}),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(" "),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)],1)},n=[],r={render:o,staticRenderFns:n};t.a=r}]);
|